public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - Emergency hack for #1131892
@ 2026-11-23  9:29 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:29 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:29 [rpms/rpm] pmatilai-v6: - Emergency hack for #1131892 Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox