The unzip ebuild currently expects that all instances of "AS=GCC" in the unzip Makefile have spaces after them. This is not always the case. To fix this, we should update the ebuild to look for word breaks instead of spaces. Reproducible: Always Steps to Reproduce: 1. Try to cross-compile the unzip package to x86 from a x86_64 machine Actual Results: The following error message is printed: gcc -Di386 -x assembler-with-cpp -c -o crc_gcc.o crc_i386.S crc_i386.S: Assembler messages: crc_i386.S:203: Error: suffix or operands invalid for `push' crc_i386.S:204: Error: suffix or operands invalid for `push' crc_i386.S:205: Error: suffix or operands invalid for `push' crc_i386.S:206: Error: suffix or operands invalid for `push' crc_i386.S:207: Error: suffix or operands invalid for `push' crc_i386.S:208: Error: suffix or operands invalid for `push' crc_i386.S:292: Error: suffix or operands invalid for `pop' crc_i386.S:293: Error: suffix or operands invalid for `pop' crc_i386.S:294: Error: suffix or operands invalid for `pop' crc_i386.S:295: Error: suffix or operands invalid for `pop' crc_i386.S:296: Error: suffix or operands invalid for `pop' crc_i386.S:297: Error: suffix or operands invalid for `pop' make[1]: *** [crc_gcc.o] Error 1 The above error message occurs because a 64-bit compiler is being used to compile 32-bit assembler. Updating the ebuild to correctly replace gcc with i686-pc-linux-gnu-gcc fixes the issue. Expected Results: The unzip package should correctly compile to x86 from x86_64.
Created attachment 220117 [details] Fix for broken regex This patch fixes the broken regex which fails to replace assembler commands at the end of the line.
i prefer \< and \> over \b, but that's me
committed now; thanks for the patch http://sources.gentoo.org/app-arch/unzip/unzip-6.0-r1.ebuild?r1=1.10&r2=1.11