From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/nix/
Date: Sun, 4 Nov 2018 22:50:25 +0000 (UTC) [thread overview]
Message-ID: <1541371817.f7baa33d5fef62f96a594cfac8b1e1e86e91c949.slyfox@gentoo> (raw)
commit: f7baa33d5fef62f96a594cfac8b1e1e86e91c949
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 4 22:49:58 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Nov 4 22:50:17 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7baa33d
sys-apps/nix: add USE=s3 for AWS S3support, bug #670256
Disable automagic autodetection of S3 backend. Does not
fix originally reported build failure in bug #670256 yet.
Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/670256
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
sys-apps/nix/metadata.xml | 1 +
sys-apps/nix/nix-2.0.4.ebuild | 15 ++++++++++++---
sys-apps/nix/nix-2.1.3.ebuild | 12 ++++++++++--
3 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/sys-apps/nix/metadata.xml b/sys-apps/nix/metadata.xml
index ad64c7e5102..c7035d7472f 100644
--- a/sys-apps/nix/metadata.xml
+++ b/sys-apps/nix/metadata.xml
@@ -8,6 +8,7 @@
<use>
<flag name="etc_profile">Install /etc/profile.d/ entry to inject nix support for all users.</flag>
<flag name="gc">Enable garbage collection in the Nix expression evaluator (use <pkg>dev-libs/boehm-gc</pkg>).</flag>
+ <flag name="s3">Enable Amazon S3 bucket to load and store packages (use <pkg>dev-libs/aws-sdk-cpp</pkg>).</flag>
<flag name="sodium">Use <pkg>dev-libs/libsodium</pkg> for cryptography</flag>
</use>
</pkgmetadata>
diff --git a/sys-apps/nix/nix-2.0.4.ebuild b/sys-apps/nix/nix-2.0.4.ebuild
index bea6bd1a424..965584cf6f0 100644
--- a/sys-apps/nix/nix-2.0.4.ebuild
+++ b/sys-apps/nix/nix-2.0.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -12,7 +12,7 @@ SRC_URI="http://nixos.org/releases/${PN}/${P}/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+etc_profile +gc doc sodium"
+IUSE="+etc_profile +gc doc s3 sodium"
RDEPEND="
app-arch/brotli
@@ -28,6 +28,7 @@ RDEPEND="
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
)
+ s3? ( dev-libs/aws-sdk-cpp )
sodium? ( dev-libs/libsodium:0= )
"
DEPEND="${RDEPEND}
@@ -79,9 +80,17 @@ src_prepare() {
}
src_configure() {
+ local econf_args=()
+
+ if ! use s3; then
+ # Disable automagic depend: bug #670256
+ export ac_cv_header_aws_s3_S3Client_h=no
+ fi
+
econf \
--localstatedir="${EPREFIX}"/nix/var \
- $(use_enable gc)
+ $(use_enable gc) \
+ "${args[@]}"
}
src_compile() {
diff --git a/sys-apps/nix/nix-2.1.3.ebuild b/sys-apps/nix/nix-2.1.3.ebuild
index a104f3b883a..4eb0d459fc8 100644
--- a/sys-apps/nix/nix-2.1.3.ebuild
+++ b/sys-apps/nix/nix-2.1.3.ebuild
@@ -13,7 +13,7 @@ LICENSE="LGPL-2.1"
SLOT="0"
#keywords are blocked by boost-1.66
#KEYWORDS="~amd64 ~x86"
-IUSE="+etc_profile +gc doc sodium"
+IUSE="+etc_profile +gc doc s3 sodium"
RDEPEND="
app-arch/brotli
@@ -30,6 +30,7 @@ RDEPEND="
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
)
+ s3? ( dev-libs/aws-sdk-cpp )
sodium? ( dev-libs/libsodium:0= )
"
DEPEND="${RDEPEND}
@@ -81,9 +82,16 @@ src_prepare() {
}
src_configure() {
+ local econf_args=()
+
+ if ! use s3; then
+ # Disable automagic depend: bug #670256
+ export ac_cv_header_aws_s3_S3Client_h=no
+ fi
econf \
--localstatedir="${EPREFIX}"/nix/var \
- $(use_enable gc)
+ $(use_enable gc) \
+ "${args[@]}"
}
src_compile() {
next reply other threads:[~2018-11-04 22:50 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-04 22:50 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-10-13 11:57 [gentoo-commits] repo/gentoo:master commit in: sys-apps/nix/ Sergei Trofimovich
2019-10-10 22:35 Sergei Trofimovich
2019-10-10 22:35 Sergei Trofimovich
2019-09-20 22:44 Sergei Trofimovich
2019-09-07 8:03 Sergei Trofimovich
2019-08-11 11:20 David Seifert
2019-06-30 20:35 Sergei Trofimovich
2019-06-30 20:35 Sergei Trofimovich
2019-05-15 7:21 Sergei Trofimovich
2019-04-26 15:47 Sergei Trofimovich
2019-02-11 23:36 Sergei Trofimovich
2019-01-12 12:59 Sergei Trofimovich
2018-10-02 21:29 Sergei Trofimovich
2018-10-02 21:29 Sergei Trofimovich
2018-09-19 22:59 Sergei Trofimovich
2018-09-19 22:59 Sergei Trofimovich
2018-09-06 22:37 Sergei Trofimovich
2018-09-06 22:37 Sergei Trofimovich
2018-09-04 8:19 Sergei Trofimovich
2018-06-08 15:31 Sergei Trofimovich
2018-06-08 15:31 Sergei Trofimovich
2018-05-04 22:24 Sergei Trofimovich
2018-04-20 22:16 Sergei Trofimovich
2017-12-21 8:01 Sergei Trofimovich
2017-09-15 20:50 Sergei Trofimovich
2017-09-15 20:50 Sergei Trofimovich
2017-07-18 20:15 Sergei Trofimovich
2017-07-18 20:15 Sergei Trofimovich
2017-07-13 18:42 Sergei Trofimovich
2017-06-19 20:27 Sergei Trofimovich
2017-06-12 21:23 Sergei Trofimovich
2017-05-07 13:10 Michał Górny
2017-05-07 11:22 Sergei Trofimovich
2017-05-07 11:22 Sergei Trofimovich
2017-04-17 17:38 Sergei Trofimovich
2017-02-02 21:18 Sergei Trofimovich
2017-02-01 22:18 Sergei Trofimovich
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=1541371817.f7baa33d5fef62f96a594cfac8b1e1e86e91c949.slyfox@gentoo \
--to=slyfox@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