From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/xml-security-c/files/, dev-libs/xml-security-c/
Date: Sun, 18 Sep 2016 20:19:10 +0000 (UTC) [thread overview]
Message-ID: <1474229933.28e20b497bfbc42c4ffc5abced934791f282e0c8.soap@gentoo> (raw)
commit: 28e20b497bfbc42c4ffc5abced934791f282e0c8
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 18 18:29:49 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Sep 18 20:18:53 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28e20b49
dev-libs/xml-security-c: Allow for compiling with GCC 6
Gentoo-bug: 594234
* EAPI=6
Package-Manager: portage-2.3.0
...xml-security-c-1.6.1-nss-compilation-fix.patch} | 0
.../files/xml-security-c-1.7.3-fix-c++14.patch | 36 ++++++++++++++++++++++
.../xml-security-c/xml-security-c-1.7.3.ebuild | 17 +++++-----
3 files changed, 43 insertions(+), 10 deletions(-)
diff --git a/dev-libs/xml-security-c/files/1.6.1-nss-compilation-fix.patch b/dev-libs/xml-security-c/files/xml-security-c-1.6.1-nss-compilation-fix.patch
similarity index 100%
rename from dev-libs/xml-security-c/files/1.6.1-nss-compilation-fix.patch
rename to dev-libs/xml-security-c/files/xml-security-c-1.6.1-nss-compilation-fix.patch
diff --git a/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch b/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch
new file mode 100644
index 00000000..40783bf
--- /dev/null
+++ b/dev-libs/xml-security-c/files/xml-security-c-1.7.3-fix-c++14.patch
@@ -0,0 +1,36 @@
+Fix building with C++14, which errors out due to bool -> T* conversions
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594234
+
+--- a/xsec/enc/OpenSSL/OpenSSLCryptoSymmetricKey.hpp
++++ b/xsec/enc/OpenSSL/OpenSSLCryptoSymmetricKey.hpp
+@@ -151,7 +151,7 @@
+ SymmetricKeyMode mode = MODE_CBC,
+ const unsigned char * iv = NULL,
+ const unsigned char* tag = NULL,
+- unsigned int taglen = NULL);
++ unsigned int taglen = 0);
+
+ /**
+ * \brief Continue an decrypt operation using this key.
+--- a/xsec/enc/XSECCryptoSymmetricKey.hpp
++++ b/xsec/enc/XSECCryptoSymmetricKey.hpp
+@@ -185,7 +185,7 @@
+ SymmetricKeyMode mode = MODE_CBC,
+ const unsigned char* iv = NULL,
+ const unsigned char* tag = NULL,
+- unsigned int taglen = NULL) = 0;
++ unsigned int taglen = 0) = 0;
+
+ /**
+ * \brief Continue a decrypt operation using this key.
+--- a/xsec/tools/checksig/InteropResolver.cpp
++++ b/xsec/tools/checksig/InteropResolver.cpp
+@@ -645,7 +645,7 @@
+
+ }
+
+- return false;
++ return NULL;
+
+ }
+
diff --git a/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild b/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild
index 7058fa1..ecd3748 100644
--- a/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild
+++ b/dev-libs/xml-security-c/xml-security-c-1.7.3.ebuild
@@ -2,9 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-
-inherit eutils
+EAPI=6
DESCRIPTION="Apache C++ XML security libraries"
HOMEPAGE="http://santuario.apache.org/"
@@ -25,11 +23,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS=( CHANGELOG.txt NOTICE.txt )
-
-src_prepare() {
- epatch "${FILESDIR}/1.6.1-nss-compilation-fix.patch"
- epatch_user
-}
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.1-nss-compilation-fix.patch"
+ "${FILESDIR}/${PN}-1.7.3-fix-c++14.patch"
+)
src_configure() {
econf \
@@ -43,7 +40,7 @@ src_configure() {
src_install() {
default
if use examples ; then
- insinto /usr/share/doc/${PF}/examples
- doins xsec/samples/*.cpp
+ docinto examples
+ dodoc xsec/samples/*.cpp
fi
}
next reply other threads:[~2016-09-18 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 20:19 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-12-12 2:56 [gentoo-commits] repo/gentoo:master commit in: dev-libs/xml-security-c/files/, dev-libs/xml-security-c/ Craig Andrews
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=1474229933.28e20b497bfbc42c4ffc5abced934791f282e0c8.soap@gentoo \
--to=soap@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