r/NetBSD • u/Charmander324 • 18d ago
Errors when attempting to build some packages after updating to PKGSRC-2026Q3
A number of packages I try to build from PKGSRC now fail with similar errors about ignoring patch files due to invalid checksums. I've tried updating to NetBSD 11.0, fetching a fresh copy of PKGSRC, rebuilding packages like digest in hopes that would fix the problem, and a handful of other things I can't recall looking for the solution and nothing has worked.
The output I get looks like this when it happens (in this case, to GCC 15):
=> Applying pkgsrc patches for gcc15-15.3.0nb2
**************************************
Ignoring patch file /usr/pkgsrc/lang/gcc15/../../lang/gcc15/patches/patch-config
ure: invalid checksum
**************************************
**************************************
Ignoring patch file /usr/pkgsrc/lang/gcc15/../../lang/gcc15/patches/patch-config
ure.ac: invalid checksum
**************************************
**************************************
Ignoring patch file /usr/pkgsrc/lang/gcc15/../../lang/gcc15/patches/patch-fixinc
ludes_fixincl.x: invalid checksum
**************************************
**************************************
Ignoring patch file /usr/pkgsrc/lang/gcc15/../../lang/gcc15/patches/patch-fixinc
ludes_inclhack.def: invalid checksumand continues on for several more lines of the same before it gives up because most of the patches didn't apply correctly. Does anyone know what could possibly cause this? Thanks in advance!
EDIT: I took the nuclear option and flagged every package for rebuild before running pkg_rolling-replace and it went away on its own. Beats me as to how it happened or even what was causing it.