public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Emergency hack for #1131892
Date: Mon, 23 Nov 2026 09:29:04 GMT	[thread overview]
Message-ID: <179542614421.1.5992329492354477651.rpms-rpm-c14ac95363d2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : c14ac95363d292bb46e46b309ac1d98d80be9791
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2014-08-20T11:55:23+03:00
Stats  : +35/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/c14ac95363d292bb46e46b309ac1d98d80be9791?branch=pmatilai-v6

Log:
- Emergency hack for #1131892

---
diff --git a/rpm-4.12-beta-rpmdeps.patch b/rpm-4.12-beta-rpmdeps.patch
new file mode 100644
index 0000000..2637937
--- /dev/null
+++ b/rpm-4.12-beta-rpmdeps.patch
@@ -0,0 +1,29 @@
+diff --git a/build/rpmfc.c b/build/rpmfc.c
+index e798950..94089e5 100644
+--- a/build/rpmfc.c
++++ b/build/rpmfc.c
+@@ -760,6 +760,7 @@ rpmfc rpmfcCreate(const char *buildRoot, rpmFlags flags)
+ 	fc->buildRoot = xstrdup(buildRoot);
+ 	fc->brlen = strlen(buildRoot);
+     }
++    fc->pkg = xcalloc(1, sizeof(*fc->pkg));
+     fc->pool = rpmstrPoolCreate();
+     return fc;
+ }
+@@ -1263,6 +1264,7 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
+     av[ac] = NULL;
+ 
+     fc = rpmfcCreate(spec->buildRoot, 0);
++    free(fc->pkg); /* XXX HACK */
+     fc->pkg = pkg;
+     fc->skipProv = !pkg->autoProv;
+     fc->skipReq = !pkg->autoReq;
+@@ -1337,6 +1339,8 @@ exit:
+ 
+     /* Clean up. */
+     free(fmode);
++    if (fc)
++	fc->pkg = NULL; /* XXX HACK */
+     rpmfcFree(fc);
+     argvFree(av);
+     rpmfiFree(fi);

diff --git a/rpm.spec b/rpm.spec
index 63da7aa..592d872 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}.}3%{?dist}
+Release: %{?snapver:0.%{snapver}.}4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -52,6 +52,8 @@ Patch100: rpm-4.12-beta1-fix-buildrequires.patch
 Patch101: rpm-4.12-beta1-spec-header-deps.patch
 
 # These are not yet upstream
+# Emergency hack for rpmdeps crash (#1131892)
+Patch300: rpm-4.12-beta-rpmdeps.patch
 Patch302: rpm-4.7.1-geode-i686.patch
 # Probably to be upstreamed in slightly different form
 Patch304: rpm-4.9.1.1-ld-flags.patch
@@ -528,6 +530,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Wed Aug 20 2014 Panu Matilainen <pmatilai@redhat.com> - 4.12.0-0.beta1.4
+- Emergency hack for #1131892
+
 * Mon Aug 18 2014 Panu Matilainen <pmatilai@redhat.com> - 4.12.0-0.beta1.3
 - Fix regression on rpmspec dependency queries
 

                 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=179542614421.1.5992329492354477651.rpms-rpm-c14ac95363d2@fedoraproject.org \
    --to=pmatilai@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