From: "Jörg Krause" <joerg.krause@embedded.rocks>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/RFC 1/1] package/libglob: new package
Date: Mon, 01 Aug 2016 22:29:07 +0200 [thread overview]
Message-ID: <1470083347.4303.12.camel@embedded.rocks> (raw)
In-Reply-To: <1469982560-13681-1-git-send-email-bernd.kuhls@t-online.de>
Hi,
On So, 2016-07-31 at 18:29 +0200, Bernd Kuhls wrote:
> Needed for packages which need GLOB_BRACE & GLOB_NOMAGIC. These
> defines
> are not provided by musl toolchains.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
sorry, I didn't noticed you already submitted a patch to add libglob. I
submitted a similar patch, too:?http://lists.busybox.net/pipermail/buil
droot/2016-August/168908.html.
Thanks to Thomas for pointing that out.
> ---
> This patch is aimed at fixing the compilation of Openswan with musl,
> but
> the Openswan package needs many more patches so I am sending this
> package
> to be picked-up by other users trying to fix Openswan.
>
> ?package/Config.in????????????|??1 +
> ?package/libglob/Config.in????|??3 +++
> ?package/libglob/libglob.hash |??2 ++
> ?package/libglob/libglob.mk???| 27 +++++++++++++++++++++++++++
> ?4 files changed, 33 insertions(+)
> ?create mode 100644 package/libglob/Config.in
> ?create mode 100644 package/libglob/libglob.hash
> ?create mode 100644 package/libglob/libglob.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 645fa29..54e9368 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -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"
> diff --git a/package/libglob/Config.in b/package/libglob/Config.in
> new file mode 100644
> index 0000000..37ee520
> --- /dev/null
> +++ b/package/libglob/Config.in
> @@ -0,0 +1,3 @@
> +config BR2_PACKAGE_LIBGLOB
> + bool
> + default y if BR2_TOOLCHAIN_USES_MUSL
So you make it non-selectable for the user. Probably it's okay, as
there is no need for this package besides allowing packages needing the
glob implementation to be build with musl.
> diff --git a/package/libglob/libglob.hash
> b/package/libglob/libglob.hash
> new file mode 100644
> index 0000000..591d20a
> --- /dev/null
> +++ b/package/libglob/libglob.hash
> @@ -0,0 +1,2 @@
> +# Locally calculated
> +sha256
> 4f1b204dad065689941c64828a92441fb316c9c7539b39525fa728125da65e22??lib
> glob-1.0.tar.gz
> diff --git a/package/libglob/libglob.mk b/package/libglob/libglob.mk
> new file mode 100644
> index 0000000..eeca67a
> --- /dev/null
> +++ b/package/libglob/libglob.mk
> @@ -0,0 +1,27 @@
> +####################################################################
> ############
> +#
> +# libglob
> +#
> +####################################################################
> ############
> +
> +LIBGLOB_VERSION = 1.0
> +LIBGLOB_SITE = $(call github,voidlinux,libglob,$(LIBGLOB_VERSION))
> +LIBGLOB_LICENSE = BSD-3c
> +LIBGLOB_LICENSE_FILES = LICENSE
> +
> +LIBGLOB_ADD_TOOLCHAIN_DEPENDENCY = NO
> +LIBGLOB_INSTALL_STAGING = YES
> +
> +define LIBGLOB_BUILD_CMDS
> + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
> +endef
> +
> +define LIBGLOB_INSTALL_STAGING_CMDS
> + $(MAKE) PREFIX=/usr DESTDIR=$(STAGING_DIR) -C $(@D) install
> +endef
> +
> +define LIBGLOB_INSTALL_TARGET_CMDS
> + $(MAKE) PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
> +endef
This installs both, the shared and the static files.
> +
> +$(eval $(generic-package))
Best regards
J?rg Krause
next prev parent reply other threads:[~2016-08-01 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-31 16:29 [Buildroot] [PATCH/RFC 1/1] package/libglob: new package Bernd Kuhls
2016-08-01 20:29 ` Jörg Krause [this message]
2016-08-02 17:15 ` Bernd Kuhls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470083347.4303.12.camel@embedded.rocks \
--to=joerg.krause@embedded.rocks \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.