[packages/ocaml-augeas] - added no-ocamlopt patch (applied only if building without ocaml_opt)
qboosh
qboosh at pld-linux.org
Sat Jul 18 23:15:03 CEST 2015
commit 7517e574d5a8f1848f2e7f25ce4f6bc620edee04
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 18 23:16:16 2015 +0200
- added no-ocamlopt patch (applied only if building without ocaml_opt)
ocaml-augeas-no-ocamlopt.patch | 11 +++++++++++
ocaml-augeas.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/ocaml-augeas.spec b/ocaml-augeas.spec
index 568941b..4a28605 100644
--- a/ocaml-augeas.spec
+++ b/ocaml-augeas.spec
@@ -16,6 +16,7 @@ Group: Libraries
Source0: http://download.augeas.net/ocaml/%{name}-%{version}.tar.gz
# Source0-md5: c18c3c794e945336acda222046f8416b
Patch0: %{name}-cflags.patch
+Patch1: %{name}-no-ocamlopt.patch
URL: http://augeas.net/
BuildRequires: augeas-devel
BuildRequires: autoconf
@@ -51,6 +52,7 @@ biblioteki augeas.
%prep
%setup -q
%patch0 -p1
+%{!?with_ocaml_opt:%patch1 -p1}
%build
%{__autoconf}
diff --git a/ocaml-augeas-no-ocamlopt.patch b/ocaml-augeas-no-ocamlopt.patch
new file mode 100644
index 0000000..86a24e4
--- /dev/null
+++ b/ocaml-augeas-no-ocamlopt.patch
@@ -0,0 +1,11 @@
+--- ocaml-augeas-0.4/Makefile.in.orig 2008-05-07 09:47:45.000000000 +0200
++++ ocaml-augeas-0.4/Makefile.in 2015-07-18 23:15:17.806238006 +0200
+@@ -39,7 +39,7 @@
+
+ export LIBRARY_PATH = .
+
+-all: mlaugeas.cma mlaugeas.cmxa test_augeas
++all: mlaugeas.cma test_augeas
+
+ mlaugeas.cma: augeas_c.o augeas.cmo
+ ocamlmklib $(LDFLAGS) $(LIBS) -o mlaugeas $^
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-augeas.git/commitdiff/7517e574d5a8f1848f2e7f25ce4f6bc620edee04
More information about the pld-cvs-commit
mailing list