public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Festi <ffesti@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix compressed patches
Date: Mon, 23 Nov 2026 09:29:30 GMT	[thread overview]
Message-ID: <179542617070.1.16607786645766173874.rpms-rpm-77efb7ee50c3@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 77efb7ee50c3e54d7f76ab8363976cb92092c66e
            Author : Florian Festi <ffesti@redhat.com>
            Date   : 2015-07-27T19:00:10+02:00
            Stats  : +31/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/77efb7ee50c3e54d7f76ab8363976cb92092c66e?branch=pmatilai-v6

            Log:
            - Fix compressed patches
- Resolves: #1247248

---
diff --git a/rpm-4.12.90-Fix-compressed-patches.patch b/rpm-4.12.90-Fix-compressed-patches.patch
new file mode 100644
index 0000000..488198c
--- /dev/null
+++ b/rpm-4.12.90-Fix-compressed-patches.patch
@@ -0,0 +1,26 @@
+From 8fab4539051091f71d88f6b1d8c6660a40d5a5bd Mon Sep 17 00:00:00 2001
+From: Florian Festi <ffesti@redhat.com>
+Date: Mon, 27 Jul 2015 18:52:25 +0200
+Subject: [PATCH] Fix compressed patches
+
+Regression caused by d9f673bf2841bb8c854e6676871078ab563a51c9 caused uncompressed patch content to be printed out to std instead of being piped into patch command.
+---
+ build/parsePrep.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build/parsePrep.c b/build/parsePrep.c
+index 5ba5aee..b94aad2 100644
+--- a/build/parsePrep.c
++++ b/build/parsePrep.c
+@@ -101,7 +101,7 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
+ 
+     /* Avoid the extra cost of fork and pipe for uncompressed patches */
+     if (compressed != COMPRESSED_NOT) {
+-	patchcmd = rpmExpand("%{uncompress: ", fn, "} || echo patch_fail | "
++	patchcmd = rpmExpand("{ %{uncompress: ", fn, "} || echo patch_fail ; } | "
+                              "%{__patch} ", args, NULL);
+     } else {
+ 	patchcmd = rpmExpand("%{__patch} ", args, " < ", fn, NULL);
+-- 
+2.1.0
+

diff --git a/rpm.spec b/rpm.spec
index d39ea44..abdb61d 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}2%{?dist}
+Release: %{?snapver:0.%{snapver}.}3%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -51,6 +51,7 @@ Patch5: rpm-4.12.0-rpm2cpio-hack.patch
 
 # Patches already upstream:
 Patch100: rpm-4.12.90-braces-expansion.patch
+Patch101: rpm-4.12.90-Fix-compressed-patches.patch
 
 # These are not yet upstream
 Patch302: rpm-4.7.1-geode-i686.patch
@@ -535,6 +536,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Jul 27 2015 Florian Festi <ffesti@rpm.org> - 4.12.90-3
+- Fix compressed patches (#1247248)
+
 * Mon Jul 27 2015 Lubos Kardos <lkardos@redhat.com> - 4.12.90-2
 - Enable braces expansion in rpmGlob() (#1246743)
 

                 reply	other threads:[~2026-11-23  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542617070.1.16607786645766173874.rpms-rpm-77efb7ee50c3@fedoraproject.org \
    --to=ffesti@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox