Source: pam
Version: 1.7.0-2
Severity: wishlist
User: helm...@debian.org
Usertags: rebootstrap

Hi Sam,

I noticed that your pam update fails to build in my cross bootstrap
environment and looked into it. Your switch to meson closed my earlier
FTCBFS bug and I fully concur with such closing, because I see FTCBFS
bugs as actionable patch communication. Since the patch no longer makes
sense, you closed the bug leaving the verification to me. Please
continue using this process for all FTCBFS bugs filed by me.

For digging into the failure, I first tried cross building pam in a
clean environment and it would just work. Adding a stage1 profile
wouldn't make it fail either. The cause must somehow be related to the
bootstrap environment not being very clean and indeed adding a bison
package to the cross build made it fail. This got me looking and I
figured that pam looks for bison and marks this tool as a "disabler".
What is being disabled here is the generation of
/usr/share/doc/libpam-doc/txt/draft-morgan-pam-current.txt.gz. This file
is missing from the current libpam-doc package. Is that intentional? If
it is, I suggest making it explicit by adding Build-Conflicts: bison. If
you'd rather have the file, I suggest adding Build-Depends-Indep: bison.

I still haven't answered what is failing here beyond it somehow being
connected to the presence or absence of bison. The parser generator is
being used to build a tool called "padout" in docs/specs/. This is run
during built, but it is not installed anywhere. As such, it should be
"native: true". Once you add that, a cross build pass with bison
installed also succeeds.

Given that stuff basically works and that I am hitting a strange corner
case by using a dirty build environment, I've set the severity to
wishlist and leave the decision of how to handle it up to you. I hope
what I've written here makes sense to you.

Helmut
Index: pam-1.7.0/doc/specs/meson.build
===================================================================
--- pam-1.7.0.orig/doc/specs/meson.build	2024-10-24 10:00:00.000000000 +0200
+++ pam-1.7.0/doc/specs/meson.build	2025-01-31 18:22:39.955930798 +0100
@@ -22,6 +22,7 @@
     '-Wno-sign-compare',
   ],
   link_args: exe_link_args,
+  native: true,
 )
 
 custom_target(

Reply via email to