SHA256
3
0
forked from pool/rpm

Accepting request 960499 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX

- use fileprovide /usr/bin/gzip for "rpm-build" to make alternative
  providers possible 

- add leave-malloc-check-set.diff to actually use MALLOC_CHECK_ during
  build

OBS-URL: https://build.opensuse.org/request/show/960499
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=600
This commit is contained in:
Michael Schröder 2022-03-14 11:12:12 +00:00 committed by Git OBS Bridge
parent 0206be8e22
commit 00a20eb1bc
3 changed files with 61 additions and 2 deletions

View File

@ -0,0 +1,46 @@
From 8763969a4a5f19231c0d851e5d50eff614cf5940 Mon Sep 17 00:00:00 2001
Date: Thu, 23 Jan 2020 13:43:36 +0100
Subject: [PATCH] Do not unset $MALLOC_CHECK_
How do we even _know_ user wants to debug malloc in rpmbuild,
maybe user wants to debug it in _the child_?
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
---
build/rpmfc.c | 1 -
lib/rpmscript.c | 3 ---
sign/rpmgensig.c | 1 -
3 files changed, 5 deletions(-)
--- ./build/rpmfc.c
+++ ./build/rpmfc.c
@@ -319,7 +319,6 @@ static int getOutputFrom(ARGV_t argv,
if (buildRoot)
setenv("RPM_BUILD_ROOT", buildRoot, 1);
- unsetenv("MALLOC_CHECK_");
execvp(argv[0], (char *const *)argv);
rpmlog(RPMLOG_ERR, _("Couldn't exec %s: %s\n"),
argv[0], strerror(errno));
--- ./lib/rpmscript.c
+++ ./lib/rpmscript.c
@@ -245,9 +245,6 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes,
}
if (chdir("/") == 0) {
- /* XXX Don't mtrace into children. */
- unsetenv("MALLOC_CHECK_");
-
xx = execv(argv[0], argv);
if (xx) {
rpmlog(RPMLOG_ERR,
--- ./sign/rpmgensig.c
+++ ./sign/rpmgensig.c
@@ -216,7 +216,6 @@ static int runGPG(sigTarget sigt, const char *sigfile)
dup2(pipefd[0], STDIN_FILENO);
close(pipefd[1]);
- unsetenv("MALLOC_CHECK_");
cmd = rpmExpand("%{?__gpg_sign_cmd}", NULL);
rc = poptParseArgvString(cmd, NULL, (const char ***)&av);
if (!rc)

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Mar 8 19:31:27 UTC 2022 - Dirk Müller <dmueller@suse.com>
- use fileprovide /usr/bin/gzip for "rpm-build" to make alternative
providers possible
-------------------------------------------------------------------
Wed Feb 23 22:44:33 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add leave-malloc-check-set.diff to actually use MALLOC_CHECK_ during
build
-------------------------------------------------------------------
Tue Feb 1 12:47:02 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -103,6 +103,7 @@ Patch73: assumeexec.diff
Patch75: rpm-deptracking.patch
Patch77: langnoc.diff
Patch78: headerchk2.diff
Patch79: leave-malloc-check-set.diff
Patch85: brp-compress-no-img.patch
Patch93: weakdepscompat.diff
Patch94: checksepwarn.diff
@ -184,10 +185,10 @@ Requires: gawk
Requires: gcc
#Requires: gcc-PIE
Requires: gettext-tools
Requires: /usr/bin/gzip
Requires: glibc-devel
Requires: glibc-locale-base
Requires: grep
Requires: gzip
Requires: make
Requires: patch
Requires: sed
@ -241,7 +242,7 @@ rm -rf sqlite
%patch -P 43 -P 45 -P 46 -P 47
%patch -P 51
%patch -P 60 -P 61 -P 66 -P 67 -P 69
%patch -P 70 -P 71 -P 73 -P 75 -P 77 -P 78
%patch -P 70 -P 71 -P 73 -P 75 -P 77 -P 78 -P 79
%patch -P 85
%patch -P 93 -P 94 -P 99
%patch -P 100 -P 102 -P 103