package/libuio: fix build with external intl library
PATCH 1/3 package/libuio: fix build with external intl library
When intl library is not provided by the libc, libuio forget to link with -lintl.
Fixes:
http://autobuild.buildroot.net/results/8f7/8f715b4e9b826dac13f3d49da25576e6e1d79449
--- package/libuio/libuio.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
package/libuio/libuio.mk +10 -1
@@ -21,7 +21,16 @@ LIBUIO_CONF_ENV += MAKEINFO=true ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) LIBUIO_DEPENDENCIES += argp-standalone -LIBUIO_CONF_ENV += LIBS="-largp" +LIBUIO_ARGP_LIBS += -largp endif +# libuio pulls in libintl if needed, so ensure we also +# link against it, otherwise static linking fails +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +LIBUIO_DEPENDENCIES += gettext +LIBUIO_INTL_LIBS += -lintl +endif + +LIBUIO_CONF_ENV += LIBS="$(LIBUIO_ARGP_LIBS) $(LIBUIO_INTL_LIBS)" + $(eval $(autotools-package))
Signature · 1 line
2.5.5
PATCH 2/3 package/libuio: disable Werror
Disable -Werror to avoid build issues caused by warnings.
--- package/libuio/libuio.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/libuio/libuio.mk +1 -1
@@ -9,7 +9,7 @@ LIBUIO_VERSION = 940861de278cb794bf9d775b76a4d1d4f9108607 LIBUIO_SITE = $(call github,Linutronix,libuio,$(LIBUIO_VERSION)) LIBUIO_LICENSE = LGPLv2.1 (library), GPLv2 (programs) LIBUIO_LICENSE_FILES = COPYING -LIBUIO_CONF_OPTS = --with-glib=no +LIBUIO_CONF_OPTS = --with-glib=no --without-werror LIBUIO_INSTALL_STAGING = YES # Fetched from github, no pre-generated configure script provided
Signature · 1 line
2.5.5
PATCH 2/3 package/libuio: disable Werror
Romain, All,
On 2016-07-02 11:00 +0200, Romain Naour spake thusly:
Quoted 4 lines
Disable -Werror to avoid build issues caused by warnings.
Signed-off-by Romain Naour <[email protected]>Reported-by Peter Korsgaard <[email protected]>
Regards,
Yann E. MORIN.
Quoted 24 lines
--- package/libuio/libuio.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/libuio/libuio.mk +1
-1@@ -9,7 +9,7 @@ LIBUIO_VERSION = 940861de278cb794bf9d775b76a4d1d4f9108607 LIBUIO_SITE = $(call github,Linutronix,libuio,$(LIBUIO_VERSION)) LIBUIO_LICENSE = LGPLv2.1 (library), GPLv2 (programs) LIBUIO_LICENSE_FILES = COPYING -LIBUIO_CONF_OPTS = --with-glib=no +LIBUIO_CONF_OPTS = --with-glib=no --without-werror LIBUIO_INSTALL_STAGING = YES # Fetched from github, no pre-generated configure script providedSignature · 6 lines
2.5.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
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. | '------------------------------^-------^------------------^--------------------'
PATCH 2/3 package/libuio: disable Werror
In reply to Romain NaourQuoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
Disable -Werror to avoid build issues caused by warnings.
Signed-off-by Romain Naour <[email protected]>Reported-by Peter Korsgaard <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 package/libuio: fix build with musl
In reply to Romain Naourlimits.h header is missing in attr.c, base.c and helper.c to provide PATH_MAX.
Fixes:
http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3
--- package/libuio/0002-fix-build-with-musl.patch | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 package/libuio/0002-fix-build-with-musl.patch
package/libuio/0002-fix-build-with-musl.patch new file +57 -0
@@ -0,0 +1,57 @@ +From c378ee112857128002754c616acb6841ee32aaf6 Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Sat, 2 Jul 2016 10:52:28 +0200 +Subject: [PATCH] fix build with musl + +limits.h header is missing in attr.c, base.c and helper.c to provide +PATH_MAX. + +Fixes: +http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3 + +Signed-off-by: Romain Naour <[email protected]> +--- + attr.c | 1 + + base.c | 1 + + helper.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/attr.c b/attr.c +index 4245140..7512f4e 100644 +--- a/attr.c ++++ b/attr.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +diff --git a/base.c b/base.c +index 14ebcee..4ce7301 100644 +--- a/base.c ++++ b/base.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +diff --git a/helper.c b/helper.c +index 170f084..1fb0b4c 100644 +--- a/helper.c ++++ b/helper.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <regex.h> + #include <stdio.h> + #include <stdlib.h> +-- +2.5.5 +
Signature · 1 line
2.5.5
PATCH 3/3 package/libuio: fix build with musl
Romain, All,
On 2016-07-02 11:00 +0200, Romain Naour spake thusly:
Quoted 7 lines
limits.hheader is missing inattr.c,base.candhelper.cto providePATH_MAX.Fixes:
http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3Signed-off-by Romain Naour <[email protected]>
Don't forget to send it upstream. ;-)
Regards,
Yann E. MORIN.
Quoted 75 lines
--- package/libuio/0002-fix-build-with-musl.patch | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 package/libuio/0002-fix-build-with-musl.patchpackage/libuio/0002-fix-build-with-musl.patch new file +57
-0@@ -0,0 +1,57 @@ +From c378ee112857128002754c616acb6841ee32aaf6 Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Sat, 2 Jul 2016 10:52:28 +0200 +Subject: [PATCH] fix build with musl + +limits.h header is missing in attr.c, base.c and helper.c to provide +PATH_MAX. + +Fixes: +http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3 + +Signed-off-by: Romain Naour <[email protected]> +--- + attr.c | 1 + + base.c | 1 + + helper.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/attr.c b/attr.c +index 4245140..7512f4e 100644 +--- a/attr.c ++++ b/attr.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +diff --git a/base.c b/base.c +index 14ebcee..4ce7301 100644 +--- a/base.c ++++ b/base.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +diff --git a/helper.c b/helper.c +index 170f084..1fb0b4c 100644 +--- a/helper.c ++++ b/helper.c +@@ -25,6 +25,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <regex.h> + #include <stdio.h> + #include <stdlib.h> +-- +2.5.5 +Signature · 6 lines
2.5.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
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. | '------------------------------^-------^------------------^--------------------'
PATCH 3/3 package/libuio: fix build with musl
In reply to Romain NaourQuoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
limits.hheader is missing inattr.c,base.candhelper.cto providePATH_MAX.Fixes:
http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3Signed-off-by Romain Naour <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/3 package/libuio: fix build with external intl library
In reply to Romain NaourRomain, All,
On 2016-07-02 11:00 +0200, Romain Naour spake thusly:
Quoted 16 lines
When intl library is not provided by the libc, libuio forget to link with -lintl.
Fixes:
http://autobuild.buildroot.net/results/8f7/8f715b4e9b826dac13f3d49da25576e6e1d79449Signed-off-by Romain Naour <[email protected]>--- package/libuio/libuio.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)package/libuio/libuio.mk +0
-0
package/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 24
Quoted 5 lines
package/libuio/libuio.mk +1
-1@@ -21,7 +21,16 @@ LIBUIO_CONF_ENV += MAKEINFO=true ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) LIBUIO_DEPENDENCIES += argp-standalone -LIBUIO_CONF_ENV += LIBS="-largp" +LIBUIO_ARGP_LIBS += -largp
What about:
LIBUIO_LIBS = -largp
package/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 31
Quoted 7 lines
package/libuio/libuio.mk +5
-0endif +# libuio pulls in libintl if needed, so ensure we also +# link against it, otherwise static linking fails +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +LIBUIO_DEPENDENCIES += gettext +LIBUIO_INTL_LIBS += -lintl
And:
LIBUIO_LIBS += -lintl
package/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 34
Quoted 3 lines
package/libuio/libuio.mk +3
-0+endif + +LIBUIO_CONF_ENV += LIBS="$(LIBUIO_ARGP_LIBS) $(LIBUIO_INTL_LIBS)"
With finally;
LIBUIO_CONF_ENV += LIBS="$(LIBUIO_LIBS)"
Regards,
Yann E. MORIN.
Quoted 8 lines
package/libuio/libuio.mk +0
-0$(eval $(autotools-package))Signature · 6 lines
2.5.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
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. | '------------------------------^-------^------------------^--------------------'
PATCH 1/3 package/libuio: fix build with external intl library
Le 02/07/2016 ? 13:04, Yann E. MORIN a ?crit :
Quoted 41 lines
Romain, All,
On 2016-07-02 11:00 +0200, Romain Naour spake thusly:
Quoted 16 lines
When intl library is not provided by the libc, libuio forget to link with -lintl.
Fixes:
http://autobuild.buildroot.net/results/8f7/8f715b4e9b826dac13f3d49da25576e6e1d79449Signed-off-by Romain Naour <[email protected]>--- package/libuio/libuio.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)package/libuio/libuio.mk +0
-0package/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 24
Quoted 5 lines
package/libuio/libuio.mk +1
-1@@ -21,7 +21,16 @@ LIBUIO_CONF_ENV += MAKEINFO=true ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) LIBUIO_DEPENDENCIES += argp-standalone -LIBUIO_CONF_ENV += LIBS="-largp" +LIBUIO_ARGP_LIBS += -largpWhat about:
LIBUIO_LIBS= -largppackage/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 31
Quoted 7 lines
package/libuio/libuio.mk +5
-0endif +# libuio pulls in libintl if needed, so ensure we also +# link against it, otherwise static linking fails +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +LIBUIO_DEPENDENCIES += gettext +LIBUIO_INTL_LIBS += -lintlAnd:
LIBUIO_LIBS += -lintl
Quoted 8 lines
package/libuio/libuio.mk LIBUIO_CONF_ENV += MAKEINFO=true · line 34
Quoted 3 lines
package/libuio/libuio.mk +3
-0+endif + +LIBUIO_CONF_ENV += LIBS="$(LIBUIO_ARGP_LIBS) $(LIBUIO_INTL_LIBS)"With finally;
LIBUIO_CONF_ENV += LIBS="$(LIBUIO_LIBS)"
Right, tanks for the review :)
Best regards,
Romain
Quoted 12 lines
Regards,
Yann E. MORIN.Quoted 8 lines
package/libuio/libuio.mk +0
-0$(eval $(autotools-package))Signature · 6 lines
2.5.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 1/3 package/libuio: fix build with external intl library
In reply to Romain NaourQuoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
When intl library is not provided by the libc, libuio forget to link with -lintl.
Fixes:
http://autobuild.buildroot.net/results/8f7/8f715b4e9b826dac13f3d49da25576e6e1d79449Signed-off-by Romain Naour <[email protected]>
Committed after simplifying as suggested by Yann, thanks.
Signature · 1 line
Bye, Peter Korsgaard