pkgctl build - passing options to makepkg
pkgctl build
doesn't seem to allow passing of additional CLI options to makepkg
. This works fine with other tools e.g. makechrootpkg
and extra-x86_64-build
. Not only can you pass options, you can also pass environment variables too! This is actually a killer devtools
feature IMHO.. therefore it seems kinda like a workflow regression.
Please see this recent discussion. I use a similar technique for bootstrapping toolchains (admittedly, that procedure requires manual use of makechrootpkg
).
Consider the following PKGBUILD:
pkgname=foobar
pkgver=1.0
pkgrel=1
pkgdesc=foo
arch=(any)
package() {
if ((FOO)); then
echo FOO is set, good.
else
echo FOO is not set, bailing...
return 1
fi
}
The following invocations all work fine:
$ makepkg -- FOO=1
$ makechrootpkg -r /var/lib/archbuild/extra-x86_64 -- FOO=1
$ extra-x86_64-build -- -- FOO=1
Do we want to continue supporting this? If yes, I can try submitting a MR.