USM Unified Slackware Package Manager
-
- DEV Team
- Posts: 2113
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
@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
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
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
Wear your underpants on the outside and put on a cape.
-
- Shogun
- Posts: 204
- Joined: 29 Dec 2010, 08:10
- Distribution: porteus v5.0-xfce K5.19.7
- Location: France
Re: USM Unified Slackware Package Manager
hello
may I ask to verify 05.devel activated when package found in slackbuilds
... to avoid a headache
thx
may I ask to verify 05.devel activated when package found in slackbuilds
... to avoid a headache
thx
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
Wear your underpants on the outside and put on a cape.
-
- DEV Team
- Posts: 2113
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
@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>
...
...
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>
...
...
-
- Ronin
- Posts: 1
- Joined: 11 Mar 2014, 03:52
- Distribution: Slackware
- Location: Pittsburgh
Re: USM Unified Slackware Package Manager
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
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
- freestyler
- Contributor
- Posts: 384
- Joined: 17 Oct 2013, 14:21
- Distribution: Porteus XFCE
Re: USM Unified Slackware Package Manager
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
- francois
- Contributor
- Posts: 6500
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
porteus 3.0 final, I get following error message:
Code: Select all
root@porteus:~# usm -u all
You are missing required database files!
Please run: usm -u all
root@porteus:~# usm -u all
You are missing required database files!
Please run: usm -u all
root@porteus:~#
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
Yeah there is a problem at the moment with the slacky mirror that is set as default. It is not responding. If you have the latest version of USM (i updated this morning) then you should now have 3 mirrors in this file:
/etc/usm/mirrors-slacky.txt
The first one # EUROPE should be uncommented as it is working fine. I also updated all the ISO's on the server so rebuilding an ISO should work. Unfortunately over 1000 builds were done before I could get the problem sorted.
/etc/usm/mirrors-slacky.txt
The first one # EUROPE should be uncommented as it is working fine. I also updated all the ISO's on the server so rebuilding an ISO should work. Unfortunately over 1000 builds were done before I could get the problem sorted.
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
slackwarepatches problem
Edit: I removed manually previous usm and works now.
Code: Select all
Starting slackwarepatches database update
Connection is good
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
There was a problem downloading the file:
“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
- francois
- Contributor
- Posts: 6500
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
Updating usm thru gui interface and then usm -u all resolved my problem. It is the first time that I see the gui interface. I like it: really sexy. The bare essentials are there. 

Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
Thanks Francois. I will develop it slowly and surely and add more functionality. I want to focus on automating the generation of the databases so I don't have to worry about it. Then I can add slackware-current for the slackware users.The bare essentials are there.
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.
- francois
- Contributor
- Posts: 6500
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
@brokenman: I do not want to look too demanding. But I kind of miss debian and fedora repositories. Why wouldn't you hide them in some kind of hidden section for advanced users only. In that section you could put a warning: no dependency resolution provided. 

Last edited by francois on 14 Mar 2014, 07:53, edited 2 times in total.
Prendre son temps, profiter de celui qui passe.
-
- DEV Team
- Posts: 2113
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
[Problem]
In JA locale, 'tool' selector are not done.
Maybe, other locale except C too are same.
[Reason]
the selection is done by the following code.
echo $CheckedString | grep "English character string".
The CheckedString that is a Japanese string is not matched with the English key.
[Fix]
1. The answer reported on 5 March (by neko » 05 Mar 2014, 13:41)
replaced by following code.
xxx_isYYY()
{
[[ $CheckedString = "Japanese character string" ]]
}
xxx_isYYY
-->
this code is pointed that it creates a new problem by brokenman (05 Mar 2014, 20:01).
(I do not know it.)
2. This is an easy correction.
These selection key sentences are not made multi-language until a bug is fixed.
/usr/src/po/ja/usm.po
================================
204,205c204,205
< msgid "Convert a folder of slackware packages to modules"
< msgstr "Slackwareパッケージ群収容ホルダーからモジュール群へ変換"
---
> #msgid "Convert a folder of slackware packages to modules"
> #msgstr "Slackwareパッケージ群収容ホルダーからモジュール群へ変換"
...
(omitted)
...
645,646c645,646
< msgid "Unpack a slackware package"
< msgstr "slackwareパッケージ解凍"
---
> #msgid "Unpack a slackware package"
> #msgstr "slackwareパッケージ解凍"
================================
In JA locale, 'tool' selector are not done.
Maybe, other locale except C too are same.
[Reason]
the selection is done by the following code.
echo $CheckedString | grep "English character string".
The CheckedString that is a Japanese string is not matched with the English key.
[Fix]
1. The answer reported on 5 March (by neko » 05 Mar 2014, 13:41)
replaced by following code.
xxx_isYYY()
{
[[ $CheckedString = "Japanese character string" ]]
}
xxx_isYYY
-->
this code is pointed that it creates a new problem by brokenman (05 Mar 2014, 20:01).
(I do not know it.)
2. This is an easy correction.
These selection key sentences are not made multi-language until a bug is fixed.
/usr/src/po/ja/usm.po
================================
204,205c204,205
< msgid "Convert a folder of slackware packages to modules"
< msgstr "Slackwareパッケージ群収容ホルダーからモジュール群へ変換"
---
> #msgid "Convert a folder of slackware packages to modules"
> #msgstr "Slackwareパッケージ群収容ホルダーからモジュール群へ変換"
...
(omitted)
...
645,646c645,646
< msgid "Unpack a slackware package"
< msgstr "slackwareパッケージ解凍"
---
> #msgid "Unpack a slackware package"
> #msgstr "slackwareパッケージ解凍"
================================
- francois
- Contributor
- Posts: 6500
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
@brokenman:
Follow-up from Porteus 3.0 final feedback thread:
http://forum.porteus.org/posting.php?mo ... 53&p=22704
I get the following message when I try to run usm gui (it has been updated and repo have been synchronized) :
Do you have anything in the folder /etc/usm ?
Nothing in that folder. I will upgrade as you proposed from sourceforge.
Thanks.
Follow-up from Porteus 3.0 final feedback thread:
http://forum.porteus.org/posting.php?mo ... 53&p=22704
I get the following message when I try to run usm gui (it has been updated and repo have been synchronized) :
Code: Select all
Cannot execute command ' /usr/bin/usmgui'
Nothing in that folder. I will upgrade as you proposed from sourceforge.
Thanks.
Prendre son temps, profiter de celui qui passe.