Compare commits

...

1 Commits

Author SHA1 Message Date
Bernhard Kaindl
cc0fed4539 linux-pam: Fix build with newer glibc versions
Older versions of `linux-pam` use rpc/rpc.h which no longer
exists on current Linux systems. Update to the current PAM
release and fix its build on Ubuntu 22.04.

As PAM is a Linux-specific library, the build on Darwin is
not meaningful, fails and would fail on Windows as well.
Add conflicts for both as appropriate to fix GitLab CI.
2023-10-12 09:36:54 +00:00

View File

@ -10,8 +10,9 @@ class LinuxPam(AutotoolsPackage):
"""Linux PAM (Pluggable Authentication Modules for Linux) project.""" """Linux PAM (Pluggable Authentication Modules for Linux) project."""
homepage = "http://www.linux-pam.org/" homepage = "http://www.linux-pam.org/"
url = "https://github.com/linux-pam/linux-pam/releases/download/v1.5.2/Linux-PAM-1.5.2.tar.xz" url = "https://github.com/linux-pam/linux-pam/releases/download/v1.5.3/Linux-PAM-1.5.3.tar.xz"
version("1.5.3", sha256="7ac4b50feee004a9fa88f1dfd2d2fa738a82896763050cd773b3c54b0a818283")
version("1.5.1", sha256="201d40730b1135b1b3cdea09f2c28ac634d73181ccd0172ceddee3649c5792fc") version("1.5.1", sha256="201d40730b1135b1b3cdea09f2c28ac634d73181ccd0172ceddee3649c5792fc")
version("1.5.2", sha256="e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d") version("1.5.2", sha256="e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d")
version("1.5.0", sha256="02d39854b508fae9dc713f7733bbcdadbe17b50de965aedddd65bcb6cc7852c8") version("1.5.0", sha256="02d39854b508fae9dc713f7733bbcdadbe17b50de965aedddd65bcb6cc7852c8")
@ -23,6 +24,9 @@ class LinuxPam(AutotoolsPackage):
depends_on("automake", type="build") depends_on("automake", type="build")
depends_on("libtool", type="build") depends_on("libtool", type="build")
conflicts("platform=darwin")
conflicts("platform=windows")
def configure_args(self): def configure_args(self):
config_args = ["--includedir=" + self.prefix.include.security] config_args = ["--includedir=" + self.prefix.include.security, "CFLAGS=-DYPERR_SUCCESS=0"]
return config_args return config_args