[Rpm-maint] Weak dependencies SUSE compatibility patch

Michael Schroeder mls at suse.de
Tue Mar 11 15:07:41 UTC 2014


On Tue, Feb 25, 2014 at 03:25:21PM +0100, Michael Schroeder wrote:
> Hi rpm-maint,
> 
> attached is a little patch that I have in my rpm to make --recommends
> et al work with old SUSE rpms.

I also need the following patch to make rpm export the old tags.
There seems to be no way to access array type tags from python
if they are not exported, which is a shame...

--- ./lib/rpmtag.h.orig	2014-03-10 13:26:56.411058656 +0000
+++ ./lib/rpmtag.h	2014-03-10 13:27:49.545058562 +0000
@@ -217,14 +217,14 @@ typedef enum rpmTag_e {
     RPMTAG_PRETRANSPROG		= 1153,	/* s[] */
     RPMTAG_POSTTRANSPROG	= 1154,	/* s[] */
     RPMTAG_DISTTAG		= 1155,	/* s */
-    RPMTAG_OLDSUGGESTSNAME	= 1156,	/* s[] (unimplemented) */
-#define	RPMTAG_OLDSUGGESTS RPMTAG_OLDSUGGESTSNAME /* s[] (unimplemented) */
-    RPMTAG_OLDSUGGESTSVERSION	= 1157,	/* s[] (unimplemented) */
-    RPMTAG_OLDSUGGESTSFLAGS	= 1158,	/* i[] (unimplemented) */
-    RPMTAG_OLDENHANCESNAME		= 1159,	/* s[] (unimplemented) */
-#define	RPMTAG_OLDENHANCES RPMTAG_OLDENHANCESNAME /* s[] (unimplemented) */
-    RPMTAG_OLDENHANCESVERSION	= 1160,	/* s[] (unimplemented) */
-    RPMTAG_OLDENHANCESFLAGS	= 1161,	/* i[] (unimplemented) */
+    RPMTAG_OLDSUGGESTSNAME	= 1156,	/* s[] */
+#define	RPMTAG_OLDSUGGESTS RPMTAG_OLDSUGGESTSNAME /* s[] */
+    RPMTAG_OLDSUGGESTSVERSION	= 1157,	/* s[] */
+    RPMTAG_OLDSUGGESTSFLAGS	= 1158,	/* i[] */
+    RPMTAG_OLDENHANCESNAME		= 1159,	/* s[] */
+#define	RPMTAG_OLDENHANCES RPMTAG_OLDENHANCESNAME /* s[] */
+    RPMTAG_OLDENHANCESVERSION	= 1160,	/* s[] */
+    RPMTAG_OLDENHANCESFLAGS	= 1161,	/* i[] */
     RPMTAG_PRIORITY		= 1162, /* i[] extension placeholder (unimplemented) */
     RPMTAG_CVSID		= 1163, /* s (unimplemented) */
 #define	RPMTAG_SVNID	RPMTAG_CVSID	/* s (unimplemented) */

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-maint mailing list