wrong libdir for plugins, rpm build failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Triaged
|
Medium
|
Ignacio Nin | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Triaged
|
Medium
|
Ignacio Nin | ||
5.6 |
Triaged
|
Medium
|
Ignacio Nin |
Bug Description
from bug 1099809
...
error: File not found: /root/rpmbuild/
error: File not found: /root/rpmbuild/
...
error: File not found: /root/rpmbuild/
error: File not found: /root/rpmbuild/
....
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}
---
find BUILDROOT -name auth_pam.so
BUILDROOT/
BUILDROOT/
i think the reason is in the build-rpm.sh
# "Fix" cmake destdirs, since we cannot alter SYSTEM_PROCESSOR
if test "x$TARGET" != "x"
then
sed -i 's/lib64/lib/' "$PRODUCT/
fi
Changed in percona-server: | |
assignee: | nobody → Ignacio Nin (ignacio-nin) |
tags: | added: pkg |
From what I see in 5.6 (cmake/ install_ layout. cmake):
... SYSTEM_ PROCESSOR MATCHES "x86_64") LIBDIR_ RPM "lib") PLUGINDIR_ RPM "lib/mysql/plugin") LIBDIR_ RPM "lib") PLUGINDIR_ RPM "lib/mysql/plugin")
IF(CMAKE_
SET(INSTALL_
SET(INSTALL_
ELSE()
SET(INSTALL_
SET(INSTALL_
ENDIF()
...
5.6 is also affected.