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...
neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#121 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: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#122 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: 181
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Re: USM Unified Slackware Package Manager

Post#123 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: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#124 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: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#125 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#126 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: 384
Joined: 17 Oct 2013, 14:21
Distribution: Porteus XFCE

Re: USM Unified Slackware Package Manager

Post#127 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

User avatar
francois
Contributor
Contributor
Posts: 6434
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

Post#128 by francois » 11 Mar 2014, 23:06

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.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#129 by brokenman » 12 Mar 2014, 17:09

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#130 by Slaxmax » 12 Mar 2014, 17:26

slackwarepatches problem

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: 

Edit: I removed manually previous usm and works now.
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
francois
Contributor
Contributor
Posts: 6434
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

Post#131 by francois » 12 Mar 2014, 23:35

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. :twisted:
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#132 by brokenman » 13 Mar 2014, 01:04

The bare essentials are there.
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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
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

Post#133 by francois » 14 Mar 2014, 03:17

@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. :roll:
Last edited by francois on 14 Mar 2014, 07:53, edited 2 times in total.
Prendre son temps, profiter de celui qui passe.

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

Re: USM Unified Slackware Package Manager

Post#134 by neko » 14 Mar 2014, 03:43

[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パッケージ解凍"
================================

User avatar
francois
Contributor
Contributor
Posts: 6434
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

Post#135 by francois » 14 Mar 2014, 19:57

@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) :

Code: Select all

 Cannot execute command ' /usr/bin/usmgui'
Do you have anything in the folder /etc/usm ?

Nothing in that folder. I will upgrade as you proposed from sourceforge.

Thanks.
Prendre son temps, profiter de celui qui passe.

Post Reply