Package: dh-strip-nondeterminism
Version: 0.019-1
Severity: important
User: helm...@debian.org
Usertags: rebootstrap

I noticed that building glib2.0 (native or cross) started to fail for me
on some systems. The relevant part of the build log always is:

| dh_strip_nondeterminism -plibglib2.0-tests 
| Out of memory!
| /usr/share/cdbs/1/rules/debhelper.mk:302: recipe for target 
'binary-strip-IMPL/libglib2.0-tests' failed
| make: *** [binary-strip-IMPL/libglib2.0-tests] Error 1
| dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit 
status 2

So I reran dh_strip_nondeterminism under strace and saw

    mmap(NULL, 4294971392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = -1 ENOMEM (Cannot allocate memory)

as the last action before printing the "Out of memory" message. The last
file opened was

    
debian/libglib2.0-tests/usr/lib/glib2.0/installed-tests/glib/thumbnails/huge-chunk-size.png

which has a size of 512 bytes.

If you try reproducing the issue, "ulimit -v $((1024*1024*4))" can be
useful.

I'll be using

    ln -sf /bin/true /usr/bin/dh_strip_nondeterminism

for now unless you can propose something better.

I was also thinking that since these files are deliberately broken,
maybe glib2.0 should explicitly --exclude them from
dh_strip_nondeterminism?

Helmut

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to