ports/170450: [patch] init files missing from pkg-plist for devel/py-ice
Ryder Dain
ryder.dain at gmail.com
Tue Aug 7 14:00:09 UTC 2012
>Number: 170450
>Category: ports
>Synopsis: [patch] init files missing from pkg-plist for devel/py-ice
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 07 14:00:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ryder Dain
>Release: FreeBSD 8.2-RELEASE-p1 amd64
>Organization:
>Environment:
FreeBSD (hostname) 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0 r221593: Sat May 7 15:12:25 CEST 2011 root at bsdsource.grem.de:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
There's a discrepancy in the packing list for devel/py-ice which causes backup packages made with pkg_create -b to generate .tbz packages that are missing key __init__.py files.
tail /var/db/pkg/py27-Ice-3.4.2/+CONTENTS contains the lines:
@unexec rm -f %D/lib/python2.7/site-packages/Ice/IceBox/__init__.py 2>/dev/null || true
@unexec rmdir "%D/lib/python2.7/site-packages/Ice/IceBox" 2>/dev/null || true
@unexec rm -f %D/lib/python2.7/site-packages/Ice/IceGrid/__init__.py 2>/dev/null || true
@unexec rmdir "%D/lib/python2.7/site-packages/Ice/IceGrid" 2>/dev/null || true
@unexec rm -f %D/lib/python2.7/site-packages/Ice/IcePatch2/__init__.py 2>/dev/null || true
@unexec rmdir "%D/lib/python2.7/site-packages/Ice/IcePatch2" 2>/dev/null || true
@unexec rm -f %D/lib/python2.7/site-packages/Ice/IceStorm/__init__.py 2>/dev/null || true
@unexec rmdir "%D/lib/python2.7/site-packages/Ice/IceStorm" 2>/dev/null || true
But /usr/ports/devel/py-ice/pkg-plist doesn't include these files, so when generating a package they're left out. Consequently, the port must be built locally, which is a problem for setups where the compilation host is segregated from the production servers. Alternatively, the files must be manually copied to the appropriate host.
>How-To-Repeat:
pkg_create -b py27-Ice-3.4.2
..scp the package tarball py27-Ice-3.4.2.tbz to another host, then:
pkg_add py27-Ice-3.4.2.tbz
Note that the /usr/local/lib/python2.7/site-packages/Ice/[IceBox|IceGrid|IcePatch2||IceStorm]/__init__.py files are missing.
>Fix:
I assume adding the correct paths and filenames to /usr/ports/devel/py-ice/pkg-plist will correct the problem. I've included a simple patch, but been unable to test it (I'm working from a jailed environment). Apologies if there's some error in the attachment; this is my first PR.
Patch attached with submission follows:
--- devel/py-ice/pkg-plist 2012-08-07 13:06:53.108783536 +0000
+++ devel/py-ice/pkg-plist 2012-08-07 13:09:22.628063698 +0000
@@ -6,7 +6,9 @@
%%PYTHON_SITELIBDIR%%/Ice/Glacier2_Session_ice.py
%%PYTHON_SITELIBDIR%%/Ice/Glacier2.py
%%PYTHON_SITELIBDIR%%/Ice/Ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IceBox/__init__.py
%%PYTHON_SITELIBDIR%%/Ice/IceBox_IceBox_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IceGrid/__init__.py
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_Admin_ice.py
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_Descriptor_ice.py
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_Exception_ice.py
@@ -17,8 +19,10 @@
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_Registry_ice.py
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_Session_ice.py
%%PYTHON_SITELIBDIR%%/Ice/IceGrid_UserAccountMapper_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IcePatch2/__init__.py
%%PYTHON_SITELIBDIR%%/Ice/IcePatch2_FileInfo_ice.py
%%PYTHON_SITELIBDIR%%/Ice/IcePatch2_FileServer_ice.py
+%%PYTHON_SITELIBDIR%%/Ice/IceStorm/__init__.py
%%PYTHON_SITELIBDIR%%/Ice/IceStorm_IceStorm_ice.py
%%PYTHON_SITELIBDIR%%/Ice/Ice_BuiltinSequences_ice.py
%%PYTHON_SITELIBDIR%%/Ice/Ice_CommunicatorF_ice.py
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list