[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#647299: libxml-light-ocaml-dev: Package should ship cmxs plugin



Package: libxml-light-ocaml-dev
Version: 2.2-12+b2
Severity: normal
Tags: patch

Please consider building the cmxs plugin for xml-light. This is needed to
dynamically load the module in a program compiled in native code.

Attached is a dpatch that can be thrown in debian/patches to achieve this.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxml-light-ocaml-dev depends on:
ii  ocaml-nox [ocaml-nox-3.12.0]  3.12.0-7

libxml-light-ocaml-dev recommends no packages.

libxml-light-ocaml-dev suggests no packages.
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_cmxs_plugin.dpatch by  <benny@touseg.insa-rennes.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' xml-light~/Makefile xml-light/Makefile
--- xml-light~/Makefile	2011-11-01 16:05:08.000000000 +0100
+++ xml-light/Makefile	2011-11-01 16:06:34.905241750 +0100
@@ -9,13 +9,13 @@
 
 all: xml-light.cma test.exe doc
 
-opt: xml-light.cmxa test_opt.exe
+opt: xml-light.cmxs test_opt.exe
 
 install: all 
 	cp xml-light.cma xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi  $(INSTALLDIR)
 
 installopt: opt all 
-	cp xml-light.a xml-light.cmxa xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
+	cp xml-light.a xml-light.cmxa xml-light.cmxs xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
 
 doc:
 	mkdir doc
@@ -33,6 +33,9 @@
 xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx 
 	ocamlopt -o xml-light.cmxa $(XML_LIGHT_OCAML_LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
 
+xml-light.cmxs: xml-light.cmxa
+	ocamlopt -o xml-light.cmxs -shared -linkall xml-light.cmxa
+
 dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi
 
 dtd.cmx: xml.cmi xml_lexer.cmi dtd.cmi
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_cmxs_plugin.dpatch by  <benny@touseg.insa-rennes.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' xml-light~/Makefile xml-light/Makefile
--- xml-light~/Makefile	2011-11-01 16:05:08.000000000 +0100
+++ xml-light/Makefile	2011-11-01 16:06:34.905241750 +0100
@@ -9,13 +9,13 @@
 
 all: xml-light.cma test.exe doc
 
-opt: xml-light.cmxa test_opt.exe
+opt: xml-light.cmxs test_opt.exe
 
 install: all 
 	cp xml-light.cma xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi  $(INSTALLDIR)
 
 installopt: opt all 
-	cp xml-light.a xml-light.cmxa xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
+	cp xml-light.a xml-light.cmxa xml-light.cmxs xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
 
 doc:
 	mkdir doc
@@ -33,6 +33,9 @@
 xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx 
 	ocamlopt -o xml-light.cmxa $(XML_LIGHT_OCAML_LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
 
+xml-light.cmxs: xml-light.cmxa
+	ocamlopt -o xml-light.cmxs -shared -linkall xml-light.cmxa
+
 dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi
 
 dtd.cmx: xml.cmi xml_lexer.cmi dtd.cmi

Reply to: