[Buildroot] [Bug 13616] New: tar file from git repository generation issue

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 15 10:36:01 UTC 2021


            Bug ID: 13616
           Summary: tar file from git repository generation issue
           Product: buildroot
           Version: 2020.02.8
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: jpcartal at free.fr
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 8791
  --> https://bugs.busybox.net/attachment.cgi?id=8791&action=edit
Master branch patch


The support/download/git script is generating tar files from git repositories
using the following command :

# Create GNU-format tarballs, since that's the format of the tarballs on
# sources.buildroot.org and used in the *.hash files
tar cf - --transform="s#^\./#${basename}/#" \
         --numeric-owner --owner=0 --group=0 --mtime="${date}" --format=gnu \
         -T "${output}.list.sorted" >"${output}.tar"

In one of our repository, the --transform option is generating unusable tar
files because of the bug described here :

Links with the following pattern src/foo -> ./foo_bar/bar are replaced with 
src/foo -> ${basename}/foo_bar/bar and thus the generated tarball is not

As explained in the debian bug report, adding the S flag to the transform
pattern (i.e. --transform="s#^\./#${basename}/#" =>
--transform="s#^\./#${basename}/#S") solves this issue.

Attaching the corresponding patches for master and 2020.02.x branches 


You are receiving this mail because:
You are on the CC list for the bug.

More information about the buildroot mailing list