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

Bug#562606: FTBFS: unknown options to dh_ocaml



tag 562606 - unreproducible
thanks

Mehdi Dogguy <mehdi@dogguy.org> writes:
> Goswin von Brederlow wrote:
>> Package: ocaml
>> Version: 3.11.1-5
>> Severity: normal
>> 
>> Building ocaml fails with
>> 
>> # Create .md5sums files and compute dependencies. Use
>> # 3.11.1 because we know that OCaml ABI represents
>> # best dependencies for OCaml package.
>> dh_ocaml -Xcompiler-libs \
>>          --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
>>          --checksum 3.11.1
>> Unknown option: runtime-map
>> Unknown option: checksum
>> dh_ocaml: unknown option; aborting
>> make: *** [binary-stamp] Error 1
>> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
>> 
>
> Can you tell us how did you obtain this error? I'm very tempted to say
> "Impossible" :) Did you modify dh_ocaml?
> FYI, It builds find on my machine.
>
> Cheers,
>
> -- 
> Mehdi Dogguy Ù?Ù?دÙ? اÙ?دڤÙ?
> http://dogguy.org/

No modifications to dh_ocaml. And no spare copy in /usr/share/bin or
something.

The problem seems to be debhelper. The Build-Depends of ocaml say
"debhelper (>= 7)" and dh-ocaml does not depend on debhelper at
all. But somewhere between debhelper 7.0.17 and 7.4.10 something was
added to make --runtime-map and --checksum work.

Not sure if that is a bug in ocaml or dh-ocaml.

MfG
        Goswin

=======================================================================


mrvn@book:~/src/debian/debhelper% sudo dpkg -i debhelper_7.0.17_all.deb
dpkg: warning: downgrading debhelper from 7.4.10 to 7.0.17.
(Reading database ... 131252 files and directories currently
installed.)
Preparing to replace debhelper 7.4.10 (using debhelper_7.0.17_all.deb)
...
Unpacking replacement debhelper ...
Setting up debhelper (7.0.17) ...
Processing triggers for man-db ...

mrvn@book:~/src/debian/ocaml/ocaml-3.11.1% debuild -us -uc -nc
 dpkg-buildpackage -rfakeroot -D -us -uc -nc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ocaml
dpkg-buildpackage: source version 3.11.1-5a0.mrvn.1
dpkg-buildpackage: source changed by Goswin von Brederlow
<goswin-v-b@web.de>
dpkg-buildpackage: host architecture amd64
 debian/rules build
make: Nothing to be done for `build'.
 fakeroot debian/rules binary
dh binary --before dh_gencontrol
for u in ocaml-nox camlp4 camlp4-extra ocaml ocaml-base-nox ocaml-base
ocaml-native-compilers ocaml-source ocaml-interp ocaml-compiler-libs
ocaml-mode; do \
          echo 'F:OCamlABI=3.11.1' >> debian/$u.substvars; \
        done
echo 'F:BestProvides=' >> debian/ocaml-nox.substvars
# Create .md5sums files and compute dependencies. Use
# 3.11.1 because we know that OCaml ABI represents
# best dependencies for OCaml package.
dh_ocaml -Xcompiler-libs \
         --runtime-map
ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
         --checksum 3.11.1
Unknown option: runtime-map
Unknown option: checksum
dh_ocaml: unknown option; aborting
make: *** [binary-stamp] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
debuild: fatal error at line 1324:
dpkg-buildpackage -rfakeroot -D -us -uc -nc failed

mrvn@book:~/src/debian/ocaml/ocaml-3.11.1% sudo apt-get install
debhelper
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  debhelper
1 upgraded, 0 newly installed, 0 to remove and 533 not upgraded.
Need to get 0B/458kB of archives.
After this operation, 12.3kB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not
installed
(Reading database ... 131258 files and directories currently
installed.)
Preparing to replace debhelper 7.0.17 (using
.../debhelper_7.4.10_all.deb) ...
Unpacking replacement debhelper ...
Processing triggers for man-db ...
Setting up debhelper (7.4.10) ...

mrvn@book:~/src/debian/ocaml/ocaml-3.11.1% debuild -us -uc -nc
  
 dpkg-buildpackage -rfakeroot -D -us -uc -nc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ocaml
dpkg-buildpackage: source version 3.11.1-5a0.mrvn.1
dpkg-buildpackage: source changed by Goswin von Brederlow
<goswin-v-b@web.de>
dpkg-buildpackage: host architecture amd64
 debian/rules build
make: Nothing to be done for `build'.
 fakeroot debian/rules binary
dh binary --before dh_gencontrol
for u in ocaml-nox camlp4 camlp4-extra ocaml ocaml-base-nox ocaml-base
ocaml-native-compilers ocaml-source ocaml-interp ocaml-compiler-libs
ocaml-mode; do \
          echo 'F:OCamlABI=3.11.1' >> debian/$u.substvars; \
        done
echo 'F:BestProvides=' >> debian/ocaml-nox.substvars
# Create .md5sums files and compute dependencies. Use
# 3.11.1 because we know that OCaml ABI represents
# best dependencies for OCaml package.
dh_ocaml -Xcompiler-libs \
         --runtime-map
ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
         --checksum 3.11.1
W: Unit Parsing already defined in ocaml-nox/ocaml-base-nox v3.11.1-4
and defined again in ocaml-nox/ocaml-base-nox v3.11.1-5a0.mrvn.1
W: Unit String already defined in ocaml-nox/ocaml-base-nox v3.11.1-4
and defined again in ocaml-nox/ocaml-base-nox v3.11.1-5a0.mrvn.1
W: Unit Filename already defined in ocaml-nox/ocaml-base-nox v3.11.1-4
and defined again in ocaml-nox/ocaml-base-nox v3.11.1-5a0.mrvn.1
...
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)



Reply to: