From 85709e5a2278590465d8a65e781b64b574780497 Mon Sep 17 00:00:00 2001 From: George Rawlinson <george@rawlinson.net.nz> Date: Tue, 4 Mar 2025 20:30:25 +1300 Subject: [PATCH] build: update pacman configuration --- .repo/makepkg-grawlinson.conf | 19 +++++++++++-------- .repo/pacman-grawlinson.conf | 5 ++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.repo/makepkg-grawlinson.conf b/.repo/makepkg-grawlinson.conf index bd0632d..8034554 100644 --- a/.repo/makepkg-grawlinson.conf +++ b/.repo/makepkg-grawlinson.conf @@ -25,7 +25,7 @@ DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' #-- The package required by makepkg to download VCS sources # Format: 'protocol::package' -VCSCLIENTS=('bzr::bzr' +VCSCLIENTS=('bzr::breezy' 'fossil::fossil' 'git::git' 'hg::mercurial' @@ -41,18 +41,18 @@ CHOST="x86_64-pc-linux-gnu" #-- Compiler and Linker Flags #CPPFLAGS="" 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" + -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection \ + -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" -LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" +LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \ + -Wl,-z,pack-relative-relocs" LTOFLAGS="-flto=auto" -RUSTFLAGS="" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j$(nproc)" +#MAKEFLAGS="-j2" #-- Debugging flags DEBUG_CFLAGS="-g" DEBUG_CXXFLAGS="$DEBUG_CFLAGS" -DEBUG_RUSTFLAGS="-C debuginfo=2" ######################################################################### # BUILD ENVIRONMENT @@ -81,7 +81,7 @@ BUILDENV=(!distcc color !ccache check !sign) # These are default values for the options=() settings ######################################################################### # -# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps) # A negated option will do the opposite of the comments below. # #-- strip: Strip symbols from binaries/libraries @@ -93,6 +93,7 @@ BUILDENV=(!distcc color !ccache check !sign) #-- purge: Remove files specified by PURGE_TARGETS #-- debug: Add debugging flags as specified in DEBUG_* variables #-- lto: Add compile flags for building with link time optimization +#-- autodeps: Automatically add depends/provides # OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) @@ -112,6 +113,8 @@ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) #-- Directory to store source code in for debug packages DBGSRCDIR="/usr/src/debug" +#-- Prefix and directories for library autodeps +LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32') ######################################################################### # PACKAGE OUTPUT diff --git a/.repo/pacman-grawlinson.conf b/.repo/pacman-grawlinson.conf index dc42f5e..277fe74 100644 --- a/.repo/pacman-grawlinson.conf +++ b/.repo/pacman-grawlinson.conf @@ -35,6 +35,8 @@ CheckSpace VerbosePkgLists #NoProgressBar ParallelDownloads = 10 +DownloadUser = alpm +#DisableSandbox # By default, pacman accepts packages signed by keys that its local keyring @@ -82,9 +84,6 @@ Include = /etc/pacman.d/mirrorlist #[community-testing] #Include = /etc/pacman.d/mirrorlist -[community] -Include = /etc/pacman.d/mirrorlist - # If you want to run 32 bit applications on your x86_64 system, # enable the multilib repositories as required here.