[146151] trunk/dports/python/py-psutil
stromnov at macports.org
stromnov at macports.org
Tue Mar 1 02:51:27 PST 2016
Revision: 146151
https://trac.macports.org/changeset/146151
Author: stromnov at macports.org
Date: 2016-03-01 02:51:27 -0800 (Tue, 01 Mar 2016)
Log Message:
-----------
py-psutil: fix build for PPC (#50686)
Modified Paths:
--------------
trunk/dports/python/py-psutil/Portfile
Added Paths:
-----------
trunk/dports/python/py-psutil/files/
trunk/dports/python/py-psutil/files/patch-psutil__psutil_osx.c.diff
Modified: trunk/dports/python/py-psutil/Portfile
===================================================================
--- trunk/dports/python/py-psutil/Portfile 2016-03-01 09:50:58 UTC (rev 146150)
+++ trunk/dports/python/py-psutil/Portfile 2016-03-01 10:51:27 UTC (rev 146151)
@@ -34,6 +34,8 @@
sha256 1a7c672f9ee79c84ff16b8de6f6040080f0e25002ac47f115f4a54aa88e5cfcd
if {${name} ne ${subport}} {
+ patchfiles-append patch-psutil__psutil_osx.c.diff
+
livecheck.type none
} else {
livecheck.type pypi
Added: trunk/dports/python/py-psutil/files/patch-psutil__psutil_osx.c.diff
===================================================================
--- trunk/dports/python/py-psutil/files/patch-psutil__psutil_osx.c.diff (rev 0)
+++ trunk/dports/python/py-psutil/files/patch-psutil__psutil_osx.c.diff 2016-03-01 10:51:27 UTC (rev 146151)
@@ -0,0 +1,23 @@
+--- psutil/_psutil_osx.c.orig 2016-02-29 19:25:13.000000000 +0300
++++ psutil/_psutil_osx.c 2016-02-29 19:40:00.000000000 +0300
+@@ -600,7 +600,8 @@
+
+ // Roughly based on libtop_update_vm_regions in
+ // http://www.opensource.apple.com/source/top/top-100.1.2/libtop.c
+- for (mach_vm_address_t addr = MACH_VM_MIN_ADDRESS; ; addr += size) {
++ mach_vm_address_t addr;
++ for (addr = MACH_VM_MIN_ADDRESS; ; addr += size) {
+ vm_region_top_info_data_t info;
+ mach_port_t object_name;
+
+@@ -621,8 +622,10 @@
+ }
+
+ switch (info.share_mode) {
++#if !defined(__ppc__) && !defined(__powerpc__) && !defined(__ppc64__) && !defined(__powerpc64__)
+ case SM_LARGE_PAGE:
+ // NB: Large pages are not shareable and always resident.
++#endif
+ case SM_PRIVATE:
+ private_pages += info.private_pages_resident;
+ private_pages += info.shared_pages_resident;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160301/d9023faa/attachment.html>
More information about the macports-changes
mailing list