Include:AbuildRootBld: Difference between revisions
m (Use pkg and path templates. <noinclude> the category.) |
WhyNotHugo (talk | contribs) (This assumption is no longer true; the current directory is now used.) |
||
Line 5: | Line 5: | ||
You may now build your packages from source in an unprivileged sandbox based on [http://github.com/containers/bubblewrap bubblewrap] with the command: {{Cmd|abuild rootbld}} | You may now build your packages from source in an unprivileged sandbox based on [http://github.com/containers/bubblewrap bubblewrap] with the command: {{Cmd|abuild rootbld}} | ||
<code>rootbld</code> assumes your APKBUILD file is in | <code>rootbld</code> assumes your APKBUILD file is in a directory structure like [http://gitlab.alpinelinux.org/alpine/aports aports] or you need to set environment variable <code>APORTSDIR</code> to current directory. | ||
If the build process needs network access there has to bet set the '''net''' option in [[APKBUILD_Reference#options|APKBUILD]]. | If the build process needs network access there has to bet set the '''net''' option in [[APKBUILD_Reference#options|APKBUILD]]. | ||
Revision as of 15:04, 25 February 2025
Install package abuild-rootbld
:
apk add abuild-rootbld
You may now build your packages from source in an unprivileged sandbox based on bubblewrap with the command:
abuild rootbld
rootbld
assumes your APKBUILD file is in a directory structure like aports or you need to set environment variable APORTSDIR
to current directory.
If the build process needs network access there has to bet set the net option in APKBUILD.
Note that using rootbld
inside a docker container requires additional configuration.