Re: small modification in firefox.spec

2005-09-18 Thread Ralf S. Engelschall
On Sat, Sep 17, 2005, Bill Campbell wrote:

> On Sat, Sep 17, 2005, Ralf S. Engelschall wrote:
> >On Sat, Sep 17, 2005, PLI wrote:
> >
> >> in firefox.spec, firefox-init.tar.gz is in gzip format.
> >> could you add "-z" option to tar ?
> >>
> >> thanks.
> >>
> >> --- ./firefox.spec.orig 2005-09-17 15:58:08.0 +0200
> >> +++ ./firefox.spec  2005-09-17 15:58:12.0 +0200
> >> @@ -260,7 +260,7 @@
> >>
> >>  #   add initialization files
> >>  ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && \
> >> -  %{l_tar} -xf %{SOURCE firefox-init.tar.gz} && \
> >> +  %{l_tar} -zxf %{SOURCE firefox-init.tar.gz} && \
> >>rm -f firefox/README
> >>  ) || exit $?
> >
> >Thanks for the hint. I've fixed it now. But I had to use a combination
> >of gzip and tar as not all tar implementations support the -z option.
>
> Doesn't %{l_tar} always refer to the gnu-tar built into OpenPKG?
> If so, one should be able to safely assume that it supports the
> option to use gzip compression.

Yes and no. I assumed that our /lib/openpkg/tar in the
bootstrap package wants to find "gzip" in $PATH (which is not the case
just for the bootstrap package, the "gzip" package would have to be
installed, too) and hence would not automatically be able to use our
/lib/openpkg/gzip. But we have to double-check its sources to be
sure...
   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


Re: small modification in firefox.spec

2005-09-17 Thread Bill Campbell
On Sat, Sep 17, 2005, Ralf S. Engelschall wrote:
>On Sat, Sep 17, 2005, PLI wrote:
>
>> in firefox.spec, firefox-init.tar.gz is in gzip format.
>> could you add "-z" option to tar ?
>>
>> thanks.
>>
>> --- ./firefox.spec.orig 2005-09-17 15:58:08.0 +0200
>> +++ ./firefox.spec  2005-09-17 15:58:12.0 +0200
>> @@ -260,7 +260,7 @@
>>
>>  #   add initialization files
>>  ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && \
>> -  %{l_tar} -xf %{SOURCE firefox-init.tar.gz} && \
>> +  %{l_tar} -zxf %{SOURCE firefox-init.tar.gz} && \
>>rm -f firefox/README
>>  ) || exit $?
>
>Thanks for the hint. I've fixed it now. But I had to use a combination
>of gzip and tar as not all tar implementations support the -z option.

Doesn't %{l_tar} always refer to the gnu-tar built into OpenPKG?
If so, one should be able to safely assume that it supports the
option to use gzip compression.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:   camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

There are three kinds of men. The ones that learn by reading. The few who
learn by observation.  The rest of them have to pee on the electric fence
for themselves. -- Will Rogers
__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


Re: small modification in firefox.spec

2005-09-17 Thread Ralf S. Engelschall
On Sat, Sep 17, 2005, PLI wrote:

> in firefox.spec, firefox-init.tar.gz is in gzip format.
> could you add "-z" option to tar ?
>
> thanks.
>
> --- ./firefox.spec.orig 2005-09-17 15:58:08.0 +0200
> +++ ./firefox.spec  2005-09-17 15:58:12.0 +0200
> @@ -260,7 +260,7 @@
>
>  #   add initialization files
>  ( cd $RPM_BUILD_ROOT%{l_prefix}/lib && \
> -  %{l_tar} -xf %{SOURCE firefox-init.tar.gz} && \
> +  %{l_tar} -zxf %{SOURCE firefox-init.tar.gz} && \
>rm -f firefox/README
>  ) || exit $?

Thanks for the hint. I've fixed it now. But I had to use a combination
of gzip and tar as not all tar implementations support the -z option.

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   openpkg-dev@openpkg.org