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...
User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#121 by brokenman » 21 Feb 2014, 04:51

I am working on removing the terminal from the GUI. I wasn't quite comfortable with having it there but it saved a lot of extra coding. I've decided to do the extra coding and show the user a real GUI instead of the console. This will also solve a few other issues. It will take a little more time, but will be more usable. Since there has been no elaboration on why merging a CLI and GUI script into one usable script is a bad idea, I have continued and found it to be quite usable. The script will sense if it is being run directly or via a menu item and will react accordingly. When the CLI is run directly then only the code for the CLI will run. Nothing will be exported for the GUI as it is all skipped using 'if' clauses.

Another benefit is it allows me to export less text to .po files for i18n usage. I will also be able to upload source code to a version tracker such as git and users can test latest versions by pulling from git and building with 'make install' which will support DESTDIR if you prefer to make a module. In simpler words, it will be more efficient, manageable and prettier.

Still havn't solved how i can automate the updating of repositories, but that can come later. In the future if anyone is interested in maintaining a 'slackware type' repository for porteus that would be great. I would expect to see all the packages that don't exist in the repos that USM already uses. The maintainer would have to maintain for both 64 and 32 bit and be familiar with slackware packages and how to create them. If we can start to hand out tasks to the community it will help take a load off.
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
Contributor
Contributor
Posts: 910
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#122 by neko » 21 Feb 2014, 07:52

Excuse me for my slow response.

1.[gtkusm]: 'alt+character'
I tried change for using same English character.

example:
"_'$(gettext "Tools")'"
-->
"'$(gettext "_Tools")'"

.po
msgid "Tools"
msgstr "ツール"
-->
msgid "_Tools"
msgstr "ツール(_T)"

2.[usm]: bold
Bold characters do not be displayed on the terminal window of 'gtkusm'.
I tried change following.

#====[usm]====
28,33c28,33
< txtbld=$(tput bold) # Bold
< txtred=$(tput setaf 1)${txtbld} # Red
< txtgreen=$(tput setaf 2)${txtbld} # green
< txtblue=$(tput setaf 4)${txtbld} # blue
< txtpink=$(tput setaf 5)${txtbld} # pink
< txtcyan=$(tput setaf 6)${txtbld} # cyan
---
> txtbld=$(tput setaf 6) #$(tput bold) # Bold
> txtred=$(tput setaf 1) #${txtbld} # Red
> txtgreen=$(tput setaf 2) #${txtbld} # green
> txtblue=$(tput setaf 4) #${txtbld} # blue
> txtpink=$(tput setaf 5) #${txtbld} # pink
> txtcyan=$(tput setaf 6) #${txtbld} # cyan
#=============

3.[usm],[gtkusm]: export TEXTDOMAIN=usm; export TEXTDOMAIN=gtkusm
I do not know well how to set environment variabl TEXTDOMAIN value of "usm" for usm program and "gtkusm" for gtkusm program at same time.
I tried the most easy following way.

#====[usm]====
2c2
<
---
> export TEXTDOMAIN=usm
#=============

#====[gtkusm]====
2c2
<
---
> export TEXTDOMAIN=gtkusm
#=============

4.[gtkusm]: gtkusm.po
Japanese po for gtkusm
md5sum: 5b71601f3d08baf0647f22d97c0d7970 gtkusm.po
http://www.mediafire.com/download/sam2p ... /gtkusm.po

5.[usm]: usm.po
update Japanese po for usm
md5sum: cf6659da5667b14ebb7e3649f9698e9b usm.po
http://www.mediafire.com/download/v35ij ... 9y4/usm.po

User avatar
francois
Contributor
Contributor
Posts: 4934
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

Post#123 by francois » 21 Feb 2014, 20:04

Where does one get the usm gui?
Voltaire: Le mieux est l'ennemi du bien.

bour59
Samurai
Samurai
Posts: 118
Joined: 29 Dec 2010, 08:10
Distribution: porteus v3.2.2-xfce
Location: France

Re: USM Unified Slackware Package Manager

Post#124 by bour59 » 21 Feb 2014, 21:45

@francois
I use this one :
by brokenman » 20 Feb 2014, 02:56
https://dl.dropboxusercontent.com/u/686 ... arch-1.xzm

User avatar
francois
Contributor
Contributor
Posts: 4934
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

Post#125 by francois » 21 Feb 2014, 23:23

Thanks. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
bdheeman
Contributor
Contributor
Posts: 77
Joined: 15 Sep 2012, 19:39
Distribution: Porteus 3.0.1+ MATE/XFCE
Location: Chandigarh, PB, India
Contact:

Re: USM Unified Slackware Package Manager

Post#126 by bdheeman » 22 Feb 2014, 00:14

Great work, indeed :)

BUGS, I found that the 'usm -g <whatever-having-dashes-in-package-name>' fails to find and, or fetch package; though search is working fine.

OTOH, the formatting/indentation in shell script usm is very poor :(

BTW, would you mind I submit a patch after proper formatting/indentation; all tabs converted to 2 or 4 spaces. What do you suggest?
--
Balwinder S "bdheeman" Dheeman (http://bdheeman.BlogSpot.in/)
"Working together, works! The proof is GNU/Linux and F/LOSS Projects;
Do you too voluntarily work on or contribute to making any difference?"

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#127 by brokenman » 22 Feb 2014, 02:16

Thanks people. Please hold off on any patching or translating for now. I am in the process of rewriting to integrate the CLI/GUI (and am taking care of indentation bdheeman) which means a substantial code change. I copied and pasted many of my previous functions into the script hence the bad formatting.
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
Contributor
Contributor
Posts: 910
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#128 by neko » 22 Feb 2014, 02:52

@brokenman

I expect your new integrated 'usm'.
Thanks.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#129 by brokenman » 24 Feb 2014, 13:31

BUGS, I found that the 'usm -g <whatever-having-dashes-in-package-name>' fails to find and, or fetch package; though search is working fine.
bdheeman I can't seem to reproduce this. In fact the get function was written with the intent of pasting the full package name with dashes. Can anyone else confirm?
I will be updating today.
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: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#130 by brokenman » 24 Feb 2014, 17:11

+-------------------------
Thu Feb 14 10:15:03 UTC 2014
usm-3.0.9-noarch-1.txz: updated
Fixed bug for getting size in ponce repo (thanks slaxmax)
Fixed search problem for a package in salix (thanks hamza)
Fixed errors in generating ponce links
Fixed update usm function
Updated databases
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#131 by Slaxmax » 25 Feb 2014, 05:47

@brokenman
novos erros

Code: Select all

root@porteus:/home/guest# usm -d /var/log/packages/mlt*


 Missing dependencies:  6
####################################

libjack.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltjackrack.so)

libswfdec-0.8.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltswfdec.so)

libquicktime.so.0 => not found
libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltkino.so)

libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltdv.so)

libsox.so.2 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltsox.so)

libpython2.7.so.1.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/python2.7/site-packages/_mlt.so)

####################################

Searching  libdv.so.4:  found 3 packages.
Choose a package to download or choose 'None' to neglect
1) libdv-1.0.0-i486-1ponce.txz  3) libdv-1.0.0-i486-10sl.txz
2) libdv-1.0.0-i486-1gv.txz     4) None
#? 1

/usr/sbin/usm: line 1416: declare: 136K: value too great for base (error token is "136K")
obrigado
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
bdheeman
Contributor
Contributor
Posts: 77
Joined: 15 Sep 2012, 19:39
Distribution: Porteus 3.0.1+ MATE/XFCE
Location: Chandigarh, PB, India
Contact:

Re: USM Unified Slackware Package Manager

Post#132 by bdheeman » 25 Feb 2014, 12:01

brokenman wrote: bdheeman I can't seem to reproduce this. In fact the get function was written with the intent of pasting the full package name with dashes. Can anyone else confirm?
Sorry, I was not aware; pasting the full package name with dashes + version info + extension is working.
--
Balwinder S "bdheeman" Dheeman (http://bdheeman.BlogSpot.in/)
"Working together, works! The proof is GNU/Linux and F/LOSS Projects;
Do you too voluntarily work on or contribute to making any difference?"

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#133 by brokenman » 25 Feb 2014, 16:40

@slaxmax please try using the latest version (3.0.9) and update the database. I can't reproduce this on 32 or 64bit.

The error in question

Code: Select all

line 1416: declare: 136K: value too great for base (error token is "136K")
was fixed in a past version. You will now see on line 1417:

Code: Select all

declare -i CSIZE=`tr -d [:alpha:] <<<$HSIZE`
which removes the K from the size allowing the declaration to be valid.
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: USM Unified Slackware Package Manager

Post#134 by tome » 26 Feb 2014, 09:00

lxde i486 3.0rc2
I can't open correctly cliusm.desktop

Code: Select all

xterm: Can't execvp -e: No such file or directory
To start this I must edit .config/lxpanel/LXDE/config file and delete

Code: Select all

 -e
in

Code: Select all

Terminal=xterm -e

Code: Select all

usm -u all
stoped at downloading salix files so I must edit /etc/usm/mirrors-salix.txt (unhashed another mirrors) but now it works so it was probably selected US mirror problem at weekend.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#135 by brokenman » 26 Feb 2014, 11:50

Thanks Tome. The next version will open a GUI from the menu. The mirror was probably just for the weekend. Seems to work ok here now. I will add a GUI to edit the mirrors also.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply