patch to make txz2lzm work (--root instead of bogus -root)

Post Reply
phly
Posts: 2
Joined: 28. Jun 2010, 17:06

patch to make txz2lzm work (--root instead of bogus -root)

Post by phly »

txz2lzm gives this error

ERROR: Invalid argument: unknown option (-root)

Thanks to the excellent "Salix Live Startup Guide" p 33 I easily founded the culprit:

This patch solves the bug

Code: Select all

--- /usr/bin/txz2lzm	2010-06-28 16:55:35.108422545 +0000
+++ /mnt/live/mnt/tmp/salixlive/tools/txz2lzm	2010-04-08 14:59:00.000000000 +0000
@@ -17,7 +17,7 @@
 
 TMPDIR=/tmp/tgz2lzm$$
 
-installpkg --root $TMPDIR $1
+installpkg -root $TMPDIR $1
 if [ $? != 0 ]; then echo "error installing package"; exit; fi
 
 # optimalization procedures, this doesn't hurt
It's important for me to be able to easily add modules to salix live, and gslapt seams perfect, but one need to convert to lzm. With this patch, it is possible.

Ph.L.
phly
Posts: 2
Joined: 28. Jun 2010, 17:06

Re: patch to make txz2lzm work (--root instead of bogus -root)

Post by phly »

Same error in /usr/bin/tgz2lzm

Ph.L
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: patch to make txz2lzm work (--root instead of bogus -root)

Post by Akuna »

Thanks for catching this phly :)
Image
What really matters is where you are going, not where you come from.
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: patch to make txz2lzm work (--root instead of bogus -root)

Post by JRD »

Hi !
I had the same problem two days ago. But I patched it differently.

Code: Select all

-installpkg --root $TMPDIR $1
+export ROOT=$TMPDIR
+installpkg $1
+unset ROOT
This way, it is ok with both "installpkg" from slackware and the one we use : "spkg"
Image
Post Reply