Peter Jung pushed to branch main at Arch Linux / Packaging / Packages / mingw-w64-gcc
Commits: 88dfed3d by Peter Jung at 2024-11-27T21:31:31+01:00 upgpkg: 14.2.0-2, fix ada compilation - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,13 +1,14 @@ pkgbase = mingw-w64-gcc pkgdesc = Cross GCC for the MinGW-w64 cross-compiler pkgver = 14.2.0 - pkgrel = 1 + pkgrel = 2 url = https://gcc.gnu.org arch = x86_64 groups = mingw-w64-toolchain groups = mingw-w64 license = GPL-3.0-with-GCC-exception license = GFDL-1.3-or-later + makedepends = gcc-ada depends = bash depends = gcc-libs depends = glibc ===================================== PKGBUILD ===================================== @@ -3,7 +3,7 @@ pkgname=mingw-w64-gcc pkgver=14.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="Cross GCC for the MinGW-w64 cross-compiler" arch=('x86_64') url="https://gcc.gnu.org" @@ -26,7 +26,7 @@ depends=( zstd ) # gcc-d doesn't build as of 13.1.0 -# gcc-ada doesn't build as of 14.0.0 +makedepends=('gcc-ada') options=('!strip' 'staticlibs' '!emptydirs' '!buildflags') source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}) validpgpkeys=(D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62 # Jakub Jelinek <ja...@redhat.com> @@ -42,6 +42,8 @@ prepare() { # mmapio.c:69:14: error: implicit declaration of function ‘getpagesize’ sed -i 's|\-Werror||g' libbacktrace/configure + # Ada fails to compile, fix it with including the correct headers + sed -i '/#include "mingw32.h"/a #include <stdlib.h>' gcc/ada/rtinit.c } build() { @@ -50,7 +52,7 @@ build() { "$srcdir"/gcc/configure --prefix=/usr --libexecdir=/usr/lib \ --target=${_arch} \ --with-bugurl=https://bugs.archlinux.org/ \ - --enable-languages=c,c++,fortran,lto,objc,obj-c++ \ + --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ \ --enable-shared --enable-static \ --enable-threads=posix --enable-fully-dynamic-string \ --enable-libstdcxx-time=yes --enable-libstdcxx-filesystem-ts=yes \ @@ -68,7 +70,7 @@ package() { make DESTDIR="$pkgdir" install ${_arch}-strip "$pkgdir"/usr/${_arch}/lib/*.dll strip "$pkgdir"/usr/bin/${_arch}-* - strip "$pkgdir"/usr/lib/gcc/${_arch}/${pkgver}/{cc1*,collect2,f951,lto*} + strip "$pkgdir"/usr/lib/gcc/${_arch}/${pkgver}/{cc1*,collect2,gnat1,f951,lto*} ln -s ${_arch}-gcc "$pkgdir"/usr/bin/${_arch}-cc # mv dlls mkdir -p "$pkgdir"/usr/${_arch}/bin/ View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mingw-w64-gcc/-/commit/88dfed3dea5d698a007d7788850a64a3750cd1fb -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mingw-w64-gcc/-/commit/88dfed3dea5d698a007d7788850a64a3750cd1fb You're receiving this email because of your account on gitlab.archlinux.org.