Package: libpam-afs-session Version: 2.6-5.1 Severity: serious Tags: patch upstream Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: [email protected] User: [email protected] Usertags: amd64
Dear Maintainer, the present package fails to build on an AFS enabled system. The reason is an issue in the tests (in tests/) that are executed after the build. Some of these tests are only run if a system that has AFS support. These tests would obviously not be run on the Debian build infrastructure, and therefore the issue did not show up so far. The issue is basically that the tests set the username too late to properly check the behavior of the PAM module. The patch below fixes this behavior. Kind regards, Christian Ospelkaus Description: fix tests to work on an AFS enabled system Author: Christian Ospelkaus <[email protected]> Origin: other --- a/tests/module/basic-t.c +++ b/tests/module/basic-t.c @@ -58,7 +58,6 @@ config.extra[0] = aklog; /* Initial no-op tests. */ - config.user = "testuser"; run_script("data/scripts/basic/noop", &config); run_script("data/scripts/basic/noop-debug", &config); @@ -67,6 +66,9 @@ * creation of a PAG. */ unlink("aklog-args"); + config.user = user->pw_name; + basprintf(&uid, "%lu", (unsigned long) getuid()); + config.extra[1] = uid; run_script("data/scripts/basic/no-ticket", &config); run_script("data/scripts/basic/no-ticket-debug", &config); ok(access("aklog-args", F_OK) < 0, "aklog was not run"); -- System Information: Debian Release: 13.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.41+deb13-amd64 (SMP w/96 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libpam-afs-session depends on: ii libc6 2.41-12 ii libkrb5-3 1.21.3-5 ii libpam-runtime 1.7.0-5 ii libpam0g 1.7.0-5 Versions of packages libpam-afs-session recommends: ii heimdal-clients 7.8.git20221117.28daf24+dfsg-9 ii libpam-heimdal 4.11-2+b1 ii openafs-client 1.8.13.2-1 ii openafs-krb5 1.8.13.2-1 libpam-afs-session suggests no packages. -- no debconf information

