pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/patchelf



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Jun 28 15:12:13 UTC 2026

Modified Files:
        pkgsrc/devel/patchelf: Makefile distinfo

Log Message:
patchelf: updated to 0.19.0

0.19.0

New features

Add --build-resolution-cache to write a per-DSO library resolution note
Add --no-clobber-old-sections switch to keep the original section contents in place.

Bug fixes

Fix support for files larger than 4GB.
Fix alignment problem when rewriting sections.
Allocate the program and section header tables at the end of the file.
Set the interpreter only when necessary.
Fix 639: update DT_INIT/DT_FINI dynamic tags when their sections move, and stop rewriting them to the .init/.fini sh_addr.
Fix DT_MIPS_RLD_MAP_REL on cross-endian patches and after --remove-rpath, --remove-needed and friends.
Allow removing an RPATH on MIPS
Fix the page size on Alpha, Itanium and SPARC.
roundUp: reject a zero alignment instead of dividing by it.
Preserve pointer provenance during string table offset arithmetic, fixing a SIGSEGV on capability-based architectures such as CHERI RISC-V
Restrict system operations on OpenBSD.
Optimize prefix stripping in replaceNeeded
Fix compilation with GCC 7.

Hardening

A round of fuzzing-driven robustness fixes so malformed inputs are rejected with errors instead of crashing

setSubstr errors out instead of asserting on an out-of-bounds write.
Bound every .dynamic walk, .dynstr lookup and .gnu.version_{d,r} link walk by the owning section.
Validate e_shentsize, hash table header counts and getSectionSpan offsets/sizes against the file before deriving spans.
Treat sh_addralign == 0 as 1 in normalizeNoteSegments.

Build system and infra

Add a Meson build system
Add package.nix definitions for the autotools, CMake and Meson builds.
Add property-based testing of binary-preserving rewrites
CI: build static musl binaries for more architectures, test mips64le and FreeBSD, and add developer tooling and formatting.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/patchelf/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/patchelf/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/patchelf/Makefile
diff -u pkgsrc/devel/patchelf/Makefile:1.18 pkgsrc/devel/patchelf/Makefile:1.19
--- pkgsrc/devel/patchelf/Makefile:1.18 Mon Oct 14 18:38:20 2024
+++ pkgsrc/devel/patchelf/Makefile      Sun Jun 28 15:12:13 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2024/10/14 18:38:20 gdt Exp $
+# $NetBSD: Makefile,v 1.19 2026/06/28 15:12:13 adam Exp $
 
-DISTNAME=      patchelf-0.18.0
-PKGREVISION=   1
+DISTNAME=      patchelf-0.19.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=NixOS/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
@@ -12,9 +11,10 @@ HOMEPAGE=    https://github.com/NixOS/patch
 COMMENT=       Modify the dynamic linker and RPATH of ELF binaries
 LICENSE=       gnu-gpl-v3
 
-GNU_CONFIGURE= yes
-USE_LANGUAGES= c c++
 USE_CXX_FEATURES=      c++17
+USE_LANGUAGES=         c c++
+GNU_CONFIGURE=         yes
+
 # This package use std::optional.  std::optional is part of c++17, and
 # is not split out in mk/compiler/gcc.mk.  Thus, declaring c++17
 # results in a gcc7 requirement.  Work around this mk/ bug by

Index: pkgsrc/devel/patchelf/distinfo
diff -u pkgsrc/devel/patchelf/distinfo:1.15 pkgsrc/devel/patchelf/distinfo:1.16
--- pkgsrc/devel/patchelf/distinfo:1.15 Sun Apr 23 20:05:52 2023
+++ pkgsrc/devel/patchelf/distinfo      Sun Jun 28 15:12:13 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2023/04/23 20:05:52 fcambus Exp $
+$NetBSD: distinfo,v 1.16 2026/06/28 15:12:13 adam Exp $
 
-BLAKE2s (patchelf-0.18.0.tar.bz2) = e04080786ff1d4347457a3ddec791cd5e5aa47d4b084f5942372f6f1c3a5858a
-SHA512 (patchelf-0.18.0.tar.bz2) = bf26194ca3435b141dd330890fcc0c9d805d0ad6a537901dabe6707a13cd28e7e6217462f3ebb3cb4861302dd8632342ec988fc18246c35332a94f2b349d4f4f
-Size (patchelf-0.18.0.tar.bz2) = 423290 bytes
+BLAKE2s (patchelf-0.19.0.tar.bz2) = c89cc6ff4e68fe4b41c2eacdabd235af0c4e6826a81a073cc536afc9befc6e7e
+SHA512 (patchelf-0.19.0.tar.bz2) = 359674cb5104fe9aa74c68dcc5e31f3fbf384f548f64edd97fef65b90d428472154c1a5bd37c5b2ec3a9f68e29c054703dbde93def8330cff5bfebde9f045a16
+Size (patchelf-0.19.0.tar.bz2) = 440700 bytes



Home | Main Index | Thread Index | Old Index