[packages/aegisub] fix build with make 4.3 (from debian)

atler atler at pld-linux.org
Thu Jul 2 17:31:05 CEST 2020


commit 556b93bc5a6dcc4bbd5c375f7f2e393c85a8c8b8
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 2 17:28:31 2020 +0200

    fix build with make 4.3 (from debian)

 aegisub.spec   |  3 ++-
 make-4.3.patch | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/aegisub.spec b/aegisub.spec
index 3e7ea35..211a7f4 100644
--- a/aegisub.spec
+++ b/aegisub.spec
@@ -1,5 +1,4 @@
 # TODO
-# - make 4.3 breaks build
 # - unvendor vendor/luabins
 # - unvendor vendor/luajit
 # - unvendor vendor/universalchardet
@@ -22,6 +21,7 @@ Patch1:		%{name}-icu.patch
 Patch2:		%{name}-icu64.patch
 Patch3:		%{name}-boost-1.70.patch
 Patch4:		cflags.patch
+Patch5:		make-4.3.patch
 URL:		http://www.aegisub.org/
 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
 #BuildRequires:	OpenAL-devel >= 0.0.8
@@ -93,6 +93,7 @@ obsługa tych zaawansowanych funkcji.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__mv} vendor{,.keep}
 mkdir vendor
diff --git a/make-4.3.patch b/make-4.3.patch
new file mode 100644
index 0000000..6edb8c3
--- /dev/null
+++ b/make-4.3.patch
@@ -0,0 +1,23 @@
+From f4cc905c69ca69c68cb95674cefce4abc37ce046 Mon Sep 17 00:00:00 2001
+From: wangqr <wangqr at wangqr.tk>
+Date: Mon, 17 Feb 2020 14:42:07 +0800
+Subject: [PATCH] Use target name without directory in $*_OBJ macro
+
+Fix Aegisub/Aegisub#171
+---
+ Makefile.target | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.target b/Makefile.target
+index 516ef3c24..5c4c5d259 100644
+--- a/Makefile.target
++++ b/Makefile.target
+@@ -112,7 +112,7 @@ POST_FLAGS = $($@_FLAGS) -c -o $@ $<
+ # Libraries contain all object files they depend on (but they may depend on other files)
+ # Not using libtool on OS X because it has an unsilenceable warning about a
+ # compatibility issue with BSD 4.3 (wtf)
+-lib%.a: $$($$*_OBJ)
++lib%.a: $$($$(*F)_OBJ)
+ 	@$(BIN_MKDIR_P) $(dir $@)
+ 	$(BIN_AR) cru $@ $(filter %.o,$^)
+ 	$(BIN_RANLIB) $@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aegisub.git/commitdiff/bbbfb4b61e92432e4c927331ff89f48e76cd8b6f



More information about the pld-cvs-commit mailing list