Page 9 of 25

Re: USM Unified Slackware Package Manager

Posted: 05 Mar 2014, 12:41
by neko
@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

Re: USM Unified Slackware Package Manager

Posted: 05 Mar 2014, 19:01
by brokenman
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.

Re: USM Unified Slackware Package Manager

Posted: 07 Mar 2014, 18:04
by bour59
hello
may I ask to verify 05.devel activated when package found in slackbuilds
... to avoid a headache
thx

Re: USM Unified Slackware Package Manager

Posted: 07 Mar 2014, 19:48
by brokenman
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.

Re: USM Unified Slackware Package Manager

Posted: 08 Mar 2014, 09:37
by neko
@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>
...
...

Re: USM Unified Slackware Package Manager

Posted: 11 Mar 2014, 03:54
by metalforever
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

Re: USM Unified Slackware Package Manager

Posted: 11 Mar 2014, 04:21
by freestyler
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.

Re: USM Unified Slackware Package Manager

Posted: 11 Mar 2014, 23:06
by francois
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:~# 

Re: USM Unified Slackware Package Manager

Posted: 12 Mar 2014, 17:09
by brokenman
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.

Re: USM Unified Slackware Package Manager

Posted: 12 Mar 2014, 17:26
by Slaxmax
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.

Re: USM Unified Slackware Package Manager

Posted: 12 Mar 2014, 23:35
by francois
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:

Re: USM Unified Slackware Package Manager

Posted: 13 Mar 2014, 01:04
by brokenman
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.

Re: USM Unified Slackware Package Manager

Posted: 14 Mar 2014, 03:17
by francois
@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:

Re: USM Unified Slackware Package Manager

Posted: 14 Mar 2014, 03:43
by neko
[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パッケージ解凍"
================================

Re: USM Unified Slackware Package Manager

Posted: 14 Mar 2014, 19:57
by francois
@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.