blob: 0f391d213a81afe751afac2390a77449021d3571 (
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
25
26
27
28
|
Don't add the first line of /etc/rpm/platform to the list of patterns
to match when computing an arch score, use it just for getting
information about the platform (cpu/vendor/os). Fixes #3864.
Upstream-Status: Inappropriate [embedded specific]
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index e676601..9140bbe 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -510,6 +510,7 @@ static rpmRC rpmPlatform(const char * platform)
#endif
}
+#if !defined(RPM_VENDOR_POKY) /* Skip the explicit-platform */
#if defined(RPM_VENDOR_OPENPKG) /* explicit-platform */
/* do not use vendor and GNU attribution */
p = rpmExpand("%{_host_cpu}-%{_host_os}", NULL);
@@ -520,7 +521,8 @@ static rpmRC rpmPlatform(const char * platform)
#endif
xx = mireAppend(RPMMIRE_STRCMP, 0, p, NULL, &mi_re, &mi_nre);
p = _free(p);
-
+#endif
+
init_platform++;
}
rc = (init_platform ? RPMRC_OK : RPMRC_FAIL);
|