[Pkg-ocaml-maint-commits] [findlib] 01/01: Use OCAMLINIT_SED to deal with raw_spacetime_lib

Ximin Luo infinity0 at debian.org
Sat Mar 4 23:13:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository findlib.

commit ae230073214358fdd2a07251402c0f4e1df5fcb5
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Mar 5 00:05:00 2017 +0100

    Use OCAMLINIT_SED to deal with raw_spacetime_lib
---
 debian/libfindlib-ocaml.install.in | 2 +-
 debian/rules                       | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/libfindlib-ocaml.install.in b/debian/libfindlib-ocaml.install.in
index d33a73f..d80664c 100644
--- a/debian/libfindlib-ocaml.install.in
+++ b/debian/libfindlib-ocaml.install.in
@@ -15,4 +15,4 @@ DYN: @OCamlStdlibDir@/findlib/findlib_dynload.cmxs
 @OCamlStdlibDir@/bigarray/META
 @OCamlStdlibDir@/compiler-libs/META
 @OCamlStdlibDir@/threads/META
- at OCamlStdlibDir@/raw_spacetime/META
+64:  @OCamlStdlibDir@/raw_spacetime/META
diff --git a/debian/rules b/debian/rules
index 0c2d8f9..1c4bdc7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,6 +26,14 @@ ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
 	$(MAKE) opt
 endif
 
+ifeq ($(DEB_BUILD_ARCH_BITS),64)
+  OCAMLINIT_SED += -e 's/^64: //'
+else
+  OCAMLINIT_SED += -e '/^64: /d'
+endif
+
+export OCAMLINIT_SED
+
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
 	$(MAKE) install prefix=$(CURDIR)/debian/tmp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/findlib.git



More information about the Pkg-ocaml-maint-commits mailing list