Date: Fri, 1 Oct 2010 01:28:21 +0800 (CST) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: python@FreeBSD.org Subject: ports/151121: [PATCH] lang/python27: fix 'make deinstall' while python27 was installed using package Message-ID: <20100930172821.BF2172AEC4FF@sunpoet.net> Resent-Message-ID: <201009301740.o8UHe4lR048721@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151121 >Category: ports >Synopsis: [PATCH] lang/python27: fix 'make deinstall' while python27 was installed using package >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 30 17:40:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 8.1-STABLE amd64 >Organization: >Environment: System: FreeBSD bonjour.sunpoet.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Jul 25 00:09:24 CST 2010 >Description: - fix 'make deinstall' while python27 was installed using package Tinderbox logs: (before patch) https://sunpoet.net/tinderbox/logs/8-FreeBSD/py27-DecoratorTools-1.8.log https://sunpoet.net/tinderbox/logs/7-FreeBSD/py27-DecoratorTools-1.8.log I take this port for example. It depends on Python 2.7 which was installed by pkg_add. The error message appears at the end of this tinderbox build. Tinderbox logs: (after patch) https://sunpoet.net/tinderbox/logs/8-FreeBSD/python27-2.7.0_2.log https://sunpoet.net/tinderbox/logs/7-FreeBSD/python27-2.7.0_2.log Port maintainer (python@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: % pkg_add python27-2.7.0_1.tbz % cd /usr/ports/lang/python27/ % make deinstall Deleting python27-2.7.0_1 pkg_delete: file '/usr/local/lib/python2.7/test/data' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/lib/python2.7/test/data' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) >Fix: --- python27-2.7.0_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/lang/python27/Makefile,v retrieving revision 1.169 diff -u -u -r1.169 Makefile --- Makefile 6 Sep 2010 00:25:04 -0000 1.169 +++ Makefile 30 Sep 2010 17:07:47 -0000 @@ -6,7 +6,7 @@ PORTNAME= python27 PORTVERSION= 2.7.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -268,6 +268,8 @@ (cd ${EXAMPLESDIR}; ${TAR} -xf -) .endif + @${MKDIR} ${PYTHON_LIBDIR}/test/data/ + @${TOUCH} ${PYTHON_LIBDIR}/test/data/.keepme @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/lang/python27/pkg-plist,v retrieving revision 1.83 diff -u -u -r1.83 pkg-plist --- pkg-plist 6 Sep 2010 00:25:04 -0000 1.83 +++ pkg-plist 30 Sep 2010 17:07:48 -0000 @@ -1078,6 +1078,7 @@ %%PYTHON_LIBDIR%%/test/cjkencodings_test.py %%PYTHON_LIBDIR%%/test/cmath_testcases.txt %%PYTHON_LIBDIR%%/test/curses_tests.py +%%PYTHON_LIBDIR%%/test/data/.keepme %%PYTHON_LIBDIR%%/test/decimaltestdata/abs.decTest %%PYTHON_LIBDIR%%/test/decimaltestdata/add.decTest %%PYTHON_LIBDIR%%/test/decimaltestdata/and.decTest --- python27-2.7.0_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100930172821.BF2172AEC4FF>