From nobody Sun Feb 13 18:00:36 2022 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 D811F1944429; Sun, 13 Feb 2022 18:00:36 +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 4JxZs05hS5z4ccH; Sun, 13 Feb 2022 18:00:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644775236; 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=Ao487hFRe59tzfvcw8cgdVcJiMpFitoxxzBNREqXGHc=; b=XhtK3i0VG4fsVNeqkhNx+cS4o5AWoSI/pcu6rwInOc0H4HKidf1j4YtRPPU9D/10EIgaG2 9W+X0Q5Zxt8u4KcDVxmNyHokftcAVMKPcUmEMuvAuh7H4zgxsU0cZmsQ/I2+7xtyRjeeRO rNaS9eScfaCGM8CbcWqogAW9HyspVIPLZP23lG24cFhlSJ40+k0X1zJqaotBYfUn9IFUHJ jw7madZ0XMPlsGEEKTZR0bbGTu3pfh1IVYgGjK4Xz3GEdh+ltwyX84MVHFIbA3pdcOctj9 P3SV/jWhq9yj7B/Wb/xNqs7lii/8wxFL0KCN0WU/x+g8MYgvXx8Ag0eeVRGcXw== 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 A40551F25F; Sun, 13 Feb 2022 18:00:36 +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 21DI0aO0070340; Sun, 13 Feb 2022 18:00:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21DI0anY070339; Sun, 13 Feb 2022 18:00:36 GMT (envelope-from git) Date: Sun, 13 Feb 2022 18:00:36 GMT Message-Id: <202202131800.21DI0anY070339@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Steve Wills Subject: git: 6b4cb31396c5 - main - devel/cvise: create port 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: swills X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b4cb31396c5b2bba063a409296e015d64b13b5e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644775236; 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=Ao487hFRe59tzfvcw8cgdVcJiMpFitoxxzBNREqXGHc=; b=w5AES0AjhPi4cJJU95ozYv7ljr52ewNnV+IxvFyiXqf68gLe63sCPWPru2idykfqFW7fDT iOe7SaWrDCcvJ4kELLMiHWwUq3Tdr+pjCYaFQyBVgLaUXOmU/RkTh5ydGfyOxlFvcuHp8D gQ0z6YRhp9d20gkUfkGo5NuxXwjVv4GRX/gJ63Q0+PvSAq+32ghgDp0Ycy6iDguUpNKtcd Ls0tXXbqJb3jzniGbgDPCRNDDS1YyZ8rO65u4QHZ4JlfZJl0X52CzMJNJPCQx4MZUOvcLC cVKnXMLboZrrJbOaRvYgYGtiL5V1ilaOLqKe/373ktOsJ+YZQoyofUdUpE0pZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644775236; a=rsa-sha256; cv=none; b=TPaLdafDYXSXJsb2ACXt43/pHhBafLhRv/iT73SqJEfYpLkidAipafSoNuMQRuUufBQLre It1S272Ce71r7TYToHS1RtCNMdavjoBcC8tvRxtWIZNzxEk/h+Zv7tHQ7fLmBbKW0uL7r/ 1iITqtEW8LRHzzi+6fdzTmU2SXr0N8I7VCOVtIfuESvv76iL9SMJu4SIWHBbEVto1i0zjO PZdZglz4q2fG89a1dVP91onL57k4ODPSFV03RMfvr6ehBvWRoLGitNmLC+IzNEVIQuJJ8X 2gc+xONTWjj5kOThsHQMrtyNBZgWeyK+LP9eFNrqqmoildwiMwDB1mNx0bFpJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by swills: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b4cb31396c5b2bba063a409296e015d64b13b5e commit 6b4cb31396c5b2bba063a409296e015d64b13b5e Author: Steve Wills AuthorDate: 2022-02-13 17:59:46 +0000 Commit: Steve Wills CommitDate: 2022-02-13 17:59:46 +0000 devel/cvise: create port C-Vise is a tool that takes a large C, C++ or OpenCL program that has a property of interest (such as triggering a compiler bug) and automatically produces a much smaller C/C++ or OpenCL program that has the same property. It is intended for use by people who discover and report bugs in compilers and other tools that process C/C++ or OpenCL code. WWW: https://github.com/marxin/cvise --- devel/Makefile | 1 + devel/cvise/Makefile | 44 +++++++++++++++++++++++++++++++++++ devel/cvise/distinfo | 3 +++ devel/cvise/files/patch-cvise.py | 11 +++++++++ devel/cvise/pkg-descr | 7 ++++++ devel/cvise/pkg-plist | 50 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1424d6312b68..bbc4c4efa590 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -447,6 +447,7 @@ SUBDIR += cut SUBDIR += cutils SUBDIR += cutter + SUBDIR += cvise SUBDIR += cvs SUBDIR += cvs+ipv6 SUBDIR += cvs-devel diff --git a/devel/cvise/Makefile b/devel/cvise/Makefile new file mode 100644 index 000000000000..3155f2007c47 --- /dev/null +++ b/devel/cvise/Makefile @@ -0,0 +1,44 @@ +PORTNAME= cvise +PORTVERSION= 2.4.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel python + +MAINTAINER= swills@FreeBSD.org +COMMENT= C-Vise is a super-parallel Python port of the C-Reduce + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pebble>0:devel/py-pebble@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ + llvm-config${LLVM_VER}:devel/llvm${LLVM_VER} +RUN_DEPENDS= bash:shells/bash \ + ${PYTHON_PKGNAMEPREFIX}pebble>0:devel/py-pebble@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ + llvm-config${LLVM_VER}:devel/llvm${LLVM_VER} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR} +# gcc:lang/gcc +# gcc required for tests to pass. framework errors: +# Error: lang/gcc should not be depended upon. Instead, use USE_GCC. +# but doesn't support gcc as a test only depends +# once this is installed, all tests pass for me: +# 260 passed, 1 skipped in 64.82 seconds + +USES= cmake python:3.6+ shebangfix +CMAKE_ARGS+= -DClang_DIR:PATH=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/clang +LLVM_VER= 13 +SHEBANG_FILES= cvise-delta.py cvise.py +USE_GITHUB= yes +GH_ACCOUNT= marxin + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/cvise.py + +do-test: + cd ${BUILD_WRKSRC} && pytest + +.include diff --git a/devel/cvise/distinfo b/devel/cvise/distinfo new file mode 100644 index 000000000000..27e9b9ff4071 --- /dev/null +++ b/devel/cvise/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1644767746 +SHA256 (marxin-cvise-v2.4.0_GH0.tar.gz) = 55ae8c39bdbaddba9a2ac1173bef7995e58387bc81f4610125dd1488c8e8b1ae +SIZE (marxin-cvise-v2.4.0_GH0.tar.gz) = 252810 diff --git a/devel/cvise/files/patch-cvise.py b/devel/cvise/files/patch-cvise.py new file mode 100644 index 000000000000..e63a3f8051da --- /dev/null +++ b/devel/cvise/files/patch-cvise.py @@ -0,0 +1,11 @@ +--- cvise.py.orig 2022-02-13 16:58:05 UTC ++++ cvise.py +@@ -283,7 +283,7 @@ if __name__ == '__main__': + script = None + if args.commands: + with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.sh') as script: +- script.write('#!/bin/bash\n\n') ++ script.write('#!%%LOCALBASE%%/bin/bash\n\n') + script.write(args.commands + '\n') + os.chmod(script.name, 0o744) + logging.info('Using temporary interestingness test: %s' % script.name) diff --git a/devel/cvise/pkg-descr b/devel/cvise/pkg-descr new file mode 100644 index 000000000000..2382e40e65bf --- /dev/null +++ b/devel/cvise/pkg-descr @@ -0,0 +1,7 @@ +C-Vise is a tool that takes a large C, C++ or OpenCL program that has a +property of interest (such as triggering a compiler bug) and automatically +produces a much smaller C/C++ or OpenCL program that has the same property. It +is intended for use by people who discover and report bugs in compilers and +other tools that process C/C++ or OpenCL code. + +WWW: https://github.com/marxin/cvise diff --git a/devel/cvise/pkg-plist b/devel/cvise/pkg-plist new file mode 100644 index 000000000000..10707f47de37 --- /dev/null +++ b/devel/cvise/pkg-plist @@ -0,0 +1,50 @@ +bin/cvise-delta +bin/cvise +libexec/cvise/clang_delta +libexec/cvise/clex +libexec/cvise/strlex +libexec/cvise/topformflat +%%DATADIR%%/__init__.py +%%DATADIR%%/cvise.py +%%DATADIR%%/pass_groups/all.json +%%DATADIR%%/pass_groups/binary.json +%%DATADIR%%/pass_groups/delta.json +%%DATADIR%%/pass_groups/opencl-120.json +%%DATADIR%%/passes/__init__.py +%%DATADIR%%/passes/abstract.py +%%DATADIR%%/passes/balanced.py +%%DATADIR%%/passes/blank.py +%%DATADIR%%/passes/clang.py +%%DATADIR%%/passes/clangbinarysearch.py +%%DATADIR%%/passes/clex.py +%%DATADIR%%/passes/comments.py +%%DATADIR%%/passes/gcdabinary.py +%%DATADIR%%/passes/ifs.py +%%DATADIR%%/passes/includeincludes.py +%%DATADIR%%/passes/includes.py +%%DATADIR%%/passes/indent.py +%%DATADIR%%/passes/ints.py +%%DATADIR%%/passes/line_markers.py +%%DATADIR%%/passes/lines.py +%%DATADIR%%/passes/peep.py +%%DATADIR%%/passes/special.py +%%DATADIR%%/passes/ternary.py +%%DATADIR%%/passes/unifdef.py +%%DATADIR%%/tests/__init__.py +%%DATADIR%%/tests/test_balanced.py +%%DATADIR%%/tests/test_comments.py +%%DATADIR%%/tests/test_ifs.py +%%DATADIR%%/tests/test_ints.py +%%DATADIR%%/tests/test_line_markers.py +%%DATADIR%%/tests/test_nestedmatcher.py +%%DATADIR%%/tests/test_peep.py +%%DATADIR%%/tests/test_special.py +%%DATADIR%%/tests/test_ternary.py +%%DATADIR%%/tests/testabstract.py +%%DATADIR%%/utils/__init__.py +%%DATADIR%%/utils/error.py +%%DATADIR%%/utils/misc.py +%%DATADIR%%/utils/nestedmatcher.py +%%DATADIR%%/utils/readkey.py +%%DATADIR%%/utils/statistics.py +%%DATADIR%%/utils/testing.py