public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lib3mf/, media-libs/lib3mf/files/
Date: Mon, 06 Jan 2025 01:00:06 +0000 (UTC)	[thread overview]
Message-ID: <1736125142.cbe5bdc64cab3d5958fb16256fb73004bf6cbdbc.sam@gentoo> (raw)

commit:     cbe5bdc64cab3d5958fb16256fb73004bf6cbdbc
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Jan  6 00:53:03 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 00:59:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbe5bdc6

media-libs/lib3mf: #947568

Closes: https://bugs.gentoo.org/947568
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...2-Gentoo-specific-remove-add_dependencies.patch | 29 +++++++++++++++++++++
 .../files/lib3mf-2.3.2-include-cstdint.patch       | 13 ++++++++++
 .../lib3mf-2.3.2-remove-std-and-opt-flags.patch    | 30 ++++++++++++++++++++++
 media-libs/lib3mf/lib3mf-2.3.2.ebuild              | 17 +++++-------
 4 files changed, 78 insertions(+), 11 deletions(-)

diff --git a/media-libs/lib3mf/files/lib3mf-2.3.2-Gentoo-specific-remove-add_dependencies.patch b/media-libs/lib3mf/files/lib3mf-2.3.2-Gentoo-specific-remove-add_dependencies.patch
new file mode 100644
index 000000000000..c922fd577644
--- /dev/null
+++ b/media-libs/lib3mf/files/lib3mf-2.3.2-Gentoo-specific-remove-add_dependencies.patch
@@ -0,0 +1,29 @@
+From 03bebf3282b317c68c2b8991021d02c1572f97b2 Mon Sep 17 00:00:00 2001
+From: Paul Zander <negril.nx+gentoo@gmail.com>
+Date: Mon, 6 Jan 2025 01:00:13 +0100
+Subject: [PATCH] [PATCH] [Gentoo specific] remove add_dependencies
+
+Remove the add_dependencies commands on ssl and crypto.
+We use global openssl support instead of package libressl.
+
+Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
+---
+ Tests/CPP_Bindings/CMakeLists.txt | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Tests/CPP_Bindings/CMakeLists.txt b/Tests/CPP_Bindings/CMakeLists.txt
+index 89aa33a..5f27d03 100644
+--- a/Tests/CPP_Bindings/CMakeLists.txt
++++ b/Tests/CPP_Bindings/CMakeLists.txt
+@@ -58,7 +58,7 @@ find_package(Threads REQUIRED)
+ target_link_libraries(${TESTNAME} PRIVATE Threads::Threads)
+ endif()
+ 
+-target_link_libraries(${TESTNAME} PRIVATE ${PROJECT_NAME} ssl crypto)
++target_link_libraries(${TESTNAME} PRIVATE ${PROJECT_NAME} ssl crypto)
+ 
+ if (WIN32)
+ target_link_libraries(${TESTNAME} PRIVATE ws2_32)
+-- 
+2.47.1
+

diff --git a/media-libs/lib3mf/files/lib3mf-2.3.2-include-cstdint.patch b/media-libs/lib3mf/files/lib3mf-2.3.2-include-cstdint.patch
new file mode 100644
index 000000000000..13df032b71fc
--- /dev/null
+++ b/media-libs/lib3mf/files/lib3mf-2.3.2-include-cstdint.patch
@@ -0,0 +1,13 @@
+--- a/Source/Common/Platform/NMR_EncryptionHeader.cpp
++++ b/Source/Common/Platform/NMR_EncryptionHeader.cpp
+@@ -8,6 +8,7 @@
+ #include "Common/Platform/NMR_ExportStream.h"
+ 
+ #include "Common/NMR_Architecture_Utils.h"
++#include <cstdint>
+ #include <cstring>
+ 
+ #define LIB3MF_MAXENCRYPTIONHEADERSIZE (1UL << 31)
+-- 
+2.47.1
+

diff --git a/media-libs/lib3mf/files/lib3mf-2.3.2-remove-std-and-opt-flags.patch b/media-libs/lib3mf/files/lib3mf-2.3.2-remove-std-and-opt-flags.patch
new file mode 100644
index 000000000000..0230335b87ec
--- /dev/null
+++ b/media-libs/lib3mf/files/lib3mf-2.3.2-remove-std-and-opt-flags.patch
@@ -0,0 +1,30 @@
+From 057ae273bf223573b7cdb6ec978e051220ffe401 Mon Sep 17 00:00:00 2001
+From: Peter Levine <plevine457@gmail.com>
+Date: Sat, 18 Feb 2023 13:21:29 -0500
+Subject: [PATCH] [Gentoo specific] remove optimization flags and C++ standard
+ flags
+
+Remove the lines in CMakeLists.txt that emit -std=c++11 (as wall as
+emitting -O2) to enable the compiler default, which builds against
+the latest GTest with both clang-16.0.0_pre20230107 and
+gcc-12.2.1_p20230121-r1.
+
+Signed-off-by: Peter Levine <plevine457@gmail.com>
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,12 +32,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+   # using GCC
+   add_definitions(-DBUILD_DLL)
+   add_compile_options(-Wall)
+-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O2")
+ elseif ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
+   # using GCC
+   add_definitions(-DBUILD_DLL)
+   add_compile_options(-Wall) 
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O2")
+   set(CMAKE_MACOSX_RPATH ON)
+ endif()
+ 
+-- 
+2.39.1
+

diff --git a/media-libs/lib3mf/lib3mf-2.3.2.ebuild b/media-libs/lib3mf/lib3mf-2.3.2.ebuild
index 2bd7621d2d20..c13736d8833e 100644
--- a/media-libs/lib3mf/lib3mf-2.3.2.ebuild
+++ b/media-libs/lib3mf/lib3mf-2.3.2.ebuild
@@ -23,7 +23,6 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="
 	virtual/pkgconfig
-	system-act? ( dev-go/act )
 	test? (
 		dev-cpp/gtest
 		dev-libs/openssl
@@ -32,19 +31,16 @@ BDEPEND="
 "
 
 PATCHES=(
-	"${FILESDIR}"/${PN}-2.1.0-0001-Gentoo-specific-avoid-pre-stripping-library.patch
-	"${FILESDIR}"/${P}-0001-use-system-provided-act-binary.patch
-	"${FILESDIR}"/${P}-0002-Gentoo-specific-remove-add_dependencies.patch
-	"${FILESDIR}"/${P}-0001-remove-std-and-opt-flags.patch
-	"${FILESDIR}"/${P}-include-cstdint.patch
+	"${FILESDIR}"/${PN}-2.3.2-remove-std-and-opt-flags.patch
+	"${FILESDIR}"/${PN}-2.2.0-include-cstdint.patch
+	"${FILESDIR}"/${PN}-2.3.2-include-cstdint.patch
 )
 
 src_prepare() {
 	cmake_src_prepare
 
-	rm -r Include/Libraries/{libzip,zlib} || die
-	ln -s "${EPREFIX}/usr/include" Include/Libraries/zlib || die
-	ln -s "${EPREFIX}/usr/include" Include/Libraries/libzip || die
+	# DO NOT WANT!
+	rm -r Libraries/libressl || die
 }
 
 src_configure() {
@@ -53,12 +49,11 @@ src_configure() {
 		-DLIB3MF_TESTS=$(usex test)
 		-DUSE_INCLUDED_LIBZIP=OFF
 		-DUSE_INCLUDED_ZLIB=OFF
-		-DUSE_SYSTEM_ACT=$(usex system-act)
+		-DSTRIP_BINARIES=OFF
 	)
 
 	if use test; then
 		mycmakeargs+=(
-			-DUSE_INCLUDED_GTEST=OFF
 			# code says it uses libressl, but works with openssl too
 			-DUSE_INCLUDED_SSL=OFF
 		)


             reply	other threads:[~2025-01-06  1:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-06  1:00 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-09 14:29 [gentoo-commits] repo/gentoo:master commit in: media-libs/lib3mf/, media-libs/lib3mf/files/ Sam James
2022-04-24  7:40 Joonas Niilola
2021-10-24  4:06 Sam James
2021-05-22 18:07 John Helmert III
2021-03-07  9:03 Joonas Niilola

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=1736125142.cbe5bdc64cab3d5958fb16256fb73004bf6cbdbc.sam@gentoo \
    --to=sam@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