public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/files/, sys-fs/dwarfs/
Date: Mon,  4 Nov 2024 18:27:17 +0000 (UTC)	[thread overview]
Message-ID: <1730710554.ce36e348a775ed38d92a5d040b6613a054a0b1b9.davidroman@gentoo> (raw)

commit:     ce36e348a775ed38d92a5d040b6613a054a0b1b9
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Mon Nov  4 08:55:42 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Nov  4 08:55:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ce36e348

sys-fs/dwarfs: Fixed building agains boost-1.86.0

See-also: https://github.com/mhx/dwarfs/issues/242

See-also: https://github.com/mhx/dwarfs/issues/237
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 ...fs-0.10.1-r2.ebuild => dwarfs-0.10.1-r3.ebuild} |  1 +
 sys-fs/dwarfs/files/dwarfs-0.10.1-boost-1.86.patch | 57 ++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/sys-fs/dwarfs/dwarfs-0.10.1-r2.ebuild b/sys-fs/dwarfs/dwarfs-0.10.1-r3.ebuild
similarity index 98%
rename from sys-fs/dwarfs/dwarfs-0.10.1-r2.ebuild
rename to sys-fs/dwarfs/dwarfs-0.10.1-r3.ebuild
index 7aa877970..6927d0d24 100644
--- a/sys-fs/dwarfs/dwarfs-0.10.1-r2.ebuild
+++ b/sys-fs/dwarfs/dwarfs-0.10.1-r3.ebuild
@@ -17,6 +17,7 @@ S="${WORKDIR}/dwarfs-${PV}"
 
 PATCHES=(
 	"${FILESDIR}"/dwarfs-libfmt9.patch
+	"${FILESDIR}"/dwarfs-0.10.1-boost-1.86.patch
 )
 
 RDEPEND="

diff --git a/sys-fs/dwarfs/files/dwarfs-0.10.1-boost-1.86.patch b/sys-fs/dwarfs/files/dwarfs-0.10.1-boost-1.86.patch
new file mode 100644
index 000000000..1b3037232
--- /dev/null
+++ b/sys-fs/dwarfs/files/dwarfs-0.10.1-boost-1.86.patch
@@ -0,0 +1,57 @@
+From 6c8a1cdbd3c889c9cdf8bbbfe7c39cc9c25202a0 Mon Sep 17 00:00:00 2001
+From: Marcus Holland-Moritz <github@mhxnet.de>
+Date: Sun, 25 Aug 2024 10:10:21 +0200
+Subject: [PATCH] fix: workaround for new boost versions which have a `process`
+ component
+
+---
+ CMakeLists.txt               | 4 +++-
+ cmake/dwarfs-config.cmake.in | 4 +++-
+ cmake/libdwarfs.cmake        | 4 ++++
+ 3 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 331a4334..3350f794 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -187,7 +187,9 @@ include(${CMAKE_SOURCE_DIR}/cmake/need_range_v3.cmake)
+ if(WITH_LIBDWARFS)
+   include(${CMAKE_SOURCE_DIR}/cmake/need_phmap.cmake)
+ 
+-  find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED COMPONENTS chrono iostreams program_options)
++  find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED CONFIG
++               COMPONENTS chrono iostreams program_options
++               OPTIONAL_COMPONENTS process)
+ 
+   if(APPLE)
+     if(USE_HOMEBREW_LIBARCHIVE)
+diff --git a/cmake/dwarfs-config.cmake.in b/cmake/dwarfs-config.cmake.in
+index 3ae4e10e..342c6177 100644
+--- a/cmake/dwarfs-config.cmake.in
++++ b/cmake/dwarfs-config.cmake.in
+@@ -21,7 +21,9 @@ endif()
+ find_dependency(Threads REQUIRED)
+ find_dependency(fmt CONFIG REQUIRED)
+ find_dependency(gflags CONFIG REQUIRED)
+-find_dependency(Boost @BOOST_REQUIRED_VERSION@ REQUIRED COMPONENTS chrono context filesystem iostreams program_options regex system thread)
++find_dependency(Boost @BOOST_REQUIRED_VERSION@ REQUIRED CONFIG
++                COMPONENTS chrono context filesystem iostreams program_options regex system thread
++                OPTIONAL_COMPONENTS process)
+ pkg_check_modules(LIBCRYPTO REQUIRED IMPORTED_TARGET libcrypto>=@LIBCRYPTO_REQUIRED_VERSION@)
+ pkg_check_modules(LIBARCHIVE REQUIRED IMPORTED_TARGET libarchive>=@LIBARCHIVE_REQUIRED_VERSION@)
+ pkg_check_modules(XXHASH REQUIRED IMPORTED_TARGET libxxhash>=@XXHASH_REQUIRED_VERSION@)
+diff --git a/cmake/libdwarfs.cmake b/cmake/libdwarfs.cmake
+index 6b0d227f..fe73d05b 100644
+--- a/cmake/libdwarfs.cmake
++++ b/cmake/libdwarfs.cmake
+@@ -221,6 +221,10 @@ target_link_libraries(
+   dwarfs_fsst
+ )
+ 
++if(TARGET Boost::process)
++  target_link_libraries(dwarfs_common PUBLIC Boost::process)
++endif()
++
+ list(APPEND LIBDWARFS_TARGETS
+   dwarfs_common
+   dwarfs_reader


             reply	other threads:[~2024-11-04 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 18:27 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-25 15:02 [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/files/, sys-fs/dwarfs/ David Roman
2021-05-02  9:27 Theo Anderson
2021-04-29  8:23 Michał Górny
2021-04-29  8:23 Michał Górny
2021-03-11 13:16 Andrew Ammerlaan

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=1730710554.ce36e348a775ed38d92a5d040b6613a054a0b1b9.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --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