...
 
Commits (2)
ppx-deriving-yojson (3.1-3) unstable; urgency=medium
* autopkgtest: depends on ocamlbuild
* compilation on bytecode architectures:
- add patch makefile-bytecode
- adapt install target in debian/rules
-- Ralf Treinen <treinen@debian.org> Thu, 12 Jul 2018 19:30:59 +0200
ppx-deriving-yojson (3.1-2) unstable; urgency=medium
* Add debian/gbp.conf
......
Author: Ralf Treinen <treinen@debian.org>
Description: fix build target on bytecode-only architectures
Index: ppx-deriving-yojson/Makefile
===================================================================
--- ppx-deriving-yojson.orig/Makefile 2018-07-12 08:29:35.665407949 +0200
+++ ppx-deriving-yojson/Makefile 2018-07-12 08:29:51.037483746 +0200
@@ -1,6 +1,13 @@
+OCAMLOPT := $(shell which ocamlopt)
+ifeq ($(OCAMLOPT),)
+ NATIVE := false
+else
+ NATIVE := true
+endif
+
build:
cp pkg/META.in pkg/META
- ocaml pkg/build.ml native=true native-dynlink=true
+ ocaml pkg/build.ml native=$(NATIVE) native-dynlink=$(NATIVE)
test: build
rm -rf _build/src_test/
makefile-bytecode
#!/usr/bin/make -f
include /usr/share/ocaml/ocamlvars.mk
ODESTDIR = $(CURDIR)/debian/libppx-deriving-yojson-ocaml-dev/usr/lib/ocaml
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
FILES := pkg/META _build/src/*.a _build/src/*.c* _build/src/*.mli
else
FILES := pkg/META _build/src/*.c* _build/src/*.mli
endif
%:
dh $@ --with ocaml
override_dh_auto_install:
mkdir -p $(ODESTDIR)
ocamlfind install -destdir $(ODESTDIR) \
ppx_deriving_yojson pkg/META \
_build/src/*.a _build/src/*.c* _build/src/*.mli
ocamlfind install -destdir $(ODESTDIR) ppx_deriving_yojson $(FILES)
override_dh_auto_test:
# do nothing
......
Tests: expr
Depends: @, ocaml-nox, libfindlib-ocaml, libyojson-ocaml-dev
Depends: @, ocaml-nox, libfindlib-ocaml, libyojson-ocaml-dev, ocamlbuild