Package: supermin
Tags: patch
version: 5.1.5-1

supermin fails to build on hppa.
Main reason is, that the hppa assembler syntax is slightly different than the 
gnu as to keep compatibility to the HP-UX assembler.

The build log 
(http://buildd.debian-ports.org/status/fetch.php?pkg=supermin&arch=hppa&ver=5.1.5-1&stamp=1394771878)
 shows:

./bin2s.pl init ext2init-bin.S
gcc -std=gnu99 -o ext2init-bin.o -c ext2init-bin.S
ext2init-bin.S: Assembler messages:
ext2init-bin.S:62887: Error: bad or irreducible absolute expression; zero 
assumed
ext2init-bin.S:62887: Error: junk at end of line, first unrecognized character 
is `,'
make[4]: *** [ext2init-bin.o] Error 1

The attached patch fixes this.
It would be nice if you could apply it to the next version.

Thanks,
Helge
diff -up ./helper/bin2s.pl.org ./helper/bin2s.pl
--- ./helper/bin2s.pl.org	2014-03-27 16:01:04.274633813 +0100
+++ ./helper/bin2s.pl	2014-03-27 16:16:28.433361727 +0100
@@ -39,7 +39,11 @@ print $ofh <<"EOF";
 
 _binary_${infile}_end:
 
+#if defined(__hppa__)
+\t_binary_${infile}_size: .equ $sz
+#else
 \t.equ _binary_${infile}_size, $sz
+#endif
 EOF
 
 close $ofh;

Reply via email to