SliTaz SliTaz Forum

You are not logged in.

#1 2017-01-27 07:59:50

Zann
Member
Registered: 2015-09-15
Posts: 14

Two issues with tazpkg (934)

Hello,

Anyone else is seeing issues with tazpkg version 934? It looks to me that the download progress bar is broken - this is what I just got in the terminal while updating busybox:

[c]Connecting to download.tuxfamily.org (88.191.250.171:80)
busybox-1.26.2.tazpk   7% |**                             | 27554   0:00:12 ETA
busybox-1.26.2.tazpk  56% |*****************              |   209k  0:00:01 ETA
busybox-1.26.2.tazpk 100% |*******************************|   371k  0:00:00 ETA

Installation of package "busybox"
================================================================================
Busybox combines tiny versions of many common UNIX utilities.
--------------------------------------------------------------------------------
Copying package...                                                    [ Done ]
Extracting package...[/c]
And the lines with the progress bar asterisks are not being shown in the terminal at all until the download is complete. This was much more obvious for firefox (larger download), too.

Another strange thing is that running tazpkg without any command line parameters gives

[c]SliTaz package manager - Version: 934
================================================================================
/usr/libexec/tazpkg/summary: line 49: arithmetic syntax error[/c]
which looks rather suspicious smile

Thank you,

-Z.

Offline

#2 2017-01-27 10:57:27

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Two issues with tazpkg (934)

Hi Zann,

Thank you for the bug report!

I was seeing the strange behavior, but never mind it's bug smile

Now it's reverted to the previous tazpkg indication. It was due to Busybox v.1.26 update: now it outputs progress meter different to stderr depending on fact whether stderr is attached to the console or to the stdin of the other command. In our case we filtered wget's output using awk.

Please, download new tazpkg-938 from the cooker: http://cook.slitaz.org/cooker.cgi?pkg=tazpkg

Then install it and try it again.

Fixes applied are here, if you're interested:

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

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

----

Touching the second bug. It not produced on my host, and I can't resolve it without your help. Steps to help:

[*]Became root

[*]Change the first line of the file [c]/usr/libexec/tazpkg/summary[/c] from "#!/bin/sh" to "#!/bin/sh -x"

[*]Produce the error in your terminal: run [c]tazpkg[/c] without parameters.

[*]Copy all the output from terminal and publish it on paste.slitaz.org and share the link here.

[*]Restore the first line of the file [c]/usr/libexec/tazpkg/summary[/c] from "#!/bin/sh -x" to "#!/bin/sh"

If you prefer to work in terminal, you can issue the steps #1-3,5 using the next commands:

[c]su
sed -i 's|/bin/sh|& -x|' /usr/libexec/tazpkg/summary
tazpkg > /tmp/summary.txt 2>&1
sed -i 's|/bin/sh -x|/bin/sh|' /usr/libexec/tazpkg/summary[/c]
And post the content of the [c]/tmp/summary.txt[/c].

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]