[PATCH] lang/python27: fix 'make deinstall' while python27 was
installed using package
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Sep 30 17:51:23 UTC 2010
>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 at 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 ---
More information about the freebsd-python
mailing list