SliTaz SliTaz Forum

You are not logged in.

#1 2015-03-19 17:58:07

llev
Member
Registered: 2011-12-09
Posts: 568

Patches to: libtaz.sh, tazpkg

libtaz.sh contains a sed call that's incompatible with GNU sed. Maybe is it a problem with shell escaping, but the line is too complicated for me to understand. The simplest patch is to explicitly call busybox.

[c]--- libtaz.sh_old       2015-03-15 21:47:07.591948533 +0100
+++ libtaz.sh_new       2015-03-15 21:57:59.228768221 +0100
@@ -140,7 +140,7 @@
                        for c in $(seq 1 $cols); do
                                sep="${sep}="
                        done
-                       echo -en "$(echo "$@" | sed -e 's|<b>|\33[1m|g; s|</b>|\33[0m|g; \
+                       echo -en "$(echo "$@" | busybox sed -e 's|<b>|\33[1m|g; s|</b>|\33[0m|g; \
                        s|<c \([0-9]*\)>|\33[1;\1m|g; s|</c>|\33[0;39m|g; s|<n>|\n|g; \
                        s|<->|'$sep'|g; s|<i \([0-9]*\)>|\33[\1G|g')"
                        [ "$1" != "-n" ] && echo[/c]

Offline

#2 2015-03-19 17:59:46

llev
Member
Registered: 2011-12-09
Posts: 568

Re: Patches to: libtaz.sh, tazpkg

tazpkg has a typo in the function that lists package files.

[c]--- tazpkg.old  2015-03-19 17:52:54.532322106 +0100
+++ tazpkg.new  2015-03-19 17:53:18.142322815 +0100
@@ -1831,7 +1831,7 @@
                check_for_receipt
                title 'Installed files by: $PACKAGE'
                sort < $INSTALLED/$PACKAGE/files.list
-               files=$(wc -l < INSTALLED/$PACKAGE/files.list)
+               files=$(wc -l < $INSTALLED/$PACKAGE/files.list)
                num=$(emsg "<c 32>$files</c>")
                footer "$(eval_ngettext \
                        '$num file installed with $PACKAGE' \[/c]

Offline

#3 2015-03-19 18:21:53

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Patches to: libtaz.sh, tazpkg

Tazpkg typo was fixed last year:

http://hg.slitaz.org/tazpkg/annotate/82842f95d47c/tazpkg#l1458

http://hg.slitaz.org/tazpkg/rev/edae96a252ac

Checking log 5.3 is next version tag after the commit.

Tazpkg-5.3 or newer includes this commit.

Offline

#4 2015-03-19 20:37:25

llev
Member
Registered: 2011-12-09
Posts: 568

Re: Patches to: libtaz.sh, tazpkg

Oh, sorry for that. I started here http://www.slitaz.org/en/get/ and made a DVD by merging the two ISOs under "Cooking". I didn't realize I should merge the "packages" ISO with the rolling ISO from the homepage (which is not listed on the "Get SliTaz" page).

Offline

#5 2015-03-29 10:50:05

llev
Member
Registered: 2011-12-09
Posts: 568

Re: Patches to: libtaz.sh, tazpkg

Seems like Aleksej found the right patch to libtaz.sh: removing EOL backslashes :-)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 8 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]