aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-lsb-compatibility.patch
blob: 7101e5cbda07a9937c195b3984ce06e0e2790559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Enable platform tag matching workaround in OE.

When installing some LSB packages the 'platform' field in the package
appears to be invalid.  Instead of relying solely on the platform comparison
we also want to generate a perceived platform based on the valid rpm contents
of arch and os.

Upstream-Status: Pending

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm-5.4.9/lib/depends.c
===================================================================
--- rpm-5.4.9.orig/lib/depends.c
+++ rpm-5.4.9/lib/depends.c
@@ -594,7 +594,7 @@ int rpmtsAddInstallElement(rpmts ts, Hea
 	    platform = rpmExpand(arch, "-unknown-", os, NULL);
 
 	rc = rpmPlatformScore(platform, platpat, nplatpat);
-#if defined(RPM_VENDOR_MANDRIVA)
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_OE)
 	/*
 	 * If no match on platform tag, we'll try again with arch tag
 	 * in case platform tag is inconsistent with it, which is the case