On 21/05/10 22:34, Eike Nicklas wrote:
> I prepared a package using webkit instead of libgtkhtml2. However, for
> some reason it does not build in sid (gettext does not generate *.mo files),
> but perfectly fine in squeeze (both pbuilder, up-to-date). The previous
> package, osmo 0.2.10-1 also does not build with sid any more.
> 
> I uploaded the package built with squeeze to mentors.debian.net:
> 
> - URL: http://mentors.debian.net/debian/pool/main/o/osmo
> - Source repository: deb-src http://mentors.debian.net/debian unstable main 
> contrib non-free
> - dget 
> http://mentors.debian.net/debian/pool/main/o/osmo/osmo_0.2.10+svn898-1.dsc
> 
> For comparison, the logs of the builds in sid and squeeze are attached.
> One further difference is, that sh is used as shell in sid, whereas
> bash is used in squeeze (according to the generated makefiles).
> 
> Do you have any idea what might cause this build failure? Thanks a lot
> for your help,

The dash vs bash would make the difference. I've investigated the problem and
seems to be a bug in dash:

emi...@saturno:/tmp$ touch a; ls -l a b
ls: no se puede acceder a b: No existe el fichero o el directorio
-rw-r--r-- 1 emilio emilio 0 may 22 13:42 a
emi...@saturno:/tmp$ /usr/bin/test a -nt b && echo true || echo false
true
emi...@saturno:/tmp$ bash -c "test a -nt b && echo true || echo false"
true
emi...@saturno:/tmp$ dash -c "test a -nt b && echo true || echo false"
false
emi...@saturno:/tmp$

The test builtin in dash believes a non-existent file is not older than any
file, unlike the one from bash or the test binary from coreutils. I'll report a
bug against dash. Actually I've just checked and this is reported as bug
#558989. Unfortunately it's marked as wontfix :(

You can workaround it by exporting SHELL=/bin/bash or calling bash ./configure I
guess. Or even better, fix po/Makefile.am which is pretty weird. To depend on a
file, you do:

%.mo: %.po
        $(MSGFMT) -c --statistics $< -o $@

instead of

%.mo: skip
        @po=$(@:.mo=.po); if test $$po -nt $@ ; then $(MSGFMT) -c --statistics 
$$po -o
$@; echo "$@ updated."; fi

Cheers,
Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to