From nobody Thu Apr 18 13:26:39 2024 X-Original-To: dev-commits-ports-main@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 4VKz8016Lvz5GsJW; Thu, 18 Apr 2024 13:26:40 +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 4VKz8008BHz4Jrx; Thu, 18 Apr 2024 13:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713446800; 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=W/sz1vQkP14AKeqKyaJhbCERAkyz9VPsNuLgWAHNY8M=; b=IA8ppk92f0keuDjpdL02fMw/C0DvVUhgbwWUj8h6mrPddfeWXQNSviX6pRUJ5fIZYPos/9 NAwbE++PMBP2+Y9ZaYqVU39/o0l1wxEyfuLVzkOGcZkblp7obs1VS4iO/p9xK63aWKsgNV isGVlxZ0kEd93eNa9v4uUzH+rz5Ht/YYZjelfkJ/3KiX6DRO7v6FKoRk+bwVCJlz4/1a0D WcE8MwXiwpla3XIKLFRqsFVOdWPy4SW9dwUY4yQmadyIqc/uIUFcu9lawGULdxZMB7tW7/ g3y07MHl4mIxQc/YO5ufTpxvXDfRYL1CiCYW1yPl3gONeT3g6IB+mRu2LWMOAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713446800; a=rsa-sha256; cv=none; b=tRJL+gSmHmUDD1jWLSaDyx7qjVE9JCEQJfFATg1sLO8RelpgVEwwP4iUnxRqYfez68i0Fr v0OqlLoBFJ83sDHmjsUrcnDy5TtkO6sQARb1p6BSve9f3nFYdHvL7Y4kQGbwelycqQPMLX GmJr9e/XVUghSMj4IgT+7/o5zZuj+2f/fXzeQiYRbI6hngrOryLSxcUHvf+g6MDT5xPzgq Yu7mcyDt61Uv+6Y7E3odrsHWnLc5JEZXO6kHYMlW3DKzUnJ1kIxBPoNEWpYOBjgDNaPaTT mQ6xR/ORrYhd24m4cXZC2FzMBpdtNskYUQbDCK/C7zRyl61IT0lumxBKcMQDCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713446800; 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=W/sz1vQkP14AKeqKyaJhbCERAkyz9VPsNuLgWAHNY8M=; b=T8hdehu0R9Zb3QniUziZc1HOD+8e4Q1xxze8hrUfBGeGjDfuZtX+vZ3jTiwo31/T/0Hys5 Lp7KHwasJjeclQAEpEBwiOwUD8euKlB0CYPYNQOQIGRn8ITJ4YgPHGNCfMjruW13pMdwI0 96/SPKiQcdgbYk6T+0jWHg6JW5sr+dvVpLMGrUFhESF85JGW/+D2UpIqLFi9BYqo23tfDp Z8t3jt53wLqPuDMfUKysosDYOqB455lMpnuuO4camDezfHV/Q6s4Ry0DgwpVsPRUGgx+XN AjbjZ+pn6TpRzU+0tk82iwvhVDJa623nPpFPWFv9QAle7avub14ZAMylvflqSQ== 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 4VKz7z6sGXz1BMG; Thu, 18 Apr 2024 13:26:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43IDQdd5024659; Thu, 18 Apr 2024 13:26:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43IDQdPq024656; Thu, 18 Apr 2024 13:26:39 GMT (envelope-from git) Date: Thu, 18 Apr 2024 13:26:39 GMT Message-Id: <202404181326.43IDQdPq024656@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Antoine Brodin Subject: git: a6a428bcd414 - main - emulators/*unicorn: update to 2.0.1p1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: antoine X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a6a428bcd414da741ed7271224816e7a23c95f17 Auto-Submitted: auto-generated The branch main has been updated by antoine: URL: https://cgit.FreeBSD.org/ports/commit/?id=a6a428bcd414da741ed7271224816e7a23c95f17 commit a6a428bcd414da741ed7271224816e7a23c95f17 Author: Antoine Brodin AuthorDate: 2024-04-18 13:25:56 +0000 Commit: Antoine Brodin CommitDate: 2024-04-18 13:25:56 +0000 emulators/*unicorn: update to 2.0.1p1 --- emulators/py-unicorn/Makefile | 6 ++++-- emulators/py-unicorn/distinfo | 6 +++--- emulators/py-unicorn/files/patch-setup.py | 6 +++--- emulators/unicorn/Makefile | 25 ++++------------------ emulators/unicorn/distinfo | 6 +++--- emulators/unicorn/files/patch-Makefile | 23 -------------------- emulators/unicorn/files/patch-qemu_configure | 18 ---------------- .../unicorn/files/patch-qemu_include_qemu-common.h | 18 ---------------- emulators/unicorn/files/patch-tests_unit_Makefile | 12 ----------- emulators/unicorn/pkg-plist | 6 +++++- 10 files changed, 22 insertions(+), 104 deletions(-) diff --git a/emulators/py-unicorn/Makefile b/emulators/py-unicorn/Makefile index 678d21b56917..3f79455c04c6 100644 --- a/emulators/py-unicorn/Makefile +++ b/emulators/py-unicorn/Makefile @@ -1,5 +1,5 @@ PORTNAME= unicorn -DISTVERSION= 1.0.2 +PORTVERSION= 2.0.1p1 CATEGORIES= emulators python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -9,10 +9,12 @@ WWW= https://www.unicorn-engine.org/ LICENSE= BSD3CLAUSE -LIB_DEPENDS= libunicorn.so:emulators/unicorn +BUILD_DEPENDS= ${LOCALBASE}/lib/libunicorn.so:emulators/unicorn +RUN_DEPENDS= ${LOCALBASE}/lib/libunicorn.so:emulators/unicorn USE_GITHUB= yes GH_ACCOUNT= unicorn-engine +GH_TAGNAME= 2.0.1.post1 USES= python USE_PYTHON= distutils autoplist diff --git a/emulators/py-unicorn/distinfo b/emulators/py-unicorn/distinfo index fe34caf0954c..b9ef5e0ccdd5 100644 --- a/emulators/py-unicorn/distinfo +++ b/emulators/py-unicorn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1603347498 -SHA256 (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 6400e16f9211486fa5353b1870e6a82f8aa342e429718d1cbca08d609aaadc52 -SIZE (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 3735111 +TIMESTAMP = 1712441135 +SHA256 (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 6b276c857c69ee5ec3e292c3401c8c972bae292e0e4cb306bb9e5466c0f14737 +SIZE (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 4071380 diff --git a/emulators/py-unicorn/files/patch-setup.py b/emulators/py-unicorn/files/patch-setup.py index 6dc06749b154..5c6b2f90e3b6 100644 --- a/emulators/py-unicorn/files/patch-setup.py +++ b/emulators/py-unicorn/files/patch-setup.py @@ -1,12 +1,12 @@ # Do not bundle libunicorn.so ---- setup.py.orig 2020-09-21 18:11:43 UTC +--- setup.py.orig 2022-11-16 14:16:49 UTC +++ setup.py -@@ -281,11 +281,4 @@ setup( +@@ -246,11 +246,4 @@ setup( 'Programming Language :: Python :: 3', ], requires=['ctypes'], -- cmdclass={'build': custom_build, 'develop': custom_develop, 'sdist': custom_sdist, 'bdist_egg': custom_bdist_egg}, +- cmdclass=cmdclass, - zip_safe=False, - include_package_data=True, - is_pure=False, diff --git a/emulators/unicorn/Makefile b/emulators/unicorn/Makefile index bd6c509b2d98..1ea8b9c56756 100644 --- a/emulators/unicorn/Makefile +++ b/emulators/unicorn/Makefile @@ -1,5 +1,5 @@ PORTNAME= unicorn -DISTVERSION= 1.0.2 +PORTVERSION= 2.0.1p1 CATEGORIES= emulators MAINTAINER= antoine@FreeBSD.org @@ -9,29 +9,12 @@ WWW= https://www.unicorn-engine.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_armv6= fails to compile: 'tcg-target.h' file not found -BROKEN_armv7= fails to compile: 'tcg-target.h' file not found -BROKEN_mips= fails to compile: 'ICACHE' undeclared (first use in this function) -BROKEN_mips64= fails to compile: 'ICACHE' undeclared (first use in this function) -BROKEN_riscv64= fails to compile: 'tcg-target.h' file not found - -TEST_DEPENDS= cmocka>0:sysutils/cmocka - USE_GITHUB= yes GH_ACCOUNT= unicorn-engine +GH_TAGNAME= 2.0.1.post1 -USES= compiler:c11 gmake python:build +USES= cmake:testing pkgconfig USE_LDCONFIG= yes -BINARY_ALIAS= python=${PYTHON_CMD} -MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \ - SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \ - V=1 -TEST_TARGET= test -TEST_WRKSRC= ${WRKSRC}/tests/unit -_MAKE_JOBS= # MAKE_JOBS_NUMBER is passed via MAKE_ENV -# Optimization breaks runtime, -# see https://github.com/unicorn-engine/unicorn/issues/356 -# and https://github.com/unicorn-engine/unicorn/issues/689 -CFLAGS:= ${CFLAGS:C/-O[1-9]/-O0/g} +CMAKE_TESTING_ON= UNICORN_BUILD_TESTS .include diff --git a/emulators/unicorn/distinfo b/emulators/unicorn/distinfo index fe34caf0954c..b9ef5e0ccdd5 100644 --- a/emulators/unicorn/distinfo +++ b/emulators/unicorn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1603347498 -SHA256 (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 6400e16f9211486fa5353b1870e6a82f8aa342e429718d1cbca08d609aaadc52 -SIZE (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 3735111 +TIMESTAMP = 1712441135 +SHA256 (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 6b276c857c69ee5ec3e292c3401c8c972bae292e0e4cb306bb9e5466c0f14737 +SIZE (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 4071380 diff --git a/emulators/unicorn/files/patch-Makefile b/emulators/unicorn/files/patch-Makefile deleted file mode 100644 index cf77dbbc37ca..000000000000 --- a/emulators/unicorn/files/patch-Makefile +++ /dev/null @@ -1,23 +0,0 @@ ---- Makefile.orig 2020-05-29 03:56:24 UTC -+++ Makefile -@@ -140,9 +140,9 @@ V ?= 0 - MACOS_UNIVERSAL ?= no - - ifeq ($(UNICORN_DEBUG),yes) --CFLAGS += -g -+#CFLAGS += -g - else --CFLAGS += -O3 -+#CFLAGS += -O3 - UNICORN_QEMU_FLAGS += --disable-debug-info - endif - -@@ -258,7 +258,7 @@ LIBDIRARCH ?= lib - # Or better, pass 'LIBDIRARCH=lib64' to 'make install/uninstall' via 'make.sh'. - #LIBDIRARCH ?= lib64 - --LIBDIR ?= $(PREFIX)/$(LIBDIRARCH) -+LIBDIR = $(PREFIX)/$(LIBDIRARCH) - INCDIR ?= $(PREFIX)/include - BINDIR ?= $(PREFIX)/bin - diff --git a/emulators/unicorn/files/patch-qemu_configure b/emulators/unicorn/files/patch-qemu_configure deleted file mode 100644 index a6c327bc5a8c..000000000000 --- a/emulators/unicorn/files/patch-qemu_configure +++ /dev/null @@ -1,18 +0,0 @@ ---- qemu/configure.orig 2020-05-29 03:56:24 UTC -+++ qemu/configure -@@ -225,11 +225,11 @@ QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QE - QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS" - QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include" - if test "$debug_info" = "yes"; then -- CFLAGS="-g $CFLAGS" -- LDFLAGS="-g $LDFLAGS" -+# CFLAGS="-g $CFLAGS" -+# LDFLAGS="-g $LDFLAGS" - else -- CFLAGS="-O3 $CFLAGS" -- LDFLAGS="-O3 $LDFLAGS" -+# CFLAGS="-O3 $CFLAGS" -+# LDFLAGS="-O3 $LDFLAGS" - fi - - # make source path absolute diff --git a/emulators/unicorn/files/patch-qemu_include_qemu-common.h b/emulators/unicorn/files/patch-qemu_include_qemu-common.h deleted file mode 100644 index dcba49364942..000000000000 --- a/emulators/unicorn/files/patch-qemu_include_qemu-common.h +++ /dev/null @@ -1,18 +0,0 @@ ---- qemu/include/qemu-common.h.orig 2020-10-24 17:16:21 UTC -+++ qemu/include/qemu-common.h -@@ -205,7 +205,6 @@ static inline uint64_t muldiv64(uint64_t a, uint32_t b - - /* vector definitions */ - #ifdef __ALTIVEC__ --#include - /* The altivec.h header says we're allowed to undef these for - * C++ compatibility. Here we don't care about C++, but we - * undef them anyway to avoid namespace pollution. -@@ -213,6 +212,7 @@ static inline uint64_t muldiv64(uint64_t a, uint32_t b - #undef vector - #undef pixel - #undef bool -+#include - #define VECTYPE __vector unsigned char - #define SPLAT(p) vec_splat(vec_ld(0, p), 0) - #define ALL_EQ(v1, v2) vec_all_eq(v1, v2) diff --git a/emulators/unicorn/files/patch-tests_unit_Makefile b/emulators/unicorn/files/patch-tests_unit_Makefile deleted file mode 100644 index b2df81e57013..000000000000 --- a/emulators/unicorn/files/patch-tests_unit_Makefile +++ /dev/null @@ -1,12 +0,0 @@ ---- tests/unit/Makefile.orig 2020-02-15 00:22:32 UTC -+++ tests/unit/Makefile -@@ -1,8 +1,7 @@ - CFLAGS += -Wall -Werror -Wno-unused-function -g - CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 - CFLAGS += -L ../../ -I ../../include --CFLAGS += -L ../../cmocka/src -I ../../cmocka/include --CFLAGS += -L /usr/local/lib -I /usr/local/include -+CFLAGS += -L $(LOCALBASE)/lib -I $(LOCALBASE)/include - ASFLAGS += --32 - OBJCOPY = objcopy - diff --git a/emulators/unicorn/pkg-plist b/emulators/unicorn/pkg-plist index 9137b50ad671..a45cb8b088c7 100644 --- a/emulators/unicorn/pkg-plist +++ b/emulators/unicorn/pkg-plist @@ -3,10 +3,14 @@ include/unicorn/arm64.h include/unicorn/m68k.h include/unicorn/mips.h include/unicorn/platform.h +include/unicorn/ppc.h +include/unicorn/riscv.h +include/unicorn/s390x.h include/unicorn/sparc.h +include/unicorn/tricore.h include/unicorn/unicorn.h include/unicorn/x86.h lib/libunicorn.a lib/libunicorn.so -lib/libunicorn.so.1 +lib/libunicorn.so.2 libdata/pkgconfig/unicorn.pc