package/libshout: add patches to fix static linking
PATCH v2 1/1 package/libshout: add patches to fix static linking
This series includes two patches to fix static linking with libshout.
The first patch fixes two typos resulting in an uninterpretable library propagation and is mainly needed for the follow-up patch.
The second patch makes sure that @SHOUT_REQUIRES@ and therefore Requires.private includes ssl as Requires.private defines a list of private packages required by this package but not exposed to applications.
Note that autoreconf is enabled as the first patch touches configure.ac.
Fixes:
http://autobuild.buildroot.net/results/b82/b82408fccbf816575125dcc1a1de7260f66f62e8/
http://autobuild.buildroot.net/results/360/3605750023267e4cd35d98451bd283f9e70a6106/
http://autobuild.buildroot.net/results/03b/03b98b313dd6ed2909607cdc0c4f6fb87be3ccfe/
http://autobuild.buildroot.net/results/70b/70ba47e04d1fc0d2379bf1ac7aab4c52d6193001/
---
v2:
* Replace patch #2 to make sure Requires.private contains ssl if needed (suggested by Thomas)
--- .../0001-Fix-THEORA-SPEEX-_LDFLAGS-typo.patch | 45 ++++++++++++++++++ ...Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch | 55 ++++++++++++++++++++++ package/libshout/libshout.mk | 3 ++ 3 files changed, 103 insertions(+) create mode 100644 package/libshout/0001-Fix-THEORA-SPEEX-_LDFLAGS-typo.patch create mode 100644 package/libshout/0002-Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch
package/libshout/0001-Fix-THEORA-SPEEX-_LDFLAGS-typo.patch new file +45 -0
@@ -0,0 +1,45 @@ +From d96a3cafeebeb80b4796bacbe0e6da0bbd3ee48e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]> +Date: Sun, 28 Aug 2016 00:39:55 +0200 +Subject: [PATCH 1/2] Fix {THEORA,SPEEX}_LDFLAGS typo +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Needed to properly link against libshout, otherwise the build fails with: + + error: LDFLAGS: No such file or directory + +Upstream status: pending +https://github.com/xiph/Icecast-libshout/pull/4 + +Signed-off-by: J?rg Krause <[email protected]> +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 87a7f55..85f18ad 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -134,7 +134,7 @@ PKG_CHECK_MODULES(THEORA, theora, [ + ]) + fi + XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$THEORA_CFLAGS]) +-XIPH_VAR_PREPEND([XIPH_LIBS],[$THEORA LDFLAGS $THEORA_LIBS]) ++XIPH_VAR_PREPEND([XIPH_LIBS],[$THEORA_LDFLAGS $THEORA_LIBS]) + AM_CONDITIONAL([HAVE_THEORA], [test -n "$THEORA_LIBS"]) + if test -n "$THEORA_LIBS" + then +@@ -153,7 +153,7 @@ PKG_CHECK_MODULES(SPEEX, speex, [ + ]) + fi + XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$SPEEX_CFLAGS]) +-XIPH_VAR_PREPEND([XIPH_LIBS],[$SPEEX LDFLAGS $SPEEX_LIBS]) ++XIPH_VAR_PREPEND([XIPH_LIBS],[$SPEEX_LDFLAGS $SPEEX_LIBS]) + AM_CONDITIONAL([HAVE_SPEEX], [test -n "$SPEEX_LIBS"]) + if test -n "$SPEEX_LIBS" + then +-- +2.9.3 +
package/libshout/0002-Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch new file +55 -0
55 lines not on this page · raw message
package/libshout/libshout.mk +3 -0
@@ -11,6 +11,9 @@ LIBSHOUT_LICENSE_FILES = COPYING LIBSHOUT_INSTALL_STAGING = YES LIBSHOUT_DEPENDENCIES = host-pkgconf libogg libvorbis +# patching congigure.ac +LIBSHOUT_AUTORECONF = YES + ifeq ($(BR2_PACKAGE_LIBTHEORA),y) LIBSHOUT_CONF_OPTS += --enable-theora LIBSHOUT_DEPENDENCIES += libtheora
Signature · 1 line
2.9.3
PATCH v2 1/1 package/libshout: add patches to fix static linking
Quoted 36 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"J?rg" == J?rg Krause <[email protected]> writes:
This series includes two patches to fix static linking with libshout. The first patch fixes two typos resulting in an uninterpretable library propagation and is mainly needed for the follow-up patch.
The second patch makes sure that
@SHOUT_REQUIRES@and thereforeRequires.privateincludes ssl asRequires.privatedefines a list of private packages required by this package but not exposed to applications.Note that autoreconf is enabled as the first patch touches configure.ac.
Fixes:
http://autobuild.buildroot.net/results/b82/b82408fccbf816575125dcc1a1de7260f66f62e8/
http://autobuild.buildroot.net/results/360/3605750023267e4cd35d98451bd283f9e70a6106/
http://autobuild.buildroot.net/results/03b/03b98b313dd6ed2909607cdc0c4f6fb87be3ccfe/
http://autobuild.buildroot.net/results/70b/70ba47e04d1fc0d2379bf1ac7aab4c52d6193001/Signed-off-by J?rg Krause <[email protected]>---
v2:
* Replace patch #2 to make sureRequires.privatecontains ssl if needed (suggested by Thomas)package/libshout/0002-Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch new file +12
-0+Since OpenSSL installs its own .pc files, make sure that @SHOUT_REQUIRES@ +contains `ssl`. + +Upstream status: pending +https://github.com/xiph/Icecast-libshout/pull/5 + +Signed-off-by: J?rg Krause <[email protected]> +--- + configure.ac | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/configure.ac b/configure.ac
package/libshout/0002-Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch line 48
Quoted 10 lines
package/libshout/0002-Make-sure-SHOUT_REQUIRES-contains-OpenSSL.patch new file +10
-0+index 85f18ad..2b9c505 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -197,6 +197,10 @@ XIPH_PATH_OPENSSL([ + ]) + AC_SUBST([SHOUT_TLS]) + AM_CONDITIONAL([HAVE_TLS], [test -n "$OPENSSL_LIBS"]) ++if test "$SHOUT_TLS" = "1" ++then ++ SHOUT_REQUIRES="$SHOUT_REQUIRES, ssl"
Did you test this?
The libssl .pc file is called libssl.pc, not ssl.pc, so this doesn't work.
package/libshout/libshout.mk LIBSHOUT_LICENSE_FILES = COPYING · line 14
Quoted 9 lines
package/libshout/libshout.mk +1
-0@@ -11,6 +11,9 @@ LIBSHOUT_LICENSE_FILES = COPYING LIBSHOUT_INSTALL_STAGING = YES LIBSHOUT_DEPENDENCIES = host-pkgconf libogg libvorbis +# patching congigure.ac
typo.
What is odd about this fix / autobuilder issues is:
- libshout has no (optional) dependency on openssl
- mpd has no (optional) dependency on libshout
So that's pretty bad. I've pushed 2 commits to fix this.
Committed after fixing the above, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/1 package/libshout: add patches to fix static linking
Quoted 62 lines · Peter Korsgaard
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
"J?rg" == J?rg Krause <[email protected]> writes:
?> This series includes two patches to fix static linking with libshout.
?> The first patch fixes two typos resulting in an uninterpretable library
?> propagation and is mainly needed for the follow-up patch.?> The second patch makes sure that
@SHOUT_REQUIRES@and therefore ?>Requires.privateincludes ssl asRequires.privatedefines a list of private
?> packages required by this package but not exposed to applications.?> Note that autoreconf is enabled as the first patch touches configure.ac.
?> Fixes:
?> http://autobuild.buildroot.net/results/b82/b82408fccbf816575125dcc
1a1de7260f66f62e8/
?> http://autobuild.buildroot.net/results/360/3605750023267e4cd35d984
51bd283f9e70a6106/
?> http://autobuild.buildroot.net/results/03b/03b98b313dd6ed2909607cd
c0c4f6fb87be3ccfe/
?> http://autobuild.buildroot.net/results/70b/70ba47e04d1fc0d2379bf1a
c7aab4c52d6193001/?> Signed-off-by: J?rg Krause <[email protected]> ?> ---
?> v2:
?>??* Replace patch #2 to make sureRequires.privatecontains ssl if needed
?>????(suggested by Thomas)?> +Since OpenSSL installs its own .pc files, make sure that @SHOUT_REQUIRES@
?> +containsssl.
?> +
?> +Upstream status: pending
?> +https://github.com/xiph/Icecast-libshout/pull/5 ?> +
?> +Signed-off-by: J?rg Krause <[email protected]> ?> +---
?> + configure.ac | 4 ++++
?> + 1 file changed, 4 insertions(+)
?> +
?> +diff --git a/configure.ac b/configure.ac
?> +index 85f18ad..2b9c505 100644
?> +--- a/configure.ac
?> ++++ b/configure.ac
?> +@@ -197,6 +197,10 @@ XIPH_PATH_OPENSSL([
?> +?????])
?> +AC_SUBST([SHOUT_TLS])
?> +AM_CONDITIONAL([HAVE_TLS], [test -n "$OPENSSL_LIBS"])?> ++if test "$SHOUT_TLS" = "1"
?> ++then
?> ++??SHOUT_REQUIRES="$SHOUT_REQUIRES, ssl"
Quoted 4 lines
Did you test this?
The libssl .pc file is called libssl.pc, not ssl.pc, so this doesn't work.
Sorry for that! You're right! I did tested for compilation, which ends without errors, however, mpd does not find libshout and therefore does not link with it. Thanks for catching this!
Quoted 23 lines
package/libshout/libshout.mk
Quoted 3 lines
package/libshout/libshout.mk +0
-0?> index 029c134..9f54463 100644
?> ---a/package/libshout/libshout.mk
?> +++b/package/libshout/libshout.mk
?> @@ -11,6 +11,9 @@LIBSHOUT_LICENSE_FILES= COPYING ?>??LIBSHOUT_INSTALL_STAGING = YES ?>??LIBSHOUT_DEPENDENCIES = host-pkgconf libogg libvorbis ?
?> +# patching congigure.actypo.
What is odd about this fix / autobuilder issues is:
- libshout has no (optional) dependency on openssl
- mpd has no (optional) dependency on libshoutSo that's pretty bad. I've pushed 2 commits to fix this.
Committed after fixing the above, thanks.