mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
core/pacman to 6.0.2-5
This commit is contained in:
parent
b371571174
commit
4a541b5345
7 changed files with 99 additions and 242 deletions
|
@ -1,5 +1,6 @@
|
|||
# vim: set ts=2 sw=2 et:
|
||||
# Maintainer:
|
||||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - arch/host/flags for arm, armv6h, armv7h, and aarch64
|
||||
|
@ -10,8 +11,8 @@
|
|||
# - patch to fix application/gzip change in file 5.37
|
||||
|
||||
pkgname=pacman
|
||||
pkgver=6.0.1
|
||||
pkgrel=8
|
||||
pkgver=6.0.2
|
||||
pkgrel=5
|
||||
pkgdesc="A library-based package manager with dependency support"
|
||||
arch=('x86_64')
|
||||
url="https://www.archlinux.org/pacman/"
|
||||
|
@ -29,43 +30,39 @@ options=('strip' 'debug')
|
|||
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
|
||||
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
|
||||
source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz{,.sig}
|
||||
"fix-wkd-lookup.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/e1246baddd14ec6f4b6270b59bea0e1b639472a7.patch"
|
||||
"patch-updatedb.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/58d678fa289034f1fe2a56adbb5e496b774755fc.patch"
|
||||
add-flto-to-LDFLAGS-for-clang.patch
|
||||
makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
|
||||
libmakepkg-add-extra-buildflags-only-when-buildflags.patch
|
||||
make-link-time-optimization-flags-configurable.patch
|
||||
pacman-always-create-directories-from-debugedit.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/efd0c24c07b86be014a4edb5a8ece021b87e3900.patch
|
||||
pacman-always-create-directories-from-debugedit-fixup.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/86981383a2f4380bda26311831be94cdc743649b.patch
|
||||
pacman-fix-unique-source-paths.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/478af273dfe24ded197ec54ae977ddc3719d74a0.patch
|
||||
pacman-strip-include-o-files-similar-to-kernel-modules.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/de11824527ec4e2561e161ac40a5714ec943543c.patch
|
||||
0001-Sychronize-filesystem.patch
|
||||
0002-Revert-close-stdin-before-running-install-scripts.patch
|
||||
0003-Revert-alpm_run_chroot-always-connect-parent2child-p.patch
|
||||
pacman.conf
|
||||
makepkg.conf)
|
||||
sha256sums=('0db61456e56aa49e260e891c0b025be210319e62b15521f29d3e93b00d3bf731'
|
||||
sha256sums=('7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5'
|
||||
'SKIP'
|
||||
'8ab5b1338874d7d58e11c5d1185ea3454fcc89755f9c18faf87ff348ad1ed16c'
|
||||
'988acbb76a0bbd866ab76121191ba4a968bf12970d581fb81b47504c4d998e96'
|
||||
'82ff91b85f4c6ceba19f9330437e2a22aabc966c2b9e2a20a53857f98a42c223'
|
||||
'b940e6c0c05a185dce1dbb9da0dcbebf742fca7a63f3e3308d49205afe5a6582'
|
||||
'7d0aee976c9c71fcf7c96ef1d99aa76efe47d8c1f4451842d6d159ec7deb4278'
|
||||
'5b43e26a76be3ed10a69d4bfb2be48db8cce359baf46583411c7f124737ebe6a'
|
||||
'f9a8ae2805cc995ef1b787e10f402d574aaee183cc3a23fe26805555b7d87fea'
|
||||
'7beb2faec0ec37dcb2050d9ed3c95353fb7f73da7e3bbe0e226e9e3f7858a01f'
|
||||
'0fdbdc3c86b826fe87d8051a5d34db23b366b0a7bdc22f3701b1bf2b01218d59'
|
||||
'522b789e442b3bb3afa7ea3fa417a99554f36ec00de3986cbe92c80f09a7db99'
|
||||
'dab7c70fb9d77d702069bb57f5a12496b463d68ae20460fb0a3ffcb4791321a9'
|
||||
'0b56c61eac3d9425d68faa2eccbaefdc5ed422b643974ae829eaca0460043da1'
|
||||
'acd0b149b6324dc1eca3cd2d3b30df6ef64c5653e83523d77200ec593e01d2a7'
|
||||
'ba91c92fbae492be13df12dd34e22b00e1a63c706fdd328e8d9a907c5d517e71'
|
||||
'bb8d53dd1136c314aacbc275f36936112d04ec6c0ebc882eefe6e46bd86e6db5'
|
||||
'11b3ed535d0cb981ce5927ed9b308615e4f6b6a8e2aef6e2e15a59df956bfdab'
|
||||
'19f189accab294af7085cb709417eb41784d21aa8da07a8aa24bf7591ec3ce94'
|
||||
'd001efcbcbe97e4be27639cb7709813a40803e8aead8f544fc7c5b92fb64b062')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch -Np1 -i ../add-flto-to-LDFLAGS-for-clang.patch
|
||||
patch -Np1 -i ../makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
|
||||
patch -Np1 -i ../libmakepkg-add-extra-buildflags-only-when-buildflags.patch
|
||||
patch -Np1 -i ../make-link-time-optimization-flags-configurable.patch
|
||||
patch -Np1 -i ../fix-wkd-lookup.patch
|
||||
patch -Np1 -i ../patch-updatedb.patch
|
||||
|
||||
patch -p1 -i ../0001-Sychronize-filesystem.patch
|
||||
patch -p1 -i ../0002-Revert-close-stdin-before-running-install-scripts.patch
|
||||
patch -p1 -i ../0003-Revert-alpm_run_chroot-always-connect-parent2child-p.patch
|
||||
# we backport way too often in pacman
|
||||
# lets at least make it more convenient
|
||||
local src
|
||||
for src in "${source[@]}"; do
|
||||
src="${src%%::*}"
|
||||
src="${src##*/}"
|
||||
[[ $src = *.patch ]] || continue
|
||||
msg2 "Applying patch $src..."
|
||||
patch -Np1 < "../$src"
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
From 26ee6ff6adbcd8560ec3a65cf219d2ab98edb804 Mon Sep 17 00:00:00 2001
|
||||
From: Allan McRae <allan@archlinux.org>
|
||||
Date: Fri, 24 Dec 2021 17:59:32 +1000
|
||||
Subject: [PATCH] LTO: Add -flto to LDFLAGS for clang
|
||||
|
||||
GCC automatically detects when it is linking LTO objects, but clang does
|
||||
not. Add -flto to LDFLAGS to make this work for clang too.
|
||||
|
||||
Signed-off-by: Allan McRae <allan@archlinux.org>
|
||||
---
|
||||
scripts/libmakepkg/buildenv/lto.sh.in | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/scripts/libmakepkg/buildenv/lto.sh.in b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
index 1f1ca53f..c3bd0fa4 100644
|
||||
--- a/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
@@ -33,5 +33,6 @@ buildenv_lto() {
|
||||
if check_option "lto" "y"; then
|
||||
CFLAGS+=" -flto"
|
||||
CXXFLAGS+=" -flto"
|
||||
+ LDFLAGS+=" -flto"
|
||||
fi
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQENBE3oz6MBCADHYZxR/nVu5wojCQzP23nPMcaLyiaspYYaEfXMuxqDdPVNOyiq
|
||||
mO7fHYmzuWrBJ6KXy/xZrJVEOTxTyxNjIMLzvB/k43CslXsPfFz9FnP789TqAJAK
|
||||
5WaLP4krhp/wfrqXg6YHs/ggdeDHHdmT1C+RDnw0QTG3AjZRZqs9aEo/frVjiQ1q
|
||||
iO1Ojk72xJm1/opI7uHu0Gg7cOM7C5nTRyb4egwLGVYgoHJ1QNxAj7as9Q1VHdqK
|
||||
2rEymqN/jwQIxf2LkK+LjqmwJKEVD8W8pP7LBmdV21aw7Qp+qbDWgGL8MX4GKkw8
|
||||
gnADhCIbARyD8+ZxmrB2b5TNBlTq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From 42fe4864a0c8e2846007ffee532fe0cf4b321cdd Mon Sep 17 00:00:00 2001
|
||||
From: Allan McRae <allan@archlinux.org>
|
||||
Date: Sun, 9 Jan 2022 12:45:58 +1000
|
||||
Subject: [PATCH] libmakepkg: add extra buildflags only when buildflags is not
|
||||
disabled
|
||||
|
||||
This means options=('!buildflags') will disable the addition of CFLAG
|
||||
etc for LTO and debug building.
|
||||
|
||||
Signed-off-by: Allan McRae <allan@archlinux.org>
|
||||
---
|
||||
scripts/libmakepkg/buildenv/debugflags.sh.in | 2 +-
|
||||
scripts/libmakepkg/buildenv/lto.sh.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/libmakepkg/buildenv/debugflags.sh.in b/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
index 84ca7b71..1cb58613 100644
|
||||
--- a/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
@@ -29,7 +29,7 @@ source "$LIBRARY/util/option.sh"
|
||||
buildenv_functions+=('buildenv_debugflags')
|
||||
|
||||
buildenv_debugflags() {
|
||||
- if check_option "debug" "y"; then
|
||||
+ if check_option "debug" "y" && ! check_option "buildflags" "n"; then
|
||||
DEBUG_CFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
DEBUG_CXXFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
DEBUG_RUSTFLAGS+=" --remap-path-prefix=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
diff --git a/scripts/libmakepkg/buildenv/lto.sh.in b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
index 081d5648..6e500eab 100644
|
||||
--- a/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
@@ -30,7 +30,7 @@ build_options+=('lto')
|
||||
buildenv_functions+=('buildenv_lto')
|
||||
|
||||
buildenv_lto() {
|
||||
- if check_option "lto" "y"; then
|
||||
+ if check_option "lto" "y" && ! check_option "buildflags" "n"; then
|
||||
CFLAGS+=" -flto"
|
||||
CXXFLAGS+=" -flto"
|
||||
LDFLAGS+=" -flto"
|
|
@ -1,108 +0,0 @@
|
|||
From e1ce2351f5c00dd90104e0f4ce3bf176da28af08 Mon Sep 17 00:00:00 2001
|
||||
From: Evangelos Foutras <evangelos@foutrelis.com>
|
||||
Date: Thu, 10 Feb 2022 05:15:01 +0200
|
||||
Subject: [PATCH] Make link time optimization flags configurable
|
||||
|
||||
We want to use -flto=auto in Arch Linux to speed up building, but we
|
||||
can't hardcode it in buildenv/lto.sh because other downstreams might
|
||||
have clang < 13.0.0 which did not recognize -flto=auto as equivalent
|
||||
to -flto=full.
|
||||
|
||||
Introducing an LTOFLAGS variable to makepkg.conf seems the way to go.
|
||||
|
||||
Signed-off-by: Allan McRae <allan@archlinux.org>
|
||||
---
|
||||
doc/makepkg.conf.5.asciidoc | 10 ++++++++--
|
||||
etc/makepkg.conf.in | 1 +
|
||||
scripts/libmakepkg/buildenv/buildflags.sh.in | 2 +-
|
||||
scripts/libmakepkg/buildenv/lto.sh.in | 6 +++---
|
||||
scripts/libmakepkg/lint_config/variable.sh.in | 8 ++++----
|
||||
5 files changed, 17 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/doc/makepkg.conf.5.asciidoc b/doc/makepkg.conf.5.asciidoc
|
||||
index 39c5c808..a0d9a6d4 100644
|
||||
--- a/doc/makepkg.conf.5.asciidoc
|
||||
+++ b/doc/makepkg.conf.5.asciidoc
|
||||
@@ -81,6 +81,11 @@ Options
|
||||
usage resembling ``-Wl,--hash-style=gnu''. Read ld(1) for more details on
|
||||
available linker flags.
|
||||
|
||||
+**LTOFLAGS=**"ltoflags"::
|
||||
+ Additional compiler and linker flags appended to `CFLAGS`, `CXXFLAGS`
|
||||
+ and `LDFLAGS` when building with link time optimization. If empty,
|
||||
+ ``-flto'' is used.
|
||||
+
|
||||
**MAKEFLAGS=**"makeflags"::
|
||||
This is often used to set the number of jobs used; for example, `-j2`.
|
||||
Other flags that make accepts can also be passed.
|
||||
@@ -190,8 +195,9 @@ Options
|
||||
package containing the debug symbols when used with `strip'.
|
||||
|
||||
*lto*;;
|
||||
- Enable building packages using link time optimization. Adds '-flto'
|
||||
- to both CFLAGS and CXXFLAGS.
|
||||
+ Enable building packages using link time optimization. Adds the
|
||||
+ flags specified in LTOFLAGS to CFLAGS, CXXFLAGS and LDFLAGS (or
|
||||
+ ``-flto'' if LTOFLAGS is empty).
|
||||
|
||||
*autodep*;;
|
||||
Enable the automatic addition of libraries to the depends and
|
||||
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
|
||||
index 0c911cce..edc5f442 100644
|
||||
--- a/etc/makepkg.conf.in
|
||||
+++ b/etc/makepkg.conf.in
|
||||
@@ -41,6 +41,7 @@ CHOST="@CHOST@"
|
||||
#CFLAGS="-O2 -pipe"
|
||||
#CXXFLAGS="-O2 -pipe"
|
||||
#LDFLAGS=""
|
||||
+#LTOFLAGS="-flto"
|
||||
#RUSTFLAGS="-C opt-level=2"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
diff --git a/scripts/libmakepkg/buildenv/buildflags.sh.in b/scripts/libmakepkg/buildenv/buildflags.sh.in
|
||||
index 74f91988..07b4a730 100644
|
||||
--- a/scripts/libmakepkg/buildenv/buildflags.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/buildflags.sh.in
|
||||
@@ -30,6 +30,6 @@ buildenv_functions+=('buildenv_buildflags')
|
||||
|
||||
buildenv_buildflags() {
|
||||
if check_option "buildflags" "n"; then
|
||||
- unset CPPFLAGS CFLAGS DEBUG_CFLAGS CXXFLAGS DEBUG_CXXFLAGS LDFLAGS RUSTFLAGS DEBUG_RUSTFLAGS
|
||||
+ unset CPPFLAGS CFLAGS DEBUG_CFLAGS CXXFLAGS DEBUG_CXXFLAGS LDFLAGS LTOFLAGS RUSTFLAGS DEBUG_RUSTFLAGS
|
||||
fi
|
||||
}
|
||||
diff --git a/scripts/libmakepkg/buildenv/lto.sh.in b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
index 6e500eab..6492def7 100644
|
||||
--- a/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/lto.sh.in
|
||||
@@ -31,8 +31,8 @@ buildenv_functions+=('buildenv_lto')
|
||||
|
||||
buildenv_lto() {
|
||||
if check_option "lto" "y" && ! check_option "buildflags" "n"; then
|
||||
- CFLAGS+=" -flto"
|
||||
- CXXFLAGS+=" -flto"
|
||||
- LDFLAGS+=" -flto"
|
||||
+ CFLAGS+=" ${LTOFLAGS:--flto}"
|
||||
+ CXXFLAGS+=" ${LTOFLAGS:--flto}"
|
||||
+ LDFLAGS+=" ${LTOFLAGS:--flto}"
|
||||
fi
|
||||
}
|
||||
diff --git a/scripts/libmakepkg/lint_config/variable.sh.in b/scripts/libmakepkg/lint_config/variable.sh.in
|
||||
index 8327b0a5..03a67ee2 100644
|
||||
--- a/scripts/libmakepkg/lint_config/variable.sh.in
|
||||
+++ b/scripts/libmakepkg/lint_config/variable.sh.in
|
||||
@@ -32,10 +32,10 @@ lint_config_variables() {
|
||||
local array=(DLAGENTS VCSCLIENTS BUILDENV OPTIONS INTEGRITY_CHECK MAN_DIRS
|
||||
DOC_DIRS PURGE_TARGETS COMPRESSGZ COMPRESSBZ2 COMPRESSXZ
|
||||
COMPRESSLRZ COMPRESSLZO COMPRESSZ)
|
||||
- local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS RUSTFLAGS LDFLAGS DEBUG_CFLAGS
|
||||
- DEBUG_CXXFLAGS DEBUG_RUSTFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES
|
||||
- STRIP_SHARED STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST LOGDEST PACKAGER
|
||||
- GPGKEY PKGEXT SRCEXT)
|
||||
+ local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS RUSTFLAGS LDFLAGS LTOFLAGS
|
||||
+ DEBUG_CFLAGS DEBUG_CXXFLAGS DEBUG_RUSTFLAGS DISTCC_HOSTS BUILDDIR
|
||||
+ STRIP_BINARIES STRIP_SHARED STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST
|
||||
+ LOGDEST PACKAGER GPGKEY PKGEXT SRCEXT)
|
||||
|
||||
local i keys ret=0
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
From e37f7d8b6b4d2f9accf97eb96d0eacbddf2a1345 Mon Sep 17 00:00:00 2001
|
||||
From: Xiretza <xiretza@xiretza.xyz>
|
||||
Date: Sat, 1 Jan 2022 14:40:24 +0100
|
||||
Subject: [PATCH] makepkg: use -ffile-prefix-map instead of -fdebug-prefix-map
|
||||
|
||||
>From gcc(1):
|
||||
|
||||
-ffile-prefix-map=old=new
|
||||
[...] Specifying this option is equivalent to specifying all the
|
||||
individual -f*-prefix-map options. This can be used to make reproducible
|
||||
builds that are location independent.
|
||||
|
||||
Specifically, this additionally enables -fmacro-prefix-map=, which causes
|
||||
prefix mapping to be applied to expansions of __FILE__ and similar macros.
|
||||
|
||||
Without this option, if source files are compiled by passing the
|
||||
absolute file path to the compiler (as done by e.g. cmake), any
|
||||
expansions of __FILE__ (e.g. from uses of assert()) will contain
|
||||
$srcdir.
|
||||
|
||||
Signed-off-by: Allan McRae <allan@archlinux.org>
|
||||
---
|
||||
scripts/libmakepkg/buildenv/debugflags.sh.in | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/libmakepkg/buildenv/debugflags.sh.in b/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
index e0a1ed00..84ca7b71 100644
|
||||
--- a/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
+++ b/scripts/libmakepkg/buildenv/debugflags.sh.in
|
||||
@@ -30,8 +30,8 @@ buildenv_functions+=('buildenv_debugflags')
|
||||
|
||||
buildenv_debugflags() {
|
||||
if check_option "debug" "y"; then
|
||||
- DEBUG_CFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
- DEBUG_CXXFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
+ DEBUG_CFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
+ DEBUG_CXXFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
DEBUG_RUSTFLAGS+=" --remap-path-prefix=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
|
||||
CFLAGS+=" $DEBUG_CFLAGS"
|
||||
CXXFLAGS+=" $DEBUG_CXXFLAGS"
|
Loading…
Reference in a new issue