[erlang] Set ERL_LIBS for building/installing the docs
Hans Ulrich Niedermann
ndim at fedoraproject.org
Mon Jan 31 15:35:18 UTC 2011
commit e89639384cc504113b313b29440ebe2fad113273
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date: Mon Jan 31 01:53:41 2011 +0100
Set ERL_LIBS for building/installing the docs
Without setting ERL_LIBS, the "make release-docs" target
cannot find the include_lib("xmerl/lib/xmerl.erl") file
and thus the doc build and install fails.
We should examine adding the release-docs target to the
"make docs" command in the %build section, instead of
having release-docs being implicitly invoked by the
install-docs target in the %install section.
erlang.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/erlang.spec b/erlang.spec
index 02b5117..9a8d8b1 100644
--- a/erlang.spec
+++ b/erlang.spec
@@ -1093,7 +1093,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/man/man3/erl_set_memory_block.*
rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/erts-*/info
rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/lib/*-*/info
%else
-make DESTDIR=$RPM_BUILD_ROOT install-docs
+env ERL_LIBS="$RPM_BUILD_ROOT%{_libdir}/erlang/lib" make DESTDIR=$RPM_BUILD_ROOT install-docs
%endif
%endif
More information about the scm-commits
mailing list