From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB73C158089 for ; Mon, 25 Sep 2023 04:05:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 811192BC02C; Mon, 25 Sep 2023 04:05:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE5592BC02D for ; Mon, 25 Sep 2023 04:05:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C468C335C9F for ; Mon, 25 Sep 2023 04:05:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 280E31260 for ; Mon, 25 Sep 2023 04:05:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1695614613.eb6d4b01b2aa705c36158d49aa4f720906d55ae7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pkgcraft/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/pkgcraft/pkgcraft-0.0.11-r1.ebuild sys-libs/pkgcraft/pkgcraft-0.0.11.ebuild sys-libs/pkgcraft/pkgcraft-9999.ebuild X-VCS-Directories: sys-libs/pkgcraft/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: eb6d4b01b2aa705c36158d49aa4f720906d55ae7 X-VCS-Branch: master Date: Mon, 25 Sep 2023 04:05:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ca285ab-ff54-4c3c-8023-1957b6879ed5 X-Archives-Hash: dd014310c2fe6ca1377149d3b2a545b4 commit: eb6d4b01b2aa705c36158d49aa4f720906d55ae7 Author: Sam James gentoo org> AuthorDate: Mon Sep 25 04:03:15 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 25 04:03:33 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb6d4b01 sys-libs/pkgcraft: respect USE=debug properly ... or try to, at least. I still feel like this is so easy to get wrong (and I keeo doing it). Signed-off-by: Sam James gentoo.org> .../pkgcraft/{pkgcraft-0.0.11.ebuild => pkgcraft-0.0.11-r1.ebuild} | 4 +++- sys-libs/pkgcraft/pkgcraft-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-libs/pkgcraft/pkgcraft-0.0.11.ebuild b/sys-libs/pkgcraft/pkgcraft-0.0.11-r1.ebuild similarity index 92% rename from sys-libs/pkgcraft/pkgcraft-0.0.11.ebuild rename to sys-libs/pkgcraft/pkgcraft-0.0.11-r1.ebuild index f839051b1542..544df0ae2420 100644 --- a/sys-libs/pkgcraft/pkgcraft-0.0.11.ebuild +++ b/sys-libs/pkgcraft/pkgcraft-0.0.11-r1.ebuild @@ -54,6 +54,7 @@ src_compile() { --library-type=cdylib --prefix=/usr --libdir="/usr/$(get_libdir)" + $(usev !debug '--release') ) # For scallop building bash @@ -71,7 +72,7 @@ src_test() { # Need nextest per README (separate processes required) # Invocation from https://github.com/pkgcraft/pkgcraft/blob/main/.github/workflows/ci.yml#L56 - edo cargo nextest run --color always --all-features + edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests else # There are no tests for pkgcraft-c. Test via e.g. dev-python/pkgcraft. :; @@ -84,6 +85,7 @@ src_install() { --prefix=/usr --libdir="/usr/$(get_libdir)" --destdir="${ED}" + $(usev !debug '--release') ) edo cargo cinstall "${cargoargs[@]}" diff --git a/sys-libs/pkgcraft/pkgcraft-9999.ebuild b/sys-libs/pkgcraft/pkgcraft-9999.ebuild index f839051b1542..544df0ae2420 100644 --- a/sys-libs/pkgcraft/pkgcraft-9999.ebuild +++ b/sys-libs/pkgcraft/pkgcraft-9999.ebuild @@ -54,6 +54,7 @@ src_compile() { --library-type=cdylib --prefix=/usr --libdir="/usr/$(get_libdir)" + $(usev !debug '--release') ) # For scallop building bash @@ -71,7 +72,7 @@ src_test() { # Need nextest per README (separate processes required) # Invocation from https://github.com/pkgcraft/pkgcraft/blob/main/.github/workflows/ci.yml#L56 - edo cargo nextest run --color always --all-features + edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests else # There are no tests for pkgcraft-c. Test via e.g. dev-python/pkgcraft. :; @@ -84,6 +85,7 @@ src_install() { --prefix=/usr --libdir="/usr/$(get_libdir)" --destdir="${ED}" + $(usev !debug '--release') ) edo cargo cinstall "${cargoargs[@]}"