All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option
@ 2021-04-10 10:05 Fabrice Fontaine
  2021-04-10 10:05 ` [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor Fabrice Fontaine
  2021-04-22 19:19 ` [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2021-04-10 10:05 UTC (permalink / raw)
  To: buildroot

--without-x is not recognized since at least version 1.2.12:

configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls, --without-x

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/sdl_mixer/sdl_mixer.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/sdl_mixer/sdl_mixer.mk b/package/sdl_mixer/sdl_mixer.mk
index 8402879e04..049ce15d1f 100644
--- a/package/sdl_mixer/sdl_mixer.mk
+++ b/package/sdl_mixer/sdl_mixer.mk
@@ -23,7 +23,6 @@ SDL_MIXER_DEPENDENCIES = sdl
 SDL_MIXER_AUTORECONF = YES
 
 SDL_MIXER_CONF_OPTS = \
-	--without-x \
 	--with-sdl-prefix=$(STAGING_DIR)/usr \
 	--disable-music-mod \
 	--disable-music-mp3 \
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor
  2021-04-10 10:05 [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Fabrice Fontaine
@ 2021-04-10 10:05 ` Fabrice Fontaine
  2021-04-22 19:32   ` Thomas Petazzoni
  2021-04-22 19:19 ` [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2021-04-10 10:05 UTC (permalink / raw)
  To: buildroot

Static build with tremor raises a build failure since bump to latest git
tree in commit c8e27f3baa90351a417ff6e172d214c4a72e7314. However, it
should be noted that before this bump, tremor was always disabled in
static builds because vorbisidec detection was broken until
https://github.com/libsdl-org/SDL_mixer/commit/565a9a27cc8c184ad0203f004b834880ffd45d32

Fixes:
 - http://autobuild.buildroot.org/results/9634adc433da0e25732eb98675c59d0f96ac93b2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...re.ac-fix-static-linking-with-tremor.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/sdl_mixer/0003-configure.ac-fix-static-linking-with-tremor.patch

diff --git a/package/sdl_mixer/0003-configure.ac-fix-static-linking-with-tremor.patch b/package/sdl_mixer/0003-configure.ac-fix-static-linking-with-tremor.patch
new file mode 100644
index 0000000000..7bad2bd932
--- /dev/null
+++ b/package/sdl_mixer/0003-configure.ac-fix-static-linking-with-tremor.patch
@@ -0,0 +1,36 @@
+From c4814d9ef2b569c5fccbf72e1555b6147392a2f3 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 10 Apr 2021 11:50:17 +0200
+Subject: [PATCH] configure.ac: fix static linking with tremor
+
+Fix the following build failure when building statically with
+--enable-music-ogg-tremor:
+
+libtool: link: /tmp/instance-0/output-1/host/bin/arm-linux-gcc -o build/playwave build/playwave.o -I/tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -static  -L/tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib build/.libs/libSDL_mixer.a -L/tmp/instance-0/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libSDL.a /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libasound.a -lrt -ldl /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libts.a -lpthread /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libvorbisidec.a /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libogg.a -lvorbis /tmp/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmad.a -lm
+/tmp/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find -lvorbis
+
+Fixes:
+ - http://autobuild.buildroot.org/results/9634adc433da0e25732eb98675c59d0f96ac93b2
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/libsdl-org/SDL_mixer/pull/312]
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index b5be494..8350b7b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -530,7 +530,7 @@ if test x$enable_music_ogg = xyes; then
+                 echo "-- dynamic libvorbisidec -> $ogg_lib"
+                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
+             else
+-                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis"
++                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec"
+             fi
+         else
+             AC_MSG_WARN([*** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)])
+-- 
+2.30.2
+
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option
  2021-04-10 10:05 [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Fabrice Fontaine
  2021-04-10 10:05 ` [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor Fabrice Fontaine
@ 2021-04-22 19:19 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-04-22 19:19 UTC (permalink / raw)
  To: buildroot

On Sat, 10 Apr 2021 12:05:53 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> --without-x is not recognized since at least version 1.2.12:
> 
> configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls, --without-x
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/sdl_mixer/sdl_mixer.mk | 1 -
>  1 file changed, 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor
  2021-04-10 10:05 ` [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor Fabrice Fontaine
@ 2021-04-22 19:32   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-04-22 19:32 UTC (permalink / raw)
  To: buildroot

On Sat, 10 Apr 2021 12:05:54 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Static build with tremor raises a build failure since bump to latest git
> tree in commit c8e27f3baa90351a417ff6e172d214c4a72e7314. However, it
> should be noted that before this bump, tremor was always disabled in
> static builds because vorbisidec detection was broken until
> https://github.com/libsdl-org/SDL_mixer/commit/565a9a27cc8c184ad0203f004b834880ffd45d32
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/9634adc433da0e25732eb98675c59d0f96ac93b2
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...re.ac-fix-static-linking-with-tremor.patch | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/sdl_mixer/0003-configure.ac-fix-static-linking-with-tremor.patch

Your patch did not apply properly. But since it was applied upstream,
I've taken the upstreamed patch. Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-22 19:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 10:05 [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Fabrice Fontaine
2021-04-10 10:05 ` [Buildroot] [PATCH 2/2] package/sdl_mixer: fix static build with tremor Fabrice Fontaine
2021-04-22 19:32   ` Thomas Petazzoni
2021-04-22 19:19 ` [Buildroot] [PATCH 1/2] package/sdl_mixer: drop unrecognized option Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.