Include:AbuildRootBld: Difference between revisions

From Alpine Linux
(Use internal links for wiki pages)
m (Use pkg and path templates. <noinclude> the category.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Install package <code>abuild-rootbld</code>:
Install package <code>abuild-rootbld</code>:


{{Cmd|apk add abuild-rootbld}}
{{Cmd|apk add {{pkg|abuild-rootbld|arch=}}}}


You may now build your packages from source in an unprivileged sandbox based on [https://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 [https://github.com/containers/bubblewrap bubblewrap] with the command: {{Cmd|abuild rootbld}}


<code>rootbld</code> assumes your APKBUILD file is in the {{path|~/aports}} whose structure like [https://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]].


Note that using <code>rootbld</code> inside a docker container requires [[Build_with_abuild_rootbld_in_Docker_container|additional configuration]].
Note that using <code>rootbld</code> inside a docker container requires [[Build_with_abuild_rootbld_in_Docker_container|additional configuration]].


[[category: Package Manager]]
<noinclude>[[Category: Package Manager]]</noinclude>

Latest revision as of 20:09, 12 January 2024

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 the ~/aports whose 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.