* [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
@ 2022-04-02 20:01 Fabrice Fontaine
2022-04-04 19:27 ` Arnout Vandecappelle
2022-04-09 10:48 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-02 20:01 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Add a dependency on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS to avoid
the following build failure when GO_GOARCH is empty (e.g. on mips32)
raised since the addition of the package in commmit
ccda2f4bdc97d2f5a4a1efdb357ece8e5b57e10d:
printf ' rm -rf /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci\n /home/autobuild/autobuild/instance-6/output-1/host/bin/sloci-image --arch --entrypoint "sh" --author "Buildroot" --user "0" /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci:latest\n' >> /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
chmod a+x /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
PATH="/home/autobuild/autobuild/instance-6/output-1/host/bin:/home/autobuild/autobuild/instance-6/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" FAKEROOTDONTTRYCHOWN=1 /home/autobuild/autobuild/instance-6/output-1/host/bin/fakeroot -- /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
rootdir=/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target
table='/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/full_devices_table.txt'
Usage:
sloci-image [options] ROOTFS NAME[:TAG]
sloci-image [-h | -V]
Create a single-layer OCI image with the given rootfs.
Arguments:
ROOTFS Directory or tar.gz archive with rootfs to pack into the image.
Important: Archive will be *moved* to the image, so make a copy if you
need it. Directory will be preserved.
NAME Name of the image.
TAG Tag for the image. Defaults to "latest".
Options:
-m --arch ARCH CPU architecture which the binaries in this image are built to run on.
Defaults to $(uname -m).
--arch-variant Variant of the CPU. This is typically used only for arm (v6, v7, v8).
-a --author NAME Name and/or email address of the person which created the image.
-c --cmd CMD Default arguments to the entrypoint of the container.
--debug Print debug messages (it can be also enabled with env. variable DEBUG).
-C --entrypoint EP Arguments to use as the command to execute when the container starts.
-e --env VAR=VAL Default environment variables for container.
-l --label KEY=VALUE Metadata for the container compliant with OCI annotation rules.
If KEY starts with a dot, it will be prefixed with
"org.opencontainers.image" (e.g. .url -> org.opencontainers.image.url).
--os OS Name of the OS which the image is built to run on. Defaults to "linux".
-p --port PORT[/PROT] Default set of ports to expose from a container running this image in
format: <port>/tcp, <port>/udp, or <port> (same as <port>/tcp).
Aliases: --expose.
-t --tar Pack image in a TAR archive.
-u --user USER The username or UID of user the process run as.
-v --volume PATH Default set of directories describing where the process is likely write
data specific to a container instance.
-w --working-dir DIR Sets the current working directory of the entrypoint process in the
container.
-V --version Print version and exit.
-h --help Print this message and exit.
Please report bugs at <https://github.com/jirutka/sloci-image/issues>.
make: *** [fs/oci/oci.mk:99: /home/autobuild/autobuild/instance-6/output-1/images/rootfs.oci] Error 1
Fixes:
- http://autobuild.buildroot.org/results/44da17a393421dfcb8bbdd63074cb82b436dfa94
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
fs/oci/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/oci/Config.in b/fs/oci/Config.in
index 176785810a..8f36c91c8f 100644
--- a/fs/oci/Config.in
+++ b/fs/oci/Config.in
@@ -1,5 +1,6 @@
config BR2_TARGET_ROOTFS_OCI
bool "oci image"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
help
Build an OCI (Open Container Initiative) image.
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
2022-04-02 20:01 [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS Fabrice Fontaine
@ 2022-04-04 19:27 ` Arnout Vandecappelle
2022-04-09 10:48 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-04 19:27 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot
On 02/04/2022 22:01, Fabrice Fontaine wrote:
> Add a dependency on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS to avoid
> the following build failure when GO_GOARCH is empty (e.g. on mips32)
> raised since the addition of the package in commmit
> ccda2f4bdc97d2f5a4a1efdb357ece8e5b57e10d:
>
> printf ' rm -rf /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci\n /home/autobuild/autobuild/instance-6/output-1/host/bin/sloci-image --arch --entrypoint "sh" --author "Buildroot" --user "0" /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci:latest\n' >> /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> chmod a+x /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> PATH="/home/autobuild/autobuild/instance-6/output-1/host/bin:/home/autobuild/autobuild/instance-6/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" FAKEROOTDONTTRYCHOWN=1 /home/autobuild/autobuild/instance-6/output-1/host/bin/fakeroot -- /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> rootdir=/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target
> table='/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/full_devices_table.txt'
> Usage:
> sloci-image [options] ROOTFS NAME[:TAG]
> sloci-image [-h | -V]
>
> Create a single-layer OCI image with the given rootfs.
>
> Arguments:
> ROOTFS Directory or tar.gz archive with rootfs to pack into the image.
> Important: Archive will be *moved* to the image, so make a copy if you
> need it. Directory will be preserved.
>
> NAME Name of the image.
>
> TAG Tag for the image. Defaults to "latest".
>
> Options:
> -m --arch ARCH CPU architecture which the binaries in this image are built to run on.
> Defaults to $(uname -m).
>
> --arch-variant Variant of the CPU. This is typically used only for arm (v6, v7, v8).
>
> -a --author NAME Name and/or email address of the person which created the image.
>
> -c --cmd CMD Default arguments to the entrypoint of the container.
>
> --debug Print debug messages (it can be also enabled with env. variable DEBUG).
>
> -C --entrypoint EP Arguments to use as the command to execute when the container starts.
>
> -e --env VAR=VAL Default environment variables for container.
>
> -l --label KEY=VALUE Metadata for the container compliant with OCI annotation rules.
> If KEY starts with a dot, it will be prefixed with
> "org.opencontainers.image" (e.g. .url -> org.opencontainers.image.url).
>
> --os OS Name of the OS which the image is built to run on. Defaults to "linux".
>
> -p --port PORT[/PROT] Default set of ports to expose from a container running this image in
> format: <port>/tcp, <port>/udp, or <port> (same as <port>/tcp).
> Aliases: --expose.
>
> -t --tar Pack image in a TAR archive.
>
> -u --user USER The username or UID of user the process run as.
>
> -v --volume PATH Default set of directories describing where the process is likely write
> data specific to a container instance.
>
> -w --working-dir DIR Sets the current working directory of the entrypoint process in the
> container.
>
> -V --version Print version and exit.
>
> -h --help Print this message and exit.
>
> Please report bugs at <https://github.com/jirutka/sloci-image/issues>.
> make: *** [fs/oci/oci.mk:99: /home/autobuild/autobuild/instance-6/output-1/images/rootfs.oci] Error 1
>
> Fixes:
> - http://autobuild.buildroot.org/results/44da17a393421dfcb8bbdd63074cb82b436dfa94
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> fs/oci/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/oci/Config.in b/fs/oci/Config.in
> index 176785810a..8f36c91c8f 100644
> --- a/fs/oci/Config.in
> +++ b/fs/oci/Config.in
> @@ -1,5 +1,6 @@
> config BR2_TARGET_ROOTFS_OCI
> bool "oci image"
> + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
> help
> Build an OCI (Open Container Initiative) image.
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
2022-04-02 20:01 [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS Fabrice Fontaine
2022-04-04 19:27 ` Arnout Vandecappelle
@ 2022-04-09 10:48 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-04-09 10:48 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Add a dependency on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS to avoid
> the following build failure when GO_GOARCH is empty (e.g. on mips32)
> raised since the addition of the package in commmit
> ccda2f4bdc97d2f5a4a1efdb357ece8e5b57e10d:
> printf ' rm -rf /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci\n /home/autobuild/autobuild/instance-6/output-1/host/bin/sloci-image --arch --entrypoint "sh" --author "Buildroot" --user "0" /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target /home/autobuild/autobuild/instance-6/output-1/images/rootfs-oci:latest\n' >> /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> chmod a+x /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> PATH="/home/autobuild/autobuild/instance-6/output-1/host/bin:/home/autobuild/autobuild/instance-6/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" FAKEROOTDONTTRYCHOWN=1 /home/autobuild/autobuild/instance-6/output-1/host/bin/fakeroot -- /home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/fakeroot
> rootdir=/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/oci/target
> table='/home/autobuild/autobuild/instance-6/output-1/build/buildroot-fs/full_devices_table.txt'
> Usage:
> sloci-image [options] ROOTFS NAME[:TAG]
> sloci-image [-h | -V]
> Create a single-layer OCI image with the given rootfs.
> Arguments:
> ROOTFS Directory or tar.gz archive with rootfs to pack into the image.
> Important: Archive will be *moved* to the image, so make a copy if you
> need it. Directory will be preserved.
> NAME Name of the image.
> TAG Tag for the image. Defaults to "latest".
> Options:
> -m --arch ARCH CPU architecture which the binaries in this image are built to run on.
> Defaults to $(uname -m).
> --arch-variant Variant of the CPU. This is typically used only for arm (v6, v7, v8).
> -a --author NAME Name and/or email address of the person which created the image.
> -c --cmd CMD Default arguments to the entrypoint of the container.
> --debug Print debug messages (it can be also enabled with env. variable DEBUG).
> -C --entrypoint EP Arguments to use as the command to execute when the container starts.
> -e --env VAR=VAL Default environment variables for container.
> -l --label KEY=VALUE Metadata for the container compliant with OCI annotation rules.
> If KEY starts with a dot, it will be prefixed with
> "org.opencontainers.image" (e.g. .url -> org.opencontainers.image.url).
> --os OS Name of the OS which the image is built to run on. Defaults to "linux".
> -p --port PORT[/PROT] Default set of ports to expose from a container running this image in
> format: <port>/tcp, <port>/udp, or <port> (same as <port>/tcp).
> Aliases: --expose.
> -t --tar Pack image in a TAR archive.
> -u --user USER The username or UID of user the process run as.
> -v --volume PATH Default set of directories describing where the process is likely write
> data specific to a container instance.
> -w --working-dir DIR Sets the current working directory of the entrypoint process in the
> container.
> -V --version Print version and exit.
> -h --help Print this message and exit.
> Please report bugs at <https://github.com/jirutka/sloci-image/issues>.
> make: *** [fs/oci/oci.mk:99: /home/autobuild/autobuild/instance-6/output-1/images/rootfs.oci] Error 1
> Fixes:
> - http://autobuild.buildroot.org/results/44da17a393421dfcb8bbdd63074cb82b436dfa94
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-09 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 20:01 [Buildroot] [PATCH 1/1] fs/oci: depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS Fabrice Fontaine
2022-04-04 19:27 ` Arnout Vandecappelle
2022-04-09 10:48 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.