rpm build failed, some files weren't built

Bug #1099809 reported by Alexey Bychko on 2013-01-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Alexey Bychko
Fix Released
Alexey Bychko

Bug Description

*clean code tree, from lp:percona-server, Centos-6
*executed sh build/build-rpm.sh --nosign ..

command failed at rpm constructing step with message:

RPM build errors:
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/auth_pam.so
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/auth_pam_compat.so
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/dialog.so
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/debug/auth_pam.so
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/debug/auth_pam_compat.so
    File not found: /root/BUILDROOT/Percona-Server-55-5.5.28-rel29.3.396.rhel.x86_64/usr/lib64/mysql/plugin/debug/dialog.so

trying to find missing files, but nothing found
[root@centos6 percona-server]# find /root -type f -name auth_pam.so

the reason for failure:
pam plugin wasn't built, but rpm spec expecting those files built

proposed solutions:
*comment out those files in rpm spec OR
*get pam plugin built

Tags: pkg Edit Tag help

Related branches

Alexey Bychko (abychko) on 2013-01-15
tags: added: pkg
Alexey Bychko (abychko) wrote :

the best way i think is to fix rpm spec, see also https://bugs.launchpad.net/percona-server/+bug/1023501

Vadim Tkachenko (vadim-tk) wrote :

PAM is a part of Percona Server, so we can't just comment it out.

There is already a bug open for this -- lp:1088865 (so one of them can be marked duplicate)

Also, similar to lp:1087118 reported for PXC.

Roel Van de Paar (roel11) wrote :

Status tracking now in bug 1087118

Alexey Bychko (abychko) wrote :

bug isn't duplicate to any already filed bugs

Roel Van de Paar (roel11) wrote :

Roel has testcase (same one as for bug bug1086680 / bug 1083058).

Roel Van de Paar (roel11) wrote :

Ignore comment #8, it was meant for another bug.

Vince Sweeney (vince-j) wrote :

This patch doesn't fix the bug, or at least all the possible causes. On a clean Centos-6 install the error still occurs when building the latest SRPM file.

error: File not found: /root/rpmbuild/BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib64/mysql/plugin/semisync_master.so
error: File not found: /root/rpmbuild/BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib64/mysql/plugin/semisync_slave.so
error: File not found: /root/rpmbuild/BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib64/mysql/plugin/auth_pam.so
error: File not found: /root/rpmbuild/BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib64/mysql/plugin/auth_pam_compat.so

The reason is that while the spec file is successfully expanding the %{_libdir} variable to /usr/lib64, the build process is installing the plugin modules into /usr/lib/

%attr(755, root, root) %{_libdir}/mysql/plugin/auth_pam.so


find BUILDROOT -name auth_pam.so


Alexey or whoever is going to work on this -

If the comment #10 is confirmed, please open a new bug.

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-614

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers