git: a94e5a3c28af - 2025Q4 - archivers/pbzip2: Fix fallout on FreeBSD 15+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Oct 2025 20:33:52 UTC
The branch 2025Q4 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a94e5a3c28afd829899f144aea07633933750dd1
commit a94e5a3c28afd829899f144aea07633933750dd1
Author: Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2025-10-18 20:28:22 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-10-18 20:33:29 +0000
archivers/pbzip2: Fix fallout on FreeBSD 15+
c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_STACKSIZE_CUSTOMIZATION -pthread -D_POSIX_PTHREAD_SEMANTICS pbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpppbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpp -o pbzip2 -lbz2 -lpthread
c++: error: no such file or directory: 'ErrorContext.cpppbzip2.cpp'
While here:
- Replace PORTVERSION with DISTVERSION.
- Switch MASTER_SITES from http to https.
- Update WWW to https://launchpad.net/pbzip2/.
PR: 290004
Approved by: farrokhi (maintainer)
MFH: 2025Q4
-
(cherry picked from commit 34c19efe9dc642d02f1dfa1c082c47c02515f8ab)
---
archivers/pbzip2/Makefile | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/archivers/pbzip2/Makefile b/archivers/pbzip2/Makefile
index bf44f90e51df..637a7bd467fd 100644
--- a/archivers/pbzip2/Makefile
+++ b/archivers/pbzip2/Makefile
@@ -1,11 +1,11 @@
PORTNAME= pbzip2
-PORTVERSION= 1.1.13
+DISTVERSION= 1.1.13
CATEGORIES= archivers
-MASTER_SITES= http://launchpad.net/${PORTNAME}/1.1/${PORTVERSION}/+download/
+MASTER_SITES= https://launchpad.net/${PORTNAME}/1.1/${DISTVERSION}/+download/
MAINTAINER= farrokhi@FreeBSD.org
COMMENT= Parallel BZIP2
-WWW= http://compression.ca/pbzip2/
+WWW= https://launchpad.net/pbzip2/
LICENSE= BSD4CLAUSE
@@ -14,6 +14,12 @@ MAKE_ARGS= CFLAGS="${CXXFLAGS}" CC="${CXX}"
PLIST_FILES= bin/pbzip2 bin/pbunzip2 \
share/man/man1/pbzip2.1.gz share/man/man1/pbunzip2.1.gz
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500000
+USES+= gmake
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,PRI[iu]MAX, & ,g' ${WRKSRC}/pbzip2.cpp \
${WRKSRC}/BZ2StreamScanner.cpp