[Pkg-ocaml-maint-commits] [ocamlrss] 01/02: Add d/patches/0001-Fix-FTBFS-on-bytecode-architectures.patch

Prach Pongpanich prach-guest at moszumanska.debian.org
Mon Dec 16 09:41:13 UTC 2013


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

prach-guest pushed a commit to branch master
in repository ocamlrss.

commit 4c6d5c41a5995c7cc40ca95ee51efd8703181469
Author: Prach Pongpanich <prachpub at gmail.com>
Date:   Mon Dec 16 16:34:56 2013 +0700

    Add d/patches/0001-Fix-FTBFS-on-bytecode-architectures.patch
    
    Closes: #731732
---
 .../0001-Fix-FTBFS-on-bytecode-architectures.patch | 45 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 46 insertions(+)

diff --git a/debian/patches/0001-Fix-FTBFS-on-bytecode-architectures.patch b/debian/patches/0001-Fix-FTBFS-on-bytecode-architectures.patch
new file mode 100644
index 0000000..13f7043
--- /dev/null
+++ b/debian/patches/0001-Fix-FTBFS-on-bytecode-architectures.patch
@@ -0,0 +1,45 @@
+Description: Fix FTBFS on bytecode architectures
+Forwarded: https://github.com/zoggy/ocamlrss/issues/7
+Bug-Debian: http://bugs.debian.org/731732
+Author: Prach Pongpanich <prachpub at gmail.com>
+
+--- ocamlrss-2.2.1.orig/Makefile
++++ ocamlrss-2.2.1/Makefile
+@@ -37,7 +37,10 @@ OCAMLOPT=$(OCAMLFIND) ocamlopt $(OF_FLAG
+ OCAMLDOC=$(OCAMLFIND) ocamldoc $(OF_FLAGS)
+ OCAMLDEP=ocamldep
+ 
+-all: byte opt
++all:: byte
++ifneq ($(wildcard /usr/bin/ocamlopt),)
++all:: opt
++endif
+ byte: rss.cma
+ opt: rss.cmxa rss.cmxs
+ 
+@@ -69,6 +72,7 @@ webdoc: doc
+ .depend depend:
+ 	$(OCAMLDEP) rss*.ml rss*.mli > .depend
+ 
++ifneq ($(wildcard /usr/bin/ocamlopt),)
+ rsstest: rss.cmxa rsstest.ml
+ 	$(OCAMLOPT) -linkpkg -o $@ $(OCAML_COMPFLAGS) $^
+ 
+@@ -76,11 +80,17 @@ test: rsstest
+ 	@./rsstest test.rss > t.rss
+ 	@./rsstest t.rss > t2.rss
+ 	@((diff t.rss t2.rss && echo OK) || echo "t.rss and t2.rss differ")
++endif
+ 
+ # installation :
+ ################
+ install:
++ifneq ($(wildcard /usr/bin/ocamlopt),)
+ 	$(OCAMLFIND) install rss META LICENSE $(wildcard rss.cmi rss.cma rss.cmxa rss.a rss.cmxs rss.mli rss.cmx)
++else
++	$(OCAMLFIND) install rss META LICENSE $(wildcard rss.cmi rss.cma rss.a rss.mli rss.cmx)
++endif
++
+ 
+ uninstall:
+ 	ocamlfind remove rss
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a144978
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-FTBFS-on-bytecode-architectures.patch

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



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