[sbopkg-users] Specify version from command line and and read source from current dir?

William Oquendo woquendo at gmail.com
Fri Jul 3 20:10:19 UTC 2026


Hi,
First thanks for sbopkg.
Sometimes, I want to use/test the current slackbuild but with a newer
package version. For instance, for apptainer, and the current sbopkg
configuration (I am using /var/lib/sbopkg/SBo-git/), the apptainer version
is too old, it is 1.1.6. I want to test with the current one, 1.5.2.

The ideal use would be to download the current source at my current
directory,
wget -c
https://github.com/apptainer/apptainer/releases/download/v1.5.2/apptainer-1.5.2.tar.gz
and specify the version as a flag
VERSION=1.5.2 sbopkg -i apptainer
But of course that does not work, even the version flag is kept on the old
value 1.1.6. Actually, the slackbuild has something like
VERSION=${VERSION:-1.6.1}
and the .info also has the version written and maybe it is overwriting
everything.

I currently do something which is an ugly workaround: enter the dir
/var/lib/sbopkg/SBo-git/system/apptainer, put there the soruce and run
there the slackbuild script directly with the VERSION env flag.

Reading the slackbuild it seems that it uses CWD=$pwd for the source, so it
wont work either to find the source in another directory. But that can be
mitigated by putting the source in the cache. The problem is with the env
var.

Of course apptainer is just an example, I know that is a big version jump
and so on, and the general goal of this post is to know if there is a way
to easy the handling of different versions and sources besides modifying
the repo.

Many thanks

-- 

Best regards / Cordialmente,

William-Fernando Oquendo
--------------------------
Este correo puede carecer de tildes o eñes debido al teclado.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20260703/e7acad51/attachment.htm>


More information about the sbopkg-users mailing list