reproduce-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #15667] Install Lzip and Make before calling basic.mk


From: Boud Roukema
Subject: [task #15667] Install Lzip and Make before calling basic.mk
Date: Mon, 1 Jun 2020 10:15:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #3, task #15667 (project reproduce):

Do we already have GNU tar at this stage? If yes, then we
can use the GNU style tar options (single hyphen for
one-letter options; double hyphen for long options). 
If no, then things are messy
because of the complicated tar history/variations. The following
is within an already built maneage system (commit 213dac3):


maneage_project$ PATH=.local/bin tar -cv --lzip -f p.tar.lz paper.tex
paper.pdf 
paper.tex
paper.pdf
maneage_project$ PATH=.local/bin/ ls -l p.tar.lz paper.*
-rw-r--r-- 1 boud boud 264112 Jun  1 15:58 p.tar.lz
-rw-r--r-- 1 boud boud 258350 Jun  1 15:58 paper.pdf
-rw-r--r-- 1 boud boud  11609 Jun  1 15:58 paper.tex
maneage_project$ PATH=.local/bin/ rm -f paper.???
maneage_project$ PATH=.local/bin/ ls -l p.tar.lz paper.*
ls: cannot access 'paper.*': No such file or directory
-rw-r--r-- 1 boud boud 264112 Jun  1 15:58  p.tar.lz
maneage_project$ PATH=.local/bin tar -xv -f p.tar.lz paper.tex paper.pdf 
paper.tex
paper.pdf
maneage_project$ PATH=.local/bin/ ls -l p.tar.lz paper.*
-rw-r--r-- 1 boud boud 264112 Jun  1 15:58 p.tar.lz
-rw-r--r-- 1 boud boud 258350 Jun  1 15:58 paper.pdf
-rw-r--r-- 1 boud boud  11609 Jun  1 15:58 paper.tex


The point is that GNU tar automatically detects whether
a file is gzipped|lzipped|whatever-zipped when x-tracting.
When c-reating, it needs to know what type of compression
you want. That's my experience, anyway.

My guess: using _lzip_ and _tar_ separately is probably easier
and more likely to work on more systems rather than assuming
that _tar_ already knows about automatic _lzip_ recognition/usage.

The alternative would be to set _tar_ as a prerequisite
for untarring any lzipped files and then make sure we
use the installed GNU tar. My 'maneage' systems seem to
have compiled 'tar' just before 'make', so in principle
this should be doable, it seems to me.



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/task/?15667>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]