From owner-freebsd-python@FreeBSD.ORG Thu Sep 30 17:51:23 2010 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 B218A106564A for ; Thu, 30 Sep 2010 17:51:23 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 84C1A8FC0C for ; Thu, 30 Sep 2010 17:51:23 +0000 (UTC) Received: by iwn34 with SMTP id 34so3346471iwn.13 for ; Thu, 30 Sep 2010 10:51:23 -0700 (PDT) Received: by 10.231.19.3 with SMTP id y3mr4082184iba.156.1285867772668; Thu, 30 Sep 2010 10:29:32 -0700 (PDT) Received: from sunpoet.net (sunpoet.net [220.133.12.240]) by mx.google.com with ESMTPS id h8sm89724ibk.21.2010.09.30.10.29.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 10:29:30 -0700 (PDT) Sender: Sunpoet Hsieh Received: by sunpoet.net (Postfix, from userid 1000) id BF2172AEC4FF; Fri, 1 Oct 2010 01:28:21 +0800 (CST) To: FreeBSD-gnats-submit@freebsd.org From: Sunpoet Po-Chuan Hsieh X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20100930172821.BF2172AEC4FF@sunpoet.net> Date: Fri, 1 Oct 2010 01:28:21 +0800 (CST) Cc: python@FreeBSD.org Subject: [PATCH] lang/python27: fix 'make deinstall' while python27 was installed using package 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: Thu, 30 Sep 2010 17:51:23 -0000 >Submitter-Id: current-users >Originator: Sunpoet Po-Chuan Hsieh >Organization: >Confidential: no >Synopsis: [PATCH] lang/python27: fix 'make deinstall' while python27 was installed using package >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 8.1-STABLE amd64 >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 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 ---