public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libnop/, dev-libs/libnop/files/
@ 2023-11-14 21:28 Alfredo Tupone
  0 siblings, 0 replies; only message in thread
From: Alfredo Tupone @ 2023-11-14 21:28 UTC (permalink / raw
  To: gentoo-commits

commit:     d7c0d71054fd98e8105ccf7a6173aa6e42bff146
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 21:26:52 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 21:27:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c0d710

dev-libs/libnop: Failures with -D_GLIBCXX_ASSERTIONS

Closes: https://bugs.gentoo.org/884417
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/libnop/files/libnop-2021.11.03-libstdc++.patch | 11 +++++++++++
 dev-libs/libnop/libnop-2021.11.03.ebuild                |  2 ++
 2 files changed, 13 insertions(+)

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
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-14 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 21:28 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libnop/, dev-libs/libnop/files/ Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox