summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2022-11-06 06:36:31 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2022-11-06 06:36:31 -0500
commite113c80bed2857ff8d39bc0f60b629a74a9d8df1 (patch)
treeafc6ab3c1610d1eb212544c24fb89614b7b3fb77
parentd93834cc52009645d227d9ed2f6fab1c74afa6a8 (diff)
pacman-6.0.2-5.parabola3: updating version
-rw-r--r--libre/pacman/PKGBUILD36
-rw-r--r--libre/pacman/add-flto-to-LDFLAGS-for-clang.patch24
-rw-r--r--libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch41
-rw-r--r--libre/pacman/make-link-time-optimization-flags-configurable.patch108
-rw-r--r--libre/pacman/makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch40
5 files changed, 18 insertions, 231 deletions
diff --git a/libre/pacman/PKGBUILD b/libre/pacman/PKGBUILD
index 9058130c9..3b1bb6c0f 100644
--- a/libre/pacman/PKGBUILD
+++ b/libre/pacman/PKGBUILD
@@ -15,17 +15,17 @@
pkgname=pacman
-pkgver=6.0.1
-pkgrel=4
-pkgrel+=.parabola4
+pkgver=6.0.2
+pkgrel=5
+pkgrel+=.parabola3
pkgdesc="A library-based package manager with dependency support"
arch=('x86_64')
arch+=('armv7h' 'i686')
url="https://www.archlinux.org/pacman/"
license=('GPL')
groups=('base-devel')
-depends=('bash' 'glibc' 'libarchive' 'curl'
- 'gpgme' 'pacman-mirrorlist' 'archlinux-keyring')
+depends=('bash' 'glibc' 'libarchive' 'curl' 'gpgme' 'pacman-mirrorlist'
+ 'gettext' 'gawk' 'coreutils' 'gnupg' 'grep')
_upstream_keyring=$(case ${CARCH} in armv7h) echo 'archlinuxarm-keyring' ;; \
i686 ) echo 'archlinux32-keyring' ;; esac)
depends+=('parabola-keyring' ${_upstream_keyring} )
@@ -39,10 +39,10 @@ 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}
- 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
pacman.conf
makepkg.conf)
source=( ${source[*]/pacman.conf/} $(printf "pacman.conf.%s\n" "${arch[@]}" | sort) ) # pacman.conf.{armv7h,i686,x86_64}
@@ -53,12 +53,12 @@ source+=(dummy.conf
source_armv7h=(0001-Sychronize-filesystem.patch
0002-Revert-close-stdin-before-running-install-scripts.patch
0003-Revert-alpm_run_chroot-always-connect-parent2child-p.patch)
-sha256sums=('0db61456e56aa49e260e891c0b025be210319e62b15521f29d3e93b00d3bf731'
+sha256sums=('7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5'
'SKIP'
- '82ff91b85f4c6ceba19f9330437e2a22aabc966c2b9e2a20a53857f98a42c223'
- 'b940e6c0c05a185dce1dbb9da0dcbebf742fca7a63f3e3308d49205afe5a6582'
- '7d0aee976c9c71fcf7c96ef1d99aa76efe47d8c1f4451842d6d159ec7deb4278'
- '5b43e26a76be3ed10a69d4bfb2be48db8cce359baf46583411c7f124737ebe6a'
+ '522b789e442b3bb3afa7ea3fa417a99554f36ec00de3986cbe92c80f09a7db99'
+ 'dab7c70fb9d77d702069bb57f5a12496b463d68ae20460fb0a3ffcb4791321a9'
+ '0b56c61eac3d9425d68faa2eccbaefdc5ed422b643974ae829eaca0460043da1'
+ 'acd0b149b6324dc1eca3cd2d3b30df6ef64c5653e83523d77200ec593e01d2a7'
'20e9de1b612c3f24736e76a753cd38b7ea0f80160185012a538a77297acfb31f' # makepkg.conf.in
'ba97c17a2d994b69617d89dd57c774189c9af99d89ccf78615dec2feefada25e' # pacman.conf.armv7h
'a9745669798187ae1862481eceda93691d64c48c8198b06b9df85fa6f21966de' # pacman.conf.i686
@@ -72,10 +72,10 @@ sha256sums_armv7h=('8d70fb5094f58aad98b601bbc42be354c2014b9fe734a1ee0b1e14bb041c
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 ../pacman-always-create-directories-from-debugedit.patch
+ patch -Np1 -i ../pacman-always-create-directories-from-debugedit-fixup.patch
+ patch -Np1 -i ../pacman-fix-unique-source-paths.patch
+ patch -Np1 -i ../pacman-strip-include-o-files-similar-to-kernel-modules.patch
# From Arch ARM
if [ "${CARCH}" = "armv7h" ]; then
diff --git a/libre/pacman/add-flto-to-LDFLAGS-for-clang.patch b/libre/pacman/add-flto-to-LDFLAGS-for-clang.patch
deleted file mode 100644
index b3c139de4..000000000
--- a/libre/pacman/add-flto-to-LDFLAGS-for-clang.patch
+++ /dev/null
@@ -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
- }
diff --git a/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch b/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch
deleted file mode 100644
index 365993571..000000000
--- a/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-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"
diff --git a/libre/pacman/make-link-time-optimization-flags-configurable.patch b/libre/pacman/make-link-time-optimization-flags-configurable.patch
deleted file mode 100644
index 1406b7b49..000000000
--- a/libre/pacman/make-link-time-optimization-flags-configurable.patch
+++ /dev/null
@@ -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
-
diff --git a/libre/pacman/makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch b/libre/pacman/makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
deleted file mode 100644
index ca667d88f..000000000
--- a/libre/pacman/makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
+++ /dev/null
@@ -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"