On 24/09/11 22:11, Sebastian Kaps wrote:
Hi!
I'm trying to build a Corosync 1.4.1 RPM package for SLES11 SP1 using the sources from [1].
I already posted about this in the Pacemaker ML a few weeks ago, because I initially had
problems building the package without the nss libs, which lead to the following patch
being posted to the Openais ML by Steven Dake (since the Openais ML is currently down,
I'll post it here):
----- snip -----
--- a/corosync.spec.in
+++ b/corosync.spec.in
@@ -11,6 +11,7 @@
%bcond_with snmp
%bcond_with dbus
%bcond_with rdma
+%bcond_with nss
Name: corosync
Summary: The Corosync Cluster Engine and Application Programming Interfaces
@@ -36,7 +37,9 @@ Conflicts: openais<= 0.89, openais-devel<= 0.89
%if %{buildtrunk}
BuildRequires: autoconf automake
%endif
+%if %{with nss}
BuildRequires: nss-devel
+%endif
%if %{with rdma}
BuildRequires: libibverbs-devel librdmacm-devel
%endif
@@ -83,6 +86,11 @@ export rdmacm_LIBS=-lrdmacm \
%if %{with rdma}
--enable-rdma \
%endif
+%if %{with nss}
+ --enable-nss \
+%else
+ --disable-nss \
+%endif
--with-initddir=%{_initrddir}
make %{_smp_mflags}
----- snip -----
This patch solved the original problem for me, but "make rpm" now fails at this point:
----- snip -----
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/corosync-1.4.1-1-31YAT7
error: Installed (but unpackaged) file(s) found:
/usr/share/doc/corosync/AUTHORS
/usr/share/doc/corosync/INSTALL
/usr/share/doc/corosync/LICENSE
/usr/share/doc/corosync/README.devmap
/usr/share/doc/corosync/README.recovery
/usr/share/doc/corosync/SECURITY
/usr/share/doc/corosync/TODO
/usr/share/doc/corosync/html/confdb_context_get.3.html
/usr/share/doc/corosync/html/confdb_context_set.3.html
[...]
make: *** [rpm] Error 1
# _
----- snip -----
I'll can provide the complete build log for more detailed information if needed.
Would anyone have a look at this, please?
Thanks in advance!
At the end of the %install section of the spec file, try adding
something like:
# the docdir is /usr/share/doc/<pkg> in the configuration
rm -rf %{buildroot}%{_datadir}/doc/*
At least, this works for the corosync 1.4.1 build on openSUSE:Factory -
see sources at:
https://build.opensuse.org/package/show?package=corosync&project=network:ha-clustering:Factory
Alternately, you might find if you branch that project on OBS, you can
tell your branch to build against SLE 11 SP1, and it will all "just work" :)
HTH,
Tim
--
Tim Serong
Senior Clustering Engineer
SUSE
tserong@xxxxxxxx
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss