Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt
@ 2024-04-03 15:36 Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 2/9] package/apr: " Bernd Kuhls
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing apg's libcrypt dependency this broke
the apg build using glibc version 2.39.

To fix this select the libxcrypt dependency to apg when using a glibc
toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/3df84ae300bb648492cffc21e4481fc5abf02aeb/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/apg/Config.in | 1 +
 package/apg/apg.mk    | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/apg/Config.in b/package/apg/Config.in
index 94c286a178..f54ffdba39 100644
--- a/package/apg/Config.in
+++ b/package/apg/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_APG
 	bool "apg"
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  Automated Password Generator (APG).
 
diff --git a/package/apg/apg.mk b/package/apg/apg.mk
index 16661f4b8d..1929e21f58 100644
--- a/package/apg/apg.mk
+++ b/package/apg/apg.mk
@@ -9,6 +9,10 @@ APG_SITE = $(call github,wilx,apg,v$(APG_VERSION))
 APG_LICENSE = BSD-3-Clause
 APG_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+APG_DEPENDENCIES += libxcrypt
+endif
+
 define APG_BUILD_CMDS
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D)
 endef
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 2/9] package/apr: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 3/9] package/dovecot: " Bernd Kuhls
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing apr's libcrypt dependency this broke
the apache build using glibc version 2.39.

To fix this select the libxcrypt dependency to apr when using a glibc
toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/11ccf857a70ae9f44e8d3ae39fc01db68632ca64/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/apr/Config.in | 1 +
 package/apr/apr.mk    | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/apr/Config.in b/package/apr/Config.in
index 4606fc5378..9427b7af2c 100644
--- a/package/apr/Config.in
+++ b/package/apr/Config.in
@@ -3,6 +3,7 @@ config BR2_PACKAGE_APR
 	# apr really needs shared library support
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_USE_MMU # fork() in apr_proc_fork()
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  The mission of the Apache Portable Runtime (APR) project is to
 	  create and maintain software libraries that provide a
diff --git a/package/apr/apr.mk b/package/apr/apr.mk
index bdc5e915c6..cb8c12dd65 100644
--- a/package/apr/apr.mk
+++ b/package/apr/apr.mk
@@ -68,6 +68,10 @@ else
 APR_CONF_OPTS += --disable-nonportable-atomics
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+APR_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 APR_DEPENDENCIES += util-linux
 endif
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 3/9] package/dovecot: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 2/9] package/apr: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 4/9] package/freeswitch: " Bernd Kuhls
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing dovecot's libcrypt dependency this
broke the dovecot build using glibc version 2.39.

To fix this select the libxcrypt dependency to dovecot when using a
glibc toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/99d816fb7a033ec73a958200041f0dcd728e0e87/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/dovecot/Config.in  | 1 +
 package/dovecot/dovecot.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/dovecot/Config.in b/package/dovecot/Config.in
index 20b08b62be..c94421526f 100644
--- a/package/dovecot/Config.in
+++ b/package/dovecot/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_DOVECOT
 	bool "dovecot"
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_ZLIB
 	help
diff --git a/package/dovecot/dovecot.mk b/package/dovecot/dovecot.mk
index f90996fdd7..b8652900d0 100644
--- a/package/dovecot/dovecot.mk
+++ b/package/dovecot/dovecot.mk
@@ -73,6 +73,10 @@ else
 DOVECOT_CONF_OPTS += --without-sodium
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+DOVECOT_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
 DOVECOT_CONF_OPTS += --with-pam
 DOVECOT_DEPENDENCIES += linux-pam
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 4/9] package/freeswitch: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 2/9] package/apr: " Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 3/9] package/dovecot: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 5/9] package/leafnode2: " Bernd Kuhls
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing freeswitch's libcrypt dependency this
broke the freeswitch build using glibc version 2.39.

To fix this select the libxcrypt dependency to freeswitch when using a
glibc toolchain and add the dependency if selected.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/freeswitch/Config.in     | 1 +
 package/freeswitch/freeswitch.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
index 1ab624c33c..80d18e064d 100644
--- a/package/freeswitch/Config.in
+++ b/package/freeswitch/Config.in
@@ -7,6 +7,7 @@ config BR2_PACKAGE_FREESWITCH
 	depends on BR2_USE_WCHAR # uses wchar_t
 	select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
 	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_JPEG
 	# src/mod/applications/mod_cv/mod_cv.cpp includes
 	# highgui.h, imgproc.hpp & objdetect.hpp
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 5b9dc49c9b..6160fe5fcb 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -229,6 +229,10 @@ FREESWITCH_DEPENDENCIES += libpng
 FREESWITCH_ENABLED_MODULES += formats/mod_png
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+FREESWITCH_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_LIBYAML),y)
 FREESWITCH_DEPENDENCIES += libyaml
 FREESWITCH_ENABLED_MODULES += languages/mod_yaml
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 5/9] package/leafnode2: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (2 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 4/9] package/freeswitch: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 6/9] package/lighttpd: " Bernd Kuhls
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing leafnode2's libcrypt dependency this
broke the leafnode2 build using glibc version 2.39.

To fix this select the libxcrypt dependency to leafnode2 when using a
glibc toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/08f86ce128623105087cda0c5b32a1d0d0cfa166/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/leafnode2/Config.in    | 1 +
 package/leafnode2/leafnode2.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/leafnode2/Config.in b/package/leafnode2/Config.in
index 3700b6fb80..df9b246946 100644
--- a/package/leafnode2/Config.in
+++ b/package/leafnode2/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LEAFNODE2
 	bool "leafnode2"
 	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_PCRE
 	help
 	  Leafnode-2 is a store-and-forward NNTP (or Usenet) proxy
diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk
index 3ed2e20266..cba6b1f72a 100644
--- a/package/leafnode2/leafnode2.mk
+++ b/package/leafnode2/leafnode2.mk
@@ -14,6 +14,10 @@ LEAFNODE2_AUTORECONF = YES
 LEAFNODE2_CONF_ENV = \
 	PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+LEAFNODE2_DEPENDENCIES += libxcrypt
+endif
+
 # --enable-runas-user use 'news' as default but the configure stop
 # if news doesn't exist on the build host.
 # Use 'root' while cross-compiling
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 6/9] package/lighttpd: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (3 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 5/9] package/leafnode2: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 7/9] package/pure-ftpd: " Bernd Kuhls
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing lighttpd's libcrypt dependency this
broke the lighttpd build using glibc version 2.39.

To fix this select the libxcrypt dependency to lighttpd when using a
glibc toolchain and add the dependency if selected.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/lighttpd/Config.in   | 1 +
 package/lighttpd/lighttpd.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/lighttpd/Config.in b/package/lighttpd/Config.in
index 5d9e624506..66532d7dd5 100644
--- a/package/lighttpd/Config.in
+++ b/package/lighttpd/Config.in
@@ -6,6 +6,7 @@ config BR2_PACKAGE_LIGHTTPD
 	bool "lighttpd"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_XXHASH
 	help
 	  lighttpd a secure, fast, compliant and very flexible
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
index 5109e3cebb..be8eda6b8d 100644
--- a/package/lighttpd/lighttpd.mk
+++ b/package/lighttpd/lighttpd.mk
@@ -30,6 +30,10 @@ LIGHTTPD_CONF_OPTS = \
 	-Dbuild_static=false \
 	-Dmoduledir=lib/lighttpd
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+LIGHTTPD_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_BROTLI),y)
 LIGHTTPD_DEPENDENCIES += brotli
 LIGHTTPD_CONF_OPTS += -Dwith_brotli=enabled
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 7/9] package/pure-ftpd: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (4 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 6/9] package/lighttpd: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 8/9] package/squid: " Bernd Kuhls
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing pure-ftpd's libcrypt dependency this
broke the pure-ftpd build using glibc version 2.39.

To fix this select the libxcrypt dependency to pure-ftpd when using a
glibc toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/2a62f48973b30873f4da842e75176633398bef86/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/pure-ftpd/Config.in    | 1 +
 package/pure-ftpd/pure-ftpd.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/pure-ftpd/Config.in b/package/pure-ftpd/Config.in
index c060102650..edfe0159e3 100644
--- a/package/pure-ftpd/Config.in
+++ b/package/pure-ftpd/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PURE_FTPD
 	bool "pure-ftpd"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  Pure-FTPd is a free (BSD), secure, production-quality and
 	  standard- conformant FTP server. It doesn't provide useless
diff --git a/package/pure-ftpd/pure-ftpd.mk b/package/pure-ftpd/pure-ftpd.mk
index b918c70930..2c01bc8804 100644
--- a/package/pure-ftpd/pure-ftpd.mk
+++ b/package/pure-ftpd/pure-ftpd.mk
@@ -30,6 +30,10 @@ ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
 PURE_FTPD_DEPENDENCIES += libsodium
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+PURE_FTPD_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_MARIADB),y)
 PURE_FTPD_CONF_OPTS += --with-mysql=$(STAGING_DIR)/usr
 PURE_FTPD_DEPENDENCIES += mariadb
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 8/9] package/squid: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (5 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 7/9] package/pure-ftpd: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 15:36 ` [Buildroot] [PATCH 9/9] package/sysvinit: " Bernd Kuhls
  2024-04-03 19:56 ` [Buildroot] [PATCH 1/9] package/apg: " Yann E. MORIN
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing squid's libcrypt dependency this
broke the squid build using glibc version 2.39.

To fix this select the libxcrypt dependency to squid when using a
glibc toolchain and add the dependency if selected.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/squid/Config.in | 1 +
 package/squid/squid.mk  | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/squid/Config.in b/package/squid/Config.in
index 149884d815..ab13e735e1 100644
--- a/package/squid/Config.in
+++ b/package/squid/Config.in
@@ -17,6 +17,7 @@ config BR2_PACKAGE_SQUID
 	depends on BR2_USE_MMU
 	select BR2_PACKAGE_LIBCAP
 	select BR2_PACKAGE_LIBTOOL
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_LIBXML2
 	help
 	  Caching proxy for the Web supporting HTTP, HTTPS, FTP, and
diff --git a/package/squid/squid.mk b/package/squid/squid.mk
index 6a2b522336..e325c63cb0 100644
--- a/package/squid/squid.mk
+++ b/package/squid/squid.mk
@@ -52,6 +52,10 @@ else
 SQUID_CONF_OPTS += --without-mit-krb5
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+SQUID_DEPENDENCIES += libxcrypt
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SQUID_CONF_OPTS += --with-openssl
 SQUID_DEPENDENCIES += openssl
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 9/9] package/sysvinit: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (6 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 8/9] package/squid: " Bernd Kuhls
@ 2024-04-03 15:36 ` Bernd Kuhls
  2024-04-03 19:56 ` [Buildroot] [PATCH 1/9] package/apg: " Yann E. MORIN
  8 siblings, 0 replies; 10+ messages in thread
From: Bernd Kuhls @ 2024-04-03 15:36 UTC (permalink / raw)
  To: buildroot

When glibc was bumped to version 2.39 in commit
b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing sysvinit's libcrypt dependency this
broke the sysvinit build using glibc version 2.39.

To fix this select the libxcrypt dependency to sysvinit when using a
glibc toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/3a9/3a99389bd7b6db7f9467b34c7bead1d58ce5a18d/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/sysvinit/Config.in   | 1 +
 package/sysvinit/sysvinit.mk | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/package/sysvinit/Config.in b/package/sysvinit/Config.in
index 7f27a70fcc..e5ca1d7f2d 100644
--- a/package/sysvinit/Config.in
+++ b/package/sysvinit/Config.in
@@ -3,6 +3,7 @@ config BR2_PACKAGE_SYSVINIT
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_INIT_SYSV
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  System V style implementation of /sbin/init, parent of all
 	  processes
diff --git a/package/sysvinit/sysvinit.mk b/package/sysvinit/sysvinit.mk
index 49c92ec2ac..7f37cea131 100644
--- a/package/sysvinit/sysvinit.mk
+++ b/package/sysvinit/sysvinit.mk
@@ -18,6 +18,10 @@ SYSVINIT_DEPENDENCIES += libselinux
 SYSVINIT_MAKE_OPTS += WITH_SELINUX="yes"
 endif
 
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+SYSVINIT_DEPENDENCIES += libxcrypt
+endif
+
 define SYSVINIT_BUILD_CMDS
 	$(TARGET_CONFIGURE_OPTS) $(MAKE) $(SYSVINIT_MAKE_OPTS) -C $(@D)/src
 endef
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt
  2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
                   ` (7 preceding siblings ...)
  2024-04-03 15:36 ` [Buildroot] [PATCH 9/9] package/sysvinit: " Bernd Kuhls
@ 2024-04-03 19:56 ` Yann E. MORIN
  8 siblings, 0 replies; 10+ messages in thread
From: Yann E. MORIN @ 2024-04-03 19:56 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

Bernd, All,

On 2024-04-03 17:36 +0200, Bernd Kuhls spake thusly:
> When glibc was bumped to version 2.39 in commit
> b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated
> libcrypt support.
> 
> As glibc's libcrypt was providing apg's libcrypt dependency this broke
> the apg build using glibc version 2.39.
> 
> To fix this select the libxcrypt dependency to apg when using a glibc
> toolchain and add the dependency if selected.
> 
> Fixes:
> http://autobuild.buildroot.net/results/3df84ae300bb648492cffc21e4481fc5abf02aeb/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Thanks a lot for those patches! Whole series applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/apg/Config.in | 1 +
>  package/apg/apg.mk    | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/package/apg/Config.in b/package/apg/Config.in
> index 94c286a178..f54ffdba39 100644
> --- a/package/apg/Config.in
> +++ b/package/apg/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_APG
>  	bool "apg"
> +	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
>  	help
>  	  Automated Password Generator (APG).
>  
> diff --git a/package/apg/apg.mk b/package/apg/apg.mk
> index 16661f4b8d..1929e21f58 100644
> --- a/package/apg/apg.mk
> +++ b/package/apg/apg.mk
> @@ -9,6 +9,10 @@ APG_SITE = $(call github,wilx,apg,v$(APG_VERSION))
>  APG_LICENSE = BSD-3-Clause
>  APG_LICENSE_FILES = COPYING
>  
> +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
> +APG_DEPENDENCIES += libxcrypt
> +endif
> +
>  define APG_BUILD_CMDS
>  	$(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D)
>  endef
> -- 
> 2.39.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-03 19:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 15:36 [Buildroot] [PATCH 1/9] package/apg: add optional dependency to libxcrypt Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 2/9] package/apr: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 3/9] package/dovecot: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 4/9] package/freeswitch: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 5/9] package/leafnode2: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 6/9] package/lighttpd: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 7/9] package/pure-ftpd: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 8/9] package/squid: " Bernd Kuhls
2024-04-03 15:36 ` [Buildroot] [PATCH 9/9] package/sysvinit: " Bernd Kuhls
2024-04-03 19:56 ` [Buildroot] [PATCH 1/9] package/apg: " Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox