Active Topics

 


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
I've finally compiled ocaml for N900, now came across a problem while creating a package.

debian/rules call the following command somewhere at the end:

Code:
$ dh_ocaml -Xcompiler-libs -Xcamlp4-extra \
     --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
     --checksum $(OCAML_ABI)
It fails with the following message:

Code:
dh_ocaml -Xcompiler-libs -Xcamlp4-extra \
     --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
     --checksum 4.01.0
Unknown option: r
Unknown option: c
dh_ocaml: unknown option; aborting
Still, when running it standalone (I have to set an environmental variable so that it finds a binary provided by ocaml), no such error is not thrown:

Code:
$ OCAMLOBJINFO='OCAMLLIB=tools boot/ocamlrun tools/objinfo' dh_ocaml -Xcompiler-libs -Xcamlp4-extra --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 --checksum 4.01.0
Do you have any idea why this happens? You can see the whole debian/rules here: http://paste.ubuntu.com/12773154/

If you want the full sources, let me know.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2015-10-14 at 16:13.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#2
I've got it! It was the SBOX_REDIRECT_IGNORE I set for debhelper7. Running it

Code:
SBOX_REDIRECT_IGNORE='' dh_ocaml -Xcompiler-libs -Xcamlp4-extra --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 --checksum $(OCAML_ABI)
does the trick
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:14.