From nobody Fri Mar 25 13:51:00 2022 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 5E9C31A34A25; Fri, 25 Mar 2022 13:51:02 +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 4KQ3QY20MNz3hJv; Fri, 25 Mar 2022 13:51:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216261; 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=yBKqQTXmjDBwxAmCoVJVbYUGNEUN4T3l3LX2ErvzH1A=; b=KB9mI/XppJzEK8vW65J8z7KpWUBucj+t4bsAdoMg6cskhWzO+qi7vQWxIhsi9el78+AQWy 1qAiIgl5rjS5Yb02CQXDOV3/MLzVd4hIX91NNJPX2neiYU9k21gVSfHXSiJxm6VI9PllA7 YpDcgn2fFr2E57rvLpaxUWelzW4zh5pnErjEijIl4CkWe38+ueQZETDQreaaCiYHZ7LCTD ax2bQb2HnzWdL3TpF2PogqmpfcSH5KzUxISn3q2vneYT/cNdmksDe8JRFeM5tbvhv8E4bh +Mtz7l9NlgC/pZSiV1nuIuv0pST9PCH2OfI54R+4UXSFXhYtit5gDqaZQU+TKQ== 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 353375AFC; Fri, 25 Mar 2022 13:51:00 +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 22PDp0fd037693; Fri, 25 Mar 2022 13:51:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDp0XP037692; Fri, 25 Mar 2022 13:51:00 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:51:00 GMT Message-Id: <202203251351.22PDp0XP037692@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: 4d0c5b9d398b - main - sysutils/py-drmaa: Fix build with setuptools 58.0.0+ 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: 4d0c5b9d398b41f3822d1921dbcb8ef476eaf649 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216261; 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=yBKqQTXmjDBwxAmCoVJVbYUGNEUN4T3l3LX2ErvzH1A=; b=QV8nm+860KHzrihZddK0Ewi4l7w5pPfEG6C3ypR8+jFQ+hlsL13bEPfkilnnwpakdprx6+ 8lv5pyYWwI8IikoBDaXPnoDpnJn0KFNQZzYk+Mlce+LCITlwEzCmFQAfg7XXnf5eaNg63m g8yqgZKllb6amCsAi8DHKtacgcOPSjxIlHZH637t2ZsRgRhxlwsxS5EW0BIreD4sM+zeBE kmqEHLZdykJSIsp4ZCW6nrXsNYIDcafEqll8R1cqJU1HsWc5kIJkRprFBTJ7g50/ozbn3F D3cbG6W1+XDx21BnPs8jlRNCUJtTPiHMKWOCE0Xo3y9l52ePFFv4djNQvC5jfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216261; a=rsa-sha256; cv=none; b=RMubS9PiXux5nN4X9PEn0TuziIgUX4IXE550qjdBSZWrshyY54bPp4AnjPteFVd3gnpkOz xYyJzqLPXs4QOQHaf+y6BJjX6IjH2CZ2QPjjfXjtWBMyVVz+GqTsdnsjVURhciD9Ef0niE C0y9ny7gmqYBTgMiweZbylMpLT60uJAr0AdrIGQE32Qu9ZVjPehdg8ENh1teRZuGoR2IjL jB1jgAvc5oYxf2LtFPyvfsHUXcH43V0qnKJTl5yTMpXS0TmLY9rhLex5PtjX+n1JVRvA5o wtpwxUfAM2gncqJ22HnQwbIV1vTlIVYVPOJ7o2gquRISOpwzkMqFFL1y2FhbcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d0c5b9d398b41f3822d1921dbcb8ef476eaf649 commit 4d0c5b9d398b41f3822d1921dbcb8ef476eaf649 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:34:24 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:21 +0000 sysutils/py-drmaa: Fix build with setuptools 58.0.0+ With hat: python --- sysutils/py-drmaa/files/patch-2to3 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/sysutils/py-drmaa/files/patch-2to3 b/sysutils/py-drmaa/files/patch-2to3 new file mode 100644 index 000000000000..1e6268bbbd01 --- /dev/null +++ b/sysutils/py-drmaa/files/patch-2to3 @@ -0,0 +1,28 @@ +--- drmaa/nt.py.orig 2010-05-27 10:25:17 UTC ++++ drmaa/nt.py +@@ -31,7 +31,7 @@ def namedtuple(typename, field_names, verbose=False): + + # Parse and validate the field names. Validation serves two purposes, + # generating informative error messages and preventing template injection attacks. +- if isinstance(field_names, basestring): ++ if isinstance(field_names, str): + field_names = field_names.replace(',', ' ').split() # names separated by whitespace and/or commas + field_names = tuple(field_names) + for name in (typename,) + field_names: +@@ -81,13 +81,13 @@ def namedtuple(typename, field_names, verbose=False): + for i, name in enumerate(field_names): + template += ' %s = property(itemgetter(%d))\n' % (name, i) + if verbose: +- print template ++ print(template) + + # Execute the template string in a temporary namespace + namespace = dict(itemgetter=_itemgetter) + try: +- exec template in namespace +- except SyntaxError, e: ++ exec(template, namespace) ++ except SyntaxError as e: + raise SyntaxError(e.message + ':\n' + template) + result = namespace[typename] +