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: Raul Infante-Sainz
Subject: [task #15667] Install Lzip and Make before calling basic.mk
Date: Mon, 1 Jun 2020 05:39:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:76.0) Gecko/20100101 Firefox/76.0

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

It is strange that it worked in your system. In my system it crashed because
it tried to use `tar' on `.lz' files. When installing `lzip' it is fine
because it is not compressed (`lzip.tar'). But then, when it goes to next
program and try to use `tar' with `make.tar.lz' it crashed, because it is
lziped!

Here I paste a couple of modifications I did in order to correct this problem,
I could commit them but I prefer to post here and let you know.


diff --git a/reproduce/software/shell/pre-make-build.sh
b/reproduce/software/shell/pre-make-build.sh
index 25d7d6b..5fdb7cc 100755
--- a/reproduce/software/shell/pre-make-build.sh
+++ b/reproduce/software/shell/pre-make-build.sh
@@ -123,7 +123,14 @@ download_tarball() {
 build_program() {
   if ! [ -f $ibidir/$progname ]; then
     cd $tmpblddir
-    tar -xf $tardir/$tarball
+    if [ x$progname = xlzip ]; then
+      tar -xf $tardir/$tarball
+    else
+      tarball_tar=$(echo $tarball | sed -e's/.lz//')
+      lzip -k -f -d $tardir/$tarball
+      mv $tardir/$tarball_tar $tmpblddir/
+      tar -xf $tmpblddir/$tarball_tar
+    fi
     unpackdir="$progname"-"$version"
     cd $unpackdir
     ./configure --prefix=$instdir
@@ -131,6 +138,7 @@ build_program() {
     make install
     cd $topdir
     rm -rf "$tmpblddir"/$unpackdir
+    rm -rf $tmpblddir/$tarball_tar
     echo "$progname_tex $version" > $ibidir/$progname
   fi
 }
  

Basically, it is necessary to use `lzip' with `.lz' tarballs (-k for keeping
the original tarball, -f for force to overwrite and -d to decompress). But I
am not able to specify a proper output (with the `-o' option), and because of
that, I moved the decompressed tarball. Then use it to install the program. 

This fixes that problem. But then, it crashes complaining about:


Downloading http://akhlaghi.org/src/gzip-1.10.tar.lz
./reproduce/analysis/bash/download-multi-try: full input URL (third argument)
not given.



    _______________________________________________________

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]