From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/
Date: Mon, 22 Apr 2024 17:02:32 +0000 (UTC) [thread overview]
Message-ID: <1713805350.f3faf2fcadfad9548143381d664217296c4ecfc2.juippis@gentoo> (raw)
commit: f3faf2fcadfad9548143381d664217296c4ecfc2
Author: Mathieu Tortuyaux <mtortuyaux <AT> microsoft <DOT> com>
AuthorDate: Fri Apr 19 13:10:17 2024 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Apr 22 17:02:30 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3faf2fc
app-containers/incus: fix cross compilation issue on 6.0.0
* explicitly call the *src_unpack
* set Go installation PATH if cross compilation is detected
Signed-off-by: Mathieu Tortuyaux <mtortuyaux <AT> microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/36323
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../{incus-6.0.0.ebuild => incus-6.0.0-r1.ebuild} | 24 ++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/app-containers/incus/incus-6.0.0.ebuild b/app-containers/incus/incus-6.0.0-r1.ebuild
similarity index 89%
rename from app-containers/incus/incus-6.0.0.ebuild
rename to app-containers/incus/incus-6.0.0-r1.ebuild
index 1c2b2fa462e1..87af2e5f9154 100644
--- a/app-containers/incus/incus-6.0.0.ebuild
+++ b/app-containers/incus/incus-6.0.0-r1.ebuild
@@ -83,6 +83,11 @@ RESTRICT="test"
GOPATH="${S}/_dist"
+src_unpack() {
+ verify-sig_src_unpack
+ go-module_src_unpack
+}
+
src_prepare() {
export GOPATH="${S}/_dist"
@@ -147,7 +152,12 @@ src_test() {
src_install() {
export GOPATH="${S}/_dist"
- local bindir="_dist/bin"
+
+ if [[ "${GOARCH}" != "amd64" ]]; then
+ local bindir="_dist/bin/linux_${GOARCH}"
+ else
+ local bindir="_dist/bin"
+ fi
newsbin "${FILESDIR}"/incus-startup-0.4.sh incus-startup
@@ -176,11 +186,13 @@ src_install() {
systemd_newunit "${FILESDIR}"/incus-user-0.4.service incus-user.service
systemd_newunit "${FILESDIR}"/incus-user-0.4.socket incus-user.socket
- # Generate and install shell completion files.
- mkdir -p "${D}"/usr/share/{bash-completion/completions/,fish/vendor_completions.d/,zsh/site-functions/} || die
- "${bindir}"/incus completion bash > "${D}"/usr/share/bash-completion/completions/incus || die
- "${bindir}"/incus completion fish > "${D}"/usr/share/fish/vendor_completions.d/incus.fish || die
- "${bindir}"/incus completion zsh > "${D}"/usr/share/zsh/site-functions/_incus || die
+ if ! tc-is-cross-compiler; then
+ # Generate and install shell completion files.
+ mkdir -p "${D}"/usr/share/{bash-completion/completions/,fish/vendor_completions.d/,zsh/site-functions/} || die
+ "${bindir}"/incus completion bash > "${D}"/usr/share/bash-completion/completions/incus || die
+ "${bindir}"/incus completion fish > "${D}"/usr/share/fish/vendor_completions.d/incus.fish || die
+ "${bindir}"/incus completion zsh > "${D}"/usr/share/zsh/site-functions/_incus || die
+ fi
dodoc AUTHORS
dodoc -r doc/*
next reply other threads:[~2024-04-22 17:02 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-22 17:02 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-03 7:37 [gentoo-commits] repo/gentoo:master commit in: app-containers/incus/ Joonas Niilola
2025-03-03 7:37 Joonas Niilola
2025-02-28 8:41 Joonas Niilola
2025-02-21 14:31 Joonas Niilola
2025-02-08 8:00 Joonas Niilola
2025-01-26 7:33 Joonas Niilola
2024-12-21 16:19 Joonas Niilola
2024-12-15 7:23 Joonas Niilola
2024-12-15 7:23 Joonas Niilola
2024-12-14 7:13 Joonas Niilola
2024-11-17 7:10 Joonas Niilola
2024-10-27 12:43 Maciej Barć
2024-10-25 11:09 Joonas Niilola
2024-10-20 6:27 Joonas Niilola
2024-10-10 16:33 James Le Cuirot
2024-10-04 12:57 Joonas Niilola
2024-09-28 12:46 Joonas Niilola
2024-09-18 7:29 Joonas Niilola
2024-09-10 16:14 Joonas Niilola
2024-09-10 16:14 Joonas Niilola
2024-09-09 15:15 Joonas Niilola
2024-08-27 7:00 Joonas Niilola
2024-08-10 6:08 Joonas Niilola
2024-08-03 7:18 Joonas Niilola
2024-08-01 4:53 Joonas Niilola
2024-07-12 8:58 Joonas Niilola
2024-07-12 8:58 Joonas Niilola
2024-06-29 6:22 Joonas Niilola
2024-06-08 6:39 Joonas Niilola
2024-06-01 6:38 Joonas Niilola
2024-05-08 7:13 Joonas Niilola
2024-05-05 6:28 Joonas Niilola
2024-04-23 10:43 Joonas Niilola
2024-04-22 17:02 Joonas Niilola
2024-04-22 17:02 Joonas Niilola
2024-04-05 7:57 Joonas Niilola
2024-03-26 8:28 Joonas Niilola
2024-03-26 6:38 Joonas Niilola
2024-02-23 7:50 Joonas Niilola
2024-02-13 6:28 Joonas Niilola
2024-01-29 7:43 Joonas Niilola
2024-01-07 9:05 Sam James
2024-01-06 9:32 Joonas Niilola
2024-01-04 7:03 Joonas Niilola
2023-12-27 17:21 Joonas Niilola
2023-11-27 7:18 Joonas Niilola
2023-11-01 13:17 Joonas Niilola
2023-10-29 9:05 Joonas Niilola
2023-10-19 16:06 Joonas Niilola
2023-10-14 19:28 Joonas Niilola
2023-10-14 11:12 Joonas Niilola
2023-10-13 17:22 Joonas Niilola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1713805350.f3faf2fcadfad9548143381d664217296c4ecfc2.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox