Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367805

Summary: tar-based release archives may include excluded directories
Product: [Technology] RTSC Reporter: Dave Russo <d-russo>
Component: CoreAssignee: Dave Russo <d-russo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland, p-geremia, sascha
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.23.01

Description Dave Russo CLA 2012-01-03 18:33:56 EST
There is a bug in how we handle "empty" directories when a release script is used and tar is the archiver:
    o we intentionally preserve empty directories in releases
    o when release scripts are provided, we run the archiver (tar or zip) by
      passing a explicit list of files _and_ empty directories to archive
    o when we run tar we (mistakenly) do not pass the "--no-recursion" option to
      tar (which would prevent including everything below the "empty"
      .../debug/ directory)

So, this bug _only_ occurs when a release
    o contains directories that are empty (except for excluded files) _and_
    o when tar is the archiver _and_
    o a release script has been specified

Possible workarounds include
    1. use zip rather than tar for all release archives
    2. add a dummy file, say README, to the debug/ directories
    3. patch xdctools_3_2*/packages/xdc/bld/rcl.tci: replace " --force-local " 
       with " --force-local --no-recursion "
Comment 1 Dave Russo CLA 2012-02-08 10:52:02 EST
fixed in r1600 (xdc-y16, xdctools 3.23.01 or above)
Comment 2 David Friedland CLA 2012-07-10 18:40:21 EDT
Verified that --no_recursion is passed in the command line.
Not certain what else I can do to verify the fix...
Comment 3 Dave Russo CLA 2013-01-24 15:12:12 EST
xdctools 3.23.05 GA is available from here: http://www.sanb.design.ti.com/tisb_releases/XDCtools/3_23_05_61/