maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Double dash arguments fail to work in debian/rules (https://talk.maemo.org/showthread.php?t=96044)

marmistrz 2015-10-13 13:57

Double dash arguments fail to work in debian/rules
 
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.

marmistrz 2015-10-14 16:16

Re: Double dash arguments fail to work in debian/rules
 
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


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

vBulletin® Version 3.8.8