Date: Thu, 10 Mar 2011 05:37:33 -0800 (PST) From: "Jason E. Hale" <bsdkaffee@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: glebius@FreeBSD.org Subject: ports/155434: [PATCH] astro/gpsd: Leaves .pyo files upon deinstall Message-ID: <4d78d41d.4969e50a.19a9.7cd7@mx.google.com> Resent-Message-ID: <201103101340.p2ADeA58066881@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155434 >Category: ports >Synopsis: [PATCH] astro/gpsd: Leaves .pyo files upon deinstall >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 Mar 10 13:40:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jason E. Hale >Release: FreeBSD 8.2-RELEASE i386 >Organization: none >Environment: System: FreeBSD mocha.verizon.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Feb 22 19:19:42 EST 2011 root@mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA8 i386 >Description: astro/gpsd leaves Python ".pyo" files upon deinstall. They are not installed when the port is built, but they get generated when the module is used. I have patched the port to install the .pyo files when the port is built so that they can be included in the pkg-plist. While here, remove MD5. >How-To-Repeat: Use attached diff. >Fix: --- 2011-03-10-gpsd.diff begins here --- diff -ruN gpsd.orig/Makefile gpsd/Makefile --- gpsd.orig/Makefile 2011-03-10 05:41:17.000000000 -0500 +++ gpsd/Makefile 2011-03-10 06:04:28.000000000 -0500 @@ -7,6 +7,7 @@ PORTNAME= gpsd PORTVERSION= 2.95 +PORTREVISION= 1 CATEGORIES= astro geography MASTER_SITES= ${MASTER_SITE_BERLIOS} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -179,6 +180,10 @@ CONFIGURE_ARGS+=--enable-dbus .endif +post-patch: + @${REINPLACE_CMD} -e 's|setup.py install|setup.py install -c -O1|g' \ + ${WRKSRC}/Makefile.in + post-install: @${CAT} ${PKGMESSAGE} diff -ruN gpsd.orig/distinfo gpsd/distinfo --- gpsd.orig/distinfo 2011-03-10 05:41:17.000000000 -0500 +++ gpsd/distinfo 2011-03-10 06:22:31.000000000 -0500 @@ -1,3 +1,2 @@ -MD5 (gpsd-2.95.tar.gz) = 12535a9ed9fecf9ea2c5bdc9840da5ae SHA256 (gpsd-2.95.tar.gz) = 832343a53921a8371efa540ba57c91dadedda445e571c1beb97c06539ef450ae SIZE (gpsd-2.95.tar.gz) = 1385681 diff -ruN gpsd.orig/pkg-plist gpsd/pkg-plist --- gpsd.orig/pkg-plist 2011-03-10 05:41:17.000000000 -0500 +++ gpsd/pkg-plist 2011-03-10 05:54:15.000000000 -0500 @@ -23,15 +23,20 @@ lib/libgpsd.so.0 %%PYTHON_SITELIBDIR%%/gps/__init__.py %%PYTHON_SITELIBDIR%%/gps/__init__.pyc +%%PYTHON_SITELIBDIR%%/gps/__init__.pyo %%PYTHON_SITELIBDIR%%/gps/client.py %%PYTHON_SITELIBDIR%%/gps/client.pyc +%%PYTHON_SITELIBDIR%%/gps/client.pyo %%PYTHON_SITELIBDIR%%/gps/clienthelpers.so %%PYTHON_SITELIBDIR%%/gps/fake.py %%PYTHON_SITELIBDIR%%/gps/fake.pyc +%%PYTHON_SITELIBDIR%%/gps/fake.pyo %%PYTHON_SITELIBDIR%%/gps/gps.py %%PYTHON_SITELIBDIR%%/gps/gps.pyc +%%PYTHON_SITELIBDIR%%/gps/gps.pyo %%PYTHON_SITELIBDIR%%/gps/misc.py %%PYTHON_SITELIBDIR%%/gps/misc.pyc +%%PYTHON_SITELIBDIR%%/gps/misc.pyo %%PYTHON_SITELIBDIR%%/gps/packet.so %%PYTHON_SITELIBDIR%%/gpscap.py %%PYTHON_SITELIBDIR%%/gpscap.pyc --- 2011-03-10-gpsd.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d78d41d.4969e50a.19a9.7cd7>