Actions
Bug #5055
closedUser story #5077: Update to CFEngine 3.6.0 release
2.11 RPM builds of rudder-agent fail because of a LMDB linking issue
Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
Packaging
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
We package lmdb as part of rudder-agent in 2.11, but the following error happens:
11:53:36 + /usr/lib/rpm/check-buildroot 11:53:36 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/lib/libpromises.a matches 11:53:36 /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/lib/libpromises.la:dependency_libs=' -R/usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/lib -L/usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/lib -lnss_nis -lrt -lm -llmdb -lpcre -lssl -lcrypto -ldl' 11:53:36 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-upgrade matches 11:53:36 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-execd matches 11:53:36 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-monitord matches 11:53:37 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-promises matches 11:53:37 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-serverd matches 11:53:37 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/rpmvercmp matches 11:53:37 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-agent matches 11:53:37 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-runagent matches 11:53:38 Binary file /usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386/opt/rudder/bin/cf-key matches 11:53:38 Found '/usr/src/rudder-packages/package/BUILDROOT/rudder-agent-2.11.0.beta2.git201406171140-1.EL.6.i386' in installed files; aborting
It is because we try to put lmdb in buildroot during the configure stage, which breaks the build and fails the /usr/lib/rpm/check-buildroot check.
We need to install it in /opt/rudder instead, and then configure.
Actions