25789139 MA_RESERVED1 removal breaks psutil
authorDanek Duvall <danek.duvall@oracle.com>
Tue, 28 Mar 2017 13:52:39 -0700
changeset 7806 ffcde471ae10
parent 7805 7a5810349e83
child 7807 faf888b8f422
25789139 MA_RESERVED1 removal breaks psutil
components/python/psutil/patches/03-MA_NORESERVE.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/psutil/patches/03-MA_NORESERVE.patch	Tue Mar 28 13:52:39 2017 -0700
@@ -0,0 +1,19 @@
+The MA_RESERVED1 macro never had any meaning, and it's gone as of S12 build 121
+as part of PSARC/2017/031.  In conversation with the upstream author, the
+"R" designator can also go away.  The pull request is available at
+
+    https://github.com/giampaolo/psutil/pull/1003
+
+--- psutil-1.2.1/psutil/_psutil_sunos.c	2017-03-28 10:14:25.150344244 -0700
++++ psutil-1.2.1/psutil/_psutil_sunos.c	2017-03-28 11:25:20.578369853 -0700
+@@ -609,9 +609,7 @@
+         sprintf(perms, "%c%c%c%c%c%c", p->pr_mflags & MA_READ ? 'r' : '-',
+                                        p->pr_mflags & MA_WRITE ? 'w' : '-',
+                                        p->pr_mflags & MA_EXEC ? 'x' : '-',
+-                                       p->pr_mflags & MA_SHARED ? 's' : '-',
+-                                       p->pr_mflags & MA_NORESERVE ? 'R' : '-',
+-                                       p->pr_mflags & MA_RESERVED1 ? '*' : ' ');
++                                       p->pr_mflags & MA_SHARED ? 's' : '-');
+ 
+         // name
+         if (strlen(p->pr_mapname) > 0) {