[Reproducible-builds] Bug#796033: ocamlodbc: FTBFS under almost any locale (eg. en_GB.UTF-8)

Chris Lamb lamby at debian.org
Tue Aug 18 17:31:54 UTC 2015


Source: ocamlodbc
Version: 2.15-5
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs locale
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

ocamlodbc fails to build from source on unstable/amd64 under some pretty
normal locales (eg. LANG="en_GB.UTF-8"):

  [..]

  make clean
  make[2]: Entering directory '/tmp/buildd/ocamlodbc-2.15'
  make[2]: Leaving directory '/tmp/buildd/ocamlodbc-2.15'
  make BASE=unixODBC LIB_DIR=unixodbc all
  make[2]: Entering directory '/tmp/buildd/ocamlodbc-2.15'
  /usr/bin/ocamlc -verbose -pp 'grep -v DEBUG'  -c ocamlodbc.mli
  + grep -v DEBUG 'ocamlodbc.mli' > /tmp/ocamlpp586877
  /usr/bin/ocamlc -verbose -pp 'grep -v DEBUG'  -c ocaml_odbc.ml
  + grep -v DEBUG 'ocaml_odbc.ml' > /tmp/ocamlpp615697
  File "/tmp/ocamlpp615697", line 1, characters 12-22:
  Error: Syntax error
  master.Makefile:168: recipe for target 'ocaml_odbc.cmo' failed
  make[2]: *** [ocaml_odbc.cmo] Error 2
  make[2]: Leaving directory '/tmp/buildd/ocamlodbc-2.15'
  Makefile:68: recipe for target 'unixodbc' failed
  make[1]: *** [unixodbc] Error 2
  make[1]: Leaving directory '/tmp/buildd/ocamlodbc-2.15'
  debian/rules:37: recipe for target 'build-stamp' failed
  make: *** [build-stamp] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

  https://reproducible.debian.net/logs/unstable/amd64/ocamlodbc_2.15-5.build2.log.gz

This is due to grep's magical "binary file" detection and ocaml_odbc.ml
contains "Fonctions C utilisées".

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ocamlodbc.2.15-5.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150818/9592e6a0/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ocamlodbc.diff.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150818/9592e6a0/attachment-0001.txt>


More information about the Reproducible-builds mailing list