libglob: new package
PATCH 1/1 libglob: new package
libglob is the OpenBSD implementation of glob(3).
--- package/Config.in | 1 + package/libglob/Config.in | 4 ++++ package/libglob/libglob.hash | 2 ++ package/libglob/libglob.mk | 47 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 package/libglob/Config.in create mode 100644 package/libglob/libglob.hash create mode 100644 package/libglob/libglob.mk
package/Config.in +1 -0
@@ -1291,6 +1291,7 @@ menu "Other" source "package/libffi/Config.in" source "package/libgee/Config.in" source "package/libglib2/Config.in" + source "package/libglob/Config.in" source "package/libical/Config.in" source "package/liblinear/Config.in" source "package/libnspr/Config.in"
package/libglob/Config.in new file +4 -0
@@ -0,0 +1,4 @@ +config BR2_PACKAGE_LIBGLOB + bool "libglob" + help + OpenBSD implementation of glob(3).
package/libglob/libglob.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated: +sha256 4f1b204dad065689941c64828a92441fb316c9c7539b39525fa728125da65e22 libglob-1.0.tar.gz
package/libglob/libglob.mk new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.9.2
PATCH 1/1 libglob: new package
Hello,
Quoted 3 lines · J?rg Krause
libglob is the OpenBSD implementation of glob(3).
Signed-off-by J?rg Krause <[email protected]>
There was already a submission of a libglob package by Bernd yesterday, see:
Subject: [Buildroot] [PATCH/RFC 1/1] package/libglob: new package
Date: Sun, 31 Jul 2016 18:29:20 +0200
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 libglob: new package
In reply to Jörg KrauseHello,
Quoted 3 lines · J?rg Krause
libglob is the OpenBSD implementation of glob(3).
Signed-off-by J?rg Krause <[email protected]>
I've applied your patch, with one minor change (see below).
I remember this was necessary to fix the build of a package with musl. Do you remember which one?
Quoted 1 line
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
I've added:
LIBGLOB_MAKE_TARGETS += libglob.so
here.
package/libglob/libglob.mk line 23
Quoted 10 lines
package/libglob/libglob.mk new file +10
-0+# $1: destination directory +define LIBGLOB_INSTALL_SHARED + $(INSTALL) -m 0755 -D $(@D)/libglob.so.0.0.0 \ + $(1)/usr/lib/libglob.so.0.0.0 + ln -sf libglob.so.0.0.0 $(1)/usr/lib/libglob.so.0 + ln -sf libglob.so.0.0.0 $(1)/usr/lib/libglob.so +endef +endif + +ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
LIBGLOB_MAKE_TARGETS += libglob.a
here.
package/libglob/libglob.mk line 33
Quoted 10 lines
package/libglob/libglob.mk new file +10
-0+# $1: destination directory +define LIBGLOB_INSTALL_STATIC + $(INSTALL) -m 0644 -D $(@D)/libglob.a $(1)/usr/lib/libglob.a +endef +endif + +define LIBGLOB_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ + $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),libglob.so) \ + $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),libglob.a)
And replaced those two lines by:
$(LIBGLOB_MAKE_TARGETS)
This way, we have the conditions around static/shared only in one place.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 libglob: new package
Hi Thomas,
Quoted 5 lines · Thomas Petazzoni
Hello,
Quoted 2 lines · J?rg Krause
libglob is the OpenBSD implementation of glob(3).
Quoted 7 lines
Quoted 1 line
Signed-off-by J?rg Krause <[email protected]>I've applied your patch, with one minor change (see below).
I remember this was necessary to fix the build of a package with musl.
Do you remember which one?
Yes, it was openswan.
J?rg
PATCH 1/1 libglob: new package
Hello,
Quoted 5 lines · J?rg Krause
Quoted 3 lines
I remember this was necessary to fix the build of a package with musl.
Do you remember which one?Yes, it was openswan.
Do we have the appropriate patches? :-)
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 libglob: new package
Quoted 11 lines · Thomas Petazzoni
Hello,
Quoted 5 lines · J?rg Krause
Quoted 3 lines
I remember this was necessary to fix the build of a package with musl.
Do you remember which one???Yes, it was openswan.
Do we have the appropriate patches? :-)
Not yet, unfortunately openswan for musl needs more fixing than adding glob extensions :-(
J?rg