rpm build failed, some files weren't built

Bug #1099809 reported by Alexey Bychko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
High
Alexey Bychko
5.5
Fix Released
High
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

Related branches

Alexey Bychko (abychko)
tags: added: pkg
Revision history for this message
Alexey Bychko (abychko) wrote :

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

Revision history for this message
Alexey Bychko (abychko) wrote :
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

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

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

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.

Revision history for this message
Roel Van de Paar (roel11) wrote :

Status tracking now in bug 1087118

Revision history for this message
Alexey Bychko (abychko) wrote :

bug isn't duplicate to any already filed bugs

Revision history for this message
Roel Van de Paar (roel11) wrote :

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

Revision history for this message
Roel Van de Paar (roel11) wrote :

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

Revision history for this message
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

BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib/mysql/plugin/debug/auth_pam.so
BUILDROOT/Percona-Server-55-5.5.29-rel30.0.451.rhel.x86_64/usr/lib/mysql/plugin/auth_pam.so

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Alexey or whoever is going to work on this -

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

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.