SliTaz SliTaz Forum

You are not logged in.

#1 2015-03-23 12:56:21

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

New version of packages manager (tazpkg) testing needed

Hi all, especially advanced users, who have some free time and wants to help.

New "tazpkg" is in beta-stage development, any feedback is welcome.

Cook with $VERSION of last hg rev or just get it here:

http://people.slitaz.org/~az_ua/tazpanel-414.tazpkg

http://people.slitaz.org/~az_ua/tazpkg-750.tazpkg

...and install.

(tazpanel-414 is the same as tazpanel-1.8.3, currently updated with broken css)

Prepare to use:

(to have installed.info)

root@slitaz:/# tazpkg -l

(to have packages.info)

root@slitaz:/# rm -f /var/lib/tazpkg/ID && tazpkg recharge

Known bugs:

- Updates from tazpanel may not work, use # tazpkg up

- search-pkgname fails with / char in search-string

- Ignoring and rewriting *.tazpkg in cache

- Same icon for installed and not-installed

Offline

#2 2015-03-23 20:52:54

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

Re: New version of packages manager (tazpkg) testing needed

Hi!

It so happens that I'm working on TazPanel changes alone. Within about 3 months.

I already have a bunch of changes in TazPanel. But I do not push them because it not yet all works fine. And I want to push when everything to work. I not provided new version number, I know that development is lasts. And not finished yet.

It seems like I forced to push right now what I was developed. But note please, that I have currently broken TazPanel menu, and Wi-Fi connection not completed yet.

Ok, I'll push all my prolonged developments right now, and then will push my works on few-days basis.

az_ua, can you help me to find more bugs that I have not seen?

Please, stay tuned smile

PS. Menu is fixed. All other bugs are waits their time to be fixed.

Please, see revision #419 of TazPanel. And revision #755 of TazPkg. (No links here because changes are huge).

Offline

#3 2015-03-24 03:06:32

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: New version of packages manager (tazpkg) testing needed

582             # Mirror URL can have a trailing slash or not.

   583             http://*|ftp://*)

   584                 busybox wget -c ${i%/}/$@ && break ;;

   585             https://*)

   586                 echo 'Sorry, https not supported' ;;

   587             *)

I have patched tazpkg in order to handle https url.

http://forum.slitaz.org/topic/64-bit-version/page/2#post-35744

Offline

#4 2015-03-26 21:19:20

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hi,

Installed tazpkg-750.tazpkg and doing some tests

[c]# tazpkg -l cat[/c] lists 52 categories; TazPanel only 20.

Known bugs:

...

- Same icon for installed and not-installed

After having closed/open my session:

- green squares for installed packages

- green squares with a lock inside + red names for blocked

- white squares with orange star inside for not installed

Detail: in TazPanel, [Toogle all] button is smaller than others; btw, shouldn't it be "Toggle all"

Will continue to test this week end.

Offline

#5 2015-03-28 13:07:18

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

TazPanel 425

[*]
After "Recharge list" and then "Check upgrades", clicking on [Toogle all] --> select all packages and then displays the Summary; need to select them one by one and click [Install] to update packages

[*]
The search-files function in TazPanel doesn't work (doesn' find files); OK in TazPkg.

TazPkg 757

[*]
if sed is installed:

[c]

# tazpkg up

/var/lib/tazpkg/packages.list is older than one week... recharging

Creating backup of the last packages list...                         [ Done ]

Connecting to mirror.slitaz.org (188.165.229.172:80)

packages.desc        100% |*******************************|   504k  0:00:00 ETA

Connecting to mirror.slitaz.org (212.83.135.187:80)

Connecting to mirror1.slitaz.org (188.165.229.172:80)

packages.md5         100% |*******************************|   277k  0:00:00 ETA

Connecting to mirror.slitaz.org (37.187.4.13:80)

Connecting to mirror1.slitaz.org (188.165.229.172:80)

packages.txt         100% |*******************************|   391k  0:00:00 ETA

Connecting to mirror.slitaz.org (188.165.229.172:80)

packages.list        100% |*******************************| 87594   0:00:00 ETA

Connecting to mirror.slitaz.org (212.83.135.187:80)

Connecting to mirror1.slitaz.org (188.165.229.172:80)

packages.equiv       100% |*******************************|  7023   0:00:00 ETA

Connecting to mirror.slitaz.org (37.187.4.13:80)

Connecting to mirror1.slitaz.org (188.165.229.172:80)

files.list.lzma      100% |*******************************|  2693k  0:00:00 ETA

Connecting to mirror.slitaz.org (188.165.229.172:80)

extra.list           100% |*******************************|   756   0:00:00 ETA

Connecting to mirror.slitaz.org (212.83.135.187:80)

Connecting to download.tuxfamily.org (88.191.250.18:80)

mirrors              100% |*******************************|   602   0:00:00 ETA

Mirrored packages diff

================================================================================

blender-2.73a

busybox-1.23.2

.../...

yasm-1.3.0

yasm-dev-1.3.0

sublime-text-3

sed: -e expression #1, char 109: unterminated address regex

================================================================================

new packages on the mirror.

sed: -e expression #1, char 109: unterminated address regex

sed: -e expression #1, char 109: unterminated address regex

sed: -e expression #1, char 109: unterminated address regex

...[/c]

Then [c]tazpkg -r sed [/c]and it's OK

[*]
[c]tazpkg info [/c]<package> works but doesn't mention the sizes package/installed; OK in /var/lib/tazpkg/packages.info; OK in TazPanel.

Offline

#6 2015-03-28 13:52:49

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

Re: New version of packages manager (tazpkg) testing needed

Hi Ceel,

TazPanel 425

[*]After "Recharge list" and then "Check upgrades", clicking on [Toogle all] --> select all packages and then displays the Summary; need to select them one by one and click [Install] to update packages

[*]The search-files function in TazPanel doesn't work (doesn' find files); OK in TazPkg.

Fixed. Please, try latest 426: http://cook.slitaz.org/cooker.cgi?pkg=tazpanel

Also, update your tazpkg and slitaz-boot-scripts. Here I fixed my bugs smile

TazPkg 757

[*]if sed is installed:

[c]# tazpkg up
/var/lib/tazpkg/packages.list is older than one week... recharging
. . .[/c]

OK, I'll see it precisely.

[*]
[c]tazpkg info[/c]<package> works but doesn't mention the sizes package/installed; OK in /var/lib/tazpkg/packages.info; OK in TazPanel.

Well, I'll add it to tazpkg CLI.

Thanks for feedback! And have a nice day.

Offline

#7 2015-03-28 15:04:50

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

Re: New version of packages manager (tazpkg) testing needed

Please, try slitaz-base-files-265: http://cook.slitaz.org/cooker.cgi?pkg=slitaz-base-files

It'll fix incompatibility between GNU sed and Busybox sed.

Offline

#8 2015-03-28 21:11:21

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hi Aleksej,

With the 4 new packages, all seems OK excepted the [Recharge list] button when viewing My packages list doesn't work; I have to do it through the menu bar (Packages then Recharge list).

Another thing, but it's not a bug, is you cannot remove packages that are on different pages in a single operation.

ie: I want to remove gnumeric and its dependencies libgsf, goffice, readline, libltdl, guile.

I select gnumeric, goffice, guile, libgsf and libltdl on the first page; if I go on the second page to select readline, all the selected packages of the first page will be unselected.

On a fresh installation, there only are 3 pages but there will be 7 or 8 or more...

My opinion: I don't like this new presentation, I prefered to have a list. But, I'll do with it ;-)

Question: How does the link otpion of tazpkg work? I didn't arrive to use it; bug or I don't use it correctly?

Have a nice sunday.

Offline

#9 2015-03-28 22:00:08

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

Re: New version of packages manager (tazpkg) testing needed

Thank you smile

My opinion: I don't like this new presentation, I prefered to have a list.

My apologies. You can't disable this pager. But you can set page size. By default there is 100 packages on the page, but you can set any number based on your preferences: 1,000 or 1,000,000 (but of course without commas) wink

Maybe you have recent hardware. But it is pretty hard to display 1,000 or more packages list on my netbook.

Ah, forgot to say smile To set page size: click menu "Packages" → "Administration" → scroll to the bottom of page.

I want to say that your idea to keep selection is brilliant! I need a time to think how to make it better.

You know, our dependency tracking system far from ideal. It's just not handy. Say, why I installed single package, but when I want to remove it – I should remove ten? Which packages I installed myself, and which are auto-installed? Which of them I don't need anymore? What if I have limited traffic or limited HDD free size? I want to know. What if I want to completely remove application both with it caches and settings? And more questions...

---

How does the link works? I hope doc better explain it than me.

Let's say, you have /mnt/sda5 partition with full SliTaz installation. First, set link to /mnt/sda5 on the "Admin" page. Then you can see list of pages on that SliTaz installation and link those pages to your current installation. It worked for me about 1-2 months ago, sorry, can't check it today.

Offline

#10 2015-03-28 23:15:17

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hi Aleksej,

Still a question and I go to bed. In TazPanel menu when you choose Install, what's the difference between the 2 options Install and Install SliTaz? It seems both do the same job.

Bug in the installer: it doesn't install the kernel (http://forum.slitaz.org/topic/toolchain-updates/page/3#post-37161)

Offline

#11 2015-03-28 23:36:21

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

Re: New version of packages manager (tazpkg) testing needed

Don't know really. As you can see, I reworked menu. Now it like in other GTK applications, for example, in the Leafpad.

SliTaz installer has own three menu items, and now it still three.

Nowadays I see many SliTaz installer related bug reports here, on the forum. But, I'm not its author and IMHO better if I not touched it. Still too many work with TazPanel and TazPkg. But I can remove that menu item.

Offline

#12 2015-03-29 16:44:05

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hi Aleksej,

My apologies. You can't disable this pager. But you can set page size.

Hey, you don't have to apologize because you changed the habits of a grumpy old man ;-)

I didn't still have time to explore all the menus of TazPanel and I confess that I didn't visit the Administration option of the Packages menu.

Setting page size to 1000 is the solution for me. Don't change anything. And my most recent hadware is 12 years old... (excepted my pro computer)

I forgot to suggest you one thing. What about to have the possibility in TazPanel to select packages and block them with a button (yes, I'm a little lazy)?

Link: thanks. I tried this option in the command line and it didn't work but that's OK today (and with TazPanel too). Maybe I'd spent too much time on my computer yesterday (or I'd forgotten to mount the partition... : - / )

Offline

#13 2015-03-30 13:53:40

erjo
Administrator
Registered: 2011-03-28
Posts: 86

Re: New version of packages manager (tazpkg) testing needed

yep,

Bug in the installer: it doesn't install the kernel (http://forum.slitaz.org/topic/toolchain-updates/page/3#post-37161)

It is not related to tazpanel but to tazinst.

It is coming while dealing whith kernel 32 and 64.

The source of the problem

        for i in $SOURCE_ROOT/boot/bzImage* ; do
                cp $i $TARGET_ROOT/boot/$KERNEL${i#*bzImage[6][4]}
        done

Offline

#14 2015-03-30 14:40:39

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: New version of packages manager (tazpkg) testing needed

Oops... This one should be less stupid.

http://hg.slitaz.org/tazinst/rev/d8259c857aea

Offline

#15 2015-03-30 14:56:34

erjo
Administrator
Registered: 2011-03-28
Posts: 86

Re: New version of packages manager (tazpkg) testing needed

install, install slitaz and Upgrade system return the same content.

I think it is not very useful.

Offline

#16 2015-03-30 15:10:12

erjo
Administrator
Registered: 2011-03-28
Posts: 86

Re: New version of packages manager (tazpkg) testing needed

@bellard: I confirm this one is better.

Offline

#17 2015-04-02 18:16:58

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

@Aleksej,

Last week end I installed tazpkg-759 and tazpanel-426 for tests

This evening, I recharged with TazPanel the packages list and I see 11 new packages on mirror (tazpanel426_1.png).

1. Is it normal there are 2 tazpanel (426 and 427)  and 2 tazpkg (759 and 761) packages?

Then I've checked for upgrades; tazpanel and tazpkg don't appear in the list.

2. ???

Then I've done a search packages for [c]tazp[/c]. I can see tazpanel-427 and tazpkg-761 (and no tazpanel-426 and tazpkg-759 anymore) and see that these packages are not installed of course on my system (tazpanel426_3.png).

3. Why TazPanel didn't propose to me to install them after checking for upgrades?

[attachment=37327,1888] [attachment=37327,1889] [attachment=37327,1890]

Offline

#18 2015-04-02 19:46:27

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

Re: New version of packages manager (tazpkg) testing needed

Hi Ceel,

Thank you for your reports!

1. Confirmed.

Really, [c]/var/lib/tazpkg/packages.list[/c] containes doubled lines for [c]tazpkg[/c] and [c]tazpanel[/c]:

[c]grep 'tazpkg\|tazpanel' /var/lib/packages.list

tazpanel-426
tazpanel-427
tazpanel-theme-sandfive-1.0
tazpkg-759
tazpkg-761
tazpkg-desc-ru-150109[/c]
I say more: not only these two packages, but some packages also. Here the full list:

[c]cairo-1.14.0
cairo-1.14.2

slitaz-base-files-265
slitaz-base-files-5.6.5

slitaz-boot-scripts-398
slitaz-boot-scripts-5.7.1

tazpanel-426
tazpanel-427

tazpkg-759
tazpkg-761[/c]
And it is a bug. Not in the TazPanel or TazPkg, but somewhere in the Cooker site. I'll try to recharge lists on the Cooker site, let's see if it helps.

2. Maybe it not listed because of non-standard sitiation with previous bug.

3. I know it, sorry.

When I optimized search for speed it was difficult to show all sort of packages (not installed, installed, installed and blocked). So, really it shows generic package icon for all packages regardless of whether package is installed or not. I plan to fix this bug ASAP.

___

PS. Seems, Recharge page (on the first picture) kinda ugly. I'll fix it next to search packages bug.

___

PPS. Lists fixed (I re-maked lists, it not helps; then removed redundant packages by hands and re-maked lists). Let's wait when these lists appeared on the SliTaz mirrors.

Offline

#19 2015-04-03 14:24:42

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

Re: New version of packages manager (tazpkg) testing needed

Hi Ceel,

Search fixed in the TazPkg-763. Download and install it right now from http://cook.slitaz.org/cooker.cgi?pkg=tazpkg

Hg changeset: http://hg.slitaz.org/tazpkg/rev/5a6155d9197a

Waiting for a new reports from you, and

Have a nice day! wink

Offline

#20 2015-04-03 21:01:55

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hello Aleksej,

This is what I saw in TazPanel-428... and some questions.

After checking for updates, the [Toggle all] button has no effect (thanks for [(Un)block] button!); well, need to select packages one by one...

Setting > Summary: in the System time window > Set date field, TazPanel doesn't display the current month but January; don't forget to change it when you want to adjust the clock!

Why TazPanel asks for a username? Does it mean that I could give rights to users to access to TazPanel?

I remember I can change the password in TazPanel:[c]

root@slitaz:/home/sda7# tazpanel passwd

Changing password for TazPanel

New password: cool [/c](not cool to display it ;-)[c]

Password changed successfully[/c]

But the password of... who?

TazPanel doesn't let me specify a user:

[c]sda7@slitaz:~$ tazpanel --help

Usage: tazpanel [start|stop|passwd|app][/c]
And after I changed successfully the password, I cannot open TazPanel otherwise than with [c]root/root password[/c]

Did I miss something?

What I would like to do (think to this for SliTaz 6.0 ;-) is to allow some users to use TazPanel or better, only a part of TazPanel: network configuration or/and setting-summary or/and packages manager or/and...

Okay, I stop smoking.

Offline

#21 2015-04-03 22:29:11

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: New version of packages manager (tazpkg) testing needed

@Ceel

Tazpanel uses browser's password prompt.

You can launch it without password by terminal command as regular user:

$ tazweb root:root@tazpanel:82

where second bold "root" is default root password.

Or by Applications -> SystemTools -> Package Manager (if root pass exists in file). If password not found in ~/.config/slitaz/subox.conf file this menuitem launches nothing to save root password.

Offline

#22 2015-04-04 10:52:06

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

Re: New version of packages manager (tazpkg) testing needed

Hi Ceel,

Button [Toggle] works in the packages upgrade page. I've checked it just now.

Only thing, you need to wait for page is completely loaded to use [Toggle] button.

I changed a bit tazpanel.js (from tazpanel package) and it works without waiting. But it is useless until packages list is not completed — now, my upgrade list contains 561 packages %) — when I click repeatedly [Toggle] button while page generated, it causes to completely mess big_smile

Why TazPanel asks for user name and password.

TazPanel is a web application. Web browser shows it. And here used Basic access authentication, so it always asks both for user name and password.

But you can open TazPanel as user (not root). I tried right now with my tux user, and I enter TazPanel successfully. Then I opened TazPanel Terminal and enter command [c]whoami[/c], and it shows that I'm [c]tux[/c]. At first sight — only difference is TazPanel not shows "Install" in the TazPanel's menu. TazPkg Recharge tells me that I need to be root, etc. etc...

But the password of... who?

From beginning, TazPanel allow to enter only root. So, after changing password you can enter TazPanel with user "root" and that password (seems you should restart tazpanel service manually! (or just reboot system)). I can't say more, I not investigated TazPanel working under user rights.

Offline

#23 2015-04-04 18:10:00

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Hi Aleksej,

Button [Toggle] works in the packages upgrade page.

I recharged an old package, check for upgrade, click on [Toggle] and... yes it works... ??

But you can open TazPanel as user (not root). I tried right now

I can't believe it! It works too! And yesterday it didn't.

Sure, it's better I stop smoking.

Yesterday I forgot this: [c]# tazpkg list cat [/c]displays 2 identical lists side by side where categories are mixed with ????

# tazpkg list cat

Packages categories
================================================================================
admin          admin
base-system    base-system
cli-mono       cli-mono
comm           comm
database       database
development    development
doc            doc
editors        editors
electronics    electronics
embedded       embedded
fonts          fonts
games          games
gnome          gnome
gnu-r          gnu-r
gnustep        gnustep
graphics       graphics
hamradio       hamradio
haskell        haskell
httpd          httpd
java           java
kernel         kernel
libdevel       libdevel
libs           libs
lisp           lisp
localization   localization
mail           mail
math           math
meta           meta
misc           misc
multimedia     multimedia
network        network
news           news
non-free       non-free
ocaml          ocaml
office         office
oldlibs        oldlibs
otherosfs      otherosfs
perl           perl
php            php
ruby           ruby
security       security
shells         shells
sound          sound
system-tools   system-tools
tex            tex
text           text
utilities      utilities
vcs            vcs
video          video
web            web
x-window       x-window
xfce           xfce
================================================================================
52 categories
I suppose the command should display something similar than TazPanel does when clicking on All categories in the right pane.

By the way, 6 Categories (database, editors, gnome, libdevel, libs, localization) are missing in the right pane and categories are in a strange order.

Offline

#24 2015-04-05 10:45:22

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: New version of packages manager (tazpkg) testing needed

Something I don't understand with TazPkg / TazPanel:

I test rolling on 2 different partitions: sda3 and sda7 (full install).

I'm quite sure yesterday I've recharge the packages list on 2.

[*]
sda3

Recharge list:

Mirrored packages diff
  tazlito-5.2.8
  tazusb-4.2.7
2 new packages on the mirror.

[*]
[Check upgrades] -> no package to update...

[*]
look at My Packages:

  tazlito = 5.2.7
  tazusb = 4.2.6

[*]
sda7

notification "There is 1 upgradeable package"

[*]
My packages: tazlito and tazusb are 5.2.7 and 4.2.6

[*]
Recharge list:

Mirrored packages diff
  clearlooks-colors-2.22
  perltidy-20140711
  tazlito-5.2.8
  tazpkg-763
  tazusb-4.2.7
5 new packages on the mirror.

[*]
look at My Packages: tazpkg = 763 (blocked)

[*]
[Check upgrades] -> only gtk+-2.24.24 !!!

???

Well, the 2 pakages list are now the same; tazpkg is unblocked on sda7; same conditions for the 2 installations. I'll test it again in the next days and let you know.

Proposal for tazpkg and tazpanel in the future: have an option to display the date of the package list.

Offline

#25 2015-04-05 12:38:40

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: New version of packages manager (tazpkg) testing needed

Problems with 2 versions of same package again?

Something is wrong with cookiso at build server:

http://cook.slitaz.org/cookiso.cgi?distro=rolling-core-4in1

Unable to find tazlito-5.2.7 in the repository.

Path : /home/slitaz/packages

Download packages from mirror (Y

After this we can see 2versions at the bottom of http://cook.slitaz.org/ page

And what is here:

mirror1.slitaz.org/iso/rolling/

.slitaz-rolling.iso.6IT4wu    2015-Apr-05 02:00:30     17.2M

slitaz-rolling.iso    2015-Mar-31 10:52:16     42.0M

So, this happens only with packages from ISO

and only if this packages updated a day before cookiso.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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