All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach via buildroot <buildroot@buildroot.org>
To: Vincent Jardin <vjardin@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
Date: Tue, 19 Nov 2024 07:42:47 +0200	[thread overview]
Message-ID: <874j43g4o8.fsf@tarshish> (raw)
In-Reply-To: <20241119015957.47737-1-vjardin@free.fr> (Vincent Jardin's message of "Tue, 19 Nov 2024 02:59:57 +0100")

Hi Vincent,

On Tue, Nov 19 2024, Vincent Jardin wrote:
> The libnss_ato module is a set of C library extensions which allows to
> map every nss request for unknown user to a single predefined user.
>
> Signed-off-by: Vincent Jardin <vjardin@free.fr>
> ---
> diff --git a/package/libnss-ato/Config.in b/package/libnss-ato/Config.in
> new file mode 100644
> index 0000000000..ca3b7413d9
> --- /dev/null
> +++ b/package/libnss-ato/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_LIBNSS_ATO
> +	bool "libnss-ato"
> +	help
> +	  Library to map every nss request for unknown user to a
> +	  single predefined user.

I think this should depend on BR2_TOOLCHAIN_USES_GLIBC. Other C
libraries do not provide NSS functionality. It looks like this won't
even build without glibc headers.

baruch

> +
> +	  https://github.com/donapieppo/libnss-ato
> diff --git a/package/libnss-ato/libnss-ato.hash b/package/libnss-ato/libnss-ato.hash
> new file mode 100644
> index 0000000000..5e828f1be6
> --- /dev/null
> +++ b/package/libnss-ato/libnss-ato.hash
> @@ -0,0 +1,4 @@
> +# Locally computed
> +sha256  3de3161d298c48e55d7416ad89130e13dd72263b93563f3fb79c899fa8450ce2  copyright
> +sha256  e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118  lgpl-3.0.txt
> +sha256  87e17468eec71254e7848cb7c9dae5603ab376a719b05e2f5e69038ffed8beef  libnss-ato-4a29c8410cdac590a210dab2dec41d5f4b40d282.tar.gz
> diff --git a/package/libnss-ato/libnss-ato.mk b/package/libnss-ato/libnss-ato.mk
> new file mode 100644
> index 0000000000..46b8a7963b
> --- /dev/null
> +++ b/package/libnss-ato/libnss-ato.mk
> @@ -0,0 +1,26 @@
> +################################################################################
> +#
> +# libnss-ato
> +#
> +################################################################################
> +
> +LIBNSS_ATO_VERSION = 4a29c8410cdac590a210dab2dec41d5f4b40d282
> +LIBNSS_ATO_SITE = $(call github,donapieppo,libnss-ato,$(LIBNSS_ATO_VERSION))
> +LIBNSS_ATO_LICENSE = LGPL-3.0+
> +LIBNSS_ATO_LICENSE_FILES = copyright lgpl-3.0.txt
> +
> +# Skip the default build system (no configure/Makefile to use)

I see Makefile here:

  https://github.com/donapieppo/libnss-ato/blob/master/Makefile

Doesn't this work for you?

baruch

> +define LIBNSS_ATO_BUILD_CMDS
> +	$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
> +		-fPIC -Wall -shared -o $(@D)/libnss_ato.so.2 \
> +		-Wl,-soname,libnss_ato.so.2 \
> +		$(@D)/libnss_ato.c
> +endef
> +
> +define LIBNSS_ATO_INSTALL_TARGET_CMDS
> +	$(INSTALL) -D -m 0755 $(@D)/libnss_ato.so.2 $(TARGET_DIR)/lib/libnss_ato.so.2
> +	ln -sf libnss_ato.so.2 $(TARGET_DIR)/lib/libnss_ato.so
> +	$(INSTALL) -D -m 0644 $(@D)/libnss-ato.conf $(TARGET_DIR)/etc/libnss-ato.conf
> +endef
> +
> +$(eval $(generic-package))

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-11-19  5:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19  1:44 [Buildroot] [PATCH 1/1] package/libnss-ato: new package Vincent Jardin
2024-11-19  1:59 ` Vincent Jardin
2024-11-19  5:42   ` Baruch Siach via buildroot [this message]
2024-11-19 16:30     ` Vincent Jardin
2024-11-19 16:35     ` Vincent Jardin
2024-11-19 17:08       ` Baruch Siach via buildroot
2024-11-19 18:32         ` Vincent Jardin
2024-11-20  4:36           ` Baruch Siach via buildroot
2024-11-20  8:07             ` Vincent Jardin
2025-01-27  9:57               ` Vincent Jardin
2024-11-20  8:08             ` Vincent Jardin
  -- strict thread matches above, loose matches on Subject: below --
2025-02-05 15:29 Frager, Neal via buildroot

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=874j43g4o8.fsf@tarshish \
    --to=buildroot@buildroot.org \
    --cc=baruch@tkos.co.il \
    --cc=vjardin@free.fr \
    /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.