basebuilder_pel7x64builder0
4 years ago
5 changed files with 99 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||||||
|
--- rpm-4.11.3/scripts/find-debuginfo.sh.old 2019-07-26 10:03:50.390264038 +0200 |
||||||
|
+++ rpm-4.11.3/scripts/find-debuginfo.sh 2019-07-26 10:24:12.540154792 +0200 |
||||||
|
@@ -109,7 +109,7 @@ |
||||||
|
shift |
||||||
|
done |
||||||
|
|
||||||
|
-if ("$strip_g" = "true") && ("$strip_glibs" = "true"); then |
||||||
|
+if [ "$strip_g" = "true" ] && [ "$strip_glibs" = "true" ]; then |
||||||
|
echo >&2 "*** ERROR: -g and --g-libs cannot be used together" |
||||||
|
exit 2 |
||||||
|
fi |
@ -0,0 +1,13 @@ |
|||||||
|
diff -up rpm-4.11.3/lib/depends.c.dependson rpm-4.11.3/lib/depends.c |
||||||
|
--- rpm-4.11.3/lib/depends.c.dependson 2019-10-04 10:46:35.399545965 +0300 |
||||||
|
+++ rpm-4.11.3/lib/depends.c 2019-10-04 10:47:10.693542015 +0300 |
||||||
|
@@ -117,7 +117,8 @@ static int removePackage(rpmts ts, Heade |
||||||
|
tsmem->order = xrealloc(tsmem->order, sizeof(*tsmem->order) * tsmem->orderAlloced); |
||||||
|
} |
||||||
|
|
||||||
|
- rpmteSetDependsOn(p, depends); |
||||||
|
+ if (depends) |
||||||
|
+ rpmteSetDependsOn(p, depends); |
||||||
|
|
||||||
|
tsmem->order[tsmem->orderCount] = p; |
||||||
|
tsmem->orderCount++; |
@ -0,0 +1,21 @@ |
|||||||
|
--- rpm-4.11.3/lib/fprint.c.old 2014-02-05 14:04:01.000000000 +0100 |
||||||
|
+++ rpm-4.11.3/lib/fprint.c 2019-08-21 16:28:03.255538275 +0200 |
||||||
|
@@ -484,7 +484,7 @@ |
||||||
|
(void) rpmdbCheckSignals(); |
||||||
|
|
||||||
|
if ((fi = rpmteFI(p)) == NULL) |
||||||
|
- continue; /* XXX can't happen */ |
||||||
|
+ continue; |
||||||
|
|
||||||
|
(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0); |
||||||
|
rpmfiFpLookup(fi, fpc); |
||||||
|
@@ -518,6 +518,9 @@ |
||||||
|
while ((p = rpmtsiNext(pi, 0)) != NULL) { |
||||||
|
(void) rpmdbCheckSignals(); |
||||||
|
|
||||||
|
+ if ((fi = rpmteFI(p)) == NULL) |
||||||
|
+ continue; |
||||||
|
+ |
||||||
|
fs = rpmteGetFileStates(p); |
||||||
|
fc = rpmfsFC(fs); |
||||||
|
(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0); |
@ -0,0 +1,29 @@ |
|||||||
|
From 655c4c72a3467037abd51aab29f0300e97caf54c Mon Sep 17 00:00:00 2001 |
||||||
|
From: Stepan Broz <sbroz@redhat.com> |
||||||
|
Date: Thu, 25 Jul 2019 11:00:47 +0200 |
||||||
|
Subject: [PATCH] rpmpgp: Handle EOF without EOL better at END PGP |
||||||
|
|
||||||
|
--- |
||||||
|
rpmio/rpmpgp.c | 5 +++-- |
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-) |
||||||
|
|
||||||
|
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c |
||||||
|
index 061751a4d..46cd0f31a 100644 |
||||||
|
--- a/rpmio/rpmpgp.c |
||||||
|
+++ b/rpmio/rpmpgp.c |
||||||
|
@@ -1289,9 +1289,10 @@ static pgpArmor decodePkts(uint8_t *b, uint8_t **pkt, size_t *pktlen) |
||||||
|
goto exit; |
||||||
|
} |
||||||
|
t += (sizeof("-----")-1); |
||||||
|
- if (t >= te) continue; |
||||||
|
+ /* Handle EOF without EOL here, *t == '\0' at EOF */ |
||||||
|
+ if (*t && (t >= te)) continue; |
||||||
|
/* XXX permitting \r here is not RFC-2440 compliant <shrug> */ |
||||||
|
- if (!(*t == '\n' || *t == '\r')) continue; |
||||||
|
+ if (!(*t == '\n' || *t == '\r' || *t == '\0')) continue; |
||||||
|
|
||||||
|
crcdec = NULL; |
||||||
|
crclen = 0; |
||||||
|
-- |
||||||
|
2.26.2 |
||||||
|
|
Loading…
Reference in new issue