From nobody Sat May 27 04:25:34 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QSpcb0cBpz4WRXd; Sat, 27 May 2023 04:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QSpcZ5YtQz4DYy; Sat, 27 May 2023 04:25:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685161534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J1FUAKhd0tsxpnETIMK6OzYYhuKsAyDzGr0Gd+0g7bM=; b=kJOEIvhm5QFnmGJjmWhFsHHYeXr4fKat+F7edJDyAbBixlabzEhTtQsvM7OrjXyMzhcR8N HjVWm/pTybnIVyoX4lPxH4zMT0AaKV2gGtBORE1l2fVAJ4LaCRrYBzgUAQKxxhL9LdsQ1g csVaM9z4tnL7IO99QCFQcdVBywV5kUKhYeykbaWwMgEPjdgud1YsZ1b/d1NzSFITYcCm+T FPpVgnKVEQjaE6gsvV6xzLOtlx+nlHbkiiqvCY3IMv5DDfnQXJeMf5BiG9EnuU1lJD0hZi XXpJx1QTXkO7qC+EKnHrRdCtBaTHtHVrJyB4We2rNRtTXsAUPlpd2/4Oo5Pasw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685161534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J1FUAKhd0tsxpnETIMK6OzYYhuKsAyDzGr0Gd+0g7bM=; b=E+nNShx6/OOD/UpUj5jWSd8/CXtSy9nGdB59ySnOBsvrFBTYJqEpON+MEiPEVBIK2mzUnE aYd/3DP0VKIiggXuTn3rN7r0fXEOmmytwNA0bA4vrT54WWiYgp69ci64QDHHDfor7yoU4G dxiQZe9yLq7WYIAjT/VeWgnLaTIBHy/gq6D9ZY84Uf1FTU3KpBkgViHL9KgJYbc6RZZmRb t3I8hLn7tAdsxMX4hzdQ/Y64iUE58f4hc/FC7DFFadRjsz+4F9oivNNv35aPwB6cBCgz9C e4eePxLuWidDSlEUzhgAFy/q8NVOrkXrdv8YL4jcelBuBAz2mm8s9RZn8eQi9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685161534; a=rsa-sha256; cv=none; b=hosHMO+3onZznxAtVBFe8FxkceJzQ18TlB66bQ5c/PRTXMoSTNuX6aHJlJPGsF38bxW7N9 lRndY+u7nI4DkV7j1kkQLvcquPyXgunPqr+/TNKvySlTl2/eV88T94w+YfWzTt1X+2uFum XDx7S5WTPqBItpBDOPZ2jbCTcBSLs+puT5KihujSMQ7pvamlrxFP0muWGcO2TUqVnKmlbF O8z6NBUE1CcvELT0+wLaJ+z7RNQZcT4js6p60KttP4xvenY1PoHh1ioXZCfPIlPIKmfWUj 6EEBEwMIMNCd2O8yB8xdrfuN50vUj6/t2Fp9BUguj/YdjEi0iZvubIi6K4RMZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QSpcZ4fLKzZND; Sat, 27 May 2023 04:25:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34R4PYDJ023760; Sat, 27 May 2023 04:25:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34R4PYRZ023759; Sat, 27 May 2023 04:25:34 GMT (envelope-from git) Date: Sat, 27 May 2023 04:25:34 GMT Message-Id: <202305270425.34R4PYRZ023759@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 27eea3661283 - main - archivers/upx: Update to 4.0.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 27eea366128326c1b3073a83516c417832621fe6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=27eea366128326c1b3073a83516c417832621fe6 commit 27eea366128326c1b3073a83516c417832621fe6 Author: Po-Chuan Hsieh AuthorDate: 2023-05-27 04:07:10 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-05-27 04:07:10 +0000 archivers/upx: Update to 4.0.2 - Update WWW - Update LICENSE_FILE - Add DOCS option Changes: https://github.com/upx/upx/releases --- archivers/upx/Makefile | 28 +++++++--------------- archivers/upx/distinfo | 6 ++--- archivers/upx/files/patch-src-bele.h | 22 +++++++++++++++++ .../{patch-src_miniacc.h => patch-src-miniacc.h} | 8 +++---- archivers/upx/files/patch-src-packer.h | 11 +++++++++ archivers/upx/files/patch-src_Makefile | 24 ------------------- ...c_lzma-sdk_C_7zip_Compress_LZMA_LZMAEncoder.cpp | 11 --------- archivers/upx/files/patch-src_p__mach.cpp | 11 --------- archivers/upx/files/patch-src_p__wcle.cpp | 10 -------- archivers/upx/files/patch-src_packer.h | 11 --------- archivers/upx/pkg-plist | 9 +++++++ 11 files changed, 57 insertions(+), 94 deletions(-) diff --git a/archivers/upx/Makefile b/archivers/upx/Makefile index edb0441335ad..09d4e298faf8 100644 --- a/archivers/upx/Makefile +++ b/archivers/upx/Makefile @@ -1,37 +1,25 @@ PORTNAME= upx -PORTVERSION= 3.96 +PORTVERSION= 4.0.2 MASTER_SITES= https://github.com/upx/upx/releases/download/v${PORTVERSION}/ CATEGORIES= archivers DISTVERSIONSUFFIX= -src MAINTAINER= sunpoet@FreeBSD.org COMMENT= Ultimate Packer for eXecutables -WWW= https://upx.github.io/ +WWW= https://upx.github.io/ \ + https://github.com/upx/upx LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libucl.so:archivers/ucl -USES= cpe gmake perl5 tar:xz -USE_PERL5= build +USES= cmake compiler:c++17-lang cpe tar:xz -MAKE_ENV= UPX_UCLDIR=${LOCALBASE} \ - target=freebsd - -PLIST_FILES= bin/upx \ - man/man1/upx.1.gz +CMAKE_ON= UPX_CONFIG_DISABLE_GITREV UPX_CONFIG_DISABLE_SANITIZE UPX_CONFIG_DISABLE_SELF_PACK_TEST UPX_CONFIG_DISABLE_WERROR CPE_VENDOR= upx_project -.include - -.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) -CFLAGS+= -Wno-error=unused-but-set-variable -.endif - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx - ${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${PREFIX}/man/man1 +OPTIONS_DEFINE= DOCS -.include +.include diff --git a/archivers/upx/distinfo b/archivers/upx/distinfo index 874481cd115e..ce171dad8ab4 100644 --- a/archivers/upx/distinfo +++ b/archivers/upx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1643382492 -SHA256 (upx-3.96-src.tar.xz) = 47774df5c958f2868ef550fb258b97c73272cb1f44fe776b798e393465993714 -SIZE (upx-3.96-src.tar.xz) = 792524 +TIMESTAMP = 1684104302 +SHA256 (upx-4.0.2-src.tar.xz) = 1221e725b1a89e06739df27fae394d6bc88aedbe12f137c630ec772522cbc76f +SIZE (upx-4.0.2-src.tar.xz) = 1191960 diff --git a/archivers/upx/files/patch-src-bele.h b/archivers/upx/files/patch-src-bele.h new file mode 100644 index 000000000000..782669ce00bb --- /dev/null +++ b/archivers/upx/files/patch-src-bele.h @@ -0,0 +1,22 @@ +--- src/bele.h.orig 2023-01-30 10:18:06 UTC ++++ src/bele.h +@@ -84,19 +84,6 @@ static forceinline unsigned bswap16(unsigned v) { retu + static forceinline unsigned bswap32(unsigned v) { return (unsigned) _byteswap_ulong(v); } + static forceinline upx_uint64_t bswap64(upx_uint64_t v) { return _byteswap_uint64(v); } + +-#else +- +-static forceinline constexpr unsigned bswap16(unsigned v) { +- // return __builtin_bswap16((upx_uint16_t) (v & 0xffff)); +- // return (unsigned) __builtin_bswap64((upx_uint64_t) v << 48); +- return __builtin_bswap32(v << 16); +-} +-static forceinline constexpr unsigned bswap32(unsigned v) { +- // return (unsigned) __builtin_bswap64((upx_uint64_t) v << 32); +- return __builtin_bswap32(v); +-} +-static forceinline constexpr upx_uint64_t bswap64(upx_uint64_t v) { return __builtin_bswap64(v); } +- + #endif + + static forceinline constexpr unsigned no_bswap16(unsigned v) { diff --git a/archivers/upx/files/patch-src_miniacc.h b/archivers/upx/files/patch-src-miniacc.h similarity index 78% rename from archivers/upx/files/patch-src_miniacc.h rename to archivers/upx/files/patch-src-miniacc.h index 14d017d04880..7fc063df0ac2 100644 --- a/archivers/upx/files/patch-src_miniacc.h +++ b/archivers/upx/files/patch-src-miniacc.h @@ -1,8 +1,8 @@ ---- src/miniacc.h.orig 2020-01-22 21:29:58 UTC +--- src/miniacc.h.orig 2023-01-30 10:18:06 UTC +++ src/miniacc.h -@@ -2547,11 +2547,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T == - #elif !(ACC_ABI_BIG_ENDIAN) && !(ACC_ABI_LITTLE_ENDIAN) - #if (ACC_ARCH_ALPHA) && (ACC_ARCH_CRAY_MPP) +@@ -2563,11 +2563,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T == + # define ACC_ABI_LITTLE_ENDIAN 1 + #elif (ACC_ARCH_ALPHA) && (ACC_ARCH_CRAY_MPP) # define ACC_ABI_BIG_ENDIAN 1 -#elif (ACC_ARCH_IA64) && (ACC_OS_POSIX_LINUX || ACC_OS_WIN64) +#elif (ACC_ARCH_IA64) && (ACC_OS_POSIX_LINUX || ACC_OS_POSIX_FREEBSD || ACC_OS_WIN64) diff --git a/archivers/upx/files/patch-src-packer.h b/archivers/upx/files/patch-src-packer.h new file mode 100644 index 000000000000..e3b6b2b51240 --- /dev/null +++ b/archivers/upx/files/patch-src-packer.h @@ -0,0 +1,11 @@ +--- src/packer.h.orig 2023-01-30 10:18:06 UTC ++++ src/packer.h +@@ -225,7 +225,7 @@ class Packer { (protected) + void addLoader(C, C, C, C, C, C, C, C, C); + void addLoader(C, C, C, C, C, C, C, C, C, C); + #undef C +-#if (ACC_CC_CLANG || ACC_CC_GNUC) ++#if 0 && (ACC_CC_CLANG || ACC_CC_GNUC) + void addLoaderVA(const char *s, ...) __attribute__((__sentinel__)); + #else + void addLoaderVA(const char *s, ...); diff --git a/archivers/upx/files/patch-src_Makefile b/archivers/upx/files/patch-src_Makefile deleted file mode 100644 index 0e8e6d2398ea..000000000000 --- a/archivers/upx/files/patch-src_Makefile +++ /dev/null @@ -1,24 +0,0 @@ ---- src/Makefile.orig 2017-05-12 11:01:20 UTC -+++ src/Makefile -@@ -48,7 +48,7 @@ endif - # we need UCL and zlib - you can set envvar UPX_UCLDIR - ifneq ($(wildcard $(UPX_UCLDIR)/include/ucl/ucl.h),) - INCLUDES += -I$(UPX_UCLDIR)/include --LIBS += $(addprefix -L,$(dir $(wildcard $(UPX_UCLDIR)/libucl$(libext) $(UPX_UCLDIR)/src/.libs/libucl$(libext)))) -+LIBS += -L$(UPX_UCLDIR)/lib - endif - LIBS += -lucl -lz - # LZMA from https://github.com/upx/upx-lzma-sdk -@@ -62,9 +62,9 @@ CXXFLAGS_OPTIMIZE ?= -O2 - endif - CXXFLAGS += $(CXXFLAGS_OPTIMIZE) - # protect against security threats caused by misguided C++ compiler "optimizations" --ifeq ($(findstring clang,$(CXX)),) --CXXFLAGS += -fno-delete-null-pointer-checks --endif -+# ifeq ($(findstring clang,$(CXX)),) -+# CXXFLAGS += -fno-delete-null-pointer-checks -+# endif - CXXFLAGS += -fno-strict-aliasing -fwrapv - CXXFLAGS += -funsigned-char - CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wshadow -Wvla -Wwrite-strings diff --git a/archivers/upx/files/patch-src_lzma-sdk_C_7zip_Compress_LZMA_LZMAEncoder.cpp b/archivers/upx/files/patch-src_lzma-sdk_C_7zip_Compress_LZMA_LZMAEncoder.cpp deleted file mode 100644 index 538ffa48c2c2..000000000000 --- a/archivers/upx/files/patch-src_lzma-sdk_C_7zip_Compress_LZMA_LZMAEncoder.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.cpp.orig 2016-11-20 12:55:06 UTC -+++ src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.cpp -@@ -968,7 +968,7 @@ HRESULT CEncoder::GetOptimum(UInt32 position, UInt32 & - startLen = lenTest + 1; - - // if (_maxMode) -- { -+ { - UInt32 lenTest2 = lenTest + 1; - UInt32 limit = MyMin(numAvailableBytesFull, lenTest2 + _numFastBytes); - for (; lenTest2 < limit && diff --git a/archivers/upx/files/patch-src_p__mach.cpp b/archivers/upx/files/patch-src_p__mach.cpp deleted file mode 100644 index 126767d4a562..000000000000 --- a/archivers/upx/files/patch-src_p__mach.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/p_mach.cpp.orig 2020-01-22 21:29:58 UTC -+++ src/p_mach.cpp -@@ -467,7 +467,7 @@ PackMachBase::compare_segment_command(void const *c - if (a->vmsize) return -1; // 'a' is first - if (b->vmsize) return 1; // 'a' is last - // What could remain? -- return 0; -+ return 0; - } - - #undef PAGE_MASK diff --git a/archivers/upx/files/patch-src_p__wcle.cpp b/archivers/upx/files/patch-src_p__wcle.cpp deleted file mode 100644 index 509eda2f9b10..000000000000 --- a/archivers/upx/files/patch-src_p__wcle.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- src/p_wcle.cpp.orig 2018-08-26 02:58:09 UTC -+++ src/p_wcle.cpp -@@ -763,6 +763,7 @@ void PackWcle::decodeEntryTable() - } - - //if (Opt_debug) printf("\n%d entries decoded.\n",n); -+ UNUSED(n); - - soentries = ptr_diff(p, ientries) + 1; - oentries = ientries; diff --git a/archivers/upx/files/patch-src_packer.h b/archivers/upx/files/patch-src_packer.h deleted file mode 100644 index d99e08bd955b..000000000000 --- a/archivers/upx/files/patch-src_packer.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/packer.h.orig 2013-09-30 15:51:00 UTC -+++ src/packer.h -@@ -238,7 +238,7 @@ protected: - void addLoader(C,C,C,C,C,C,C,C); void addLoader(C,C,C,C,C,C,C,C,C); - void addLoader(C,C,C,C,C,C,C,C,C,C); - #undef C --#if 1 && (ACC_CC_CLANG || (ACC_CC_GNUC >= 0x040100)) -+#if 0 && (ACC_CC_CLANG || (ACC_CC_GNUC >= 0x040100)) - void __acc_cdecl_va addLoaderVA(const char *s, ...) __attribute__((__sentinel__)); - #else - void __acc_cdecl_va addLoaderVA(const char *s, ...); diff --git a/archivers/upx/pkg-plist b/archivers/upx/pkg-plist new file mode 100644 index 000000000000..d8edba164677 --- /dev/null +++ b/archivers/upx/pkg-plist @@ -0,0 +1,9 @@ +bin/upx +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/THANKS +%%PORTDOCS%%%%DOCSDIR%%/upx-doc.html +%%PORTDOCS%%%%DOCSDIR%%/upx-doc.txt +share/man/man1/upx.1.gz