[Pkg-ocaml-maint-commits] [SCM] advi packaging branch, experimental, updated. debian/1.6.0-13-60-g2fd0f1c

Ralf Treinen treinen at free.fr
Sun Mar 7 16:07:16 UTC 2010


The following commit has been merged in the experimental branch:
commit 742435ab9f72fe590896fa66447bc108981eaa2e
Author: Ralf Treinen <treinen at free.fr>
Date:   Sun Mar 7 14:30:57 2010 +0100

    do not strip when compiling to bytecode

diff --git a/debian/patches/series b/debian/patches/series
index 4925614..a055f5b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 japanese-fonts
 cache-dir-tilde-expansion
+# byte-compilation-no-custom
diff --git a/debian/rules b/debian/rules
index ba8a8e1..cd821bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,10 +7,18 @@ DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 # determine what kind of ocaml compiler we have
 OPT    = $(shell test -x /usr/bin/ocamlopt && echo true)
 
+# when compiling to bytecode then do not strip the executable (bug #500286).
+# This should be dropped as soon as bytecode compilation can be sone without
+# using the -custom option (see bug #517546).
+ifneq ($(OPT),true)
+	export DEB_BUILD_OPTIONS:=$(DEB_BUILD_OPTIONS),nostrip
+endif
+
 %:
 	dh $@ --with tex,ocaml
 
 override_dh_auto_configure:
+	@echo $$DEB_BUILD_OPTIONS
 	./configure --host=$(DEB_HOST_GNU_TYPE) \
 			--build=$(DEB_BUILD_GNU_TYPE) \
 			--prefix=/usr \

-- 
advi packaging



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