Page 2 of 25

Re: USM Unified Slackware Package Manager

Posted: 24 Jan 2014, 19:21
by brokenman
Thanks slaxmax, good point. I wrote in a function to deselect dependencies into the system wide dependency resolver (usm -d) and will add this to the option when fetching general packages. I will push this into the next release. So after running: usm -g vlc and all dependencies are resolved you will be given the option to begin downloading or deselect some packages. Thanks for the feedback.

Re: USM Unified Slackware Package Manager

Posted: 24 Jan 2014, 22:40
by francois
Problem downloading gnumeric and associated files:

Code: Select all

root@porteus:~# usm -g gnumeric

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

1) gnumeric-1.12.9-x86_64-1rl.txz
#?  
1) gnumeric-1.12.9-x86_64-1rl.txz
#? 1

Processing:   gnumeric-1.12.9-x86_64-1rl.txz 
Libraries required:  65
Libraries found in system: 57
Libraries to resolve: 8

Processing library: libatk-bridge-2.0.so.0
Processing library: libatspi.so.0
Processing library: libgdk-3.so.0
Processing library: libgoffice-0.10.so.10
Processing library: libgsf-1.so.114
Processing library: libgtk-3.so.0
Processing library: libpython2.7.so.1.0
Processing library: libspreadsheet-1.12.9.so


Processing:   at-spi2-atk-2.8.1-x86_64-1.txz 
Libraries required:  18
Libraries found in system: 16
Libraries to resolve: 2

Processing library: libatk-bridge-2.0.so.0
Processing library: libatspi.so.0


Processing:   at-spi2-core-2.8.0-x86_64-1.txz 
Libraries required:  23
Libraries found in system: 21
Libraries to resolve: 2

Processing library: libXevie.so.1
Processing library: libatspi.so.0


Processing:   gtk+3-3.8.2-x86_64-2.txz 
Libraries required:  59
Libraries found in system: 55
Libraries to resolve: 4

Processing library: libatk-bridge-2.0.so.0
Processing library: libatspi.so.0
Processing library: libgdk-3.so.0
Processing library: libgtk-3.so.0


Processing:   goffice-0.10.9-x86_64-1rl.txz 
Libraries required:  62
Libraries found in system: 55
Libraries to resolve: 7

Processing library: libatk-bridge-2.0.so.0
Processing library: libatspi.so.0
Processing library: libgdk-3.so.0
Processing library: libgoffice-0.10.so.10
Processing library: libgsf-1.so.114
Processing library: libgtk-3.so.0
Processing library: libspectre.so.1


Processing:   libgsf-1.14.26-x86_64-1.txz 
Libraries required:  16
Libraries found in system: 15
Libraries to resolve: 1

Processing library: libgsf-1.so.114


Processing:   python-2.7.5-x86_64-1.txz 
Libraries required:  23
Libraries found in system: 20
Libraries to resolve: 3

Processing library: libpython2.7.so.1.0
Processing library: libtcl8.6.so
Processing library: libtk8.6.so


Processing:   libXevie-1.0.3-x86_64-1.txz 
Libraries required:  6
Libraries found in system: 6
Libraries to resolve: 0



Processing:   libspectre-0.2.7-x86_64-1.txz 
Libraries required:  1
Libraries found in system: 0
Libraries to resolve: 1

Processing library: libgs.so.9


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

Processing library: libtcl8.6.so


Processing:   tk-8.6.1-x86_64-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:   ghostscript-9.07-x86_64-2.txz 
Libraries required:  65
Libraries found in system: 60
Libraries to resolve: 5

Processing library: libatk-bridge-2.0.so.0
Processing library: libatspi.so.0
Processing library: libgdk-3.so.0
Processing library: libgs.so.9
Processing library: libgtk-3.so.0

The following packages are required.
gnumeric-1.12.9-x86_64-1rl.txz [11735K]
at-spi2-atk-2.8.1-x86_64-1.txz [68K]
at-spi2-core-2.8.0-x86_64-1.txz [228K]
gtk+3-3.8.2-x86_64-2.txz [7452K]
goffice-0.10.9-x86_64-1rl.txz [1576K]
libgsf-1.14.26-x86_64-1.txz [220K]
python-2.7.5-x86_64-1.txz [11868K]
libXevie-1.0.3-x86_64-1.txz [16K]
libspectre-0.2.7-x86_64-1.txz [40K]
tcl-8.6.1-x86_64-1.txz [2500K]
tk-8.6.1-x86_64-1.txz [1700K]
ghostscript-9.07-x86_64-2.txz [13108K]

Total size: 50 MB

 Would you like to begin downloading? [y/n]
Downloading:http://www.gtlib.gatech.edu/pub/salixos/x86_64/14.1/salix/salix/gnome/gnumeric-1.12.9-x86_64-1rl.txz
to /tmp/usm
Downloading: gnumeric-1.12.9-x86_64-1rl.txz  DONE
 There was a problem downloading the file:  gnumeric-1.12.9-x86_64-1rl.txz

root@porteus:~# 
root@porteus:~# 
There is no files at all in /tmp/usm

Re: USM Unified Slackware Package Manager

Posted: 24 Jan 2014, 23:06
by francois
I don't know if I read well, I thought that usm would select by itself dependencies, but autoselect dependencies option could be nice thing. For audacity, only the audacity package would download:

Code: Select all

root@porteus:~# usm -g audacity

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

1) audacity-2.0.5-x86_64-1ponce.txz  3) audacity-2.0.5-x86_64-2sl.txz
2) audacity-2.0.5-x86_64-1rl.txz
#? 1

Processing:   audacity-2.0.5-x86_64-1ponce.txz 
Libraries required:  71
Libraries found in system: 58
Libraries to resolve: 13

Processing library: libSoundTouch.so.0
Processing library: libid3tag.so.0
Processing library: libjack.so.0

 More than one package contains:  libjack.so.0
jack-1.9.9.5-x86_64-2alien.txz                       500K  alien
jack-audio-connection-kit-0.121.3-x86_64-2ponce.txz  368K  ponce

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

1) jack-1.9.9.5-x86_64-2alien.txz
2) jack-audio-connection-kit-0.121.3-x86_64-2ponce.txz
#? 2
Processing library: libwx_baseu-2.8.so.0

 More than one package contains:  libwx_baseu-2.8.so.0
wxPython-2.8.12.1-x86_64-1ponce.txz  13808K  ponce
wxGTK-2.8.12-x86_64-2sl.txz          3529K   slacky

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

1) wxPython-2.8.12.1-x86_64-1ponce.txz
2) wxGTK-2.8.12-x86_64-2sl.txz
#? 1
Processing library: libwx_baseu_net-2.8.so.0
Processing library: libwx_baseu_xml-2.8.so.0
Processing library: libwx_gtk2u_adv-2.8.so.0
Processing library: libwx_gtk2u_aui-2.8.so.0
Processing library: libwx_gtk2u_core-2.8.so.0
Processing library: libwx_gtk2u_html-2.8.so.0
Processing library: libwx_gtk2u_qa-2.8.so.0
Processing library: libwx_gtk2u_richtext-2.8.so.0
Processing library: libwx_gtk2u_xrc-2.8.so.0


Processing:   soundtouch-1.7.1-x86_64-1gv.txz 
Libraries required:  4
Libraries found in system: 3
Libraries to resolve: 1

Processing library: libSoundTouch.so.0


Processing:   libid3tag-0.15.1b-x86_64-4.txz 
Libraries required:  1
Libraries found in system: 1
Libraries to resolve: 0



Processing:   jack-audio-connection-kit-0.121.3-x86_64-2ponce.txz 
Libraries required:  16
Libraries found in system: 13
Libraries to resolve: 3

Processing library: libcelt0.so.2

 More than one package contains:  libcelt0.so.2
celt-0.11.1-x86_64-1gv.txz     63K  salix
celt-0.11.3-x86_64-1ponce.txz  68K  ponce

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

1) celt-0.11.1-x86_64-1gv.txz
2) celt-0.11.3-x86_64-1ponce.txz
#? 2
Processing library: libjack.so.0
Processing library: libjackserver.so.0


Processing:   wxPython-2.8.12.1-x86_64-1ponce.txz 
Libraries required:  85
Libraries found in system: 68
Libraries to resolve: 17

Processing library: libgstinterfaces-0.10.so.0

 More than one package contains:  libgstinterfaces-0.10.so.0
gst-plugins-base-0.10.36-x86_64-2.txz  1304K   slackware
skype_static-4.2.0.11-x86_64-4sl.txz   37556K  slacky

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

1) gst-plugins-base-0.10.36-x86_64-2.txz
2) skype_static-4.2.0.11-x86_64-4sl.txz
#? 1
Processing library: libgstreamer-0.10.so.0

 More than one package contains:  libgstreamer-0.10.so.0
gstreamer-0.10.36-x86_64-2.txz        1332K   slackware
skype_static-4.2.0.11-x86_64-4sl.txz  37556K  slacky

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

1) gstreamer-0.10.36-x86_64-2.txz
2) skype_static-4.2.0.11-x86_64-4sl.txz
#? 1
Processing library: libmspack.so.0
Processing library: libpython2.7.so.1.0
Processing library: libwx_baseu-2.8.so.0
Processing library: libwx_baseu_net-2.8.so.0
Processing library: libwx_baseu_xml-2.8.so.0
Processing library: libwx_gtk2u_adv-2.8.so.0
Processing library: libwx_gtk2u_aui-2.8.so.0
Processing library: libwx_gtk2u_core-2.8.so.0
Processing library: libwx_gtk2u_gizmos-2.8.so.0
Processing library: libwx_gtk2u_gl-2.8.so.0
Processing library: libwx_gtk2u_html-2.8.so.0
Processing library: libwx_gtk2u_qa-2.8.so.0
Processing library: libwx_gtk2u_richtext-2.8.so.0
Processing library: libwx_gtk2u_stc-2.8.so.0
Processing library: libwx_gtk2u_xrc-2.8.so.0


Processing:   celt-0.11.3-x86_64-1ponce.txz 
Libraries required:  3
Libraries found in system: 2
Libraries to resolve: 1

Processing library: libcelt0.so.2


Processing:   gst-plugins-base-0.10.36-x86_64-2.txz 
Libraries required:  64
Libraries found in system: 51
Libraries to resolve: 13

Processing library: libgstapp-0.10.so.0
Processing library: libgstaudio-0.10.so.0
Processing library: libgstbase-0.10.so.0
Processing library: libgstcdda-0.10.so.0
Processing library: libgstcontroller-0.10.so.0
Processing library: libgstdataprotocol-0.10.so.0
Processing library: libgstinterfaces-0.10.so.0
Processing library: libgstpbutils-0.10.so.0
Processing library: libgstreamer-0.10.so.0
Processing library: libgstriff-0.10.so.0
Processing library: libgsttag-0.10.so.0
Processing library: libgstvideo-0.10.so.0
Processing library: libvisual-0.4.so.0


Processing:   gstreamer-0.10.36-x86_64-2.txz 
Libraries required:  13
Libraries found in system: 11
Libraries to resolve: 2

Processing library: libgstbase-0.10.so.0
Processing library: libgstreamer-0.10.so.0


Processing:   libmspack-0.4alpha-x86_64-1ponce.txz 

Processing:   python-2.7.5-x86_64-1.txz 
Libraries required:  23
Libraries found in system: 20
Libraries to resolve: 3

Processing library: libpython2.7.so.1.0
Processing library: libtcl8.6.so
Processing library: libtk8.6.so


Processing:   libvisual-0.4.0-x86_64-3.txz 
Libraries required:  3
Libraries found in system: 3
Libraries to resolve: 0



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

Processing library: libtcl8.6.so


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

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

The following packages are required.
audacity-2.0.5-x86_64-1ponce.txz [3456K]
soundtouch-1.7.1-x86_64-1gv.txz [57K]
libid3tag-0.15.1b-x86_64-4.txz [36K]
jack-audio-connection-kit-0.121.3-x86_64-2ponce.txz [368K]
wxPython-2.8.12.1-x86_64-1ponce.txz [13808K]
celt-0.11.3-x86_64-1ponce.txz [68K]
gst-plugins-base-0.10.36-x86_64-2.txz [1304K]
gstreamer-0.10.36-x86_64-2.txz [1332K]
libmspack-0.4alpha-x86_64-1ponce.txz [160K]
python-2.7.5-x86_64-1.txz [11868K]
libvisual-0.4.0-x86_64-3.txz [128K]
tcl-8.6.1-x86_64-1.txz [2500K]
tk-8.6.1-x86_64-1.txz [1700K]

Total size: 36 MB

 Would you like to begin downloading? [y/n]
Downloading:http://ponce.cc/slackware/slackware64-14.1/packages/tp://ponce.cc/slackware/slackware64-14.1/packages//audacity-2.0.5-x86_64-1ponce.txz
to /tmp/usm
Downloading: audacity-2.0.5-x86_64-1ponce.txz --> 
 DONE
Downloading:http://www.gtlib.gatech.edu/pub/salixos/x86_64/14.1/salix/salix/l/soundtouch-1.7.1-x86_64-1gv.txz
to /tmp/usm
Downloading: soundtouch-1.7.1-x86_64-1gv.txz  DONE
 There was a problem downloading the file:  soundtouch-1.7.1-x86_64-1gv.txz

root@porteus:~# 
If possible, it would be nice if unable to download a package, usm would fetch next package, and at the end provide a list of missing dependencies (those not downloaded) and provide the list of the original needed libraries and options (in case you had choosen the unavailable library)

Re: USM Unified Slackware Package Manager

Posted: 24 Jan 2014, 23:28
by francois
Just tried to build the scid_vs_pc chess game, there is an error while building package (chown: invalid group: ‘root:root’):

Code: Select all

root@porteus:~# usm -b scid


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

1) cd-discid
2) scid
3) scid_vs_pc
#? 3

NAME :  scid_vs_pc 
CATEG: games
DESC : scid_vs_pc (Usability and bug-fix fork of Scid)
VERS : 4.10
...

...
scid_vs_pc-4.10/Makefile.mingw
scid_vs_pc-4.10/Info.plist
chown: invalid group: ‘root:root’
Very good that we get the info at the beginning telling us where the package is downloaded. i.e.:

Code: Select all

Downloading: scid_vs_pc.tar.gz  DONE
/tmp/usmsbo
This way I know where to find the readme file or install file for package or library resolution.

However, once the slackbuild has been downloaded, usm -rb would be a nice argument to build from the already downloaded file, instead of downloading it anew. What do you think?

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 00:01
by francois
Yes. I am on kde 3.0. 8)

Do you have sound under porteus 3.0?

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 01:06
by brokenman
@phhpro
USM only supports slackware-14.1 (and slackware-current in the future). Many of your problems no doubt come from the fact that Porteus v2.1 uses slackware-14.0 and as such when usm cross checks your system libs it gets frazzled. This also affects download PATHS since 14.0 is autosensed. Please change the slackware version in /etc/usm/usm.conf which will at least allow you to download the 14.1 database files (and show gimp 2.8.6) but this will still not fix what gets reported as dependencies. In some cases you may get incorrect feedback.

Most slackware managers reside in /sbin or other root only $PATHS but i guess it wouldn't hurt to place a symlink in /usr/bin and do a root check in the script and ask for a password. I'll implement this.

@Francois
Yes i am getting sound from v3.0.
The output you gave showed me a major bug in the way usm is getting links for both salix and ponce. The URL's for the packages are all screwed up. See the double salix/salix in the link? I'll fix this tonight and push another version. I'm sometimes surprise myself how stupid i can be. I had it working nicely and must have changed something in the code. Coding late at night is my only option and well .... enough said.

However, once the slackbuild has been downloaded, usm -rb would be a nice argument to build from the already downloaded file, instead of downloading it anew. What do you think?
Yes absolutely. Thanks. I can add a check to see if the file already exists before downloading again.

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 02:52
by francois
Salut brokenman:
... how stupid i can be ...
:(

Maybe tired and less concentrated would be more appropriate! :)

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 02:54
by francois
Downloading of kaffeine with its many dependencies went just fine. :)

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 03:14
by brokenman
Updated to v3.0.3

+-------------------------
Wed Jan 23 16:52:03 UTC 2014
usm-3.0.3-noarch-1.txz: updated
Fixed bug with getting links from ponce and salix (thanks francois)
Added option to remove files after usm -g (thanks slaxmax)
Added notification if launched as guest (thanks phhpro)
Added option to rebuild slackbuild without redownloading (thanks francois)

Hopefully the above bugs have been fixed. I will give everything a thorough test again on Sunday.
Will add check for slackware-14.0 users to help resolve any confusion.

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 17:48
by Slaxmax
@brokenman
Deselect an item with 2 digits does not work

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 18:11
by brokenman
Actually i meant change /etc/usm/usm.conf file to SLACKVER=14.1 (just uncomment the line)

In any case the only difference (for sbo download) here will be the download path. SLACKVER=14.0 means it will download the file from the version 14.0 folder on the slackbuilds repository. I've changed the SLACKVER to 14.0 and 14.1 in the config file and in both cases it successfully downloaded the correct file. You can change line: 583 in /usr/sbin/usm from:

Code: Select all

for a in $FILES; do echo $a; download $REPO_SBO/$SLACKVER/$a $SDIR; done
to

Code: Select all

for a in $FILES; do echo $REPO_SBO/$SLACKVER/$a; download $REPO_SBO/$SLACKVER/$a $SDIR; done
and then run: usm -u sbo to see the exact path it is trying to download from. It should echo:
http://slackbuilds.org/slackbuilds/14.0 ... LDS.TXT.gz if you have SLACKVER=14.0. This is the correct download path. If it doesn't echo this in the terminal then something is wrong.

Francois are you seeing this problem when running usm -u all ?
Does the sbo download fail?

You ought to have a look somewhere around 286 I think it was. helpme???
Thanks. Good catch. I will change this to point to the relevant function. ( I should have called it 'god_help_me' LOL)

Is it me, or why is sbo so different from the rest?
Slackbuilds is indeed different to all the rest. The entire server layout is totally different. They call their index SLACKBUILDS.TXT instead of PACKAGES.TXT (since they don't offer packages) and they don't have a MANIFEST file. This is why (in the code) i have put LEAVEMANIFEST=0 (which tells usm not to process any nonexistent MANIFEST file).

Unfortunately i don't have version 3.0.0 anywhere.

Moreover, the differences between 14.0 and 14.1 are mostly of a minor nature.
For USM the difference will be in the paths it uses to download, the packages offered and the dependencies resolved for a given binary. This last one is pretty major since the libraries (of installed packages) you currently have for slackware-14.0 are being parsed against what is available from slackware 14.1 packages. There is bound to be many inconsistencies and probably unresolved dependencies.

From a user point of view, I wouldn't consider a complete rebuild of all packages against a different version of glibc a minor difference. The GNU C library is kind of important to ALL unices. I guess the developers aim for some kind of backwards compatibility when rewriting libraries but I wouldn't guarantee it.

@Slaxmax. Thanks, it's a shame that i will have to remove the single button touch. User will now have to type the number and press enter.

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 21:00
by brokenman
+-------------------------
Wed Jan 25 18:19:26 UTC 2014
usm-3.0.4-noarch-1.txz: updated
Fixed deselct items when more than 10 (thanks slaxmax)
Fixed lockfile check (thanks phhpro)
Fixed bad check for processing SUPPLIMENT and MANIFEST files.
Removed skype_static from list of mother packages

Re: USM Unified Slackware Package Manager

Posted: 25 Jan 2014, 21:09
by francois
Francois are you seeing this problem when running usm -u all ?
Does the sbo download fail?


I have no problem at all. Every repo are downloaded just fine, including sbo:

Code: Select all

root@porteus:~# usm -u all
Starting sbo database update 
Connection is good
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz  DONE
 sbo  database updated. 

 Starting alien database update 
Connection is good
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
Optimizing manifest
 alien  database updated.  
...

Re: USM Unified Slackware Package Manager

Posted: 26 Jan 2014, 03:49
by Slaxmax
There is some error download in alien mirror

Code: Select all

Downloading: vlc-2.1.2-i486-3alien.txz  DONE
 There was a problem downloading the file:  vlc-2.1.2-i486-3alien.txz
same error in lua and ffmpeg package
I accessed via browser the mirror and the packages are correct.

Re: USM Unified Slackware Package Manager

Posted: 26 Jan 2014, 04:09
by brokenman
The thing that stands out for me is this:
Binaryfile/var/usm/slackware/PACKAGES.TXTmatches was found in slackware

For some reason the PACKAGES.TXT file (after being gunzipped) is being detected as a binary file when it should be a text file. You can check with: file /var/usm/slackware/PACKAGES.TXT
Please also check the output from: file /var/usm/sbo/SLACKBUILDS.TXT.gz if it is still there.
And also from : gzip --version
When you grep a binary file it returns with this message: matches were found in "filename"

You know, when i was transferring files from sourceforge to my computer and vice versa i ran into this problem. It was a simple README text file that somehow turned binary on me. I've never seen that before. Even stranger because that PACKAGES.TXT file is downloaded from slackware mirrors and only the LIBS.TXT files (and MANIFEST for salix) are downloaded from SF. I'll have to look further in to what could be making the system believe that the file format has changed like that.

That line where the linenumber error changed is simply a long line that i split into two. It sends the function name and line number where the script failed into the error log. Odd that it jumped a line but i think nothing to worry bout.
Are you booting with 'save changes?'

@Slaxmax
I will take a look at the alien repo paths today.