Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Charlie Jenkins <charlie@rivosinc.com>
Cc: buildroot@buildroot.org, Julien Olivain <ju.o@free.fr>,
	Eric Le Bihan <eric.le.bihan.dev@free.fr>
Subject: Re: [Buildroot] [PATCH v2] package/linux-pam: bump to version 1.7.0
Date: Mon, 21 Apr 2025 23:41:56 +0200	[thread overview]
Message-ID: <20250421234156.40403831@windsurf> (raw)
In-Reply-To: <20250402-bump_linux_pam_1-7-0-v2-1-c000177ea7f0@rivosinc.com>

Hello Charlie,

Thanks for this v2. Unfortunately, it still has some problems, see
below.

On Wed, 02 Apr 2025 14:46:31 -0700
Charlie Jenkins <charlie@rivosinc.com> wrote:

> diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
> index 6b08a9c4c2a9ff14a9d43c96ecc99826c82bdae7..41de8f833b14247b85ce1849c08fac6a507727d5 100644
> --- a/package/linux-pam/Config.in
> +++ b/package/linux-pam/Config.in
> @@ -3,6 +3,7 @@ config BR2_PACKAGE_LINUX_PAM
>  	depends on BR2_ENABLE_LOCALE
>  	depends on BR2_USE_WCHAR
>  	depends on !BR2_STATIC_LIBS
> +	depends on !BR2_microblaze # Toolchain doesn't support shared libraries

This is not true: Microblaze supports shared libraries.

Also, you cannot add a dependency like this: it would have to be
propagated to all reverse dependencies of linux-pam:

package/nodm/Config.in: select BR2_PACKAGE_LINUX_PAM
package/openvmtools/Config.in:  select BR2_PACKAGE_LINUX_PAM
package/php-pam/Config.in:      select BR2_PACKAGE_LINUX_PAM
package/refpolicy/Config.in:    select BR2_PACKAGE_LINUX_PAM if BR2_PACKAGE_OPENSSH \
package/rsh-redone/Config.in:   select BR2_PACKAGE_LINUX_PAM
package/rsh-redone/Config.in:   select BR2_PACKAGE_LINUX_PAM
package/shadow/Config.in:       select BR2_PACKAGE_LINUX_PAM
package/util-linux/Config.in:   select BR2_PACKAGE_LINUX_PAM
package/util-linux/Config.in:   select BR2_PACKAGE_LINUX_PAM
package/util-linux/Config.in:   select BR2_PACKAGE_LINUX_PAM
package/util-linux/Config.in:   select BR2_PACKAGE_LINUX_PAM

And then in turn, propagated to the reverse dependencies of those
reverse dependencies.

Bottom line: we really want to understand why it doesn't work on
Microblaze, and chances are that the problem is not Microblaze
specific. What issue are you trying to solve.

>  	depends on BR2_USE_MMU # fork()
>  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
>  	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
> @@ -16,8 +17,10 @@ if BR2_PACKAGE_LINUX_PAM
>  
>  config BR2_PACKAGE_LINUX_PAM_LASTLOG
>  	bool "pam_lastlog.so"
> +	depends on !BR2_TOOLCHAIN_USES_MUSL

Why?

>  	help
> -	  Build pam_lastlog.so module.
> +	  Build pam_lastlog.so module. Requires toolchain support for shared libraries
> +	  which microblaze does not have.

This does not make sense: the !BR2_microblaze dependency is on the main
option, and you're adding this to the BR2_PACKAGE_LINUX_PAM_LASTLOG
sub-option. Could you clarify?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2025-04-21 21:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-02 21:46 [Buildroot] [PATCH v2] package/linux-pam: bump to version 1.7.0 Charlie Jenkins
2025-04-21 21:41 ` Thomas Petazzoni via buildroot [this message]
2025-04-22  1:19   ` Charlie Jenkins

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=20250421234156.40403831@windsurf \
    --to=buildroot@buildroot.org \
    --cc=charlie@rivosinc.com \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=ju.o@free.fr \
    --cc=thomas.petazzoni@bootlin.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox