Mailinglist Archive: opensuse-packaging (42 mails)

< Previous Next >
Re: Aw: Re: Re: [opensuse-packaging] %setup -q -a 0 for Source0 then %setup -q a 1 -n pkg-%{version}/lib but need --strip-components=1
  • From: Axel Braun <axel.braun@xxxxxx>
  • Date: Thu, 02 May 2019 21:11:45 +0200
  • Message-id: <2242307.lQ0TPg2HIM@t520.axxite.internal>
Am Donnerstag, 2. Mai 2019, 17:24:19 CEST schrieb Axel Braun:
Gesendet: Donnerstag, 02. Mai 2019 um 17:07 Uhr
Von: "Neal Gompa" <ngompa13@xxxxxxxxx>
An: "Axel Braun" <Axel.Braun@xxxxxx>
Cc: "openSUSE Packaging Mailingliste" <opensuse-packaging@xxxxxxxxxxxx>
Betreff: Re: Re: [opensuse-packaging] %setup -q -a 0 for Source0 then
%setup -q a 1 -n pkg-%{version}/lib but need --strip-components=1>
On Thu, May 2, 2019 at 10:49 AM Axel Braun <Axel.Braun@xxxxxx> wrote:
Gesendet: Donnerstag, 02. Mai 2019 um 07:25 Uhr
Von: "Jan Engelhardt" <jengelh@xxxxxxx>
An: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
Cc: "openSuSE Packaging" <opensuse-packaging@xxxxxxxxxxxx>
Betreff: Re: [opensuse-packaging] %setup -q -a 0 for Source0 then
%setup -q a 1 -n pkg-%{version}/lib but need --strip-components=1> > >
On Thursday 2019-05-02 06:50, David C. Rankin wrote:
I've tried

%setup -q -a 0
%setup -q -a 1 -n pngquant-%{version}/lib

which unzips in the correct order, but does not provide a way to
--strip-components=1 to get rid of the libimagequant-%{version}
default directory.> > >
There is no way to combine %setup with --strip-components.
tar -xf is the only option.

you need to use bsdtar if you want the strip-components option

The flag has been implemented in GNU tar for quite a while...

I thought so as well.....but at least in Leap 15 it war not working with
strip-components

Correction, I found it - problem was in TW end of February:
As part of a script the command
tar --strip-components 3 -xzf /tmp/${lang_file} || bailout
failed with
... gzip: stdin has more than one entry - rest ignored
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Child returned status 2

running the same command with bsdtar worked, and w/o the strip-compnents it
worked as well if I remember right


--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation