Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor
@ 2017-01-10 22:39 Jörg Krause
  2017-01-11 11:31 ` Peter Korsgaard
  2017-01-11 12:44 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Jörg Krause @ 2017-01-10 22:39 UTC (permalink / raw)
  To: buildroot

Although tremor (the library is named vorbisidec) provides a pkg-config
file, mpd does not use it to find tremor. Since version 0.20 does throw
an error instead of a warning, that's why the issue was left unnoticed
by the autobuilders.

Help mpd to find tremor by providing the path to the library and passing
LIBS through the environment. We use the host pkg-config tool to get the
correct values from the vorbisidec.pc file.

Fixes:
http://autobuild.buildroot.net/results/6b9/6b97403e70caa12c32494b1c82ce61d3e4e456f6/

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
Changes v2:
  - Add autobuild link
---
 package/mpd/mpd.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 10e6b90dd..bee68436d 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -222,7 +222,10 @@ endif
 
 ifeq ($(BR2_PACKAGE_MPD_TREMOR),y)
 MPD_DEPENDENCIES += tremor
-MPD_CONF_OPTS += --with-tremor
+# Help mpd to find tremor in static linking scenarios
+MPD_CONF_ENV += \
+	TREMOR_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs vorbisidec`"
+MPD_CONF_OPTS += --with-tremor=$(STAGING_DIR)/usr
 endif
 
 ifeq ($(BR2_PACKAGE_MPD_TWOLAME),y)
-- 
2.11.0

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

* [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor
  2017-01-10 22:39 [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor Jörg Krause
@ 2017-01-11 11:31 ` Peter Korsgaard
  2017-01-11 12:44 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-01-11 11:31 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > Although tremor (the library is named vorbisidec) provides a pkg-config
 > file, mpd does not use it to find tremor. Since version 0.20 does throw
 > an error instead of a warning, that's why the issue was left unnoticed
 > by the autobuilders.

 > Help mpd to find tremor by providing the path to the library and passing
 > LIBS through the environment. We use the host pkg-config tool to get the
 > correct values from the vorbisidec.pc file.

 > Fixes:
 > http://autobuild.buildroot.net/results/6b9/6b97403e70caa12c32494b1c82ce61d3e4e456f6/

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
 > ---
 > Changes v2:
 >   - Add autobuild link

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor
  2017-01-10 22:39 [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor Jörg Krause
  2017-01-11 11:31 ` Peter Korsgaard
@ 2017-01-11 12:44 ` Peter Korsgaard
  2017-01-11 19:56   ` Jörg Krause
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2017-01-11 12:44 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > Although tremor (the library is named vorbisidec) provides a pkg-config
 > file, mpd does not use it to find tremor. Since version 0.20 does throw
 > an error instead of a warning, that's why the issue was left unnoticed
 > by the autobuilders.

 > Help mpd to find tremor by providing the path to the library and passing
 > LIBS through the environment. We use the host pkg-config tool to get the
 > correct values from the vorbisidec.pc file.

 > Fixes:
 > http://autobuild.buildroot.net/results/6b9/6b97403e70caa12c32494b1c82ce61d3e4e456f6/

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
 > ---
 > Changes v2:
 >   - Add autobuild link

It seems like this isn't sufficient:

http://autobuild.buildroot.net/results/2e3/2e3dbcdea34053675a0139c1911b6da1a6670e2c/build-end.log

Perhaps we need to add libogg to the pkg-config line as well?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor
  2017-01-11 12:44 ` Peter Korsgaard
@ 2017-01-11 19:56   ` Jörg Krause
  0 siblings, 0 replies; 4+ messages in thread
From: Jörg Krause @ 2017-01-11 19:56 UTC (permalink / raw)
  To: buildroot

On Wed, 2017-01-11 at 13:44 +0100, Peter Korsgaard wrote:
> > > > > > "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:
> 
> ?> Although tremor (the library is named vorbisidec) provides a pkg-
> config
> ?> file, mpd does not use it to find tremor. Since version 0.20 does
> throw
> ?> an error instead of a warning, that's why the issue was left
> unnoticed
> ?> by the autobuilders.
> 
> ?> Help mpd to find tremor by providing the path to the library and
> passing
> ?> LIBS through the environment. We use the host pkg-config tool to
> get the
> ?> correct values from the vorbisidec.pc file.
> 
> ?> Fixes:
> ?> http://autobuild.buildroot.net/results/6b9/6b97403e70caa12c32494b1
> c82ce61d3e4e456f6/
> 
> ?> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ?> ---
> ?> Changes v2:
> ?>???- Add autobuild link
> 
> It seems like this isn't sufficient:
> 
> http://autobuild.buildroot.net/results/2e3/2e3dbcdea34053675a0139c191
> 1b6da1a6670e2c/build-end.log
> 
> Perhaps we need to add libogg to the pkg-config line as well?

This is not a static linking issue. My read is that mpd forgets to
consider OGG_LIBS in XIPH_LIBS. I will contact upstream about this
issue.

J?rg

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

end of thread, other threads:[~2017-01-11 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 22:39 [Buildroot] [PATCH v2] package/mpd: fix static linking with tremor Jörg Krause
2017-01-11 11:31 ` Peter Korsgaard
2017-01-11 12:44 ` Peter Korsgaard
2017-01-11 19:56   ` Jörg Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox