Browse Source

we need libtool-host for pulseaudio to avoid relinking, which fails on uClibc-ng builds

Waldemar Brodkorb 9 years ago
parent
commit
05a33cef50

+ 20 - 0
package/libtool/patches/patch-m4_libtool_m4

@@ -0,0 +1,20 @@
+--- libtool-2.4.6.orig/m4/libtool.m4	2015-01-20 17:15:19.000000000 +0100
++++ libtool-2.4.6/m4/libtool.m4	2015-06-04 11:48:09.000000000 +0200
+@@ -4950,7 +4950,7 @@ m4_if([$1], [CXX], [
+   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+-  _LT_TAGVAR(hardcode_automatic, $1)=no
++  _LT_TAGVAR(hardcode_automatic, $1)=yes
+   _LT_TAGVAR(hardcode_direct, $1)=no
+   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+@@ -6308,7 +6308,7 @@ _LT_TAGVAR(hardcode_libdir_flag_spec, $1
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+-_LT_TAGVAR(hardcode_automatic, $1)=no
++_LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(inherit_rpath, $1)=no
+ _LT_TAGVAR(module_cmds, $1)=
+ _LT_TAGVAR(module_expsym_cmds, $1)=

+ 4 - 2
package/pulseaudio/Makefile

@@ -25,8 +25,9 @@ include $(ADK_TOPDIR)/mk/package.mk
 $(eval $(call PKG_template,PULSEAUDIO,pulseaudio,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
 TARGET_CPPFLAGS+=	-D_GNU_SOURCE -D_POSIX_SOURCE
-CONFIGURE_ARGS+=	--disable-systemd \
-			--disable-manpages \
+# use libtool from host directory
+AUTOTOOL_STYLE:=	autoreconf
+CONFIGURE_ARGS+=	--disable-manpages \
 			--disable-tests \
 			--disable-neon-opt \
 			--disable-x11 \
@@ -41,6 +42,7 @@ CONFIGURE_ARGS+=	--disable-systemd \
 			--disable-jack \
 			--disable-gconf \
 			--disable-udev \
+			--disable-rpath \
 			--disable-dbus \
 			--disable-hal-compat \
 			--without-caps \

+ 11 - 0
package/pulseaudio/patches/patch-Makefile_am

@@ -0,0 +1,11 @@
+--- pulseaudio-6.0.orig/Makefile.am	2015-02-12 15:10:35.000000000 +0100
++++ pulseaudio-6.0/Makefile.am	2015-06-04 12:12:26.000000000 +0200
+@@ -37,7 +37,7 @@ EXTRA_DIST = \
+ 	src/daemon/.gitignore \
+ 	src/pulse/.gitignore
+ 
+-SUBDIRS = src doxygen man po
++SUBDIRS = src
+ 
+ MAINTAINERCLEANFILES =
+ noinst_DATA =

+ 11 - 0
package/pulseaudio/patches/patch-Makefile_am.orig

@@ -0,0 +1,11 @@
+--- pulseaudio-6.0.orig/Makefile.am	2015-02-12 15:10:35.000000000 +0100
++++ pulseaudio-6.0/Makefile.am	2015-06-04 12:07:44.000000000 +0200
+@@ -37,7 +37,7 @@ EXTRA_DIST = \
+ 	src/daemon/.gitignore \
+ 	src/pulse/.gitignore
+ 
+-SUBDIRS = src doxygen man po
++SUBDIRS = src doxygen man
+ 
+ MAINTAINERCLEANFILES =
+ noinst_DATA =

+ 28 - 0
package/pulseaudio/patches/patch-configure_ac

@@ -0,0 +1,28 @@
+--- pulseaudio-6.0.orig/configure.ac	2015-02-12 15:10:35.000000000 +0100
++++ pulseaudio-6.0/configure.ac	2015-06-04 12:20:45.000000000 +0200
+@@ -99,25 +99,8 @@ PKG_PROG_PKG_CONFIG
+ 
+ # gettext
+ 
+-if test "x$enable_nls" != "xno"; then
+-IT_PROG_INTLTOOL([0.35.0])
+-
+-AM_GNU_GETTEXT_VERSION([0.18.1])
+-AM_GNU_GETTEXT([external])
+-
+-GETTEXT_PACKAGE=pulseaudio
+-AC_SUBST([GETTEXT_PACKAGE])
+-AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
+-
+-pulselocaledir='${prefix}/${DATADIRNAME}/locale'
+-AX_DEFINE_DIR(PULSE_LOCALEDIR, pulselocaledir, [Gettext locale dir])
+-else
+-# workaround till an intltool m4 bug is fixed upstream
+-# (https://bugs.launchpad.net/intltool/+bug/904647)
+ USE_NLS=no
+ AC_SUBST(USE_NLS)
+-fi
+-
+ 
+ #### Determine host OS ####
+