public inbox for debugedit@sourceware.org
 help / color / mirror / Atom feed
* [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio?
@ 2023-02-08  3:04 kloczko.tomasz at gmail dot com
  2023-02-08  6:25 ` [Bug find-debuginfo/30097] " pmatilai at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2023-02-08  3:04 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

            Bug ID: 30097
           Summary: Q: why find-debuginfo script uses cpio?
           Product: debugedit
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: find-debuginfo
          Assignee: unassigned at sourceware dot org
          Reporter: kloczko.tomasz at gmail dot com
                CC: debugedit at sourceware dot org
  Target Milestone: ---

Trying to minimize base build build env I found that only package which needs
cpio  is find-debuginfo scipt.
I have difficulty ith understandig why it needed to try to remove that
dependency.

Is it reall ynecessary to use cpio in this case?

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

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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
@ 2023-02-08  6:25 ` pmatilai at redhat dot com
  2023-08-28 11:04 ` mark at klomp dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pmatilai at redhat dot com @ 2023-02-08  6:25 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

Panu Matilainen <pmatilai at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pmatilai at redhat dot com

--- Comment #1 from Panu Matilainen <pmatilai at redhat dot com> ---
Historical reasons? The cpio use was there already in the first-ever version in
2007 by Roland McGrath.

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

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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
  2023-02-08  6:25 ` [Bug find-debuginfo/30097] " pmatilai at redhat dot com
@ 2023-08-28 11:04 ` mark at klomp dot org
  2023-08-28 11:13 ` kloczko.tomasz at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mark at klomp dot org @ 2023-08-28 11:04 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
(In reply to kloczek from comment #0)
> Trying to minimize base build build env I found that only package which
> needs cpio  is find-debuginfo scipt.
> I have difficulty ith understandig why it needed to try to remove that
> dependency.
> 
> Is it reall necessary to use cpio in this case?

It is just an convenient way to package up a bunch of files.
It could be replaced with any other packaging system.
cpio is just known to always be there.

What would you suggest instead? And do you have a working 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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
  2023-02-08  6:25 ` [Bug find-debuginfo/30097] " pmatilai at redhat dot com
  2023-08-28 11:04 ` mark at klomp dot org
@ 2023-08-28 11:13 ` kloczko.tomasz at gmail dot com
  2023-08-28 11:21 ` pmatilai at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2023-08-28 11:13 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

--- Comment #3 from kloczek <kloczko.tomasz at gmail dot com> ---
Issue is that cpio is minimal build env is required only by thy part.

IMO it would be better to use tar because tar is usually used in %prep.

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

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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
                   ` (2 preceding siblings ...)
  2023-08-28 11:13 ` kloczko.tomasz at gmail dot com
@ 2023-08-28 11:21 ` pmatilai at redhat dot com
  2023-08-28 11:28 ` mark at klomp dot org
  2023-08-28 11:32 ` kloczko.tomasz at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pmatilai at redhat dot com @ 2023-08-28 11:21 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

--- Comment #4 from Panu Matilainen <pmatilai at redhat dot com> ---
> cpio is just known to always be there.

Note that rpm itself does not use the external cpio command for anything at
all. The only reason rpm-build in Fedora depends on cpio is because nobody
thought to remove the dependency when the debuginfo-stuff got split.

While we've come to expect to cpio being always there, few packages actually
depend on it.

I'm not arguing for replacing, cpio is tiny enough that it hardly matters at
all. Just FWIW.

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

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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
                   ` (3 preceding siblings ...)
  2023-08-28 11:21 ` pmatilai at redhat dot com
@ 2023-08-28 11:28 ` mark at klomp dot org
  2023-08-28 11:32 ` kloczko.tomasz at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: mark at klomp dot org @ 2023-08-28 11:28 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
In my experience cpio is more common than tar.
And the format seems more stable than that of tar.
Because that cpio in POSIX is replaced by pax,
which does support the cpio format (and ustar).
Maybe we should use pax instead?

I am not going to work it, but patches welcome if someone feels this is
important.

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

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

* [Bug find-debuginfo/30097] Q: why find-debuginfo script uses cpio?
  2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
                   ` (4 preceding siblings ...)
  2023-08-28 11:28 ` mark at klomp dot org
@ 2023-08-28 11:32 ` kloczko.tomasz at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: kloczko.tomasz at gmail dot com @ 2023-08-28 11:32 UTC (permalink / raw)
  To: debugedit

https://sourceware.org/bugzilla/show_bug.cgi?id=30097

--- Comment #6 from kloczek <kloczko.tomasz at gmail dot com> ---
> In my experience cpio is more common than tar.

This is not about coder experience.
None of the source archives are cpio.{gz|xz|bz2}.
Almost all of them are tar.{gz|xz|bz2}.

-- 
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:[~2023-08-28 11:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08  3:04 [Bug find-debuginfo/30097] New: Q: why find-debuginfo script uses cpio? kloczko.tomasz at gmail dot com
2023-02-08  6:25 ` [Bug find-debuginfo/30097] " pmatilai at redhat dot com
2023-08-28 11:04 ` mark at klomp dot org
2023-08-28 11:13 ` kloczko.tomasz at gmail dot com
2023-08-28 11:21 ` pmatilai at redhat dot com
2023-08-28 11:28 ` mark at klomp dot org
2023-08-28 11:32 ` kloczko.tomasz at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).