All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 13616] New: tar file from git repository generation issue
@ 2021-03-15 10:36 bugzilla at busybox.net
  2021-03-15 10:36 ` [Buildroot] [Bug 13616] " bugzilla at busybox.net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-15 10:36 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

            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

Hello,

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 :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775247

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
usable.

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 

Regards.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
@ 2021-03-15 10:36 ` bugzilla at busybox.net
  2021-03-15 10:41 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-15 10:36 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

--- Comment #1 from Jean-pierre Cartal <jpcartal@free.fr> ---
Created attachment 8796
  --> https://bugs.busybox.net/attachment.cgi?id=8796&action=edit
2020.02.x branch patch

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
  2021-03-15 10:36 ` [Buildroot] [Bug 13616] " bugzilla at busybox.net
@ 2021-03-15 10:41 ` bugzilla at busybox.net
  2021-03-15 15:41 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-15 10:41 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

Jean-pierre Cartal <jpcartal@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2020.02.8                   |2021.02

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
  2021-03-15 10:36 ` [Buildroot] [Bug 13616] " bugzilla at busybox.net
  2021-03-15 10:41 ` bugzilla at busybox.net
@ 2021-03-15 15:41 ` bugzilla at busybox.net
  2021-03-15 21:07 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-15 15:41 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

--- Comment #2 from Vincent Fazio <vfazio@xes-inc.com> ---
This will potentially cause a rev change in the tarballs generated by both svn
and git since hashes are likely to change for affected repositories.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2021-03-15 15:41 ` bugzilla at busybox.net
@ 2021-03-15 21:07 ` bugzilla at busybox.net
  2021-03-16  9:42 ` bugzilla at busybox.net
  2021-03-24 12:37 ` bugzilla at busybox.net
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-15 21:07 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998 at free.fr
           Assignee|unassigned at buildroot.uclibc |yann.morin.1998 at free.fr
                   |.org                        |
             Status|NEW                         |ASSIGNED

--- Comment #3 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Jean-Pierre, All,

Thanks for the report.

The use of --transform (in the current form or similar) has been introduced in
commit 6d938bcb5249 in 2018-04-02, and although we had a few fixups over the
following days, it has stayed like that ever since, until we introduced the
current generic helper, that reuses that exact same --transform pattern.

So, is this a new behaviour on your side, or is it a new package you are
introducing?

In any case, the use of the 'S' flag does indeed make sense.

Can you submit your patches to the mailing list, please?

Regards,
Yann E. MORIN.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2021-03-15 21:07 ` bugzilla at busybox.net
@ 2021-03-16  9:42 ` bugzilla at busybox.net
  2021-03-24 12:37 ` bugzilla at busybox.net
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-16  9:42 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

--- Comment #4 from Jean-pierre Cartal <jpcartal@free.fr> ---
(In reply to Yann E. MORIN from comment #3)
Yann,

I think this is not a new behaviour, neither a new package, but up to now we've
been using the OVERRIDE_SRCDIR mechanism to generate binary tar files that were
then used as part of the build. We just tried to make a full build from sources
with this package and ended up hitting the reported issue.

I'll submit the patches to the mailing list as soon as possible.

Regards.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 13616] tar file from git repository generation issue
  2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2021-03-16  9:42 ` bugzilla at busybox.net
@ 2021-03-24 12:37 ` bugzilla at busybox.net
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla at busybox.net @ 2021-03-24 12:37 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13616

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Peter Korsgaard <jacmet@uclibc.org> ---
Fixed in git by
https://git.buildroot.org/buildroot/commit/?id=c9f27fdc1bf36da745218cec6722a3d09c2bcd3b
and
https://git.buildroot.org/buildroot/commit/?h=2020.02.x&id=7d377e1f449e36f2756255cc528ebff5ea96e568
thanks.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-24 12:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 10:36 [Buildroot] [Bug 13616] New: tar file from git repository generation issue bugzilla at busybox.net
2021-03-15 10:36 ` [Buildroot] [Bug 13616] " bugzilla at busybox.net
2021-03-15 10:41 ` bugzilla at busybox.net
2021-03-15 15:41 ` bugzilla at busybox.net
2021-03-15 21:07 ` bugzilla at busybox.net
2021-03-16  9:42 ` bugzilla at busybox.net
2021-03-24 12:37 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.