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
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#136 by Slaxmax » 27 Feb 2014, 05:24

brokenman wrote:@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.
Ok. I've done.
I'll try again in fresh mode.
“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: 5575
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#137 by brokenman » 01 Mar 2014, 01:26

I'm going to release the updated version with GUI in the next few days. Please be ready for testing and offering suggestions to improve it. It won't have ALL the functionality of the CLI version (is missing slackbuilds) but I don't want to delay the v3.0 Porteus release any further. Any enhancements and fixes can be pushed as updates through the Porteus updater.

Hopefully Neko can work some magic with gettext. I'll add you as co-developer Neko if you want to take on this task.
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#138 by Slaxmax » 01 Mar 2014, 02:58

Ok, without errors now.

Thanks
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

neko
DEV Team
DEV Team
Posts: 959
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#139 by neko » 01 Mar 2014, 03:53

@brokenman

I do not know what "some magic with gettex" means.
However, if I have a chance, I will check on 'gettext' and translate to Japanese.

I will enjoy that working.
Thanks.

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

Re: USM Unified Slackware Package Manager

Post#140 by brokenman » 03 Mar 2014, 15:10

+-------------------------
Mon Mar 3 11:55:12 UTC 2014
usm-3.1.0-noarch-1.txz: updated
Added gtkdialog frontend
Rewrote script as hybrid cli/gui
Fixed bug when all packages are deselected in cli

I have created the hybrid CLI/GUI and changed the structure of the source.
You can download the most up to date source from github.
You can download the slackware package from sourceforge.

IMPORTANT: Remove the following files from older usm before installing v3.1.0
/usr/bin/usm
/usr/sbin/usm
/etc/usm/usm.conf
I do not know what "some magic with gettex" means.
You will understand when you see the source. It is broken into many files so they need to be merged into one .po file. I havn't create the .po file yet.
There are also a part (packagetools) where an english word is grepped so this is a challenge i will need help with.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
freestyler
Contributor
Contributor
Posts: 382
Joined: 17 Oct 2013, 14:21
Distribution: Porteus KDE4
Location: Traveller
Contact:

Re: USM Unified Slackware Package Manager

Post#141 by freestyler » 04 Mar 2014, 01:22

Nice. Will there eventually be a merge xzm option?
https://www.porteus-apps.org

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

Re: USM Unified Slackware Package Manager

Post#142 by brokenman » 04 Mar 2014, 02:04

Thanks. Yes merge modules is on the list.
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#143 by Slaxmax » 04 Mar 2014, 07:18

error

Code: Select all

root@porteus:/home/guest# usm -v

 You are using USM version:  3.1.0

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

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

1) kdenlive-0.9.6-x86_64-1ponce.txz
2) kdenlive-0.9.6-x86_64-1sl.txz
#? 1

Processing:   kdenlive-0.9.6-x86_64-1ponce.txz 

Libraries required:  56
Libraries found in system: 52
Libraries to resolve: 4

Processing library: libmlt++.so.3
Processing library: libmlt.so.6
Processing library: libnepomuk.so.4
Processing library: libsoprano.so.4


Processing:   kdelibs-4.10.5-x86_64-2.txz 

Libraries required:  111
Libraries found in system: 96
Libraries to resolve: 15

Processing library: libHalf.so.7
Processing library: libIex.so.7
Processing library: libIlmImf.so.7
Processing library: libIlmThread.so.7
Processing library: libImath.so.7
Processing library: libaspell.so.15
Processing library: libenchant.so.1
Processing library: libjasper.so.1
Processing library: libnepomuk.so.4
Processing library: libnepomukquery.so.4
Processing library: libnepomukutils.so.4
Processing library: libpcreposix.so.0

 More than one package contains:  libpcreposix.so.0
pcre-8.33-x86_64-1.txz         668K   slackware
aaa_elflibs-14.1-x86_64-3.txz  4316K  slackware

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

1) pcre-8.33-x86_64-1.txz
2) aaa_elflibs-14.1-x86_64-3.txz
#? 2
Processing library: libqca.so.2
Processing library: libsoprano.so.4
Processing library: libsopranoclient.so.1


Processing:   soprano-2.9.0-x86_64-1.txz 

Libraries required:  16
Libraries found in system: 8
Libraries to resolve: 8

Processing library: libclucene-core.so.1
Processing library: libiodbc.so.2

 More than one package contains:  libiodbc.so.2
libiodbc-3.52.8-x86_64-1_slack14.1.txz  260K  slackwarepatches
libiodbc-3.52.7-x86_64-2.txz            256K  slackware

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

1) libiodbc-3.52.8-x86_64-1_slack14.1.txz
2) libiodbc-3.52.7-x86_64-2.txz
#? 1
Processing library: libraptor2.so.0
Processing library: librdf.so.0
Processing library: libsoprano.so.4
Processing library: libsopranoclient.so.1
Processing library: libsopranoindex.so.1
Processing library: libsopranoserver.so.1


Processing:   ilmbase-1.0.3-x86_64-1.txz 

Libraries required:  4
Libraries found in system: 3
Libraries to resolve: 1

Processing library: libIex.so.7


Processing:   openexr-1.7.1-x86_64-1.txz 

Libraries required:  11
Libraries found in system: 5
Libraries to resolve: 6

Processing library: libHalf.so.7
Processing library: libIex.so.7
Processing library: libIexMath.so.7
Processing library: libIlmImf.so.7
Processing library: libIlmThread.so.7
Processing library: libImath.so.7


Processing:   aspell-0.60.6-x86_64-1.txz 

Libraries required:  6
Libraries found in system: 5
Libraries to resolve: 1

Processing library: libaspell.so.15


Processing:   enchant-1.6.0-x86_64-1.txz 

Libraries required:  11
Libraries found in system: 8
Libraries to resolve: 3

Processing library: libaspell.so.15
Processing library: libenchant.so.1
Processing library: libhunspell-1.3.so.0


Processing:   jasper-1.900.1-x86_64-3.txz 

Libraries required:  32
Libraries found in system: 31
Libraries to resolve: 1

Processing library: libjasper.so.1


Processing:   aaa_elflibs-14.1-x86_64-3.txz 

Libraries required:  29
Libraries found in system: 28
Libraries to resolve: 1

Processing library: libcups.so.2


Processing:   qca-2.0.2-x86_64-1.txz 

Libraries required:  11
Libraries found in system: 10
Libraries to resolve: 1

Processing library: libqca.so.2


Processing:   libiodbc-3.52.8-x86_64-1_slack14.1.txz 

Libraries required:  61
Libraries found in system: 58
Libraries to resolve: 3

Processing library: libiodbc.so.2
Processing library: libiodbcadm.so.2
Processing library: libiodbcinst.so.2


Processing:   raptor2-2.0.9-x86_64-1.txz 

Libraries required:  20
Libraries found in system: 19
Libraries to resolve: 1

Processing library: libraptor2.so.0


Processing:   redland-1.0.16-x86_64-1.txz 

Libraries required:  24
Libraries found in system: 16
Libraries to resolve: 8

Processing library: libdb-4.4.so
Processing library: libiodbc.so.2
Processing library: libiodbcinst.so.2
Processing library: libltdl.so.7
Processing library: libmysqlclient.so.18

 More than one package contains:  libmysqlclient.so.18
mariadb-5.5.35-x86_64-1_slack14.1.txz  21616K  slackwarepatches
mariadb-5.5.32-x86_64-1.txz            20624K  slackware

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

1) mariadb-5.5.35-x86_64-1_slack14.1.txz
2) mariadb-5.5.32-x86_64-1.txz
#? 1
Processing library: libraptor2.so.0
Processing library: librasqal.so.3
Processing library: librdf.so.0


Processing:   hunspell-1.3.2-x86_64-1.txz 

Libraries required:  8
Libraries found in system: 7
Libraries to resolve: 1

Processing library: libhunspell-1.3.so.0


Processing:   mariadb-5.5.35-x86_64-1_slack14.1.txz 

Libraries required:  12
Libraries found in system: 11
Libraries to resolve: 1

Processing library: libaio.so.1


Processing:   rasqal-0.9.30-x86_64-1.txz 

Libraries required:  20
Libraries found in system: 17
Libraries to resolve: 3

Processing library: libmhash.so.2
Processing library: libraptor2.so.0
Processing library: librasqal.so.3


Processing:   libaio-0.3.109-x86_64-1.txz 

Processing:   mhash-0.9.9.9-x86_64-3.txz 

 WARNING: unresolved dependencies remain. 
libmlt++.so.3
libmlt.so.6
libclucene-core.so.1
/usr/share/usm/funcpackageGet: line 65: declare: 5004K: value too great for base (error token is "5004K")
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

neko
DEV Team
DEV Team
Posts: 959
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#144 by neko » 05 Mar 2014, 12:41

@brokenman

I enjoyed with your 'gift'.
Thanks.

This is my answer to your 'gift'.

usm-3.1.0-noarch-2.xzm
md5sum: 5264e163d8b89eb6ed0f0a288789045c usm-3.1.0-noarch-2.xzm
http://www.mediafire.com/download/gb67k ... arch-2.xzm

has the following contents.

1./usr/bin/usm was changed.
(1).TEXTDOMAIN="gnsu" is set in /usr/bin/gnsu(/opt/porteus-scripts/xorg/psu).
So TEXTDOMAIN=usm is set in usm.

#====================
diff -r usm-3.1.0-noarch-1/usr/bin/usm usm-3.1.0-noarch-2/usr/bin/usm
2c2
<
---
> export TEXTDOMAIN=usm
#====================

(2).'alt+character'
I tried change for using same English character.

#====================
diff -r usm-3.1.0-noarch-1/usr/bin/usm usm-3.1.0-noarch-2/usr/bin/usm
337c337
< <menu label="_'$(gettext "Tools")'" use-underline="true" icon-name="applications-system">
---
> <menu label="'$(gettext "_Tools")'" use-underline="true" icon-name="applications-system">
374c374
< <menu label="_'$(gettext "Settings")'" use-underline="true" icon-name="gtk-execute">
---
> <menu label="'$(gettext "_Settings")'" use-underline="true" icon-name="gtk-execute">
405c405
< <menu label="_'$(gettext "Updates")'" use-underline="true" icon-name="gtk-refresh">
---
> <menu label="'$(gettext "_Updates")'" use-underline="true" icon-name="gtk-refresh">
431c431
< <menu label="_'$(gettext "Help")'" use-underline="true" icon-name="gtk-info">
---
> <menu label="'$(gettext "_Help")'" use-underline="true" icon-name="gtk-info">
#====================

2./usr/bin/packagetools was changed.
(1)stop include 'funcgtkDialogs'
4c4
< . funcgtkDialogs
---
> #. funcgtkDialogs

(2)set '/tmp' path on 'TMPDIR'
> #. funcgtkDialogs
12c12,19
< [ -z $TMPDIR ] && TMPDIR=/tmp/usm.$$ || FOUNDTMP=1
---
> ##[ -z $TMPDIR ] && TMPDIR=/tmp/usm.$$ || FOUNDTMP=1
> if [[ -z $TMPDIR ]]
> then
> TMPDIR=/tmp/usm.$$
> else
> TMPDIR="/tmp/$TMPDIR"
> FOUNDTMP=1
> fi

(3)change for multi-language.
'diff's are many.

3. po, mo
/usr/src/po/ja/usm.po
/usr/src/po/skeleton/usm.po

/usr/share/locale/ja/LC_MESSAGES/usm.mo

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

Re: USM Unified Slackware Package Manager

Post#145 by brokenman » 05 Mar 2014, 19:01

Thanks. I've updated the files on github. I can't reproduce the error with the declare (above) but it led me to find another bug.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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#146 by bour59 » 07 Mar 2014, 18:04

hello
may I ask to verify 05.devel activated when package found in slackbuilds
... to avoid a headache
thx

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

Re: USM Unified Slackware Package Manager

Post#147 by brokenman » 07 Mar 2014, 19:48

I have frozen USM until the porteus v3.0 final release. I have put a check for the make program before building from SBo. The make program resides in 05-devel. It should error out and give a message, but I will add instructions on obtaining the 05-devel module so it is clear to everyone.
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
DEV Team
DEV Team
Posts: 959
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#148 by neko » 08 Mar 2014, 09:37

@brokenman

You wrote
"I can't reproduce the error with the declare (above) but it led me to find another bug."
Does "the declare (above)" mean
the declare of tools_isSTP1, .. ,and pkgtools_isINSTPisLSTisEXP ?

You did not insert these declares.

I am afraid that I might have written bug codes.
If you have a time, I expect you to fix my bug.

Thanks.

------------------------------------
[posted 05 Mar 2014, 13:41]
2./usr/bin/packagetools was changed.
(3)change for multi-language.
'diff's are many.
------------------------------------
Omitted "many 'diff's" are

21a29,112
> ## check module/package tool action
> tools_isSTP1()
> {
> TOOL_STP1=`gettext "Step 1: Select an action"`
> [[ "$cmbPkgtools" = "$TOOL_STP1" ]]
> }; export -f tools_isSTP1
>
> modtools_isP2M()
> {
> MODTOOL_P2M=`gettext "Convert a slackware package to a module"`
> [[ "$cmbModtools" = "$MODTOOL_P2M" ]]
> }; export -f modtools_isP2M
...
> pkgtools_isINSTPisLSTisEXP()
> {
> PKGTOOL_INSTP=`gettext "Install a slackware package"`
> PKGTOOL_LST=`gettext "List files in a slackware package"`
> PKGTOOL_EXP=`gettext "Unpack a slackware package"`
> [[ "$cmbPkgtools" = "$PKGTOOL_INSTP" || "$cmbPkgtools" = "$PKGTOOL_LST" || "$cmbPkgtools" = "$P
KGTOOL_EXP" ]]
> }; export -f pkgtools_isINSTPisLSTisEXP
>

43,49c134,140
< <action condition="command_is_true([[ `echo $cmbModtools|egrep '"'Convert
a slackware'"'` ]] && echo true)">modtools_txz2xzm $entselPkg &</action>
...
---
> <action condition="command_is_true(modtools_isP2M && echo true)">modtools
_txz2xzm $entselPkg &</action>
...
...

metalforever
Ronin
Ronin
Posts: 1
Joined: 11 Mar 2014, 03:52
Distribution: Slackware
Location: Pittsburgh

Re: USM Unified Slackware Package Manager

Post#149 by metalforever » 11 Mar 2014, 03:54

Help guys:

bash-4.2# usm -u all

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

bash-4.2#

If you help me I will write a GUI for the application. I installed the .txz in the root of the sourceforge repo. Thanks.

-Sarah

User avatar
freestyler
Contributor
Contributor
Posts: 382
Joined: 17 Oct 2013, 14:21
Distribution: Porteus KDE4
Location: Traveller
Contact:

Re: USM Unified Slackware Package Manager

Post#150 by freestyler » 11 Mar 2014, 04:21

Hi metalforever, I think there will be a GUI when the porteus 3.0 final is released any day now. For now maybe try the xzm module here.
https://www.porteus-apps.org

Post Reply