Bug#922271: camomile: ocaml-gettext build still fails, due to wrong search path caused by camomile build
Source: camomile
Version: 1.0.1-2
Severity: grave
Dear Maintainer,
I just had a look at the still-failing builds of ocaml-gettext/0.3.7-1
with the pacakges produced by camomile/1.0.1-2. The logs don't show a
lot, just a Not_found exception:
,----[ https://buildd.debian.org/status/fetch.php?pkg=ocaml-gettext&arch=armel&ver=0.3.7-1%2Bb3&stamp=1549887522&raw=0 ]
| make[2]: Entering directory '/<<PKGBUILDDIR>>/po'
| /<<PKGBUILDDIR>>/_build/bin/ocaml-gettext --action compile \
| --compile-output fr.mo fr.po
| Fatal error: exception Not_found
| make[2]: *** [Makefile:50: fr.mo] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/po'
| make[1]: *** [Makefile:28: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [/usr/share/cdbs/1/class/makefile.mk:77: debian/stamp-makefile-build] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
`----
I was able to reproduce this error in a sid-amd64 chroot. Running
_build/bin/ocaml-gettext using strace shows that it goes looking for
general_category.mar in the directory that was used for installation on
the buildhost where camomile was being built:
,----
| execve("_build/bin/ocaml-gettext", ["_build/bin/ocaml-gettext"], 0x7fffaee13180 /* 23 vars */) = 0
:
: ...
:
| readlink("/proc/self/exe", "/home/bengen/src/deb/ocaml-gettext/_build/bin/ocaml-gettext", 256) = 59
| stat("/home/bengen/src/deb/ocaml-gettext/_build/bin/ocaml-gettext", {st_mode=S_IFREG|0755, st_size=3062688, ...}) = 0
| lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
| mmap(NULL, 794624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d65c49000
| brk(0x5559f5984000) = 0x5559f5984000
| lseek(1, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
| lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
| mmap(NULL, 532480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d65bc7000
| mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d65b86000
| openat(AT_FDCWD, "/build/camomile-1.0.1/debian/tmp/usr/share/database/general_category.mar", O_RDONLY) = -1 ENOENT (No such file or directory)
| write(2, "Fatal error: exception Not_found\n", 33) = 33
| exit_group(2) = ?
| +++ exited with 2 +++
`----
Cheers,
-Hilko
Reply to: