Closed spike77453 closed 2 years ago
Here's a working scratch build: https://copr.fedorainfracloud.org/coprs/spike/pam-MySQL/build/2915175/
I did:
sed -i "s#install_dir: '/lib/security'#install_dir: join_paths(get_option('libdir'), 'security')#" meson.build
Please take it with a grain of salt though since I have no idea if that's how things are done with meson
It seems that
install_dir
is hard coded to/lib/security
: https://github.com/NigelCunningham/pam-MySQL/blob/master/meson.build#L270This is a problem on Fedora (and by extension also on RHEL/CentOS etc.) since the correct directory is platform dependent (e.g.
/lib/security
on 32bit platforms and/lib64/security
on 64bit platforms, see: https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/, technically/usr/lib/security
and/usr/lib64/security
since https://fedoraproject.org/wiki/Features/UsrMove)I couldn't find any (reasonably easy) way to set
install_dir
during build time, but this might be me knowing little to nothing about meson. It'd be nice if this could be configurable so it can be set to%{_libdir}
There's also https://github.com/NigelCunningham/pam-MySQL/blob/master/install.sh which tries to address this. But that of course doesn't work in an rpm build environment:
The current expansion of the
%meson
macro on Fedora 34 looks something like this:So the right directory to use is probably
libdir
: https://mesonbuild.com/Builtin-options.html