Re: problem compiling for i586 with new makepkg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



--- Travis Willard <travis@xxxxxxxxxxxxx> 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 >>
fi

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
whole PKGBUILD.

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
files.

cheers.



      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 



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux