Page 4 of 25

Re: USM Unified Slackware Package Manager

Posted: 29 Jan 2014, 13:39
by Slaxmax
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

Re: USM Unified Slackware Package Manager

Posted: 29 Jan 2014, 17:58
by brokenman
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

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 15:56
by tome
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

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 18:21
by beny
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?

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 18:23
by beny
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

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 20:33
by Slaxmax
@tome
You are using porteus 2.1?
usm is not guaranteed to work in porteus 2.1 and slackware 14.0

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 20:43
by tome
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.

Re: USM Unified Slackware Package Manager

Posted: 02 Feb 2014, 21:26
by beny
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

Re: USM Unified Slackware Package Manager

Posted: 03 Feb 2014, 02:08
by brokenman
Thanks Tome, I will add the -L switch to find so if someone uses a symlink it will follow the link.

Fresh mode is OK but you will need to make a module from the database files and leave it in the modules folder.

Re: USM Unified Slackware Package Manager

Posted: 03 Feb 2014, 07:48
by tome
@beny It is not fresh mode correctly - I don't use changes cheatcode but data can be saved by activating module that contains links to writable folder - it has few advantages over changes.

Re: USM Unified Slackware Package Manager

Posted: 03 Feb 2014, 10:46
by neko
I tried to make a simple GUI for usm.
Thanks.

SGUIusm-14.02.03-noarch-0.xzm (8 K)
http://www.mediafire.com/download/ac7uz ... arch-0.xzm
md5sum: cbb39d9c915ef411da4241192c455866 SGUIusm-14.02.03-noarch-0.xzm

Re: USM Unified Slackware Package Manager

Posted: 03 Feb 2014, 17:17
by beny
neko
/usr/bin/SGUIusm: line 601: gtkdialog: command not found i have put in gtkdialog
bash-4.2# sh /usr/bin/SGUIusm

** (gtkdialog:3757): ERROR **: gtkdialog: Error in line 70, near token 'string': syntax error

/usr/bin/SGUIusm: line 390: 3755 Done echo "$USM_SEARCH"
3756 | sed '/^##/d'
3757 Rilevato trace/breakpoint | gtkdialog -s > $SGUIUSMWRK/JUNK
bash-4.2#

i have stripped the xzm for me more useful but not work yet

Re: USM Unified Slackware Package Manager

Posted: 03 Feb 2014, 20:18
by brokenman
Fantastic! I am so happy other people are using gtkdialog now.

I have a basic GUI for usm which only searches for and downloads packages. I will take a look at your version tomorrow and see how we can use it.

Re: USM Unified Slackware Package Manager

Posted: 04 Feb 2014, 07:10
by neko
@beny

I can not understand what happens.
I searched the site
http://puppylinux.info/topic/swatch-int ... ons/page/2
that has the same error message
"** ERROR **: gtkdialog: Error in line 17, near token 'string': syntax error".

If you fix this problem, I expect that you will report on other thread about a problem.

Excuse me for my poor skill.


@brokenman
>>I have a basic GUI for usm

Would you open your basic GUI ?
I would like to study your code.

Re: USM Unified Slackware Package Manager

Posted: 04 Feb 2014, 14:19
by brokenman
You can download what I have so far here. It only has basic functionality at the moment. Only search for packages (not download yet). You will need all files from the CLI version and use these in addition. You must also run: usm -u all in the CLI before running this GUI.

https://dl.dropboxusercontent.com/u/6868871/guiusm.xzm