From owner-freebsd-python@FreeBSD.ORG Fri Feb 24 17:03:32 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EAA31065670; Fri, 24 Feb 2012 17:03:32 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id E51BA8FC0C; Fri, 24 Feb 2012 17:03:31 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id CAD46621C06; Fri, 24 Feb 2012 11:43:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secnap.net; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:x-mailer:from:from:date:date:subject:subject; s= dkim; t=1330101803; x=1331916203; bh=lWfvdjYSvee2GOvuD1O+50aFUnm QooPOPmlBHIf9Ur8=; b=QqplCVOXQ9N5rcEM57jgJ/jKb9eEXjMjSkV21+SyOlL /yWjSH64GGaLqfeX6U3pxamvbaifTkhiUHMGMCB1/udYtvRwr/DO5LA3Rw4zXGil 61VzgquPYMWhTz3s54W220GO0VQ2xoyvpZ/3DA7lqnsIf5aifMIFZdjbjs0ym4j0 = X-Amavis-Modified: Mail body modified (using disclaimer) - mx1.secnap.com.ionspam.net X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.18 at mx1.secnap.com.ionspam.net Received: from scanner.secnap.net (unknown [10.70.1.4]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id BCBF9621C03; Fri, 24 Feb 2012 11:43:23 -0500 (EST) Received: by scanner.secnap.net (Postfix, from userid 1001) id B31561D401; Fri, 24 Feb 2012 11:43:23 -0500 (EST) To: bug-followup@FreeBSD.org, gabor@freebsd.org, lwhsu@FreeBSD.org, sunpoet@FreeBSD.org, python@freebsd.org Date: Fri, 24 Feb 2012 11:43:23 -0500 (EST) Sender: scheidell@secnap.net From: Michael Scheidell X-Loop: scheidell@secnap.net X-Mailer: ELM [version 2.4ME+ PL124c (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1330101803-86909-0_" Content-Transfer-Encoding: 7bit Message-Id: <20120224164323.B31561D401@scanner.secnap.net> Cc: nivit@FreeBSD.org, vivanov@ivanov-nest.com, lars.eggert@nokia.com Subject: Re: ports/118301: [patch] devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 17:03:32 -0000 --ELM1330101803-86909-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" As promissed, attached is a patch to back out portrevision 3, or, most specifically, leave it as an option knob, default off. It packages just fine, with and without: http://people.freebsd.org/~scheidell/py27-setuptools-0.6c11_4.WITHOUT.log (the default, just like it did before portrevision 3) and, with: (with option knob set) by looking at Makefile, and pkg-plist changes, I think I correctly wrapped !defines() around all the changed things. (note: this sat for 3 years. python@ got 'open pr' emails, once a week, so, speak up now, or forever hold your peace. or nra members, your piece) I can tell you this packages, both ways, leaves no left overs, but I can't tell you if it solves the original problem with the knob, or the problem created with revision 3. But I can tell you, it looks like this attached patch reverses revision 3. Please, if you have any stake in this, test it, or, in when this gets committed, don't complain. -- Michael Scheidell, CTO SECNAP Network Security Corporation http://people.freebsd.org/~scheidell ______________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.spammertrap.com/ ______________________________________________________________________ --ELM1330101803-86909-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-patch Content-Disposition: attachment; filename="pr_118301_devel_py-setuptools.patch" Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/py-setuptools/Makefile,v retrieving revision 1.24 diff -u -r1.24 Makefile --- Makefile 8 Jan 2012 01:51:58 -0000 1.24 +++ Makefile 24 Feb 2012 16:35:57 -0000 @@ -7,7 +7,7 @@ PORTNAME= setuptools PORTVERSION= 0.6c11 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,6 +21,8 @@ PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//} +OPTIONS= EASYINSTALL "Use With Python easy-install" off + .include .if ${PYTHON_SUFFIX} < 25 @@ -31,13 +33,18 @@ PLIST_SUB+= PYTHON_OLD="@comment " .endif +.if defined(WITH_EASYINSTALL) SUB_FILES= pkg-install SUB_LIST= EASYINSTALL_PTH=${EASYINSTALL_PTH} +PLIST_SUB+= EASYINSTALL="" EASYINSTALL_PTH= ${PYTHON_SITELIBDIR}/easy-install.pth pre-install: PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +.else +PLIST_SUB+= EASYINSTALL="@comment " +.endif post-install: ${INSTALL_DATA} ${WRKSRC}/site.py ${PYTHON_SITELIBDIR} @@ -45,8 +52,10 @@ ${PYTHON_CMD} ${opt} -m compileall -l -x \ '^[^s][^i]?[^t]?[^e]?[^.][^p][^y]$$' ${PYTHON_SITELIBDIR} .endfor +.if defined(WITH_EASYINSTALL) ${CP} ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.dist PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/devel/py-setuptools/pkg-plist,v retrieving revision 1.13 diff -u -r1.13 pkg-plist --- pkg-plist 8 Jan 2012 01:51:58 -0000 1.13 +++ pkg-plist 24 Feb 2012 16:35:57 -0000 @@ -3,8 +3,9 @@ bin/easy_install-%%PYVER%% %%PYTHON_SITELIBDIR%%/setuptools.pth @unexec if cmp -s %B/easy-install.pth %B/easy-install.pth.dist; then rm %B/easy-install.pth; fi -%%PYTHON_SITELIBDIR%%/easy-install.pth.dist -@exec if [ ! -f %B/easy-install.pth ]; then cp %B/%f %B/easy-install.pth; fi +@unexec if [ ! -f %B/easy-install.pth.dist ]; then rm %B/easy-install.pth; fi +%%EASYINSTALL%%%%PYTHON_SITELIBDIR%%/easy-install.pth.dist +%%EASYINSTALL%%@exec if [ ! -f %B/easy-install.pth ]; then cp %B/%f %B/easy-install.pth; fi %%PYTHON_SITELIBDIR%%/site.py %%PYTHON_SITELIBDIR%%/site.pyc %%PYTHON_SITELIBDIR%%/site.pyo --ELM1330101803-86909-0_--