Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 87cfc0db1ed6fe381a5ed5f0016d8c3344a31a11 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Mon, 9 Jan 2017 18:52:11 +0200 |
| 4 | Subject: [PATCH] Do not add an unsatisfiable dependency when building rpms in |
| 5 | a short-circuited way. |
| 6 | |
| 7 | Upstream permits short-circuiting only for local testing; Yocto on the other |
| 8 | hand produces rpms that way by design. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 12 | --- |
| 13 | build/pack.c | 4 ---- |
| 14 | 1 file changed, 4 deletions(-) |
| 15 | |
| 16 | diff --git a/build/pack.c b/build/pack.c |
| 17 | index 1261cdbba..bb2d6f4f6 100644 |
| 18 | --- a/build/pack.c |
| 19 | +++ b/build/pack.c |
| 20 | @@ -595,10 +595,6 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating) |
| 21 | headerPutBin(pkg->header, RPMTAG_SOURCEPKGID, spec->sourcePkgId,16); |
| 22 | } |
| 23 | |
| 24 | - if (cheating) { |
| 25 | - (void) rpmlibNeedsFeature(pkg, "ShortCircuited", "4.9.0-1"); |
| 26 | - } |
| 27 | - |
| 28 | { char *binFormat = rpmGetPath("%{_rpmfilename}", NULL); |
| 29 | char *binRpm, *binDir; |
| 30 | binRpm = headerFormat(pkg->header, binFormat, &errorString); |
| 31 | -- |
| 32 | 2.11.0 |
| 33 | |