Lucas Nussbaum <lu...@lucas-nussbaum.net> writes:

> Package: aegis
> Version: 4.24-5
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20090620 qa-ftbfs
> Justification: FTBFS on amd64
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Relevant part:
>> CXX="g++" /bin/sh etc/test.sh -shell /bin/sh -run \
>>              test/02/t0228a-matt.sh test/02/t0228a-matt.ES
>> rss.expected.gif rss.served.gif differ: char 24, line 1
>> FAILED test of the aeget rssicon functionality (Compare gifs)
> [...]
>> Passed 276 of 277 tests.
>> Failed 1 of 277 tests.
>> make[1]: *** [sure] Error 1

Thank's for the report.

The patch below should fix the problem.

#       
#       This change-set make t0228a-matt more robust wrt file type
#       identification.
#
Index: test/02/t0228a-matt.sh
--- test/02/t0228a-matt.sh
+++ test/02/t0228a-matt.sh
@@ -135,7 +135,11 @@
 $bin/test_base64 -nh -uu -i rss.gif.uue icon/rss.gif
 if test $? -ne 0 ; then fail; fi
 
-echo "Content-Type: image/gif" > rss.expected.gif
+#
+# We need to invoke file here because the behaviour of libmagic change
+# with versions and we need to replicate it exactly to have the test pass.
+#
+echo "Content-Type:" `file -ib icon/rss.gif` > rss.expected.gif
 echo "Content-Length: 360" >> rss.expected.gif
 echo >> rss.expected.gif
 cat icon/rss.gif >> rss.expected.gif

-- 
Walter Franzini
http://aegis.stepbuild.org/

Attachment: pgpFBMlNfGIS3.pgp
Description: PGP signature

Attachment: pgpTlyR7TLKw0.pgp
Description: PGP signature

Reply via email to