Skip to content
Snippets Groups Projects

cross/gcc-*: upgrade to 14.2.0-r4

Merged Clayton Craft requested to merge craftyguy/gcc-upgrade into master
4 files
+ 152
0
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 127
0
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=abuild
pkgver=9999
_pkgver=3.14.0
_ver=${_pkgver%_git*}
pkgrel=0
pkgdesc="Script to build Alpine Packages"
url="https://git.alpinelinux.org/cgit/abuild/"
arch="all"
license="GPL-2.0-only"
depends="
abuild-sudo
apk-tools>=2.0.7-r1
cmd:getcap
fakeroot
musl-utils
lzip
openssl>3
patch
pkgconf
scanelf
tar
"
makedepends_build="pkgconfig scdoc"
makedepends_host="openssl-dev>3 zlib-dev"
makedepends="$makedepends_host $makedepends_build"
checkdepends="cmd:setcap kyua git"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="
apkbuild-cpan:cpan:noarch
apkbuild-gem-resolver:gems:noarch
apkbuild-pypi:pypi:noarch
abuild-rootbld:_rootbld:noarch
abuild-sudo:_sudo
$pkgname-doc
"
options="suid !check"
pkggroups="abuild"
source="https://gitlab.alpinelinux.org/alpine/abuild/-/archive/$_pkgver/abuild-$_pkgver.tar.gz
temp.patch
"
builddir="$srcdir"/abuild-$_pkgver
build() {
make VERSION="$_pkgver-r$pkgrel"
}
check() {
make check
}
package() {
make install VERSION="$_pkgver-r$pkgrel" DESTDIR="$pkgdir"
install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf
case "$CARCH" in
aarch64|x86*|ppc64le)
# binutils only supports it here
cat >>"$pkgdir"/usr/share/abuild/default.conf <<-EOF
# binutils ld.bfd supports this on this architecture; default to it
export RUSTFLAGS="\${RUSTFLAGS-} -Clink-arg=-Wl,-z,pack-relative-relocs"
export LDFLAGS="\$LDFLAGS -Wl,-z,pack-relative-relocs"
EOF
esac
case "$CARCH" in
x86_64)
# https://lists.alpinelinux.org/~alpine/devel/%3C1628515011.zujvcn248v.none%40localhost%3E
# note that this is x86-exclusive. on other architectures, this is pretty much always bad
# https://github.com/rust-lang/rust/pull/106380
cat >>"$pkgdir"/usr/share/abuild/default.conf <<-EOF
# -fno-plt has very slight improvements to general code size and speed on x86-only,
# for the common system dynamic linking case
export CFLAGS="\$CFLAGS -fno-plt"
export CXXFLAGS="\$CXXFLAGS -fno-plt"
EOF
;;
esac
install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles
}
cpan() {
pkgdesc="Script to generate perl APKBUILD from CPAN"
depends="perl perl-libwww perl-json perl-module-build perl-module-build-tiny
perl-lwp-protocol-https"
amove usr/bin/apkbuild-cpan
}
gems() {
pkgdesc="APKBUILD dependency resolver for RubyGems"
depends="ruby ruby-augeas"
amove usr/bin/apkbuild-gem-resolver
}
pypi() {
pkgdesc="Script to generate python3 APKBUILD from PYPI"
depends="perl perl-libwww perl-json perl-module-build-tiny perl-lwp-protocol-https
perl-ipc-system-simple"
amove usr/bin/apkbuild-pypi
}
_rootbld() {
pkgdesc="Build packages in chroot"
depends="abuild bubblewrap cmd:envsubst git"
mkdir -p "$subpkgdir"
}
_sudo() {
pkgdesc="Simple privilege elevation tools for building packages"
depends=""
install_if="$pkgname=$_pkgver-r$pkgrel"
amove usr/bin/abuild-sudo usr/bin/abuild-apk usr/bin/abuild-adduser \
usr/bin/abuild-addgroup
}
sha512sums="
997c9c2dadd5ba886477af099f0f500539fe7f276aa5fffc34dac5f43f33b19fa21dd4e015aa20e85f01792d18f2f7417fc1c911cd446022d99239bf4571dea4 abuild-3.14.0.tar.gz
2cde9e990c4cac864261bb52cdc1fbe53a00888ad5db5b75b9eea2209ec6bbf38c5435d4b0243e014f24700c1cff8403c8d38e53cf8a0e1b2e6fe7d2c2b8f625 temp.patch
"
Loading