why does sbocheck/slackpkg want to downgrade certain packages?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
why does sbocheck/slackpkg want to downgrade certain packages?
I have slightly modified a few slackbuilds, built and installed the packages. Now it looks like sbocheck wants to downgrade them. I didn't make any changes in /usr/sbo/repo but copied the modified slackbuilds to my home folder. Is there some quirk/convention of naming that is causing problems?
Code:
> sbocheck
Updating SlackBuilds tree...
Updating files: 100% (35177/35177), done.
HEAD is now at cc056687aa Fixed typo
Checking for updated SlackBuilds...
fakeroot 1.25.3 < needs updating (1.23 from SBo)
kaffeine 2.0.18 < needs updating (1.3.1 from SBo)
Also, slackpkg+ wants to downgrade my qemu which was built and installed by sboinstall:
Last edited by slackmensch; 05-10-2021 at 06:25 AM.
Perhaps for a better understanding: Slackware's package tools do not know the concept of higher/lower version numbers. Just different versions.
I was wondering about what constitutes differentness: looks like all the stuff up to the first dash has to be unique or else pkg tools thinks it's the same package?
For example, I can't install kmod-zfs-5.10.35-2.0.4.tgz because there's a package called kmod-28-x86_64-3 installed. So I just rename it to zfsmodules-blah.blah.tgz. (The kmod-zfs-XXXX.tgz name is chosen automatically by something in the zfs-2.0.4 configure scripts.) These modules need to be rebuilt whenever the kernel changes, so I keep being reminded to ask about the naming of packages.
I was wondering about what constitutes differentness: looks like all the stuff up to the first dash has to be unique or else pkg tools thinks it's the same package?
For example, I can't install kmod-zfs-5.10.35-2.0.4.tgz because there's a package called kmod-28-x86_64-3 installed. So I just rename it to zfsmodules-blah.blah.tgz. (The kmod-zfs-XXXX.tgz name is chosen automatically by something in the zfs-2.0.4 configure scripts.) These modules need to be rebuilt whenever the kernel changes, so I keep being reminded to ask about the naming of packages.
This is because that package name is broken. Package names in Slackware require the program name, the version, the arch, and the build/tag. These are all separated by dashes and the program name is the only part of the package name that can have dashes with it. The scripts determine each aspect of the package name by reverse, so it will first determine the build/tag, then the arch, etc.
In the case of your two packages, here's how pkgtools see them kmod-zfs-5.10.35-2.0.4 and kmod-28-x86_64-3
So, your kmod-zfs package has a dash in the version, which pkgtools doesn't detect and it is also missing the arch and build/tag. So, pkgtools thinks that kmod is the program name, zfs is the version, 5.10.35 is the arch, and 2.0.4 is the build/tag. To fix the version, you'll need to swap the dash for an underscore (5.10.35_2.0.4) and then adding the arch and build/tag will fix the rest of the package name.
Once the package name is fixed, you'll be able to install it properly with no conflit from the stock kmod package.
I have the same problem to the OP with sbotools, and wondered if anyone has an equivalent solution to those mentioned for slackpkg and slackpkg+?
I'm using ponce's SlackBuilds tree for Slackware64 -current, and sometimes use these SlackBuilds as a basis for my own builds where the SlackBuild is out of date and I need (or want) a newer release from upstream. I don't change the sbo tree, like slackmensch I make a copy and edit the the SlackBuilds scripts elsewhere on my system.
It leads to situations like this:
Code:
$ sudo sbocheck
Password:
Updating SlackBuilds tree...
remote: Enumerating objects: 648, done.
remote: Counting objects: 100% (648/648), done.
remote: Compressing objects: 100% (246/246), done.
remote: Total 648 (delta 402), reused 648 (delta 402), pack-reused 0
Receiving objects: 100% (648/648), 164.17 KiB | 1.67 MiB/s, done.
Resolving deltas: 100% (402/402), completed with 147 local objects.
From https://github.com/Ponce/slackbuilds
3a3a588bbd..131e9a3123 master -> origin/master
Updating files: 100% (35339/35339), done.
HEAD is now at cc056687aa Fixed typo
Checking for updated SlackBuilds...
acpica 20210331 < needs updating (20170531 from SBo)
cronie 1.5.7 < needs updating (1.5.4 from SBo)
nginx 1.18.0 < needs updating (1.12.2 from SBo)
A copy of the above result is kept in /var/log/sbocheck.log
LOCAL_OVERRIDES=(FALSE|/path)
If set to a path, any directory name under that path that matches a slackbuild name will be used instead of anything found in the main repo. (By default SBo, but this can be changed using the REPO setting. See below.) This will even work if it isn't on SBo at all. It still requires all the usual files present in an SBo directory such as README, name.info, and name.SlackBuild
Ah yes, thank you! LOCAL_OVERRIDES works perfectly if you keep your own SlackBuild files in the same format as SBo uses, and correctly formatted. I had read the fine manual but misunderstood what that option would do.
Andrew
Last edited by preater; 05-11-2021 at 08:43 AM.
Reason: add clarity
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.