commit:     d97fe59eb78fc27056d52f3c8d2609ea3ce09bb1
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 15 10:13:44 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jun 15 10:13:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d97fe59e

games-puzzle/icebreaker: Silence rpm not found errors with patch

Closes: https://bugs.gentoo.org/934180
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 .../icebreaker-2.2.2_p20231115-makefile.patch      | 32 ++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git 
a/games-puzzle/icebreaker/files/icebreaker-2.2.2_p20231115-makefile.patch 
b/games-puzzle/icebreaker/files/icebreaker-2.2.2_p20231115-makefile.patch
index 4fec6a700f3d..7d2bd50cb6f0 100644
--- a/games-puzzle/icebreaker/files/icebreaker-2.2.2_p20231115-makefile.patch
+++ b/games-puzzle/icebreaker/files/icebreaker-2.2.2_p20231115-makefile.patch
@@ -1,7 +1,7 @@
 From a5950b94d56f6e35c3dca2e1ad2ff334aacaa070 Mon Sep 17 00:00:00 2001
 From: James Le Cuirot <ch...@gentoo.org>
 Date: Wed, 12 Jun 2024 22:50:15 +0100
-Subject: [PATCH 1/2] Don't include -Werror in CFLAGS
+Subject: [PATCH 1/3] Don't include -Werror in CFLAGS
 
 Distributions don't like -Werror because it prevents end users from
 building the software using newer compilers that may raise warnings you
@@ -45,7 +45,7 @@ index 92f60c5..17dd71a 100644
 From 6ee6046bf1f9893a3c4bfd239871b3296c90b047 Mon Sep 17 00:00:00 2001
 From: James Le Cuirot <ch...@gentoo.org>
 Date: Wed, 12 Jun 2024 22:54:52 +0100
-Subject: [PATCH 2/2] Include LDFLAGS earlier in the linking command
+Subject: [PATCH 2/3] Include LDFLAGS earlier in the linking command
 
 Some flags need to come before the inputs in order to be effective.
 ---
@@ -68,3 +68,31 @@ index 808b36b..45a7035 100644
 -- 
 2.45.1
 
+
+From 40b865e7776962d45e082fed4904b4c2690b753f Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <ch...@gentoo.org>
+Date: Sat, 15 Jun 2024 11:09:45 +0100
+Subject: [PATCH 3/3] Silence error when rpm command doesn't exist and add
+ fallback
+
+The error can trigger QA warnings in non-RPM distros.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 45a7035..5a497ce 100644
+--- a/Makefile
++++ b/Makefile
+@@ -43,7 +43,7 @@ MAKENSIS=makensis
+ WINDLLS=SDL.dll SDL_mixer.dll libgcc_s_dw2-1.dll libvorbisfile-3.dll 
libvorbis-0.dll libogg-0.dll libssp-0.dll libwinpthread-1.dll
+ export WINARCH
+ 
+-RPMARCH := $(shell  rpm --eval %{_arch} )
++RPMARCH := $(shell rpm --eval %{_arch} 2>/dev/null || echo none)
+ RPMOPTS=
+ RPMCRAZYDEFINES := --define "_topdir %(pwd)/rpmbuild" --define "_sourcedir 
%(pwd)" --define "_specdir %(pwd)"  --define "_tmppath %(pwd)/rpmbuild/tmp/"  
--define "_builddir %(pwd)/rpmbuild/build/" --define "_rpmdir %(pwd)" --define 
"_srcrpmdir %(pwd)" --define "_rpmfilename 
%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm"
+ 
+-- 
+2.45.1
+

Reply via email to