diff --git a/devel/p4/Makefile b/devel/p4/Makefile index 60de77148a3a..8fdeb92b44ff 100644 --- a/devel/p4/Makefile +++ b/devel/p4/Makefile @@ -1,44 +1,47 @@ PORTNAME= p4 PORTVERSION= ${YEAR}.${MAJOR}.${MINOR} CATEGORIES= devel # Perforce changes their distfiles when they patch, which changes the # zip file's checksum. This does not play well with FreeBSD's conventions. # maintainer is backup hosting MASTER_SITES= https://ftp.perforce.com/perforce/${P4VERSION}/bin.tools/p4source${EXTRACT_SUFX}?dummy=/ \ - https://hesiod.org/distfiles/perforce-${MINOR}/p4source${EXTRACT_SUFX}?dummy=/ + https://hesiod.org/distfiles/perforce/ DISTNAME= p4source-${MINOR} MAINTAINER= antonfb@hesiod.org COMMENT= Perforce command line client WWW= https://www.perforce.com/products/helix-core LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${JAM}:devel/jam # p4 links libssl and libcrypto statically, so specify :build USES= ssl:build tar:tgz WRKSRC= ${WRKDIR}/p4source-${PORTVERSION} PLIST_FILES= bin/p4 .include .include "Makefile.inc" do-build: cd ${WRKSRC} && ${SETENV} C++="${CXX}" C++FLAGS="${CXXFLAGS}" \ CCFLAGS="${CFLAGS}" \ HDRS="${OPENSSLINC}" \ LINKFLAGS="${LDFLAGS}" \ OSVER=${OSVER} \ SSL="yes" \ + SSLVER="1.1.1" \ SSLPREFIX=${OPENSSLLIB} \ - ${JAM} -dx -sUSE_EXTENSIONS=0 -j${MAKE_JOBS_NUMBER} p4 + USE_EXTENSIONS=0 \ + USE_OPTIMIZED_ZLIB=0 \ + ${JAM} -dx -j${MAKE_JOBS_NUMBER} p4 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/p4-bin/p4 ${STAGEDIR}${PREFIX}/bin .include diff --git a/devel/p4/Makefile.inc b/devel/p4/Makefile.inc index 69f4dffd192b..5ff5842ac290 100644 --- a/devel/p4/Makefile.inc +++ b/devel/p4/Makefile.inc @@ -1,7 +1,7 @@ P4VERSION?= r${PORTVERSION:S/^20//:C/\.[0-9]+$//} YEAR= 2024 MAJOR= 1 -MINOR= 2596294 +MINOR= 2655224 JAM?= ${LOCALBASE}/bin/jam OSVER?= ${OSREL:S/.//} diff --git a/devel/p4/distinfo b/devel/p4/distinfo index 6b2a5913c060..840dc831073b 100644 --- a/devel/p4/distinfo +++ b/devel/p4/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1715886503 -SHA256 (p4source-2596294.tgz) = ebe0ce24f795ccfe31d14b0df4c959440caeb1aa414c8097d01bb2bd5050042f -SIZE (p4source-2596294.tgz) = 6789770 +TIMESTAMP = 1727095903 +SHA256 (p4source-2655224.tgz) = f9fb71a0de4b9fdb8297c627a97ded99bc944d958e36c1b4887cfb22921ba1d4 +SIZE (p4source-2655224.tgz) = 6794469 diff --git a/devel/p4/files/patch-Jamrules b/devel/p4/files/patch-Jamrules index d8d80e736493..466a1d46038f 100644 --- a/devel/p4/files/patch-Jamrules +++ b/devel/p4/files/patch-Jamrules @@ -1,28 +1,28 @@ ---- Jamrules.orig 2022-12-15 10:39:01 UTC +--- Jamrules.orig 2024-05-24 15:48:33 UTC +++ Jamrules -@@ -673,12 +673,11 @@ +@@ -690,12 +690,11 @@ # P4BIN is set to ../p4-bin (relative to P4) SubDir AllP4 p4 ; # where we are - SubDir AllP4 p4-bin ; # where we want to be + SubDir AllP4 p4 p4-bin ; # where we want to be SubDir P4BIN ; # name is that SubDir AllP4 p4 ; # back to where we started EXEC_SUB_TOKENS = - $(OS:L)$(OSVER:EL)$(OSPLAT:EL) $(BUILD) $(TYPE:L) ; -@@ -1245,11 +1244,6 @@ +@@ -1301,11 +1300,6 @@ OPTIM += -Wno-parentheses -Wno-switch -fwrapv ; _mflags = ; - switch $(OSPLAT:U) - { - case X86 : _mflags = -m32 ; - case X86_64 : _mflags = -m64 ; - } $(GENFLAGS) += $(_mflags) -pipe ; LINKFLAGS += $(_mflags) ; diff --git a/devel/p4/files/patch-sys_fileio.cc b/devel/p4/files/patch-sys_fileio.cc new file mode 100644 index 000000000000..2b074034ecc5 --- /dev/null +++ b/devel/p4/files/patch-sys_fileio.cc @@ -0,0 +1,23 @@ +--- sys/fileio.cc.orig 2024-07-18 14:04:43 UTC ++++ sys/fileio.cc +@@ -595,7 +595,7 @@ FileIO::StatModTimeHP(DateTimeHighPrecision *modTime) + int nanosecs = 0; + + // nanosecond support for stat is a bit of a portability mess +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_FREEBSD) + #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) + #if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) \ + || (__GLIBC_PREREQ(2, 12) \ +@@ -862,6 +862,11 @@ void + FileIO::GetExtendedAttribute( StrPtr *name, StrBuf *val, Error *e ) + { + val->Clear(); ++} ++ ++void ++FileIO::SetExtendedAttributes( StrDict *vals, Error *e ) ++{ + } + + void diff --git a/devel/p4/files/patch-sys_stdhdrs.h b/devel/p4/files/patch-sys_stdhdrs.h new file mode 100644 index 000000000000..31b6f9d87ef9 --- /dev/null +++ b/devel/p4/files/patch-sys_stdhdrs.h @@ -0,0 +1,11 @@ +--- sys/stdhdrs.h.orig 2024-09-23 13:23:02 UTC ++++ sys/stdhdrs.h +@@ -527,7 +527,7 @@ extern "C" int socketpair(int, int, int, int*); + # endif + + # if defined(NEED_TIME_HP) +-# if defined( OS_LINUX ) ++# if defined( OS_LINUX ) || defined( OS_FREEBSD ) + # define HAVE_CLOCK_GETTIME + #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) + # if ( __GLIBC_PREREQ( 2, 10 ) && \