You are not logged in.

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

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
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
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

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.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2023-08-11 06:49:27

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

Re: Building packages from the AUR

I should mention that this is for building AUR packages on a 32-bit installation, for compiling from a 64-bit version you have to use devools32 and the tools like
core-staging-pentium4-build. That said, I miss links like 'core-stable-pentium4-build' to build against stable.

Offline

Board footer

Powered by FluxBB