commit: 2864921f7f8577abe9b6344df19a206e7c2b434b Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Tue Jul 29 12:50:15 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jul 31 12:33:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2864921f
net-libs/libtorrent: fix GREP call scripts/common.m4 calls $GREP at configure time. this can cause problems with slibtool and maybe also split-usr env. problem raised in the forum Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43230 Closes: https://github.com/gentoo/gentoo/pull/43230 Signed-off-by: Sam James <sam <AT> gentoo.org> .../libtorrent/files/libtorrent-0.15.5-find_grep.patch | 14 ++++++++++++++ net-libs/libtorrent/libtorrent-0.15.5.ebuild | 2 ++ 2 files changed, 16 insertions(+) diff --git a/net-libs/libtorrent/files/libtorrent-0.15.5-find_grep.patch b/net-libs/libtorrent/files/libtorrent-0.15.5-find_grep.patch new file mode 100644 index 000000000000..039d57231c13 --- /dev/null +++ b/net-libs/libtorrent/files/libtorrent-0.15.5-find_grep.patch @@ -0,0 +1,14 @@ +https://github.com/rakshasa/libtorrent/pull/539.patch +configure fails with slibtool because it doesn't define GREP +diff --git a/scripts/common.m4 b/scripts/common.m4 +index 480bdef..7129204 100644 +--- a/scripts/common.m4 ++++ b/scripts/common.m4 +@@ -23,6 +23,7 @@ AC_DEFUN([TORRENT_WITH_SYSROOT], [ + + AC_DEFUN([TORRENT_REMOVE_UNWANTED], + [ ++ AC_REQUIRE([AC_PROG_GREP]) + values_to_check=`for i in $2; do echo $i; done` + unwanted_values=`for i in $3; do echo $i; done` + if test -z "${unwanted_values}"; then diff --git a/net-libs/libtorrent/libtorrent-0.15.5.ebuild b/net-libs/libtorrent/libtorrent-0.15.5.ebuild index c4c97036b633..6f74e0f201b8 100644 --- a/net-libs/libtorrent/libtorrent-0.15.5.ebuild +++ b/net-libs/libtorrent/libtorrent-0.15.5.ebuild @@ -33,6 +33,8 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-0.14.0-tests-address.patch "${FILESDIR}"/${PN}-0.15.3-unbundle_udns.patch + # https://github.com/rakshasa/libtorrent/pull/539.patch + "${FILESDIR}"/${PN}-0.15.5-find_grep.patch ) src_prepare() {
