You are not logged in.

#1 2024-03-18 20:32:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Building via makechrootpkg - which makepkg.conf to use

I noticed that /etc/makepkg.conf provided by pacman is different than /usr/share/devtools/makepkg.conf.d/x86_64.conf devtools.  Specifically the *FLAGS.  When building with makechrootpkg, which file is recommended?

Currently, pacman wants to use:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"

Whereas the file in devtools wants to use:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2024-03-19 21:33:41

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 749

Re: Building via makechrootpkg - which makepkg.conf to use

It's because pacman had a recent release and devtools does not have a release with https://gitlab.archlinux.org/archlinux/ … quests/229 yet.

Offline

#3 2024-03-22 17:15:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Building via makechrootpkg - which makepkg.conf to use

Thanks for the answer.  I guess the recommendation is to use the FLAGS that ship with the files in devtools rather than the newer ones in pacman.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB