Skip to content

Commit

Permalink
Merge pull request #380 from Kegeruneku/bug_5055/int/5055_fix_lmdb_li…
Browse files Browse the repository at this point in the history
…nking_in_rpm_packages

Fixes #5055: Fix a LMDB linking issue in the configure stage of rudder-a...
  • Loading branch information
Kegeruneku committed Jun 17, 2014
2 parents f38b844 + 7a825dd commit b64f024
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rudder-agent/SPECS/rudder-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,23 @@ rm -rf %{buildroot}
# Compile LMDB library and install it in /opt/rudder/lib

# LMDB's Makefile does not know how to create destination files, do it ourselves
for i in bin lib include man/man1; do mkdir -p %{buildroot}%{rudderdir}/$i; done
for i in bin lib include man/man1; do mkdir -p %{rudderdir}/$i; done

cd %{_sourcedir}/lmdb-source/libraries/liblmdb

make %{?_smp_mflags}
make install prefix=%{rudderdir} DESTDIR=%{buildroot}

# First install goes to the local %{rudderdir} to prevent linking issues during
# CFEngine build
make install prefix=%{rudderdir}
%endif

# Prepare CFEngine build
cd %{_sourcedir}/cfengine-source

%if "%{is_lmdb_here}" != "true"
## Define path of LMDB if built before instead of being provided by the system.
%define lmdb_arg "--with-lmdb=%{buildroot}%{rudderdir}"
%define lmdb_arg "--with-lmdb=%{rudderdir}"
%else
%define lmdb_arg ""
%endif
Expand Down Expand Up @@ -240,6 +243,8 @@ rm -rf %{buildroot}
# LMDB's Makefile does not know how to create destination files, do it ourselves
for i in bin lib include man/man1; do mkdir -p %{buildroot}%{rudderdir}/$i; done
cd %{_sourcedir}/lmdb-source/libraries/liblmdb

# Now, we install lmdb in %{buildroot} to package it
make install prefix=%{rudderdir} DESTDIR=%{buildroot}
%endif

Expand Down

0 comments on commit b64f024

Please sign in to comment.