USM Unified Slackware Package Manager

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
Post Reply
User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 543
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: USM Unified Slackware Package Manager

Post#61 by phhpro » 28 Jan 2014, 20:55

...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#62 by brokenman » 28 Jan 2014, 21:41

Please try the commands in my previous post. wget -O and curl -o also state your version of wget. I can check the version tonight if you don't answer in time.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 543
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: USM Unified Slackware Package Manager

Post#63 by phhpro » 28 Jan 2014, 22:56

...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#64 by brokenman » 29 Jan 2014, 01:00

The problem is most certainly not server side. If it was, it would be reproducible by many. It is more likely due to a different version of sed or awk between v2.1 which you are using, and v3.0 on which i was coding. Let me downgrade and do some more testing.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#65 by brokenman » 29 Jan 2014, 03:33

Finally nailed it. I was able to reproduce the problem which was caused by a mixture of two things.

In ponce's repository, the 14.1 tree contains the MANIFEST in the CHECKSUM.md5 file, while the 14.0 tree doesn't. This was causing the 'problem during download' message on 14.0 as the md5sum mismatched (didn't exist). This doesn't concern me because (as previously stated) USM will only be run on slackware 14.1+

The weirdness of binary files (which certainly is a concern) was caused by something in gawk-3.1.8 (I am using 4.1.0). I don't know exactly what and I can't reproduce it on another file, but with the PACKAGES.TXT file gawk-3.1.8 outputs a binary after using the RS= flag. Commenting out the codeblock with awk (I requested in a previous post) proved this. :wall: In any case, until I find out the reason I have bypassed this odd(?) behaviour by first putting the output of awk into a variable and then passing it to a file using printf. This seems to work and allows the script to function normally.

I will push another update tomorrow (well later today really). 1:30am and my brain is bruised from the repeated forehead slaps. I'm sure this has frustrated you too phhpro so thanks for persisting. Without it, I would never have discovered the bug until after beta.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#66 by brokenman » 29 Jan 2014, 03:45

Updated to 3.0.6 on sourceforge

+-------------------------
Wed Jan 29 02:13:05 UTC 2014
usm-3.0.6-noarch-1.txz: updated
Download of packages continues if one fails (thanks slaxmax)
Fixed fatal bug with gawk 3.1.8 outputting binary file (thanks phhpro)
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#67 by Slaxmax » 29 Jan 2014, 13:39

Download of packages continues if one fails doesnt work.

Code: Select all

root@porteus:/home/guest# usm -g ruby

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) ruby-1.9.3_p448-i486-1.txz
2) ruby-1.9.3_p484-i486-1_slack14.1.txz
#? 2

Processing:   ruby-1.9.3_p484-i486-1_slack14.1.txz 
Libraries required:  24
Libraries found in system: 20
Libraries to resolve: 4

Processing library: libruby.so.1.9
Processing library: libtcl8.6.so
Processing library: libtk8.6.so
Processing library: libyaml-0.so.2


Processing:   tcl-8.6.1-i486-1.txz 
Libraries required:  5
Libraries found in system: 4
Libraries to resolve: 1

Processing library: libtcl8.6.so


Processing:   tk-8.6.1-i486-1.txz 
Libraries required:  19
Libraries found in system: 17
Libraries to resolve: 2

Processing library: libtcl8.6.so
Processing library: libtk8.6.so


Processing:   libyaml-0.1.4-i486-1.txz 

The following packages are required. 
ruby-1.9.3_p484-i486-1_slack14.1.txz []
tcl-8.6.1-i486-1.txz [2480K]
tk-8.6.1-i486-1.txz [1684K]
libyaml-0.1.4-i486-1.txz [104K]

Total size: 4 MB

 Press [r] to remove packages, [q] to quit, or any other key to start downloading.
Downloading: ruby-1.9.3_p484-i486-1_slack14.1.txz  DONE
 There was a problem downloading the file:  ruby-1.9.3_p484-i486-1_slack14.1.txz
Thanks
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#68 by brokenman » 29 Jan 2014, 17:58

Obrigado.

+-------------------------
Wed Jan 29 15:51:11 UTC 2014
usm-3.0.7-noarch-1.txz: updated
Fixed bad database file for slackwarepatches (thanks slaxmax)
Added downloader search (curl/wget)
Changed format of usm.conf file
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 543
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: USM Unified Slackware Package Manager

Post#69 by phhpro » 29 Jan 2014, 22:37

...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.

tome
Contributor
Contributor
Posts: 669
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: against russian attacks
Contact:

Re: USM Unified Slackware Package Manager

Post#70 by tome » 02 Feb 2014, 15:56

It would be nice if user can specify which distro (alien|salix|ponce|slackware|slacky or user specified order) should be searched for package and set preference to search precompiled binary before source. How can I test i.e. alien repo - maybe there is bug in USM that allow only search and download from slackware repo.

Code: Select all

usm -s plume
or

Code: Select all

usm -s plume-creator
gives

Code: Select all

Nothing found for plume
and in alien repo already exists plume-creator-0.54-x86_64-1alien.tgz
You have mind and feelings. Be wise and clever.

beny
Full of knowledge
Full of knowledge
Posts: 1873
Joined: 02 Jan 2011, 11:33
Location: italy

Re: USM Unified Slackware Package Manager

Post#71 by beny » 02 Feb 2014, 18:21

tome:
bash-4.2# usm -g plume

IMPORTANT NOTICE
All packages will download to: /tmp/usm

Would you like to change the destination now? [y/n]

The following items were found.
Choose an number to confirm.
ctrl+c to quit

1) plume-creator-0.54-x86_64-1alien.tgz
#?
so?

beny
Full of knowledge
Full of knowledge
Posts: 1873
Joined: 02 Jan 2011, 11:33
Location: italy

Re: USM Unified Slackware Package Manager

Post#72 by beny » 02 Feb 2014, 18:23

ash-4.2# usm -s plume

plume-creator-0.54-x86_64-1alien.tgz was found in alien
Packages found: 1

Use: usm -i <package> for more info
Use: usm -g <package> to download

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#73 by Slaxmax » 02 Feb 2014, 20:33

@tome
You are using porteus 2.1?
usm is not guaranteed to work in porteus 2.1 and slackware 14.0
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

tome
Contributor
Contributor
Posts: 669
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: against russian attacks
Contact:

Re: USM Unified Slackware Package Manager

Post#74 by tome » 02 Feb 2014, 20:43

Thanks beny, but it doesn't work. Bug is in USM - if I create 'usm' link in /var to another folder in real filesystem to save database (I use fresh mode) then after updating alien (usm -u alien; usm -s plume) I have this:

Code: Select all

 You are missing required database files! 
 Please run: usm -u all

awk: fatal: cannot open file `/var/usm/sbo/SLACKBUILDS.TXT' for reading (No such file or directory)
Nothing found for plume
But without link everything is correct.
You have mind and feelings. Be wise and clever.

beny
Full of knowledge
Full of knowledge
Posts: 1873
Joined: 02 Jan 2011, 11:33
Location: italy

Re: USM Unified Slackware Package Manager

Post#75 by beny » 02 Feb 2014, 21:26

tome seem that point to wrong file and i think fresh mode isn't ok for a tool like usm you need the repos files upgraded always in? i can be wrong of course so waiting for brokenman hint

Post Reply