package/lcdproc: override freetype-config path
PATCH 1/2 package/lcdproc: override freetype-config path
freetype-config from the host system may be used when installed. Make sure that the one from HOST_DIR is used.
checking if freetype support has been enabled... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType -- version >= 7.0.1... cross compiling; assuming OK... yes
Fixes:
http://autobuild.buildroot.net/results/c7c/c7c52cd56b985fd73434d5997e9a6ab3f7d7e71e
--- package/lcdproc/lcdproc.mk | 2 ++ 1 file changed, 2 insertions(+)
package/lcdproc/lcdproc.mk +2 -0
@@ -18,6 +18,8 @@ endif LCDPROC_DEPENDENCIES = freetype ncurses zlib +LCDPROC_CONF_ENV += ac_cv_path_FT2_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config + ifeq ($(BR2_PACKAGE_LIBPNG),y) LCDPROC_DEPENDENCIES += libpng LCDPROC_CONF_OPTS += --enable-libpng
Signature · 1 line
2.9.4
PATCH 2/2 package lcdproc: override libpng-config path
Like for freetype-config, override libpng-config path otherwise the one from the host system may be used when installed. Make sure that the one from HOST_DIR is used.
configure:7480: checking for libpng-config
configure:7498: found /usr/bin/libpng-config
configure:7510: result: /usr/bin/libpng-config
configure:7529: checking whether libpng is present and sane
[...]
nios2-linux-gnu-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/libpng12'
--- package/lcdproc/lcdproc.mk | 1 + 1 file changed, 1 insertion(+)
package/lcdproc/lcdproc.mk +1 -0
@@ -22,6 +22,7 @@ LCDPROC_CONF_ENV += ac_cv_path_FT2_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config ifeq ($(BR2_PACKAGE_LIBPNG),y) LCDPROC_DEPENDENCIES += libpng +LCDPROC_CONF_ENV += ac_cv_path__png_config=$(STAGING_DIR)/usr/bin/libpng-config LCDPROC_CONF_OPTS += --enable-libpng else LCDPROC_CONF_OPTS += --disable-libpng
Signature · 1 line
2.9.4
PATCH 2/2 package lcdproc: override libpng-config path
Hello,
Quoted 3 lines · Romain Naour
Like for freetype-config, override libpng-config path otherwise the one from the host system may be used when installed. Make sure that the one from
HOST_DIRis used.
You wanted to say STAGING_DIR here, right?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/2 package lcdproc: override libpng-config path
Le 11/06/2017 ? 15:23, Thomas Petazzoni a ?crit :
Quoted 8 lines
Hello,
Quoted 3 lines · Romain Naour
Like for freetype-config, override libpng-config path otherwise the one from the host system may be used when installed. Make sure that the one from
HOST_DIRis used.You wanted to say
STAGING_DIRhere, right?
Humm yes, same for the patch 1/2...
Best regards,
Romain
Quoted 5 lines
Thanks,
Thomas
Thomas Petazzoni
AppliedPATCH 2/2 package lcdproc: override libpng-config path
In reply to Romain NaourHello,
Quoted 11 lines · Romain Naour
Like for freetype-config, override libpng-config path otherwise the one from the host system may be used when installed. Make sure that the one from
HOST_DIRis used.configure:7480: checking for libpng-config
configure:7498: found/usr/bin/libpng-config
configure:7510: result:/usr/bin/libpng-config
configure:7529: checking whether libpng is present and sane
[...]
nios2-linux-gnu-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/libpng12'
Quoted 7 lines
Signed-off-by Romain Naour <[email protected]>--- package/lcdproc/lcdproc.mk | 1 + 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Thomas Petazzoni
AppliedPATCH 1/2 package/lcdproc: override freetype-config path
In reply to Romain NaourHello,
Quoted 7 lines · Romain Naour
freetype-config from the host system may be used when installed. Make sure that the one from
HOST_DIRis used.checking if freetype support has been enabled... yes
checking for freetype-config.../usr/bin/freetype-config
checking for FreeType -- version >= 7.0.1... cross compiling; assuming OK... yes
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/c7c/c7c52cd56b985fd73434d5997e9a6ab3f7d7e71eSigned-off-by Romain Naour <[email protected]>--- package/lcdproc/lcdproc.mk | 2 ++ 1 file changed, 2 insertions(+)
Applied to master, thanks. However, it's quite surprising to see this change, only a week after you did commit ce2e622dfe8a3f36bdf0c25b37a9f6ebbb23b6cc. What happened?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/2 package/lcdproc: override freetype-config path
Hi Thomas,
Le 11/06/2017 ? 17:49, Thomas Petazzoni a ?crit :
Quoted 13 lines
Hello,
Quoted 10 lines · Romain Naour
freetype-config from the host system may be used when installed. Make sure that the one from
HOST_DIRis used.checking if freetype support has been enabled... yes
checking for freetype-config.../usr/bin/freetype-config
checking for FreeType -- version >= 7.0.1... cross compiling; assuming OK... yesFixes:
http://autobuild.buildroot.net/results/c7c/c7c52cd56b985fd73434d5997e9a6ab3f7d7e71e
Quoted 8 lines
Quoted 4 lines
Signed-off-by Romain Naour <[email protected]>--- package/lcdproc/lcdproc.mk | 2 ++ 1 file changed, 2 insertions(+)Applied to master, thanks. However, it's quite surprising to see this change, only a week after you did commit
ce2e622dfe8a3f36bdf0c25b37a9f6ebbb23b6cc. What happened?
For some reason, freetype-config is miss-detected on some host machine and /usr/bin/freetype-config is used instead of ${STAGING_DIR}/usr/bin/freetype-config. Weird... I have /usr/bin/freetype-config installed on my host but even without this patch, ${STAGING_DIR}/usr/bin/freetype-config is used.
The same happen for libpng-config...
So, instead of relying on configure script, override freetype-config and libpng-config path.
Best regards,
Romain
Quoted 5 lines
Thanks!
Thomas