All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build
@ 2024-04-01 23:40 James Hilliard
  2024-04-01 23:40 ` [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39 James Hilliard
  2024-04-02 21:28 ` [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build Yann E. MORIN
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2024-04-01 23:40 UTC (permalink / raw)
  To: buildroot
  Cc: Sen Hastings, Guillaume William Brs, James Hilliard,
	Thomas Petazzoni, Norbert Lange, Yann E . MORIN

This is needed by host-systemd.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/libxcrypt/libxcrypt.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libxcrypt/libxcrypt.mk b/package/libxcrypt/libxcrypt.mk
index 9ad030fbd2..e24bc2e847 100644
--- a/package/libxcrypt/libxcrypt.mk
+++ b/package/libxcrypt/libxcrypt.mk
@@ -18,3 +18,4 @@ LIBXCRYPT_CONF_OPTS = --disable-werror
 LIBXCRYPT_CONF_OPTS += --disable-obsolete_api
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
-- 
2.34.1

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

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

* [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39
  2024-04-01 23:40 [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build James Hilliard
@ 2024-04-01 23:40 ` James Hilliard
  2024-04-02 21:28   ` Yann E. MORIN
  2024-04-02 21:28 ` [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build Yann E. MORIN
  1 sibling, 1 reply; 4+ messages in thread
From: James Hilliard @ 2024-04-01 23:40 UTC (permalink / raw)
  To: buildroot
  Cc: Sen Hastings, Guillaume William Brs, James Hilliard,
	Thomas Petazzoni, Norbert Lange, Yann E . MORIN

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

As glibc's libcrypt was providing systemd's libcrypt dependency this
broke any systemd build using glibc version 2.39.

To fix this add the libxcrypt dependency to systemd which is the
preferred way of providing libcrypt support in systemd as the glibc
variant is only used as a fallback due to being deprecated.

We should also have host-systemd depend on host-libxcrypt in case
the host system does not provide glibc with libcrypt support.

Fixes:
 - http://autobuild.buildroot.net/results/36e/36efcfc76c015c9b4c955c13afa0f81a98b529f4

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/systemd/Config.in  | 1 +
 package/systemd/systemd.mk | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index aa5143d484..a94e9b73b8 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -28,6 +28,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
 	select BR2_PACKAGE_HAS_UDEV
 	select BR2_PACKAGE_DBUS if !BR2_PACKAGE_DBUS_BROKER # runtime
 	select BR2_PACKAGE_LIBCAP
+	select BR2_PACKAGE_LIBXCRYPT
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBS
 	select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index c6b006d1fb..8987dc19a6 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -55,6 +55,7 @@ SYSTEMD_DEPENDENCIES = \
 	host-python-jinja2 \
 	kmod \
 	libcap \
+	libxcrypt \
 	util-linux-libs \
 	$(TARGET_NLS_DEPENDENCIES)
 
@@ -882,6 +883,7 @@ HOST_SYSTEMD_DEPENDENCIES = \
 	host-util-linux \
 	host-patchelf \
 	host-libcap \
+	host-libxcrypt \
 	host-gperf \
 	host-python-jinja2
 
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build
  2024-04-01 23:40 [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build James Hilliard
  2024-04-01 23:40 ` [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39 James Hilliard
@ 2024-04-02 21:28 ` Yann E. MORIN
  1 sibling, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2024-04-02 21:28 UTC (permalink / raw)
  To: James Hilliard
  Cc: Guillaume William Brs, Norbert Lange, Sen Hastings,
	Thomas Petazzoni, buildroot

James, All,

On 2024-04-01 17:40 -0600, James Hilliard spake thusly:
> This is needed by host-systemd.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  package/libxcrypt/libxcrypt.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/libxcrypt/libxcrypt.mk b/package/libxcrypt/libxcrypt.mk
> index 9ad030fbd2..e24bc2e847 100644
> --- a/package/libxcrypt/libxcrypt.mk
> +++ b/package/libxcrypt/libxcrypt.mk
> @@ -18,3 +18,4 @@ LIBXCRYPT_CONF_OPTS = --disable-werror
>  LIBXCRYPT_CONF_OPTS += --disable-obsolete_api

You had forgotten to use the same set of _CONF_OPTS for the host
variant, so I added those.

Applied to master, thanks.

Regards,
Yann E. MORIN.

>  $(eval $(autotools-package))
> +$(eval $(host-autotools-package))
> -- 
> 2.34.1
> 
> _______________________________________________
> 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] 4+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39
  2024-04-01 23:40 ` [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39 James Hilliard
@ 2024-04-02 21:28   ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2024-04-02 21:28 UTC (permalink / raw)
  To: James Hilliard
  Cc: Guillaume William Brs, Norbert Lange, Sen Hastings,
	Thomas Petazzoni, buildroot

James, All,

On 2024-04-01 17:40 -0600, James Hilliard 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 systemd's libcrypt dependency this
> broke any systemd build using glibc version 2.39.
> 
> To fix this add the libxcrypt dependency to systemd which is the
> preferred way of providing libcrypt support in systemd as the glibc
> variant is only used as a fallback due to being deprecated.
> 
> We should also have host-systemd depend on host-libxcrypt in case
> the host system does not provide glibc with libcrypt support.
> 
> Fixes:
>  - http://autobuild.buildroot.net/results/36e/36efcfc76c015c9b4c955c13afa0f81a98b529f4
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/systemd/Config.in  | 1 +
>  package/systemd/systemd.mk | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/package/systemd/Config.in b/package/systemd/Config.in
> index aa5143d484..a94e9b73b8 100644
> --- a/package/systemd/Config.in
> +++ b/package/systemd/Config.in
> @@ -28,6 +28,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
>  	select BR2_PACKAGE_HAS_UDEV
>  	select BR2_PACKAGE_DBUS if !BR2_PACKAGE_DBUS_BROKER # runtime
>  	select BR2_PACKAGE_LIBCAP
> +	select BR2_PACKAGE_LIBXCRYPT
>  	select BR2_PACKAGE_UTIL_LINUX
>  	select BR2_PACKAGE_UTIL_LINUX_LIBS
>  	select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index c6b006d1fb..8987dc19a6 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -55,6 +55,7 @@ SYSTEMD_DEPENDENCIES = \
>  	host-python-jinja2 \
>  	kmod \
>  	libcap \
> +	libxcrypt \
>  	util-linux-libs \
>  	$(TARGET_NLS_DEPENDENCIES)
>  
> @@ -882,6 +883,7 @@ HOST_SYSTEMD_DEPENDENCIES = \
>  	host-util-linux \
>  	host-patchelf \
>  	host-libcap \
> +	host-libxcrypt \
>  	host-gperf \
>  	host-python-jinja2
>  
> -- 
> 2.34.1
> 
> _______________________________________________
> 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] 4+ messages in thread

end of thread, other threads:[~2024-04-02 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 23:40 [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build James Hilliard
2024-04-01 23:40 ` [Buildroot] [PATCH 2/2] package/systemd: fix build with glibc 2.39 James Hilliard
2024-04-02 21:28   ` Yann E. MORIN
2024-04-02 21:28 ` [Buildroot] [PATCH 1/2] package/libxcrypt: support host package build Yann E. MORIN

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.