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

Willy Sudiarto Raharjo willysr at slackbuilds.org
Sat Jul 4 13:54:01 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.


Hi

sbopkg is designed to run originally to run the script from the repo, so local
edit is not possible, but later on, we have added a local edit features, which
is not available in CLI mode. You need to run it on TUI mode by running sbopkg
as root without any option.

Select Search > Custom. You can edit .info or .SlackBuild locally there



--
Willy Sudiarto Raharjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20260704/ae15a93b/attachment.asc>


More information about the sbopkg-users mailing list