Skip to contentSkip to conversation

libglob: new package

PATCH New Jörg Krause 2 participants 6 messages Aug 1, 2016 – Nov 2, 2016

lore
Share & tools
lore
#0 lore raw

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
index 645fa29..54e9368 100644
@@ -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
new file mode 100644
index 0000000..029ed6a
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_LIBGLOB
+	bool "libglob"
+	help
+	  OpenBSD implementation of glob(3).
package/libglob/libglob.hash new file +2 -0
new file mode 100644
index 0000000..0b39407
@@ -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
#1 lore raw

PATCH 1/1 libglob: new package

Hello,

Quoted 3 lines · J?rg Krause

libglob is the OpenBSD implementation of glob(3).

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
#2 lore raw

PATCH 1/1 libglob: new package

In reply to Jörg Krause

Hello,

Quoted 3 lines · J?rg Krause

libglob is the OpenBSD implementation of glob(3).

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
#3 lore raw

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

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

#4 lore raw

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
#5 lore raw

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