SOURCES (rpm-4_4_9): rpm-namespace-probe.patch (NEW) - disable use...

glen glen at pld-linux.org
Fri Apr 25 14:54:33 CEST 2008


Author: glen                         Date: Fri Apr 25 12:54:33 2008 GMT
Module: SOURCES                       Tag: rpm-4_4_9
---- Log message:
- disable user(foo), group(foo) namespace probes which confuse triggers if the
  foo would be in trigger nameprovide

---- Files affected:
SOURCES:
   rpm-namespace-probe.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-namespace-probe.patch
diff -u /dev/null SOURCES/rpm-namespace-probe.patch:1.1.2.1
--- /dev/null	Fri Apr 25 14:54:34 2008
+++ SOURCES/rpm-namespace-probe.patch	Fri Apr 25 14:54:28 2008
@@ -0,0 +1,39 @@
+Disable Provides: user(NAME), group(NAME) probes as it would fire trigger on NAME uninstall
+
+as for example uninstalling this spec: https://bugs.pld-linux.org/attachment.cgi?id=20
+
+15:30:53  jbj> glen_: rpmns.c splits group(mailman) into the tuple {group, mailman} for name space processing.
+15:32:48  jbj> the code in unbsatisfiedDepnds is driven by the name "group". if split, then its not the string
+               "group(mailman)" any more.
+
+--- rpm-4.4.9/lib/depends.c~	2008-04-08 19:44:02.000000000 +0300
++++ rpm-4.4.9/lib/depends.c	2008-04-25 15:12:52.734623679 +0300
+@@ -611,6 +611,7 @@
+ 	goto exit;
+     }
+ 
++#if 0
+     /* Evaluate user/group lookup probes. */
+     if (NSType == RPMNS_TYPE_USER) {
+ 	const char *s;
+@@ -646,6 +647,7 @@
+ 	rpmdsNotify(dep, _("(group lookup)"), rc);
+ 	goto exit;
+     }
++#endif
+ 
+     /* Evaluate access(2) probe dependencies. */
+     if (NSType == RPMNS_TYPE_ACCESS) {
+--- rpm-4.4.9/lib/rpmns.c~	2007-05-16 14:31:58.000000000 +0300
++++ rpm-4.4.9/lib/rpmns.c	2008-04-25 15:36:20.223855745 +0300
+@@ -179,8 +179,10 @@
+     case RPMNS_TYPE_UNAME:
+     case RPMNS_TYPE_SONAME:
+     case RPMNS_TYPE_ACCESS:
++#if 0
+     case RPMNS_TYPE_USER:
+     case RPMNS_TYPE_GROUP:
++#endif
+     case RPMNS_TYPE_MOUNTED:
+     case RPMNS_TYPE_DISKSPACE:
+     case RPMNS_TYPE_DIGEST:
================================================================


More information about the pld-cvs-commit mailing list