Bug 154119

Summary: The port sysutls/py-psutil pkg-plist missing files
Product: Ports & Packages Reporter: Stephen Sanders <ssanders>
Component: Individual Port(s)Assignee: Olli Hauer <ohauer>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Stephen Sanders 2011-01-18 18:20:08 UTC
The port sysutils/psutils is missing the following two files from pkg-plist.

%%PYTHON_SITELIBDIR%%/psutil/_psposix.py
%%PYTHON_SITELIBDIR%%/psutil/_psposix.pyc

The current package will install but will fail to run when one does an "import psutil" in python.

Fix: 

Add the following two lines to pkg-plist

%%PYTHON_SITELIBDIR%%/psutil/_psposix.py
%%PYTHON_SITELIBDIR%%/psutil/_psposix.pyc
How-To-Repeat: make package
Move the resultant package to a different machine and install it.
Run python and enter "import psutil"
You should see a python stack trace complaining about psposix
Comment 1 Olli Hauer freebsd_committer freebsd_triage 2011-01-22 17:02:44 UTC
State Changed
From-To: open->feedback

Fiy synopsis and assign to me. 

@Stephen 
Is it possible you have already version 0.2.0 running? 
In 0.1.3 there is only a file posix in the test subdir where in 0.2.0 there is such a file. 

I will send a patch for the update to version 0.2.0 (already tested) 


Comment 2 Olli Hauer freebsd_committer freebsd_triage 2011-01-22 17:02:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ohauer
Comment 3 Olli Hauer freebsd_committer freebsd_triage 2011-01-22 17:21:32 UTC
The following patch will update the port sysutils/py-psutil to version 0.2.0

 - remove patch files (fixed upstream)
 - sort pkg-plist

Remark:
Because of the wrong synopsis I suspect the maintainer got no notice for
this PR, so I add him to this reply.


--- patch_py-psutil.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/py-psutil/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	10 May 2010 08:10:52 -0000	1.2
+++ Makefile	22 Jan 2011 16:49:47 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=		psutil
-PORTVERSION=		0.1.3
+PORTVERSION=		0.2.0
 CATEGORIES=		sysutils python
 MASTER_SITES=		GOOGLE_CODE
 PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/sysutils/py-psutil/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo	5 May 2010 07:05:56 -0000	1.1
+++ distinfo	22 Jan 2011 16:49:47 -0000
@@ -1,3 +1,2 @@
-MD5 (psutil-0.1.3.tar.gz) = ebf8812edf9b79d3952837df2554016a
-SHA256 (psutil-0.1.3.tar.gz) = 347e79dbfc845dbef71f67d72eaf4d9006e307afe8283d6f319dbc8105bdd532
-SIZE (psutil-0.1.3.tar.gz) = 91661
+SHA256 (psutil-0.2.0.tar.gz) = cb9199eae2f14922ec792cb411c4f442b369330b49975229287bb91645cac912
+SIZE (psutil-0.2.0.tar.gz) = 130038
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/sysutils/py-psutil/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	10 May 2010 08:10:52 -0000	1.2
+++ pkg-plist	22 Jan 2011 16:49:47 -0000
@@ -1,23 +1,26 @@
-%%PYTHON_SITELIBDIR%%/psutil/_psosx.py
+%%PYTHON_SITELIBDIR%%/_psutil_bsd.so
 %%PYTHON_SITELIBDIR%%/psutil/__init__.py
-%%PYTHON_SITELIBDIR%%/psutil/_psbsd.py
-%%PYTHON_SITELIBDIR%%/psutil/error.py
-%%PYTHON_SITELIBDIR%%/psutil/wmi.py
-%%PYTHON_SITELIBDIR%%/psutil/_pslinux.py
-%%PYTHON_SITELIBDIR%%/psutil/_psmswindows.py
-%%PYTHON_SITELIBDIR%%/psutil/_psosx.pyc
 %%PYTHON_SITELIBDIR%%/psutil/__init__.pyc
+%%PYTHON_SITELIBDIR%%/psutil/__init__.pyo
+%%PYTHON_SITELIBDIR%%/psutil/_psbsd.py
 %%PYTHON_SITELIBDIR%%/psutil/_psbsd.pyc
-%%PYTHON_SITELIBDIR%%/psutil/error.pyc
-%%PYTHON_SITELIBDIR%%/psutil/wmi.pyc
+%%PYTHON_SITELIBDIR%%/psutil/_psbsd.pyo
+%%PYTHON_SITELIBDIR%%/psutil/_pslinux.py
 %%PYTHON_SITELIBDIR%%/psutil/_pslinux.pyc
+%%PYTHON_SITELIBDIR%%/psutil/_pslinux.pyo
+%%PYTHON_SITELIBDIR%%/psutil/_psmswindows.py
 %%PYTHON_SITELIBDIR%%/psutil/_psmswindows.pyc
+%%PYTHON_SITELIBDIR%%/psutil/_psmswindows.pyo
+%%PYTHON_SITELIBDIR%%/psutil/_psosx.py
+%%PYTHON_SITELIBDIR%%/psutil/_psosx.pyc
 %%PYTHON_SITELIBDIR%%/psutil/_psosx.pyo
-%%PYTHON_SITELIBDIR%%/psutil/__init__.pyo
-%%PYTHON_SITELIBDIR%%/psutil/_psbsd.pyo
+%%PYTHON_SITELIBDIR%%/psutil/_psposix.py
+%%PYTHON_SITELIBDIR%%/psutil/_psposix.pyc
+%%PYTHON_SITELIBDIR%%/psutil/_psposix.pyo
+%%PYTHON_SITELIBDIR%%/psutil/compat.py
+%%PYTHON_SITELIBDIR%%/psutil/compat.pyc
+%%PYTHON_SITELIBDIR%%/psutil/compat.pyo
+%%PYTHON_SITELIBDIR%%/psutil/error.py
+%%PYTHON_SITELIBDIR%%/psutil/error.pyc
 %%PYTHON_SITELIBDIR%%/psutil/error.pyo
-%%PYTHON_SITELIBDIR%%/psutil/wmi.pyo
-%%PYTHON_SITELIBDIR%%/psutil/_pslinux.pyo
-%%PYTHON_SITELIBDIR%%/psutil/_psmswindows.pyo
-%%PYTHON_SITELIBDIR%%/_psutil_bsd.so
 @dirrm %%PYTHON_SITELIBDIR%%/psutil
Index: files/patch-psutil_arch_bsd_process_info.c
===================================================================
RCS file: files/patch-psutil_arch_bsd_process_info.c
diff -N files/patch-psutil_arch_bsd_process_info.c
--- files/patch-psutil_arch_bsd_process_info.c	10 May 2010 08:10:52 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- psutil/arch/bsd/process_info.c.orig	2009-09-15 05:45:29.000000000 +0800
-+++ psutil/arch/bsd/process_info.c	2010-05-10 11:10:37.000000000 +0800
-@@ -13,6 +13,7 @@
- #include <string.h>
- #include <sys/types.h>
- #include <sys/sysctl.h>
-+#include <sys/param.h>
- #include <sys/user.h>
- #include <sys/proc.h>
- 
Index: files/patch-psutil_psutil_bsd.c
===================================================================
RCS file: files/patch-psutil_psutil_bsd.c
diff -N files/patch-psutil_psutil_bsd.c
--- files/patch-psutil_psutil_bsd.c	10 May 2010 08:10:52 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- psutil/_psutil_bsd.c.orig	2009-09-14 21:36:29.000000000 +0800
-+++ psutil/_psutil_bsd.c	2010-05-10 11:10:18.000000000 +0800
-@@ -12,6 +12,7 @@
- #include <signal.h>
- #include <sys/types.h>
- #include <sys/sysctl.h>
-+#include <sys/param.h>
- #include <sys/user.h>
- #include <sys/proc.h>
- #include <sys/vmmeter.h>  /* needed for vmtotal struct */
--- patch_py-psutil.txt ends here ---
Comment 4 Stephen Sanders 2011-01-22 22:03:27 UTC
Ooops...sorry about that.  You are correct.  I was building pyutil
0.2.0.  I should pay more attention.

Thanks
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-01-30 18:30:16 UTC
ohauer      2011-01-30 18:30:09 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/py-psutil   Makefile distinfo pkg-plist 
  Removed files:
    sysutils/py-psutil/files patch-psutil_arch_bsd_process_info.c 
                             patch-psutil_psutil_bsd.c 
  Log:
   - update to version 0.2.0
   - remove unused patch files (included now in upstream)
   - sort pkg-plist
  
     maintainer timeout
  
  PR:             ports/154119
  Submitted by:   Stephen Sanders <ssanders _at_ opnet.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.3       +1 -1      ports/sysutils/py-psutil/Makefile
  1.2       +2 -3      ports/sysutils/py-psutil/distinfo
  1.2       +0 -10     ports/sysutils/py-psutil/files/patch-psutil_arch_bsd_process_info.c (dead)
  1.2       +0 -10     ports/sysutils/py-psutil/files/patch-psutil_psutil_bsd.c (dead)
  1.3       +18 -15    ports/sysutils/py-psutil/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Olli Hauer freebsd_committer freebsd_triage 2011-01-30 18:30:49 UTC
State Changed
From-To: feedback->closed

Update to version 0.2.0 was committed which solve this issue.