Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/calamares/files/, app-admin/calamares/
Date: Sat, 18 Mar 2023 20:09:27
Message-Id: 1679169793.c497ddda658af5747f1c3a1f72df7b80cec047bd.ulm@gentoo
1 commit: c497ddda658af5747f1c3a1f72df7b80cec047bd
2 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
3 AuthorDate: Sat Mar 18 19:58:08 2023 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 20:03:13 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c497ddda
7
8 app-admin/calamares: respect LDFLAGS
9
10 Closes: https://bugs.gentoo.org/865281
11 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 ...{calamares-3.2.60.ebuild => calamares-3.2.60-r1.ebuild} | 4 ++++
15 app-admin/calamares/files/calamares-3.2.60-ldflags.patch | 14 ++++++++++++++
16 2 files changed, 18 insertions(+)
17
18 diff --git a/app-admin/calamares/calamares-3.2.60.ebuild b/app-admin/calamares/calamares-3.2.60-r1.ebuild
19 similarity index 98%
20 rename from app-admin/calamares/calamares-3.2.60.ebuild
21 rename to app-admin/calamares/calamares-3.2.60-r1.ebuild
22 index 138cda4176eb..0a569c256030 100644
23 --- a/app-admin/calamares/calamares-3.2.60.ebuild
24 +++ b/app-admin/calamares/calamares-3.2.60-r1.ebuild
25 @@ -64,6 +64,10 @@ RDEPEND="${COMMON_DEPEND}
26 upower? ( sys-power/upower )
27 "
28
29 +PATCHES=(
30 + "${FILESDIR}/${P}-ldflags.patch"
31 +)
32 +
33 src_prepare() {
34 ecm_src_prepare
35 export PYTHON_INCLUDE_DIRS="$(python_get_includedir)" \
36
37 diff --git a/app-admin/calamares/files/calamares-3.2.60-ldflags.patch b/app-admin/calamares/files/calamares-3.2.60-ldflags.patch
38 new file mode 100644
39 index 000000000000..f81c49b50641
40 --- /dev/null
41 +++ b/app-admin/calamares/files/calamares-3.2.60-ldflags.patch
42 @@ -0,0 +1,14 @@
43 +From: Mario Haustein <mario.haustein@×××××××××××××××.de>
44 +Bug: https://bugs.gentoo.org/865281
45 +
46 +--- a/CMakeLists.txt
47 ++++ b/CMakeLists.txt
48 +@@ -203,7 +203,7 @@ set( CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG" )
49 + set( CMAKE_C_FLAGS_RELEASE "-O4 -DNDEBUG" )
50 + set( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g" )
51 +
52 +-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined -Wl,--fatal-warnings" )
53 ++set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined -Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}" )
54 +
55 + if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
56 + message( STATUS "Found Clang ${CMAKE_CXX_COMPILER_VERSION}, setting up Clang-specific compiler flags." )