Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 289971A9239 for ; Thu, 16 Dec 2021 14:48:14 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 499F084F73; Thu, 16 Dec 2021 14:48:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 838E684EF5 for ; Thu, 16 Dec 2021 14:48:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id uUs3g8sbc847 for ; Thu, 16 Dec 2021 14:48:12 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id E976A84EAF for ; Thu, 16 Dec 2021 14:48:11 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E2B77FAEC; Thu, 16 Dec 2021 14:48:11 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1639666091150970" MIME-Version: 1.0 Date: Thu, 16 Dec 2021 14:48:11 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/devel/py-trytond To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20211216144811.E2B77FAEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1639666091150970 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Thu Dec 16 14:48:11 UTC 2021 Modified Files: pkgsrc/devel/py-trytond: Makefile distinfo Added Files: pkgsrc/devel/py-trytond/patches: patch-setup.py Log Message: py-trytond: fix build with latest setuptools To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-trytond/Makefile cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-trytond/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-trytond/patches/patch-setup.py Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1639666091150970 Content-Disposition: inline Content-Length: 2539 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/py-trytond/Makefile diff -u pkgsrc/devel/py-trytond/Makefile:1.20 pkgsrc/devel/py-trytond/Makefile:1.21 --- pkgsrc/devel/py-trytond/Makefile:1.20 Sat Jan 18 23:30:39 2020 +++ pkgsrc/devel/py-trytond/Makefile Thu Dec 16 14:48:11 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2020/01/18 23:30:39 rillig Exp $ +# $NetBSD: Makefile,v 1.21 2021/12/16 14:48:11 wiz Exp $ TRYTON_MODULE_NAME= trytond .include "../../devel/py-trytond/Makefile.common" CATEGORIES= devel python @@ -54,6 +54,13 @@ CONF_FILES+= ${EGDIR}/trytond.conf.exam CONF_FILES+= ${EGDIR}/logging.conf.example \ ${CONFDIR}/logging.conf +.include "../../lang/python/egg.mk" + +.if ${PYPKGPREFIX} != "py27" +pre-build: + cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs trytond +.endif + post-install: ${MV} ${DESTDIR}${PREFIX}/bin/trytond-admin \ ${DESTDIR}${PREFIX}/bin/trytond-admin${PYVERSSUFFIX} || ${TRUE} @@ -67,5 +74,4 @@ post-install: ${DESTDIR}${PREFIX}/${EGDIR}/logging.conf.example .include "../../lang/python/application.mk" -.include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" Index: pkgsrc/devel/py-trytond/distinfo diff -u pkgsrc/devel/py-trytond/distinfo:1.13 pkgsrc/devel/py-trytond/distinfo:1.14 --- pkgsrc/devel/py-trytond/distinfo:1.13 Tue Oct 26 10:19:12 2021 +++ pkgsrc/devel/py-trytond/distinfo Thu Dec 16 14:48:11 2021 @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.13 2021/10/26 10:19:12 nia Exp $ +$NetBSD: distinfo,v 1.14 2021/12/16 14:48:11 wiz Exp $ BLAKE2s (tryton-4.2/trytond-4.2.1.tar.gz) = 633773d9a79c7974ba605350706231ce6a66a8dd306e690b4271efd494b987ad SHA512 (tryton-4.2/trytond-4.2.1.tar.gz) = 3716a56d87e95dabaa77f2210c9499a6d1ae0278b7bae2034d6a19db8a40f1e22efd48118de9af1a72022b556a991d4293886804b2b531be0f4dd038fbe9e882 Size (tryton-4.2/trytond-4.2.1.tar.gz) = 581536 bytes +SHA1 (patch-setup.py) = 4b802daf2801407b5c0d89eb130742a63555bc10 Added files: Index: pkgsrc/devel/py-trytond/patches/patch-setup.py diff -u /dev/null pkgsrc/devel/py-trytond/patches/patch-setup.py:1.1 --- /dev/null Thu Dec 16 14:48:11 2021 +++ pkgsrc/devel/py-trytond/patches/patch-setup.py Thu Dec 16 14:48:11 2021 @@ -0,0 +1,12 @@ +$NetBSD: patch-setup.py,v 1.1 2021/12/16 14:48:11 wiz Exp $ + +Fix build with latest setuptools. + +--- setup.py.orig 2016-12-13 17:02:57.000000000 +0000 ++++ setup.py +@@ -115,5 +115,4 @@ setup(name=name, + test_suite='trytond.tests', + test_loader='trytond.test_loader:Loader', + tests_require=['mock'], +- use_2to3=True, + ) --_----------=_1639666091150970--