getmod: some problems and considerations

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#1 by francois » 22 Feb 2023, 12:07

I am using getmod with very few problems up to now. The reason for starting this thread is that I want to understand this wrapper that seemed to be based on slapt-get. Please share your understanding of the thing, that seems to be replacing PPM USM . Will it be the real thing? (old coca-cola fans will understand).

However, when talking about getmod we are also talking about slapt-get (gslapt) in particular, and about package management in general. To begin slapt-get (gslapt) will be frequently referred to, as it seems that getmod is a simple wrapper based on slapt-get.

Repositories.
Porteus provides slapt-get with the repositories of salix. However, it is possible to add additional repositories. Which ones should you have?

As the prebuilt slackware pasture does not have all you need. There are distributions that have wider fields, like archlinux or ubuntu, it might pertinent to have a custom repo on your own linux box. Is this a good idea? Could it eventually be offered as a source to the community? Or is it overkill?

Other topics.
***

Wel structured information on slapt-get from vector linux documentation.
https://distro.ibiblio.org/vectorlinux/ ... tapackages

Note that vector linux is dead. :(
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#2 by francois » 22 Feb 2023, 12:09

Here is an error message while using getmod to build gimp:

Code: Select all

root@porteus:~# getmod -m gimp
Reading Package Lists...Done
gimp is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N] y

Done
basename: missing operand
Try 'basename --help' for more information.
find: ‘/tmp/gimp.7378’: No such file or directory
find: ‘/tmp/gimp.7378’: No such file or directory
find: ‘/tmp/gimp.7378’: No such file or directory
find: ‘/tmp/gimp.7378’: No such file or directory
Cannot stat source directory "/tmp/gimp.7378" because No such file or directory
root@porteus:~# 
Any thoughts about what is going wrong?
Thanks.
Prendre son temps, profiter de celui qui passe.

User avatar
babam
Warlord
Warlord
Posts: 528
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

getmod: some problems and considerations

Post#3 by babam » 22 Feb 2023, 13:22

francois wrote:
22 Feb 2023, 12:09
Here is an error message while using getmod to build gimp:

Code: Select all

root@porteus:~# getmod -m gimp
Reading Package Lists...Done
gimp is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N] y
Any thoughts about what is going wrong?
Thanks.
GIMP is already installed.
What if you answered n?
Sorry, my English is bad.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: some problems and considerations

Post#4 by Ed_P » 22 Feb 2023, 17:03

francois wrote:
22 Feb 2023, 12:07
seems to be replacing PPM
:%) What the heck is PPM? Don't you mean USM?
Ed

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#5 by francois » 23 Feb 2023, 23:31

@babam:
Funny, now look at what I get:

Code: Select all

oot@porteus:~# getmod -m gimp
Reading Package Lists...Done
gimp is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N]
@ed:
PPM=porteus package manager
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: some problems and considerations

Post#6 by Ed_P » 24 Feb 2023, 06:09

francois wrote:
23 Feb 2023, 23:31
Funny, now look at what I get:

Code: Select all

oot@porteus:~# getmod -m gimp
Reading Package Lists...Done
gimp is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N]
:%)
francois wrote:
22 Feb 2023, 12:09

Code: Select all

root@porteus:~# getmod -m gimp
Reading Package Lists...Done
gimp is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N] y
Other than you not replying with a "y" I don't see the difference. :unknown:
Ed

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#7 by francois » 24 Feb 2023, 11:44

Put on your glasses and read post #2. :ROFL:
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#8 by francois » 24 Feb 2023, 11:54

@babam:
Have you added some additional sources to your slapt-get installation? If so, how are you doing with your dependencies resolution on these non salix packages?

The problem that I found browsing on the subject of adding sources to slapt-get is that these additional sources might not contain the right FILES.TXT.

Good news, it seems that Alien bob provides this FILES.TXT with its sources:
https://www.linuxquestions.org/question ... 175460439/
SOURCE=http://connie.slackware.com/~alien/multilib/:CUSTOM

This could be added thru gslapt easily and thus provides additional pasture.

I will try to see if other repositories like:
slackware slackwarepatches slacky salix alien ponce slackonly slacky
satisfy the FILES.TXT requirement of slapt-get FAQ 17.

Slacky:
https://slacky.eu/

Otherwise, I will try to provide them for these additional repositories.
Prendre son temps, profiter de celui qui passe.

User avatar
babam
Warlord
Warlord
Posts: 528
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

getmod: some problems and considerations

Post#9 by babam » 24 Feb 2023, 12:42

francois,
Only the Salix and Slint repositories support slap-get.

To add Slint:

Code: Select all

SOURCE=https://slackware.uk/slint/x86_64/slint-15.0/:OFFICIAL

Code: Select all

md5sum /usr/bin/getmod
5f950c8798ec66c1cad7b9eba0ab49e2
Sorry, my English is bad.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#10 by francois » 24 Feb 2023, 12:45

@babam:
Did your read this thread with Alien bob comments?
https://www.linuxquestions.org/question ... 175460439/
It says that alien repo is slapt-get ready.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#11 by francois » 26 Feb 2023, 07:17

I have been doing some search on adding repositories for getmod thru slapt-get. The easiest way is with the gslapt interface, but you could also do it thru /etc/slapt-get/slapt-getrc. gslapt is a great way to make some search on the packages. Slapt-get provides a download without install option, for example.
slapt-get -i -d abiword

Here are those that I have been adding. Those are the repositories that were available on brokenman's USM.

Code: Select all

SOURCE=http://packages.slackonly.com/pub/packages/15.0-x86_64/
#DISABLED=SOURCE=file:///tmp/:CUSTOM
#DISABLED=http://slackware.org.uk/slacky/
SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64/:PREFERRED
SOURCE=https://ponce.cc/slackware/slackware64-15.0/packages/
Presently I am testing them. If you want to do so too, do. B)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#12 by francois » 26 Feb 2023, 11:50

@babam:
slapt-get is used by many distributions in addition to salix and slint, there is:
https://slackwiki.com/Slapt-get
zenwalk, absolute linux, slamd, vector linux and more.

Salix is against using multiple repos with slapt-get. Some other users work with it without problems. We did with USM using multiple repos. With porteus we can break the system with new packages, It is easy to repair. :)
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: some problems and considerations

Post#13 by Ed_P » 26 Feb 2023, 19:28

francois wrote:
26 Feb 2023, 07:17
you could also do it thru /etc/slapt-get/slapt-getrc.
This is the slapt-getrc I'm using:

Code: Select all

# Working directory for local storage/cache.
WORKINGDIR=/var/slapt-get

# Exclude package names and expressions.
# To exclude pre and beta packages, add this to the exclude: 
#   [0-9\_\.\-]{1}pre[0-9\-\.\-]{1}
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^rootuser-settings,^zzz-settings.*,-i?86-

# The Slackware repositories, including dependency information
SOURCE=http://slackware.uk/salix/x86_64/slackware-15.0/:OFFICIAL
SOURCE=http://slackware.uk/salix/x86_64/slackware-15.0/extra/:OFFICIAL

# The Salix repository
SOURCE=http://slackware.uk/salix/x86_64/15.0/:PREFERRED
# And the Salix extra repository
SOURCE=http://slackware.uk/salix/x86_64/extra-15.0/:OFFICIAL

# The Slakfinder repository
#SOURCE=https://slakfinder.org/sbomt64-15.0/:DEFAULT
# commented out since slakfinder.org not working at this point.
# Eric's US mirror
SOURCE=http://taper.alienbase.nl/slackpkgplus/

SOURCE=https://slackware.uk/csb/15.0/x86_64/
SOURCE=http://ponce.cc/slackware/slackware64-15.0/packages/

SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64

# Local repositories
# SOURCE=file:///var/www/packages/:CUSTOM
See [Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules (Post by Ed_P #92595) for details.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: some problems and considerations

Post#14 by francois » 27 Feb 2023, 12:14

We have a difference in the sources that we use. Let me comment and ask you some questions.

1) What is the difference between:
SOURCE=http://taper.alienbase.nl/slackpkgplus/
and
SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64

Does that mean that you regularly use slpkg with slpkg+?

2) Using SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64
have you had problems with dependencies resolution with ponce's packages?

3) Using SOURCE=https://slackware.uk/csb/15.0/x86_64/ for cinnamon, as I use xfce should I resort to
SOURCE=https://slackware.uk/gsb/15.0/x86_64/ gsb as for gnome desktop.

4) I see that you do not use a local source. Do you intend to do so or is because you do not really know how to set one?

Thanks for sharing. :)
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: some problems and considerations

Post#15 by Ed_P » 27 Feb 2023, 17:50

francois wrote:
27 Feb 2023, 12:14
1) What is the difference between:
SOURCE=http://taper.alienbase.nl/slackpkgplus/
and
SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64
:o Apparently date last updated.
francois wrote:
27 Feb 2023, 12:14
Does that mean that you regularly use slpkg with slpkg+?
I use getmod.
francois wrote:
27 Feb 2023, 12:14
2) Using SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64
have you had problems with dependencies resolution with ponce's packages?

3) Using SOURCE=https://slackware.uk/csb/15.0/x86_64/ for cinnamon, as I use xfce should I resort to
SOURCE=https://slackware.uk/gsb/15.0/x86_64/ gsb as for gnome desktop.
I don't recall any problems and if I had one I posted it in the [Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules thread.
francois wrote:
27 Feb 2023, 12:14
4) I see that you do not use a local source. Do you intend to do so or is because you do not really know how to set one?
Noone has posted a need for one at this point in the [Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules thread.
Ed

Post Reply