[arch-general] problem compiling for i586 with new makepkg

Mister Dobalina reebydobalina at yahoo.ca
Sun Dec 16 00:52:07 EST 2007

--- Travis Willard <travis at archlinux.org> wrote:

> Just a hint, since you were looking to add i586 -
> find and sed are
> your friends. :D
> find -name PKGBUILD -exec sed -i '/^arch=/ { /i586/
> !{
> s/^arch=(/arch=(i586 / } }' {} \;
> That will find every PKGBUILD and add i586 to the
> packages that don't
> already have it.  Yay!

No good, many PKGBUILDs have stuff like

if [ "$CARCH" = "i686" ]; then
  << do something >>

in the build() section, where the something done is
usually something you want done in the i586 case too.

Better to straight out replace i686 by i586 in the

find /var/abs -name PKGBUILD -exec sed -i -e
's|i686|i586|g' '{}' \;

Might also want to do

grep -R i686 /var/abs/*

just to be sure there are no i686's hiding in .install


      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca 

More information about the arch-general mailing list