summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2015-12-28 01:49:39 +0300
committerIlya Tumaykin <itumaykin@gmail.com>2015-12-28 02:24:47 +0300
commit4da8aa027a5cc89f46190a0374b04b1cdc182ff5 (patch)
tree1e8e4df9b7409f44f74f2f2241018b69af8f274c /media-video/aegisub
parentsys-devel/llvm: Backport msan fix for 4.1+ kernels, bug #569894 (diff)
downloadgentoo-4da8aa027a5cc89f46190a0374b04b1cdc182ff5.tar.gz
gentoo-4da8aa027a5cc89f46190a0374b04b1cdc182ff5.tar.bz2
gentoo-4da8aa027a5cc89f46190a0374b04b1cdc182ff5.zip
media-video/aegisub: adjust pthread patch wrt bug 568878
- Always append '-lpthread' to LIBS_PTHREAD since build system fails to do so when needed. - Add CFLAGS_PTHREAD to libaegisub build since it uses pthreads. - Remove CFLAGS_PTHREAD from tools build since it does not use pthreads, but only links with archive that includes pthread symbols. Gentoo-Bug: 568878 Package-Manager: portage-2.2.24
Diffstat (limited to 'media-video/aegisub')
-rw-r--r--media-video/aegisub/files/aegisub-3.2.2-add-missing-pthread-flags.patch36
-rw-r--r--media-video/aegisub/files/aegisub-9999-add-missing-pthread-flags.patch35
2 files changed, 54 insertions, 17 deletions
diff --git a/media-video/aegisub/files/aegisub-3.2.2-add-missing-pthread-flags.patch b/media-video/aegisub/files/aegisub-3.2.2-add-missing-pthread-flags.patch
index c1aa14a3c83c..ed45de7a9bd3 100644
--- a/media-video/aegisub/files/aegisub-3.2.2-add-missing-pthread-flags.patch
+++ b/media-video/aegisub/files/aegisub-3.2.2-add-missing-pthread-flags.patch
@@ -1,16 +1,40 @@
+diff --git a/Makefile.inc.in b/Makefile.inc.in
+index c93b9dc..8c5678a 100644
+--- a/Makefile.inc.in
++++ b/Makefile.inc.in
+@@ -99,7 +99,7 @@ LIBS_LIBPULSE = @LIBPULSE_LIBS@
+ LIBS_LUA = $(TOP)vendor/luajit/src/libluajit.a
+ LIBS_OPENAL = @OPENAL_LIBS@
+ LIBS_PORTAUDIO = @PORTAUDIO_LIBS@
+-LIBS_PTHREAD = @PTHREAD_LIBS@
++LIBS_PTHREAD = @PTHREAD_LIBS@ -lpthread
+
+ ifeq (yes, $(BUILD_DARWIN))
+ LIBS_LUA = $(TOP)vendor/luajit/src/libluajit-aegisub.so
+diff --git a/libaegisub/Makefile b/libaegisub/Makefile
+index 64204ef..178044d 100644
+--- a/libaegisub/Makefile
++++ b/libaegisub/Makefile
+@@ -41,7 +41,8 @@ aegisub_OBJ += $(d)common/dispatch.o
+ endif
+
+ aegisub_PCH := $(d)lagi_pre.h
+-aegisub_CPPFLAGS := -I$(d)include -I$(TOP) -fPIC $(CPPFLAGS_BOOST) $(CFLAGS_LUA)
++aegisub_CPPFLAGS := -I$(d)include -I$(TOP) -fPIC \
++ $(CFLAGS_PTHREAD) $(CPPFLAGS_BOOST) $(CFLAGS_LUA)
+
+ $(d)common/charset_conv.o_FLAGS := $(CFLAGS_ICONV)
+ $(d)common/parser.o_FLAGS := -ftemplate-depth=256
diff --git a/tools/Makefile b/tools/Makefile
-index 81bcef3..f9a6cd3 100644
+index 81bcef3..d9f64b8 100644
--- a/tools/Makefile
+++ b/tools/Makefile
-@@ -7,8 +7,9 @@ PROGRAM += $(d)osx-bundle-restart-helper
+@@ -7,7 +7,7 @@ PROGRAM += $(d)osx-bundle-restart-helper
endif
repack-thes-dict_OBJ := $(d)repack-thes-dict.o $(TOP)lib/libaegisub.a
-repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU)
--repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU)
+repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD)
-+repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include \
-+ $(CFLAGS_ICU) $(CFLAGS_PTHREAD)
+ repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU)
PROGRAM += $(d)repack-thes-dict
-
diff --git a/media-video/aegisub/files/aegisub-9999-add-missing-pthread-flags.patch b/media-video/aegisub/files/aegisub-9999-add-missing-pthread-flags.patch
index 1d709fe18fdd..363136134e84 100644
--- a/media-video/aegisub/files/aegisub-9999-add-missing-pthread-flags.patch
+++ b/media-video/aegisub/files/aegisub-9999-add-missing-pthread-flags.patch
@@ -1,14 +1,27 @@
-diff --git a/tools/Makefile b/tools/Makefile
-index d9f64b8..f9a6cd3 100644
---- a/tools/Makefile
-+++ b/tools/Makefile
-@@ -8,7 +8,8 @@ endif
+diff --git a/Makefile.inc.in b/Makefile.inc.in
+index d1e1da4..699ac77 100644
+--- a/Makefile.inc.in
++++ b/Makefile.inc.in
+@@ -99,7 +99,7 @@ LIBS_LIBPULSE = @LIBPULSE_LIBS@
+ LIBS_LUA = $(TOP)vendor/luajit/src/libluajit.a
+ LIBS_OPENAL = @OPENAL_LIBS@
+ LIBS_PORTAUDIO = @PORTAUDIO_LIBS@
+-LIBS_PTHREAD = @PTHREAD_LIBS@
++LIBS_PTHREAD = @PTHREAD_LIBS@ -lpthread
- repack-thes-dict_OBJ := $(d)repack-thes-dict.o $(TOP)lib/libaegisub.a
- repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD)
--repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU)
-+repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include \
-+ $(CFLAGS_ICU) $(CFLAGS_PTHREAD)
+ ifeq (yes, $(BUILD_DARWIN))
+ LIBS_LUA = $(TOP)vendor/luajit/src/libluajit-aegisub.so
+diff --git a/libaegisub/Makefile b/libaegisub/Makefile
+index 4efb685..f53c372 100644
+--- a/libaegisub/Makefile
++++ b/libaegisub/Makefile
+@@ -44,7 +44,8 @@ aegisub_OBJ += $(d)common/dispatch.o
+ endif
- PROGRAM += $(d)repack-thes-dict
+ aegisub_PCH := $(d)lagi_pre.h
+-aegisub_CPPFLAGS := -I$(d)include -I$(TOP) $(CPPFLAGS_BOOST) $(CFLAGS_LUA)
++aegisub_CPPFLAGS := -I$(d)include -I$(TOP) \
++ $(CFLAGS_PTHREAD) $(CPPFLAGS_BOOST) $(CFLAGS_LUA)
+ $(d)common/charset_conv.o_FLAGS := $(CFLAGS_ICONV)
+ $(d)common/parser.o_FLAGS := -ftemplate-depth=256