Skip to contentSkip to conversation

package/dvb-apps: requires iconv

PATCH New Yann E. MORIN 2 participants 4 messages Jan 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/dvb-apps: requires iconv

Use libiconv if the toolchain does not have locales.

Fixes (for example):

    http://autobuild.buildroot.net/results/c5776c95ac128f7c7eadc2fe746ad89f8c1ef49a
---
 package/dvb-apps/Config.in   |    1 +
 package/dvb-apps/dvb-apps.mk |    8 +++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
package/dvb-apps/Config.in +1 -0
index ca8dc54..7f76330 100644
@@ -14,6 +14,7 @@ comment "dvb-apps utils needs LARGEFILE support in the toolchain"
 config BR2_PACKAGE_DVB_APPS_UTILS
 	bool "dvb-apps utilities"
 	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	help
 	  A small number of DVB test and utility programs,
 	  including szap and dvbscan.
package/dvb-apps/dvb-apps.mk +7 -1
index f914799..0f32af5 100644
@@ -20,10 +20,16 @@ DVB_APPS_LICENSE        = unknown (probably public domain)
 
 ifeq ($(BR2_PACKAGE_DVB_APPS_UTILS),y)
 # Utilitiess are selected, build and install everything
+
+ifeq ($(BR2_ENABLE_LOCALE),)
+DVB_APPS_DEPENDENCIES    = libiconv
+DVB_APPS_LDFLAGS         = $(TARGET_LDFLAGS) -liconv
+endif
+
 DVB_APPS_INSTALL_STAGING = YES
 
 define DVB_APPS_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) V=1
+	$(TARGET_CONFIGURE_OPTS) LDFLAGS="$(DVB_APPS_LDFLAGS)" $(MAKE) -C $(@D) V=1
 endef
 
 define DVB_APPS_INSTALL_STAGING_CMDS
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 package/dvb-apps: requires iconv

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Hi,

Yann> +++ b/package/dvb-apps/dvb-apps.mk
Yann> @@ -20,10 +20,16 @@ DVB_APPS_LICENSE = unknown (probably public domain)

Yann> ifeq ($(BR2_PACKAGE_DVB_APPS_UTILS),y)
Yann> # Utilitiess are selected, build and install everything Yann> +
Yann> +ifeq ($(BR2_ENABLE_LOCALE),)
Yann> +DVB_APPS_DEPENDENCIES = libiconv
Yann> +DVB_APPS_LDFLAGS = $(TARGET_LDFLAGS) -liconv
Yann> +endif
Yann> +
Yann> DVB_APPS_INSTALL_STAGING = YES

Yann> define DVB_APPS_BUILD_CMDS
Yann> - $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) V=1
Yann> + $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(DVB_APPS_LDFLAGS)" $(MAKE) -C $(@D) V=1

Ehh, so if you have locale you pass an empty LDFLAGS?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/dvb-apps: requires iconv

Peter, All,

Quoted 14 lines · On Saturday 12 January 2013 Peter Korsgaard wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Yann> +++ b/package/dvb-apps/dvb-apps.mk
Yann> @@ -20,10 +20,16 @@ DVB_APPS_LICENSE = unknown (probably public domain)

Yann> ifeq ($(BR2_PACKAGE_DVB_APPS_UTILS),y)
Yann> # Utilitiess are selected, build and install everything Yann> +
Yann> +ifeq ($(BR2_ENABLE_LOCALE),)
Yann> +DVB_APPS_DEPENDENCIES = libiconv
Yann> +DVB_APPS_LDFLAGS = $(TARGET_LDFLAGS) -liconv
Yann> +endif
Yann> +
Yann> DVB_APPS_INSTALL_STAGING = YES

Quoted 5 lines

Yann> define DVB_APPS_BUILD_CMDS
Yann> - $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) V=1
Yann> + $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(DVB_APPS_LDFLAGS)" $(MAKE) -C $(@D) V=1

Ehh, so if you have locale you pass an empty LDFLAGS?

Strangely enough, this build fine with a toolchain with or without locales. :-(

OK, break, will come back to this later... :-/

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 package/dvb-apps: requires iconv

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Hi,

Yann> define DVB_APPS_BUILD_CMDS
Yann> - $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) V=1
Yann> + $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(DVB_APPS_LDFLAGS)" $(MAKE) -C $(@D) V=1

Quoted 2 lines
Quoted 2 lines

Ehh, so if you have locale you pass an empty LDFLAGS?

Yann> Strangely enough, this build fine with a toolchain with or without Yann> locales. :-(

Well, yes - By default TARGET_LDFLAGS is empty, so it normally doesn't really matter.

Yann> OK, break, will come back to this later... :-/

Don't worry - I've fixed this up and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard