* [Buildroot] [PATCH 1/1] package/libnss-ato: new package
@ 2024-11-19 1:44 Vincent Jardin
2024-11-19 1:59 ` Vincent Jardin
0 siblings, 1 reply; 12+ messages in thread
From: Vincent Jardin @ 2024-11-19 1:44 UTC (permalink / raw)
To: buildroot; +Cc: vjardin
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>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libnss-ato/Config.in | 7 +++++++
package/libnss-ato/libnss-ato.hash | 4 ++++
package/libnss-ato/libnss-ato.mk | 27 +++++++++++++++++++++++++++
5 files changed, 40 insertions(+)
create mode 100644 package/libnss-ato/Config.in
create mode 100644 package/libnss-ato/libnss-ato.hash
create mode 100644 package/libnss-ato/libnss-ato.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 3945803d53..6dee1c10ec 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3285,6 +3285,7 @@ F: board/nvidia/bf3/
F: configs/nvidia_bf3_defconfig
F: package/bfscripts/
F: package/dpdk/
+F: package/libnss-ato/
N: Vincent Prince <vincent.prince.fr@gmail.com>
F: package/nss-myhostname/
diff --git a/package/Config.in b/package/Config.in
index 1eb5e1e020..30dc2c1712 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1610,6 +1610,7 @@ menu "Crypto"
source "package/libmd/Config.in"
source "package/libmhash/Config.in"
source "package/libnss/Config.in"
+ source "package/libnss-ato/Config.in"
source "package/libolm/Config.in"
source "package/libp11/Config.in"
source "package/libscrypt/Config.in"
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.
+
+ 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..d63d84e6b1
--- /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 3cd9e41e293a37a541729a5f88b1c0d4433a0b9cb78b8e4637ad57c08add96c5 libnss-ato-4a29c8410cdac590a210dab2dec41d5f4b40d282-git4.tar.gz
diff --git a/package/libnss-ato/libnss-ato.mk b/package/libnss-ato/libnss-ato.mk
new file mode 100644
index 0000000000..4676e44d8d
--- /dev/null
+++ b/package/libnss-ato/libnss-ato.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# libnss-ato
+#
+################################################################################
+
+LIBNSS_ATO_VERSION = 4a29c8410cdac590a210dab2dec41d5f4b40d282
+LIBNSS_ATO_SITE = https://github.com/donapieppo/libnss-ato.git
+LIBNSS_ATO_SITE_METHOD = git
+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)
+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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 1/1] package/libnss-ato: new package
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
0 siblings, 1 reply; 12+ messages in thread
From: Vincent Jardin @ 2024-11-19 1:59 UTC (permalink / raw)
To: buildroot; +Cc: vjardin
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>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libnss-ato/Config.in | 7 +++++++
package/libnss-ato/libnss-ato.hash | 4 ++++
package/libnss-ato/libnss-ato.mk | 26 ++++++++++++++++++++++++++
5 files changed, 39 insertions(+)
create mode 100644 package/libnss-ato/Config.in
create mode 100644 package/libnss-ato/libnss-ato.hash
create mode 100644 package/libnss-ato/libnss-ato.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 3945803d53..6dee1c10ec 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3285,6 +3285,7 @@ F: board/nvidia/bf3/
F: configs/nvidia_bf3_defconfig
F: package/bfscripts/
F: package/dpdk/
+F: package/libnss-ato/
N: Vincent Prince <vincent.prince.fr@gmail.com>
F: package/nss-myhostname/
diff --git a/package/Config.in b/package/Config.in
index 1eb5e1e020..30dc2c1712 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1610,6 +1610,7 @@ menu "Crypto"
source "package/libmd/Config.in"
source "package/libmhash/Config.in"
source "package/libnss/Config.in"
+ source "package/libnss-ato/Config.in"
source "package/libolm/Config.in"
source "package/libp11/Config.in"
source "package/libscrypt/Config.in"
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.
+
+ 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)
+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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-19 1:59 ` Vincent Jardin
@ 2024-11-19 5:42 ` Baruch Siach via buildroot
2024-11-19 16:30 ` Vincent Jardin
2024-11-19 16:35 ` Vincent Jardin
0 siblings, 2 replies; 12+ messages in thread
From: Baruch Siach via buildroot @ 2024-11-19 5:42 UTC (permalink / raw)
To: Vincent Jardin; +Cc: buildroot
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-19 5:42 ` Baruch Siach via buildroot
@ 2024-11-19 16:30 ` Vincent Jardin
2024-11-19 16:35 ` Vincent Jardin
1 sibling, 0 replies; 12+ messages in thread
From: Vincent Jardin @ 2024-11-19 16:30 UTC (permalink / raw)
To: buildroot; +Cc: Vincent Jardin
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>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libnss-ato/Config.in | 11 +++++++++++
package/libnss-ato/libnss-ato.hash | 4 ++++
package/libnss-ato/libnss-ato.mk | 26 ++++++++++++++++++++++++++
5 files changed, 43 insertions(+)
create mode 100644 package/libnss-ato/Config.in
create mode 100644 package/libnss-ato/libnss-ato.hash
create mode 100644 package/libnss-ato/libnss-ato.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 3945803d53..6dee1c10ec 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3285,6 +3285,7 @@ F: board/nvidia/bf3/
F: configs/nvidia_bf3_defconfig
F: package/bfscripts/
F: package/dpdk/
+F: package/libnss-ato/
N: Vincent Prince <vincent.prince.fr@gmail.com>
F: package/nss-myhostname/
diff --git a/package/Config.in b/package/Config.in
index 1eb5e1e020..30dc2c1712 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1610,6 +1610,7 @@ menu "Crypto"
source "package/libmd/Config.in"
source "package/libmhash/Config.in"
source "package/libnss/Config.in"
+ source "package/libnss-ato/Config.in"
source "package/libolm/Config.in"
source "package/libp11/Config.in"
source "package/libscrypt/Config.in"
diff --git a/package/libnss-ato/Config.in b/package/libnss-ato/Config.in
new file mode 100644
index 0000000000..6c6fc23857
--- /dev/null
+++ b/package/libnss-ato/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBNSS_ATO
+ bool "libnss-ato"
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ help
+ Library to map every nss request for unknown user to a
+ single predefined user.
+
+ https://github.com/donapieppo/libnss-ato
+
+comment "libnss-ato needs a glibc toolchain"
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
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)
+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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-19 5:42 ` Baruch Siach via buildroot
2024-11-19 16:30 ` Vincent Jardin
@ 2024-11-19 16:35 ` Vincent Jardin
2024-11-19 17:08 ` Baruch Siach via buildroot
1 sibling, 1 reply; 12+ messages in thread
From: Vincent Jardin @ 2024-11-19 16:35 UTC (permalink / raw)
To: Baruch Siach; +Cc: buildroot
Hi Baruch,
On Tue, Nov 19, 2024 at 07:42:47AM UTC, Baruch Siach wrote:
>
> 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.
Thanks, done within the new update.
https://patchwork.ozlabs.org/project/buildroot/patch/20241119163025.54898-1-vjardin@free.fr/
Thanks for the suggestion. I think I found a way to check it using:
$ utils/test-pkg -a -p libnss-ato
arm-aarch64 [ 1/41]: OK
bootlin-aarch64-glibc [ 2/41]: OK
bootlin-arcle-hs38-uclibc [ 3/41]: SKIPPED
bootlin-armv5-uclibc [ 4/41]: SKIPPED
bootlin-armv7-glibc [ 5/41]: OK
bootlin-armv7m-uclibc [ 6/41]: SKIPPED
bootlin-armv7-musl [ 7/41]: SKIPPED
bootlin-m68k-5208-uclibc [ 8/41]: SKIPPED
bootlin-m68k-68040-uclibc [ 9/41]: SKIPPED
bootlin-microblazeel-uclibc [10/41]: SKIPPED
bootlin-mipsel32r6-glibc [11/41]: OK
bootlin-mipsel-uclibc [12/41]: SKIPPED
bootlin-nios2-glibc [13/41]: OK
bootlin-openrisc-uclibc [14/41]: SKIPPED
bootlin-powerpc64le-power8-glibc [15/41]: OK
bootlin-powerpc-e500mc-uclibc [16/41]: SKIPPED
bootlin-riscv32-glibc [17/41]: OK
bootlin-riscv64-glibc [18/41]: OK
bootlin-riscv64-musl [19/41]: SKIPPED
bootlin-s390x-z13-glibc [20/41]: OK
bootlin-sh4-uclibc [21/41]: SKIPPED
bootlin-sparc64-glibc [22/41]: OK
bootlin-sparc-uclibc [23/41]: SKIPPED
bootlin-x86-64-glibc [24/41]: OK
bootlin-x86-64-musl [25/41]: SKIPPED
bootlin-x86-64-uclibc [26/41]: SKIPPED
bootlin-x86-i686-musl [27/41]: SKIPPED
bootlin-xtensa-uclibc [28/41]: SKIPPED
br-arm-basic [29/41]: SKIPPED
br-arm-full-nothread [30/41]: SKIPPED
br-arm-full-static [31/41]: SKIPPED
br-i386-pentium4-full [32/41]: SKIPPED
br-mips64-n64-full [33/41]: SKIPPED
br-mips64r6-el-hf-glibc [34/41]: OK
br-powerpc-603e-basic-cpp [35/41]: SKIPPED
br-powerpc64-power7-glibc [36/41]: OK
linaro-aarch64-be [37/41]: OK
linaro-aarch64 [38/41]: OK
linaro-arm [39/41]: OK
sourcery-mips64 [40/41]: OK
sourcery-mips [41/41]: OK
41 builds, 23 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
best regards,
Vincent
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-19 16:35 ` Vincent Jardin
@ 2024-11-19 17:08 ` Baruch Siach via buildroot
2024-11-19 18:32 ` Vincent Jardin
0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach via buildroot @ 2024-11-19 17:08 UTC (permalink / raw)
To: Vincent Jardin; +Cc: buildroot
Hi Vincent,
On Tue, Nov 19 2024, Vincent Jardin wrote:
> On Tue, Nov 19, 2024 at 07:42:47AM UTC, Baruch Siach wrote:
>>
>> 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.
>
> Thanks, done within the new update.
> https://patchwork.ozlabs.org/project/buildroot/patch/20241119163025.54898-1-vjardin@free.fr/
Thanks for the new iteration.
I guess you missed my second comment on your original patch, regarding
Makefile.
baruch
>
> Thanks for the suggestion. I think I found a way to check it using:
> $ utils/test-pkg -a -p libnss-ato
> arm-aarch64 [ 1/41]: OK
> bootlin-aarch64-glibc [ 2/41]: OK
> bootlin-arcle-hs38-uclibc [ 3/41]: SKIPPED
> bootlin-armv5-uclibc [ 4/41]: SKIPPED
> bootlin-armv7-glibc [ 5/41]: OK
> bootlin-armv7m-uclibc [ 6/41]: SKIPPED
> bootlin-armv7-musl [ 7/41]: SKIPPED
> bootlin-m68k-5208-uclibc [ 8/41]: SKIPPED
> bootlin-m68k-68040-uclibc [ 9/41]: SKIPPED
> bootlin-microblazeel-uclibc [10/41]: SKIPPED
> bootlin-mipsel32r6-glibc [11/41]: OK
> bootlin-mipsel-uclibc [12/41]: SKIPPED
> bootlin-nios2-glibc [13/41]: OK
> bootlin-openrisc-uclibc [14/41]: SKIPPED
> bootlin-powerpc64le-power8-glibc [15/41]: OK
> bootlin-powerpc-e500mc-uclibc [16/41]: SKIPPED
> bootlin-riscv32-glibc [17/41]: OK
> bootlin-riscv64-glibc [18/41]: OK
> bootlin-riscv64-musl [19/41]: SKIPPED
> bootlin-s390x-z13-glibc [20/41]: OK
> bootlin-sh4-uclibc [21/41]: SKIPPED
> bootlin-sparc64-glibc [22/41]: OK
> bootlin-sparc-uclibc [23/41]: SKIPPED
> bootlin-x86-64-glibc [24/41]: OK
> bootlin-x86-64-musl [25/41]: SKIPPED
> bootlin-x86-64-uclibc [26/41]: SKIPPED
> bootlin-x86-i686-musl [27/41]: SKIPPED
> bootlin-xtensa-uclibc [28/41]: SKIPPED
> br-arm-basic [29/41]: SKIPPED
> br-arm-full-nothread [30/41]: SKIPPED
> br-arm-full-static [31/41]: SKIPPED
> br-i386-pentium4-full [32/41]: SKIPPED
> br-mips64-n64-full [33/41]: SKIPPED
> br-mips64r6-el-hf-glibc [34/41]: OK
> br-powerpc-603e-basic-cpp [35/41]: SKIPPED
> br-powerpc64-power7-glibc [36/41]: OK
> linaro-aarch64-be [37/41]: OK
> linaro-aarch64 [38/41]: OK
> linaro-arm [39/41]: OK
> sourcery-mips64 [40/41]: OK
> sourcery-mips [41/41]: OK
> 41 builds, 23 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
>
> best regards,
> Vincent
--
~. .~ 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
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
0 siblings, 1 reply; 12+ messages in thread
From: Vincent Jardin @ 2024-11-19 18:32 UTC (permalink / raw)
To: Baruch Siach; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 3385 bytes --]
Hi Baruch,
Le 19 novembre 2024 18:08:03 Baruch Siach <baruch@tkos.co.il> a écrit :
> Hi Vincent,
>
> On Tue, Nov 19 2024, Vincent Jardin wrote:
>> On Tue, Nov 19, 2024 at 07:42:47AM UTC, Baruch Siach wrote:
>>>
>>> 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.
>>
>> Thanks, done within the new update.
>> https://patchwork.ozlabs.org/project/buildroot/patch/20241119163025.54898-1-vjardin@free.fr/
>
> Thanks for the new iteration.
>
> I guess you missed my second comment on your original patch, regarding
> Makefile.
Sorry.
Too many patches were needed to fix it. So since we just need to compile a
c file, I did prefer not to use it. I do not understand the benefit of
patching if it is not needed.
Best regards,
Vincent
>
>
> baruch
>
>>
>> Thanks for the suggestion. I think I found a way to check it using:
>> $ utils/test-pkg -a -p libnss-ato
>> arm-aarch64 [ 1/41]: OK
>> bootlin-aarch64-glibc [ 2/41]: OK
>> bootlin-arcle-hs38-uclibc [ 3/41]: SKIPPED
>> bootlin-armv5-uclibc [ 4/41]: SKIPPED
>> bootlin-armv7-glibc [ 5/41]: OK
>> bootlin-armv7m-uclibc [ 6/41]: SKIPPED
>> bootlin-armv7-musl [ 7/41]: SKIPPED
>> bootlin-m68k-5208-uclibc [ 8/41]: SKIPPED
>> bootlin-m68k-68040-uclibc [ 9/41]: SKIPPED
>> bootlin-microblazeel-uclibc [10/41]: SKIPPED
>> bootlin-mipsel32r6-glibc [11/41]: OK
>> bootlin-mipsel-uclibc [12/41]: SKIPPED
>> bootlin-nios2-glibc [13/41]: OK
>> bootlin-openrisc-uclibc [14/41]: SKIPPED
>> bootlin-powerpc64le-power8-glibc [15/41]: OK
>> bootlin-powerpc-e500mc-uclibc [16/41]: SKIPPED
>> bootlin-riscv32-glibc [17/41]: OK
>> bootlin-riscv64-glibc [18/41]: OK
>> bootlin-riscv64-musl [19/41]: SKIPPED
>> bootlin-s390x-z13-glibc [20/41]: OK
>> bootlin-sh4-uclibc [21/41]: SKIPPED
>> bootlin-sparc64-glibc [22/41]: OK
>> bootlin-sparc-uclibc [23/41]: SKIPPED
>> bootlin-x86-64-glibc [24/41]: OK
>> bootlin-x86-64-musl [25/41]: SKIPPED
>> bootlin-x86-64-uclibc [26/41]: SKIPPED
>> bootlin-x86-i686-musl [27/41]: SKIPPED
>> bootlin-xtensa-uclibc [28/41]: SKIPPED
>> br-arm-basic [29/41]: SKIPPED
>> br-arm-full-nothread [30/41]: SKIPPED
>> br-arm-full-static [31/41]: SKIPPED
>> br-i386-pentium4-full [32/41]: SKIPPED
>> br-mips64-n64-full [33/41]: SKIPPED
>> br-mips64r6-el-hf-glibc [34/41]: OK
>> br-powerpc-603e-basic-cpp [35/41]: SKIPPED
>> br-powerpc64-power7-glibc [36/41]: OK
>> linaro-aarch64-be [37/41]: OK
>> linaro-aarch64 [38/41]: OK
>> linaro-arm [39/41]: OK
>> sourcery-mips64 [40/41]: OK
>> sourcery-mips [41/41]: OK
>> 41 builds, 23 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
>>
>> best regards,
>> Vincent
>
> --
> ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
[-- Attachment #1.2: Type: text/html, Size: 7682 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-19 18:32 ` Vincent Jardin
@ 2024-11-20 4:36 ` Baruch Siach via buildroot
2024-11-20 8:07 ` Vincent Jardin
2024-11-20 8:08 ` Vincent Jardin
0 siblings, 2 replies; 12+ messages in thread
From: Baruch Siach via buildroot @ 2024-11-20 4:36 UTC (permalink / raw)
To: Vincent Jardin; +Cc: buildroot
Hi Vincent,
On Tue, Nov 19 2024, Vincent Jardin wrote:
> Le 19 novembre 2024 18:08:03 Baruch Siach <baruch@tkos.co.il> a écrit :
>
> Hi Vincent,
>
> On Tue, Nov 19 2024, Vincent Jardin wrote:
>
> On Tue, Nov 19, 2024 at 07:42:47AM UTC, Baruch Siach wrote:
>
> 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.
>
> Thanks, done within the new update.
> https://patchwork.ozlabs.org/project/buildroot/patch/20241119163025.54898-1-vjardin@free.fr/
>
> Thanks for the new iteration.
>
> I guess you missed my second comment on your original patch, regarding
> Makefile.
>
> Sorry.
>
> Too many patches were needed to fix it. So since we just need to
> compile a c file, I did prefer not to use it. I do not understand the
> benefit of patching if it is not needed.
The .mk file comment currently says "no configure/Makefile". It should
says something like "We don't use Makefile because ...".
baruch
--
~. .~ 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 1/1] package/libnss-ato: new package
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
1 sibling, 1 reply; 12+ messages in thread
From: Vincent Jardin @ 2024-11-20 8:07 UTC (permalink / raw)
To: buildroot; +Cc: Vincent Jardin
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>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libnss-ato/Config.in | 11 +++++++++++
package/libnss-ato/libnss-ato.hash | 4 ++++
package/libnss-ato/libnss-ato.mk | 26 ++++++++++++++++++++++++++
5 files changed, 43 insertions(+)
create mode 100644 package/libnss-ato/Config.in
create mode 100644 package/libnss-ato/libnss-ato.hash
create mode 100644 package/libnss-ato/libnss-ato.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 3945803d53..6dee1c10ec 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3285,6 +3285,7 @@ F: board/nvidia/bf3/
F: configs/nvidia_bf3_defconfig
F: package/bfscripts/
F: package/dpdk/
+F: package/libnss-ato/
N: Vincent Prince <vincent.prince.fr@gmail.com>
F: package/nss-myhostname/
diff --git a/package/Config.in b/package/Config.in
index 1eb5e1e020..30dc2c1712 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1610,6 +1610,7 @@ menu "Crypto"
source "package/libmd/Config.in"
source "package/libmhash/Config.in"
source "package/libnss/Config.in"
+ source "package/libnss-ato/Config.in"
source "package/libolm/Config.in"
source "package/libp11/Config.in"
source "package/libscrypt/Config.in"
diff --git a/package/libnss-ato/Config.in b/package/libnss-ato/Config.in
new file mode 100644
index 0000000000..6c6fc23857
--- /dev/null
+++ b/package/libnss-ato/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBNSS_ATO
+ bool "libnss-ato"
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ help
+ Library to map every nss request for unknown user to a
+ single predefined user.
+
+ https://github.com/donapieppo/libnss-ato
+
+comment "libnss-ato needs a glibc toolchain"
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
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 (avoid patching Makefile for 1 .c)
+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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-20 4:36 ` Baruch Siach via buildroot
2024-11-20 8:07 ` Vincent Jardin
@ 2024-11-20 8:08 ` Vincent Jardin
1 sibling, 0 replies; 12+ messages in thread
From: Vincent Jardin @ 2024-11-20 8:08 UTC (permalink / raw)
To: Baruch Siach; +Cc: buildroot
Hi Baruch,
On Wed, Nov 20, 2024 at 06:36:43AM UTC, Baruch Siach wrote:
> The .mk file comment currently says "no configure/Makefile". It should
> says something like "We don't use Makefile because ...".
I have updated the Makefile accordingly. Thanks for the comment.
Best regards,
Vincent
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
2024-11-20 8:07 ` Vincent Jardin
@ 2025-01-27 9:57 ` Vincent Jardin
0 siblings, 0 replies; 12+ messages in thread
From: Vincent Jardin @ 2025-01-27 9:57 UTC (permalink / raw)
To: buildroot
On Wed, Nov 20, 2024 at 09:07:03AM +0100, 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>
Hi,
I believe that new package was "ok" for Baruch last november. Could it be
considered for a merge ?
Thanks,
Vincent
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/libnss-ato/Config.in | 11 +++++++++++
> package/libnss-ato/libnss-ato.hash | 4 ++++
> package/libnss-ato/libnss-ato.mk | 26 ++++++++++++++++++++++++++
> 5 files changed, 43 insertions(+)
> create mode 100644 package/libnss-ato/Config.in
> create mode 100644 package/libnss-ato/libnss-ato.hash
> create mode 100644 package/libnss-ato/libnss-ato.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 3945803d53..6dee1c10ec 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -3285,6 +3285,7 @@ F: board/nvidia/bf3/
> F: configs/nvidia_bf3_defconfig
> F: package/bfscripts/
> F: package/dpdk/
> +F: package/libnss-ato/
>
> N: Vincent Prince <vincent.prince.fr@gmail.com>
> F: package/nss-myhostname/
> diff --git a/package/Config.in b/package/Config.in
> index 1eb5e1e020..30dc2c1712 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1610,6 +1610,7 @@ menu "Crypto"
> source "package/libmd/Config.in"
> source "package/libmhash/Config.in"
> source "package/libnss/Config.in"
> + source "package/libnss-ato/Config.in"
> source "package/libolm/Config.in"
> source "package/libp11/Config.in"
> source "package/libscrypt/Config.in"
> diff --git a/package/libnss-ato/Config.in b/package/libnss-ato/Config.in
> new file mode 100644
> index 0000000000..6c6fc23857
> --- /dev/null
> +++ b/package/libnss-ato/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_LIBNSS_ATO
> + bool "libnss-ato"
> + depends on BR2_TOOLCHAIN_USES_GLIBC
> + help
> + Library to map every nss request for unknown user to a
> + single predefined user.
> +
> + https://github.com/donapieppo/libnss-ato
> +
> +comment "libnss-ato needs a glibc toolchain"
> + depends on !BR2_TOOLCHAIN_USES_GLIBC
> 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 (avoid patching Makefile for 1 .c)
> +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))
> --
> 2.34.1
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libnss-ato: new package
@ 2025-02-05 15:29 Frager, Neal via buildroot
0 siblings, 0 replies; 12+ messages in thread
From: Frager, Neal via buildroot @ 2025-02-05 15:29 UTC (permalink / raw)
To: buildroot@buildroot.org, vjardin@free.fr
Hi Vincent,
> 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>
Thank you for the new package.
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/libnss-ato/Config.in | 11 +++++++++++
> package/libnss-ato/libnss-ato.hash | 4 ++++
> package/libnss-ato/libnss-ato.mk | 26 ++++++++++++++++++++++++++
> 5 files changed, 43 insertions(+)
> create mode 100644 package/libnss-ato/Config.in
> create mode 100644 package/libnss-ato/libnss-ato.hash
> create mode 100644 package/libnss-ato/libnss-ato.mk
--- SNIP ---
> 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
Do you think you could ask the repo owner to create a release tag with a nice
version number? Using the commit sha is probably not the best for users who
need to create an SBOM. What do you think?
> 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
Same comment as above.
> +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 (avoid patching Makefile for 1 .c)
> +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
If you are going to contact the package owner about making a release tag, you
might as well send him a pull request to fix his Makefile, so you can use make
for building the package.
It is only a single c file after all...
> +
> +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))
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2025-02-05 15:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.