X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-5.4.10-support-ignore-arch-and-os-again.patch;fp=rpm-5.4.10-support-ignore-arch-and-os-again.patch;h=0000000000000000000000000000000000000000;hb=98d9fc8e9cc559da146eb1be26fab0359a01a5c2;hp=0708d04276ecd5b73388ae6c5396df31b08f6960;hpb=6507ff6c2929510c211276aa5b9cd1450aa9bb11;p=packages%2Frpm.git diff --git a/rpm-5.4.10-support-ignore-arch-and-os-again.patch b/rpm-5.4.10-support-ignore-arch-and-os-again.patch deleted file mode 100644 index 0708d04..0000000 --- a/rpm-5.4.10-support-ignore-arch-and-os-again.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- rpm-5.4.10/lib/depends.c.ignore_arch~ 2012-07-27 21:11:47.463139875 +0200 -+++ rpm-5.4.10/lib/depends.c 2012-07-27 21:29:21.811958701 +0200 -@@ -587,11 +587,24 @@ int rpmtsAddInstallElement(rpmts ts, Hea - if (nplatpat > 1) { - const char * platform = NULL; - -- he->tag = RPMTAG_PLATFORM; -- xx = headerGet(h, he, 0); -- platform = he->p.str; -- if (!xx || platform == NULL) -- platform = rpmExpand(arch, "-unknown-", os, NULL); -+ /* -+ * If ignore arch, we just set the arch in package platform string to -+ * same as on system so that we're sure that it'll match, same goes for -+ * os as well. -+ */ -+ if (rpmExpandNumeric("%{__ignore_arch}") || rpmExpandNumeric("%{__ignore_os}")) { -+ platform = rpmExpand( -+ rpmExpandNumeric("%{__ignore_arch}") ? "%{_target_cpu}" : arch, -+ "-unknown-", -+ rpmExpandNumeric("%{__ignore_os}") ? "%{_target_os}" : os, -+ NULL); -+ } else { -+ he->tag = RPMTAG_PLATFORM; -+ xx = headerGet(h, he, 0); -+ platform = he->p.str; -+ if (!xx || platform == NULL) -+ platform = rpmExpand(arch, "-unknown-", os, NULL); -+ } - - rc = rpmPlatformScore(platform, platpat, nplatpat); - #if defined(RPM_VENDOR_MANDRIVA) ---- rpm-5.4.10/rpmpopt.in.ignore_arch~ 2012-07-27 21:29:07.687135285 +0200 -+++ rpm-5.4.10/rpmpopt.in 2012-07-27 21:29:35.399788829 +0200 -@@ -431,6 +431,10 @@ rpm alias --without --define "_without_ - - rpm alias --arch --qf '%-34{=NAME}\t%{ARCH}\n' \ - --POPTdesc=$"list package architecture" -+ -+rpm alias --ignorearch --define '__ignore_arch 1' -+rpm alias --ignoreos --define '__ignore_os 1' -+ - #============================================================================== - rpmbuild alias --dbpath --define '_dbpath !#:+' \ - --POPTdesc=$"use database in DIRECTORY" \