You are not logged in.

Announcement

The recovered forum pages can be found here.
Bugs can be entered here, anyone can open an account now.

#1 2019-11-23 16:50:21

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 14
Website

Building packages from the AUR

Packages from the AUR can be built by setting the architecture in 'PKGBUILD':

arch=('i486' 'i686' 'pentium4' 'x86_64')

The 'i486', 'i686' and 'pentium4' tokens correspond to the architecture branches of Archlinux32.

Make sure the 'CARCH' variable is set correcly in '/etc/makepkg.conf' (we assume you want to build for newer versions of IA32 architecture supporting SSE2, so we choose 'pentium4'):

CARCH="pentium4"

also note that 'CHOST' has to remain untouched as:

CHOST="i686-pc-linux-gnu"

Make sure you set the compilation flags for C/C++ fitting to the architecture:

CFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"

Offline

#2 2019-11-23 21:38:50

levi
Administrator
Registered: 2019-11-16
Posts: 23

Re: Building packages from the AUR

In my experience, those settings from makepkg.conf are all as you specify if you took a pentum4 version of pacman., with a pacman that detects your system as supporting pentium4  But yes you almost always need to include extra platforms in the arch from the PKGBUILD you downloaded from AUR, and sometimes other stuff, especially if it doesn't actually build everything from source.

Offline

Board footer

Powered by FluxBB