From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/uriparser/, dev-libs/uriparser/files/
Date: Sun, 28 Apr 2019 15:42:46 +0000 (UTC) [thread overview]
Message-ID: <1556466130.3d5e8cafbc84ddad509d424bd6d35c1d4e0c748b.sping@gentoo> (raw)
commit: 3d5e8cafbc84ddad509d424bd6d35c1d4e0c748b
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 15:42:10 2019 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 15:42:10 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d5e8caf
dev-libs/uriparser: Fix tests for 0.9.3
Upstream: https://github.com/uriparser/uriparser/issues/67
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-2.3.64, Repoman-2.3.12
.../uriparser/files/uriparser-0.9.3-tests.patch | 23 ++++++++++++++++++++++
dev-libs/uriparser/uriparser-0.9.3.ebuild | 4 ++++
2 files changed, 27 insertions(+)
diff --git a/dev-libs/uriparser/files/uriparser-0.9.3-tests.patch b/dev-libs/uriparser/files/uriparser-0.9.3-tests.patch
new file mode 100644
index 00000000000..ad6f1c1311d
--- /dev/null
+++ b/dev-libs/uriparser/files/uriparser-0.9.3-tests.patch
@@ -0,0 +1,23 @@
+From f870e6c68696a6018702caa5c8a2feba9b0f99fa Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 28 Apr 2019 17:35:31 +0200
+Subject: [PATCH] tests: No longer crash when compiled with -DNDEBUG (fixes
+ #67)
+
+---
+ test/MemoryManagerSuite.cpp | 2 ++
+ 1 files changed, 2 insertions(+)
+
+diff --git a/test/MemoryManagerSuite.cpp b/test/MemoryManagerSuite.cpp
+index 85f498b..4cda664 100644
+--- a/test/MemoryManagerSuite.cpp
++++ b/test/MemoryManagerSuite.cpp
+@@ -19,6 +19,8 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
++#undef NDEBUG // because we rely on assert(3) further down
++
+ #include <cassert>
+ #include <cerrno>
+ #include <cstring> // memcpy
diff --git a/dev-libs/uriparser/uriparser-0.9.3.ebuild b/dev-libs/uriparser/uriparser-0.9.3.ebuild
index 49ec684913d..0c33c807ef4 100644
--- a/dev-libs/uriparser/uriparser-0.9.3.ebuild
+++ b/dev-libs/uriparser/uriparser-0.9.3.ebuild
@@ -24,6 +24,10 @@ REQUIRED_USE="test? ( unicode )"
DOCS=( AUTHORS ChangeLog THANKS )
+PATCHES=(
+ "${FILESDIR}"/${P}-tests.patch
+)
+
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
next reply other threads:[~2019-04-28 15:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 15:42 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-03-31 20:09 [gentoo-commits] repo/gentoo:master commit in: dev-libs/uriparser/, dev-libs/uriparser/files/ Sebastian Pipping
2018-01-24 20:48 Sebastian Pipping
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=1556466130.3d5e8cafbc84ddad509d424bd6d35c1d4e0c748b.sping@gentoo \
--to=sping@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