USM Unified Slackware Package Manager
Re: USM Unified Slackware Package Manager
...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: USM Unified Slackware Package Manager
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.
Wear your underpants on the outside and put on a cape.
Re: USM Unified Slackware Package Manager
...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: USM Unified Slackware Package Manager
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.
Wear your underpants on the outside and put on a cape.
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: USM Unified Slackware Package Manager
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.
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.
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.

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.
Wear your underpants on the outside and put on a cape.
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: USM Unified Slackware Package Manager
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)
+-------------------------
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.
Wear your underpants on the outside and put on a cape.
- Slaxmax
- Contributor
- Posts: 408
- Joined: 03 Jan 2013, 09:51
- Distribution: KDE4
- Location: Campinas Brazil https://goo.gl/yrxwKi
Re: USM Unified Slackware Package Manager
Download of packages continues if one fails doesnt work.
Thanks
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
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead
― Bill Gates, The Road Ahead
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: USM Unified Slackware Package Manager
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
+-------------------------
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.
Wear your underpants on the outside and put on a cape.
Re: USM Unified Slackware Package Manager
...
Last edited by phhpro on 04 Feb 2016, 01:37, edited 1 time in total.
-
- Contributor
- Posts: 669
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: against russian attacks
- Contact:
Re: USM Unified Slackware Package Manager
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. or gives and in alien repo already exists plume-creator-0.54-x86_64-1alien.tgz
Code: Select all
usm -s plume
Code: Select all
usm -s plume-creator
Code: Select all
Nothing found for plume
You have mind and feelings. Be wise and clever.
Re: USM Unified Slackware Package Manager
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?
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?
Re: USM Unified Slackware Package Manager
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
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
- Slaxmax
- Contributor
- Posts: 408
- Joined: 03 Jan 2013, 09:51
- Distribution: KDE4
- Location: Campinas Brazil https://goo.gl/yrxwKi
Re: USM Unified Slackware Package Manager
@tome
You are using porteus 2.1?
usm is not guaranteed to work in porteus 2.1 and slackware 14.0
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
― Bill Gates, The Road Ahead
-
- Contributor
- Posts: 669
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: against russian attacks
- Contact:
Re: USM Unified Slackware Package Manager
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: But without link everything is correct.
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
You have mind and feelings. Be wise and clever.
Re: USM Unified Slackware Package Manager
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