summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-11-14 22:26:52 +0100
committerAlfredo Tupone <tupone@gentoo.org>2023-11-14 22:27:41 +0100
commitd7c0d71054fd98e8105ccf7a6173aa6e42bff146 (patch)
tree37adeb5ab68dbbd2b8a27acee051a63c77d69e64
parentdev-lang/julia-bin: add 1.9.4 (diff)
downloadgentoo-d7c0d71054fd98e8105ccf7a6173aa6e42bff146.tar.gz
gentoo-d7c0d71054fd98e8105ccf7a6173aa6e42bff146.tar.bz2
gentoo-d7c0d71054fd98e8105ccf7a6173aa6e42bff146.zip
dev-libs/libnop: Failures with -D_GLIBCXX_ASSERTIONS
Closes: https://bugs.gentoo.org/884417 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
-rw-r--r--dev-libs/libnop/files/libnop-2021.11.03-libstdc++.patch11
-rw-r--r--dev-libs/libnop/libnop-2021.11.03.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/libnop/files/libnop-2021.11.03-libstdc++.patch b/dev-libs/libnop/files/libnop-2021.11.03-libstdc++.patch
new file mode 100644
index 000000000000..9a65070ec7f1
--- /dev/null
+++ b/dev-libs/libnop/files/libnop-2021.11.03-libstdc++.patch
@@ -0,0 +1,11 @@
+--- a/test/test_reader.h 2023-11-14 22:21:10.528641740 +0100
++++ b/test/test_reader.h 2023-11-14 22:21:23.195431970 +0100
+@@ -57,7 +57,7 @@
+ if (length_bytes > (data_.size() - index_))
+ return ErrorStatus::ReadLimitReached;
+
+- std::copy(&data_[index_], &data_[index_ + length_bytes], begin_byte);
++ std::copy(&data_[index_], &data_[index_] + length_bytes, begin_byte);
+ index_ += length_bytes;
+ return {};
+ }
diff --git a/dev-libs/libnop/libnop-2021.11.03.ebuild b/dev-libs/libnop/libnop-2021.11.03.ebuild
index e673dc314e91..6ec8f7df146d 100644
--- a/dev-libs/libnop/libnop-2021.11.03.ebuild
+++ b/dev-libs/libnop/libnop-2021.11.03.ebuild
@@ -19,6 +19,8 @@ RESTRICT="!test? ( test )"
S="${WORKDIR}"/${PN}-${CommitId}
+PATCHES=( "${FILESDIR}"/${P}-libstdc++.patch )
+
src_compile() {
use test && default
}