binutils: backport windres crash fix (#25032)

Fixes #24998
This commit is contained in:
Christoph Reiter 2025-08-02 10:51:10 +02:00 committed by GitHub
parent 4d67c54ff5
commit ceb8f98f74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ _realname=binutils
pkgbase=mingw-w64-${_realname} pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.45 pkgver=2.45
pkgrel=1 pkgrel=2
pkgdesc="A set of programs to assemble and manipulate binary and object files (mingw-w64)" pkgdesc="A set of programs to assemble and manipulate binary and object files (mingw-w64)"
arch=('any') arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64') mingw_arch=('mingw32' 'mingw64' 'ucrt64')
@ -33,6 +33,7 @@ source=(https://ftp.gnu.org/gnu/binutils/${_realname}-${pkgver}.tar.bz2{,.sig}
libiberty-unlink-handle-windows-nul.patch libiberty-unlink-handle-windows-nul.patch
3001-hack-libiberty-link-order.patch 3001-hack-libiberty-link-order.patch
4000-fix-DEBUG_S_INLINEELINES.patch 4000-fix-DEBUG_S_INLINEELINES.patch
b09f71c1c4680a639ab83bb273aea1f3f4380a6a.patch::"https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=b09f71c1c4680a639ab83bb273aea1f3f4380a6a"
) )
sha256sums=('1393f90db70c2ebd785fb434d6127f8888c559d5eeb9c006c354b203bab3473e' sha256sums=('1393f90db70c2ebd785fb434d6127f8888c559d5eeb9c006c354b203bab3473e'
'SKIP' 'SKIP'
@ -44,7 +45,8 @@ sha256sums=('1393f90db70c2ebd785fb434d6127f8888c559d5eeb9c006c354b203bab3473e'
'a094660ec95996c00b598429843b7869037732146442af567ada9f539bd40480' 'a094660ec95996c00b598429843b7869037732146442af567ada9f539bd40480'
'7ccbd418695733c50966068fa9755a6abb156f53af23701d2bc097c63e9e0030' '7ccbd418695733c50966068fa9755a6abb156f53af23701d2bc097c63e9e0030'
'604628156c08f3e361de60329af250fab6839e23e61e289f8369a7e18a04e277' '604628156c08f3e361de60329af250fab6839e23e61e289f8369a7e18a04e277'
'5ed35a728b956ad49a5e196ae59f681666f2754f0a4903b9280a430d7a312ea8') '5ed35a728b956ad49a5e196ae59f681666f2754f0a4903b9280a430d7a312ea8'
'a7689ac11dd3be5e37a56aa892b0500a4906addf32d6204fdc79b943cf12d7a2')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com> validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com>
'3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton <nickc@redhat.com> '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton <nickc@redhat.com>
@ -95,6 +97,10 @@ prepare() {
# https://github.com/msys2/MINGW-packages/issues/24148 # https://github.com/msys2/MINGW-packages/issues/24148
# https://sourceware.org/bugzilla/show_bug.cgi?id=32942 # https://sourceware.org/bugzilla/show_bug.cgi?id=32942
patch -p1 -i "${srcdir}/4000-fix-DEBUG_S_INLINEELINES.patch" patch -p1 -i "${srcdir}/4000-fix-DEBUG_S_INLINEELINES.patch"
# https://github.com/msys2/MINGW-packages/issues/24998
# https://sourceware.org/bugzilla/show_bug.cgi?id=33244
patch -p1 -i "${srcdir}/b09f71c1c4680a639ab83bb273aea1f3f4380a6a.patch"
} }
build() { build() {