Fix brokeness when using %filter_setup (RHBZ #1468476)

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-07-07 11:39:07 +02:00
parent e9309e79ee
commit 3992a6874b
55 changed files with 99 additions and 62 deletions

View File

@ -1,7 +1,7 @@
From 3936d5a227dfcfd502588c6fd8f52ccb826f11c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Wed, 20 Apr 2016 15:39:36 +0200
Subject: [PATCH 01/49] Use correct source file for rpmsign module
Subject: [PATCH 01/54] Use correct source file for rpmsign module
(cherry picked from commit eb632e5158fa4ef993b0e5df2a354f0be7a7a71d)
---

View File

@ -1,7 +1,7 @@
From aa74f749e8eba102069aaafd0b2e18af8f5f0fa0 Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Tue, 14 Feb 2017 14:04:35 +0100
Subject: [PATCH 02/49] brp-python-bytecompile: Process python lib dirs even
Subject: [PATCH 02/54] brp-python-bytecompile: Process python lib dirs even
without standard Python
There is no need for /usr/bin/python when byte compiling files in

View File

@ -1,7 +1,7 @@
From 6e748a4eb167b2ca201d9e90b927cc4523eabeda Mon Sep 17 00:00:00 2001
From: Pavlina Moravcova Varekova <pmoravco@redhat.com>
Date: Tue, 21 Feb 2017 11:48:27 +0100
Subject: [PATCH 03/49] Fix number of references on spec_Type (#114)
Subject: [PATCH 03/54] Fix number of references on spec_Type (#114)
After creating a specPkg from a spec file we must increase spec file
reference counter. Otherwise spec file may be accidentally deallocated

View File

@ -1,7 +1,7 @@
From 46b763e54de34d0dd28d82e3a87b59c6a94a4c07 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Tue, 14 Jun 2016 17:07:12 +0200
Subject: [PATCH 04/49] Add build-id links to rpm for all ELF files.
Subject: [PATCH 04/54] Add build-id links to rpm for all ELF files.
This patch moves the main ELF file build-id symlinks from the
debuginfo package into the main package. And uses different

View File

@ -1,7 +1,7 @@
From 3edae790572203f07a28448fedfda82d0629f4fb Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Tue, 14 Jun 2016 17:07:13 +0200
Subject: [PATCH 05/49] Make it possible to have unique build-ids across build
Subject: [PATCH 05/54] Make it possible to have unique build-ids across build
versions/releases.
Introduce a new macro _unique_build_ids that when set will pass the

View File

@ -1,7 +1,7 @@
From 68a0323ab1738aee40f9f5a60a7fb3163162bf39 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Tue, 14 Jun 2016 17:07:14 +0200
Subject: [PATCH 06/49] Make adding GDB index sections configurable.
Subject: [PATCH 06/54] Make adding GDB index sections configurable.
Introduces _include_gdb_index macro and -i flag to find-debuginfo.sh to
enable or disable adding a .gdb_index section to debug files. Adds tests

View File

@ -1,7 +1,7 @@
From 5b29c09c31982a712844cb2bbcd0bfff09c457d1 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Thu, 16 Jun 2016 14:24:22 +0200
Subject: [PATCH 07/49] Add option to have unique debug file names across
Subject: [PATCH 07/54] Add option to have unique debug file names across
version/release/arch.
Introduce a new macro _unique_debug_names that when set will pass

View File

@ -1,7 +1,7 @@
From a040e812b39d1fcc6aa69ca6aa5ff2fe4316a018 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Mon, 3 Oct 2016 12:36:46 +0300
Subject: [PATCH 08/49] Fix behavior when %_build_id_links is undefined
Subject: [PATCH 08/54] Fix behavior when %_build_id_links is undefined
Commit bbfe1f86b2e4b5c0bd499d9f3dd9de9c9c20fff2 tries to behave sanely
and use compat setting when %_build_id_links is undefined, but

View File

@ -1,7 +1,7 @@
From 932c2170e961d393569992b2f9c3ab8ee415f01b Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Wed, 9 Nov 2016 09:16:48 +0200
Subject: [PATCH 09/49] Fix debuginfo etc when subpackages have different
Subject: [PATCH 09/54] Fix debuginfo etc when subpackages have different
versions (RhBug:1051407)
Rpm has always been a bit dazed and confused when it comes to specs

View File

@ -1,7 +1,7 @@
From 29f756e3fba09f6a66515970978367829862f35c Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Thu, 5 Jan 2017 12:13:54 +0200
Subject: [PATCH 10/49] Only process regular files when generating build-ids
Subject: [PATCH 10/54] Only process regular files when generating build-ids
Versioned shared libraries typically have several symlinks pointing
to them directly and indirectly. When %_build_id_links is set to compat or

View File

@ -1,7 +1,7 @@
From 1b34b839b788264ffcd3ab90a0612cad3b843f7f Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Wed, 10 Aug 2016 13:58:30 +0200
Subject: [PATCH 11/49] configure.ac: use LIBDW always conditionally
Subject: [PATCH 11/54] configure.ac: use LIBDW always conditionally
References: https://bugzilla.redhat.com/show_bug.cgi?id=1365278
Reported-and-tested-by: Neal Gompa <ngompa13@gmail.com>

View File

@ -1,7 +1,7 @@
From f41a0a8c6839e3962e10a7bd3aad39127a764748 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Wed, 24 Aug 2016 17:06:34 +0200
Subject: [PATCH 12/49] Fix libdw configure check.
Subject: [PATCH 12/54] Fix libdw configure check.
commit a82119 "configure.ac: use LIBDW always conditionally" contained
a typo that caused WITH_LIBDW_LIB never to be set when you were using

View File

@ -1,7 +1,7 @@
From ddb7c4abddd746d7ec354fb89be16a2411a92cba Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Mon, 27 Feb 2017 16:28:18 +0100
Subject: [PATCH 13/49] debugedit: Support String/Line table rewriting for
Subject: [PATCH 13/54] debugedit: Support String/Line table rewriting for
larger/smaller paths.
debugedit --base to --dest rewriting of debug source file paths only

View File

@ -1,7 +1,7 @@
From 0febf191cc874a822f045c24587d412e4d0ec33c Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Tue, 28 Feb 2017 21:34:34 +0100
Subject: [PATCH 14/49] Add option to have unique debug source dirs across
Subject: [PATCH 14/54] Add option to have unique debug source dirs across
version/release/arch.
Introduce a new macro _unique_debug_srcs that when set will pass

View File

@ -1,7 +1,7 @@
From 590081d625b22b5845015949ecb184989377c928 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 9 Mar 2017 09:34:01 +0100
Subject: [PATCH 15/49] generateBuildIDs: Don't warn or error for object files
Subject: [PATCH 15/54] generateBuildIDs: Don't warn or error for object files
without build-id.
Only loadable ELF images (executables, shared libraries, kernel modules)

View File

@ -1,7 +1,7 @@
From 5bc9efa303efe933b02cc8679ef3134668839831 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 9 Mar 2017 15:52:12 +0100
Subject: [PATCH 16/49] build/files.c: Unset __debug_package implies missing
Subject: [PATCH 16/54] build/files.c: Unset __debug_package implies missing
build-ids aren't fatal.
Historically we have only checked build_ids when __debug_package was

View File

@ -1,7 +1,7 @@
From fa61c840ba6be18c6579b247605634c1e2a320f8 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 9 Mar 2017 22:13:01 +0100
Subject: [PATCH 17/49] generateBuildIDs: Fix error handling.
Subject: [PATCH 17/54] generateBuildIDs: Fix error handling.
commit e6bdf7 made it so that we don't give a warning or error message
for non-kernel ET_REL object files with missing or bad build-ids. But

View File

@ -1,7 +1,7 @@
From 651264c51dfb13bf78bb969a429719f301497631 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Wed, 15 Mar 2017 20:07:29 +0100
Subject: [PATCH 18/49] Make sure to reset file attributes for generated
Subject: [PATCH 18/54] Make sure to reset file attributes for generated
build-id directories.
[Note this patch is currently being tested in Fedora. See bug below.]

View File

@ -1,7 +1,7 @@
From 20636f4358db0cb85f2251333190626dc2e4ee02 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 19 May 2017 23:11:39 +0200
Subject: [PATCH 19/49] rpmbuild: Reset attrFlags in generateBuildIDs.
Subject: [PATCH 19/54] rpmbuild: Reset attrFlags in generateBuildIDs.
Debuginfo directories and files could be marked as configuration files
if the file list ended with a config file.

View File

@ -1,7 +1,7 @@
From 8e74618100580a1370b9045296c4d2d37340735f Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 16 Mar 2017 22:53:54 +0100
Subject: [PATCH 20/49] debugedit: Fix edit_dwarf2_line replace_dirs ->
Subject: [PATCH 20/54] debugedit: Fix edit_dwarf2_line replace_dirs ->
replace_files typo.
We wouldn't replace the changed file names if replace_dirs was false,

View File

@ -1,7 +1,7 @@
From 430f012c5794873a84db81b93c5858ca96ea4559 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 17 Mar 2017 11:14:00 +0100
Subject: [PATCH 21/49] build/files.c (processPackageFiles): Don't call
Subject: [PATCH 21/54] build/files.c (processPackageFiles): Don't call
generateBuildIDs for noarch.
We don't want to do build-id processing for noarch packages. It might be

View File

@ -1,7 +1,7 @@
From 5598e24ef8aef14727ff72eea71ec460200bc2e3 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 17 Mar 2017 21:03:35 +0100
Subject: [PATCH 22/49] debugedit: Fix cross-endian build-id reading and
Subject: [PATCH 22/54] debugedit: Fix cross-endian build-id reading and
updating section data.
debugedit doesn't read raw mmap data any longer. Which made the complex

View File

@ -1,7 +1,7 @@
From 8cd45c82a968404929e00dce65644f81e906591b Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 3 Mar 2017 23:51:13 +0100
Subject: [PATCH 23/49] tests/tpmbuild.at: Make file sed regexp more strict to
Subject: [PATCH 23/54] tests/tpmbuild.at: Make file sed regexp more strict to
extract BuildID.
In some testcases we extract the BuildID with the file command.

View File

@ -1,7 +1,7 @@
From 58f2b095c0d1507ad09990669f1ae03f6f1d931f Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Mon, 20 Mar 2017 09:55:44 +0100
Subject: [PATCH 24/49] tests/rpmbuildid.at: Make file sed regexp more strict
Subject: [PATCH 24/54] tests/rpmbuildid.at: Make file sed regexp more strict
to extract BuildID.
Like commit f0a5819 for rpmbuild.at. In the case of rpmbuildid.at the

View File

@ -1,7 +1,7 @@
From c21bf3aefdcfb22bc3f41888ef090c6d5a45baec Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Mon, 20 Mar 2017 11:52:00 +0100
Subject: [PATCH 25/49] build/files.c: Only check build-ids for executable
Subject: [PATCH 25/54] build/files.c: Only check build-ids for executable
files in the main package.
generateBuildIDs should mimic what find-debuginfo.sh does. Only check

View File

@ -1,7 +1,7 @@
From 419ae36f2c0dad195737982b446fcace507d0814 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Tue, 21 Mar 2017 16:57:44 +0100
Subject: [PATCH 26/49] debugedit: Fix off-by-one adding DW_FORM_string
Subject: [PATCH 26/54] debugedit: Fix off-by-one adding DW_FORM_string
replacement slashes.
We would put one too many slashes in between the new dest_dir and file name

View File

@ -1,7 +1,7 @@
From 6328e1e0da3ba26885f095ccbd83d223d5830527 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Thu, 5 Jan 2017 13:47:28 +0200
Subject: [PATCH 27/49] Unbreak short-circuited binary builds
Subject: [PATCH 27/54] Unbreak short-circuited binary builds
Commit bbfe1f86b2e4b5c0bd499d9f3dd9de9c9c20fff2 broke short-circuited
binary builds (which can be handy for testing when working on large

View File

@ -1,7 +1,7 @@
From 349489c3219e31efd552d87e255b06a864d1c034 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Sun, 16 Apr 2017 18:16:02 +0200
Subject: [PATCH 28/49] find-debuginfo.sh: Only add minisymtab for executables
Subject: [PATCH 28/54] find-debuginfo.sh: Only add minisymtab for executables
or shared libraries.
It only makes sense to add a minisymtab for executables and shared

View File

@ -1,7 +1,7 @@
From 525282b9a8b78c2890c752e45c4dc7dcf25f42cb Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Sun, 16 Apr 2017 18:16:46 +0200
Subject: [PATCH 29/49] debugedit: Add -n, --no-recompute-build-id.
Subject: [PATCH 29/54] debugedit: Add -n, --no-recompute-build-id.
Some packages depend on the build-ids as generated during the build
and cannot handle rpmbuild recomputing them before generating the

View File

@ -1,7 +1,7 @@
From ba8f2239de528f02d272aed71599a4a560ddd238 Mon Sep 17 00:00:00 2001
From: Robin Lee <cheeselee@fedoraproject.org>
Date: Sat, 8 Apr 2017 21:21:39 +0800
Subject: [PATCH 30/49] Fix non-standard inherented modes of directories in
Subject: [PATCH 30/54] Fix non-standard inherented modes of directories in
debuginfo
In case that binary compiled from source generated in /tmp, a

View File

@ -1,7 +1,7 @@
From 387acd5cb74c968b4751a1c2c731964fc1ab6c3f Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 21 Apr 2017 17:33:26 +0200
Subject: [PATCH 31/49] debugedit: Only output comp_dir under build dir (once).
Subject: [PATCH 31/54] debugedit: Only output comp_dir under build dir (once).
The fix for rhbz#444310 (commit c1a5eb - Include empty CU current dirs)
was a little greedy. It would also include comp_dirs outside the build

View File

@ -1,7 +1,7 @@
From 534fae47e4d05fd27c277c9e04ad238e608289f5 Mon Sep 17 00:00:00 2001
From: Michal Marek <mmarek@suse.com>
Date: Sat, 10 Sep 2016 23:13:24 +0200
Subject: [PATCH 32/49] find-debuginfo.sh: Split directory traversal and
Subject: [PATCH 32/54] find-debuginfo.sh: Split directory traversal and
debuginfo extraction
This siplifies the handling of hardlinks a bit and allows a later patch

View File

@ -1,7 +1,7 @@
From 3e0419ebc11494d9848decfdfb4909cbce9448b7 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Wed, 28 Jun 2017 14:21:32 +0200
Subject: [PATCH 33/49] find-debuginfo.sh: Use 'return', not 'continue', to
Subject: [PATCH 33/54] find-debuginfo.sh: Use 'return', not 'continue', to
break out do_file().
commit 038bfe "Split directory traversal and debuginfo extraction"

View File

@ -1,7 +1,7 @@
From aede94115e077e87504b03bf668ef375290200ad Mon Sep 17 00:00:00 2001
From: Michal Marek <mmarek@suse.com>
Date: Sat, 10 Sep 2016 23:13:25 +0200
Subject: [PATCH 34/49] find-debuginfo.sh: Process files in parallel
Subject: [PATCH 34/54] find-debuginfo.sh: Process files in parallel
Add a -j <n> option, which, when used, will spawn <n> processes to do the
debuginfo extraction in parallel. A pipe is used to dispatch the files among

View File

@ -1,7 +1,7 @@
From ac275c650fee13ec0fd204bf2b05fbff01a053cd Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Tue, 28 Mar 2017 14:20:50 +0200
Subject: [PATCH 35/49] Untangle unique build options in find-debuginfo.sh
Subject: [PATCH 35/54] Untangle unique build options in find-debuginfo.sh
Rename --ver-rel option to --build-id-seed, so that it reflects what
it does, not how it is used.

View File

@ -1,7 +1,7 @@
From 01145b9b68b89d0d4d6d5a77d9af70dba7dbc9a3 Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Tue, 28 Mar 2017 14:21:40 +0200
Subject: [PATCH 36/49] Support debugsource subpackages
Subject: [PATCH 36/54] Support debugsource subpackages
This can be enabled by setting the _debugsource_packages macro.

View File

@ -1,7 +1,7 @@
From bc5c404e7415108f15a8cd5e8514a74b43a7755a Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Fri, 24 Mar 2017 15:35:23 +0100
Subject: [PATCH 37/49] Support debuginfo subpackages
Subject: [PATCH 37/54] Support debuginfo subpackages
We do this by filtering the debuginfo files generated by find-debuginfo.sh
with the files from the (sub)packages.

View File

@ -1,7 +1,7 @@
From 9f826d903dabbc2ce199560e296224c320bb840f Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Wed, 29 Mar 2017 14:55:10 +0200
Subject: [PATCH 38/49] Also add directories to split debuginfo packages
Subject: [PATCH 38/54] Also add directories to split debuginfo packages
This gets rid of the last difference between debuginfo subpackages
and normal debuginfo packages.

View File

@ -1,7 +1,7 @@
From faaf3bbfc261f49eda996801b50996fb1066092f Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Wed, 28 Jun 2017 20:25:39 +0200
Subject: [PATCH 39/49] debugedit: skip_dir_prefix should check for dir
Subject: [PATCH 39/54] debugedit: skip_dir_prefix should check for dir
separator.
To count as a real directory prefix the string matched should either

View File

@ -1,7 +1,7 @@
From b4d166652011f0d0e8573feb616283698f6cf848 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Wed, 28 Jun 2017 13:34:55 +0200
Subject: [PATCH 40/49] find-debuginfo.sh: Filter out all <built-in> like fake
Subject: [PATCH 40/54] find-debuginfo.sh: Filter out all <built-in> like fake
file names.
There is no official way to mark an instruction range as being not

View File

@ -1,7 +1,7 @@
From f22cb2890026544499ee4f1a309a44c71e0b8152 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Mon, 26 Jun 2017 17:38:30 +0200
Subject: [PATCH 41/49] find-debuginfo.sh: Don't create dwz multi file if there
Subject: [PATCH 41/54] find-debuginfo.sh: Don't create dwz multi file if there
is only one .debug.
dwz -m multi only works when there are multiple .debug input files.

View File

@ -1,7 +1,7 @@
From 201b856c02aeb3c4fc6b3a8b96ce8817278f4fbf Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Mon, 26 Jun 2017 13:35:48 +0200
Subject: [PATCH 42/49] Update find-debuginfo.sh options and macros
Subject: [PATCH 42/54] Update find-debuginfo.sh options and macros
documentation.
This adds some missing documentation for rpm macros and find-debuginfo.sh

View File

@ -1,7 +1,7 @@
From 709e675cdf0c8f9b07507aad12400398f354cc90 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Mon, 16 Jan 2017 09:19:43 -0500
Subject: [PATCH 43/49] Add OpenSSL support for digest and signatures
Subject: [PATCH 43/54] Add OpenSSL support for digest and signatures
Autotools: add --with-crypto=openssl
This enables RPM to locate the appropriate flags for compiling

View File

@ -1,7 +1,7 @@
From 287cda21a5594ad41ffbd29eb01022f314637bdf Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Tue, 28 Feb 2017 10:57:56 +0100
Subject: [PATCH 44/49] Use RPMTAG_*NAME instead of RPMTAG_*FLAGS in
Subject: [PATCH 44/54] Use RPMTAG_*NAME instead of RPMTAG_*FLAGS in
parsePreamble.c and parseRCPOT()
Using the FLGS tags is awkward and inconsistent with other part of the code

View File

@ -1,7 +1,7 @@
From 4fb394a677c17a33c7e3f3455a1a6c109200b87e Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Tue, 28 Feb 2017 17:42:21 +0100
Subject: [PATCH 45/49] Fix check for weak deps in external dependency
Subject: [PATCH 45/54] Fix check for weak deps in external dependency
generator
(cherry picked from commit 43d230884365d90d42184a0000f44bb33e5f1ab8)

View File

@ -1,7 +1,7 @@
From 9a316cbeb61549b3004692c9dd8437b9fa805e74 Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Thu, 9 Mar 2017 12:12:32 +0100
Subject: [PATCH 46/49] Fix check whether to allow rich deps in a given tag
Subject: [PATCH 46/54] Fix check whether to allow rich deps in a given tag
Broken with 9d5bbd9774d00f50749bb045217eaf91c87b6de0

View File

@ -1,7 +1,7 @@
From 27c263a877dd4bfac12ae716038dfbb0a305625b Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Thu, 9 Mar 2017 14:02:10 +0100
Subject: [PATCH 47/49] Re-enable rich dependecies for build requires and
Subject: [PATCH 47/54] Re-enable rich dependecies for build requires and
conflicts
(cherry picked from commit cb3dc0b43bd9a119196a527504d03d57d0785092)

View File

@ -1,7 +1,7 @@
From c1ed362facbab3d08b5576950d4c6a68cfae9e75 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Sat, 25 Feb 2017 12:28:16 +0100
Subject: [PATCH 48/49] add support for rich dependencies from dependency
Subject: [PATCH 48/54] add support for rich dependencies from dependency
generators
Mostly achieved by replacing custom parser with the parseRCPOT().

View File

@ -1,7 +1,7 @@
From d6a1e94f18d2f73e7b03025d891aa7e407cb169a Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Wed, 31 May 2017 10:42:03 +0200
Subject: [PATCH 49/49] Pass proper file index when recording generated
Subject: [PATCH 49/54] Pass proper file index when recording generated
dependencies
Resolves regression introduced with 8f509d6

View File

@ -1,7 +1,7 @@
From c24003b77926967589546681ef893e4e11f6b77f Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Fri, 19 May 2017 11:01:12 +0300
Subject: [PATCH 50/53] Consolidate %defattr/%attr(-,root,root) generation to
Subject: [PATCH 50/54] Consolidate %defattr/%attr(-,root,root) generation to
helper function
(cherry picked from commit b71d63ef598cb5bf504265a18166d782fb017569)
@ -10,7 +10,7 @@ Subject: [PATCH 50/53] Consolidate %defattr/%attr(-,root,root) generation to
1 file changed, 24 insertions(+), 9 deletions(-)
diff --git a/build/files.c b/build/files.c
index f27dcc7..e93efeb 100644
index f27dcc7c1..e93efebd7 100644
--- a/build/files.c
+++ b/build/files.c
@@ -193,6 +193,16 @@ static void dupAttrRec(const AttrRec oar, AttrRec nar)
@ -98,5 +98,5 @@ index f27dcc7..e93efeb 100644
path = _free(path);
ret = 1;
--
2.9.4
2.13.2

View File

@ -1,7 +1,7 @@
From bc5990647ad94fcb4acdb68612e16fe514ee59b7 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 29 Jun 2017 13:26:24 +0200
Subject: [PATCH 51/53] Extract package file list processing in separate
Subject: [PATCH 51/54] Extract package file list processing in separate
functions.
Extract two functions resetPackageFilesDefaults() and addPackageFileList()
@ -15,7 +15,7 @@ Signed-off-by: Mark Wielaard <mark@klomp.org>
1 file changed, 107 insertions(+), 63 deletions(-)
diff --git a/build/files.c b/build/files.c
index e93efeb..8baf85e 100644
index e93efebd7..8baf85e9d 100644
--- a/build/files.c
+++ b/build/files.c
@@ -2307,45 +2307,35 @@ static void processSpecialDir(rpmSpec spec, Package pkg, FileList fl,
@ -255,5 +255,5 @@ index e93efeb..8baf85e 100644
specialDirFree(specialDoc);
specialDirFree(specialLic);
--
2.9.4
2.13.2

View File

@ -1,7 +1,7 @@
From 97ad525723d0c9af382acadc823b6a744d5426cf Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 29 Jun 2017 13:26:25 +0200
Subject: [PATCH 52/53] Use a file list to add build-id files to pkgList.
Subject: [PATCH 52/54] Use a file list to add build-id files to pkgList.
Change the generation of build-id files to a file list using ARGV_t.
First go through the current package list and generate a files list.
@ -15,7 +15,7 @@ Signed-off-by: Mark Wielaard <mark@klomp.org>
1 file changed, 33 insertions(+), 41 deletions(-)
diff --git a/build/files.c b/build/files.c
index 8baf85e..e88a5d2 100644
index 8baf85e9d..e88a5d24d 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1576,6 +1576,15 @@ exit:
@ -189,5 +189,5 @@ index 8baf85e..e88a5d2 100644
* a (possibly new) debuginfo subpackage */
static void filterDebuginfoPackage(rpmSpec spec, Package pkg,
--
2.9.4
2.13.2

View File

@ -1,7 +1,7 @@
From 13369a562f5cba34779e238b2d6ae0b683ff3b1e Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Thu, 29 Jun 2017 13:26:26 +0200
Subject: [PATCH 53/53] Change mkattr to always create a %defattr with
Subject: [PATCH 53/54] Change mkattr to always create a %defattr with
explicitly set modes.
mkattr used "-" as default mode which would pick up the mode for files
@ -23,7 +23,7 @@ Signed-off-by: Mark Wielaard <mark@klomp.org>
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/build/files.c b/build/files.c
index e88a5d2..2927492 100644
index e88a5d24d..29274926c 100644
--- a/build/files.c
+++ b/build/files.c
@@ -193,13 +193,12 @@ static void dupAttrRec(const AttrRec oar, AttrRec nar)
@ -81,5 +81,5 @@ index e88a5d2..2927492 100644
free(attr);
}
--
2.9.4
2.13.2

View File

@ -0,0 +1,30 @@
From e7462b81f69933f531ee6905681a24ac61e11bf6 Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti@redhat.com>
Date: Fri, 7 Jul 2017 11:30:42 +0200
Subject: [PATCH 54/54] rpmfc: fix ternary operator
Fixes: 9d5bbd9774d00f50749bb045217eaf91c87b6de0
References: https://bugzilla.redhat.com/show_bug.cgi?id=1468476
Tested-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Signed-off-by: Florian Festi <ffesti@redhat.com>
(cherry picked from commit cbb062963b535186a461dfc9e03558a72ec8004d)
---
build/rpmfc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/rpmfc.c b/build/rpmfc.c
index 72f29ddf5..271bfbea8 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -1259,7 +1259,7 @@ static rpmRC rpmfcApplyExternal(rpmfc fc)
}
/* Parse dependencies into header */
- rc = parseRCPOT(NULL, fc->pkg, getStringBuf(sb_stdout), dm->ntag ? dm->ntag != -1 : RPMTAG_REQUIRENAME, 0, tagflags, addReqProvPkg, NULL);
+ rc = parseRCPOT(NULL, fc->pkg, getStringBuf(sb_stdout), dm->ntag != -1 ? dm->ntag : RPMTAG_REQUIRENAME, 0, tagflags, addReqProvPkg, NULL);
freeStringBuf(sb_stdout);
if (rc) {
--
2.13.2

View File

@ -33,7 +33,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
Release: %{?snapver:0.%{snapver}.}29%{?dist}
Release: %{?snapver:0.%{snapver}.}30%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
@ -138,6 +138,10 @@ Patch321: 0051-Extract-package-file-list-processing-in-separate-fun.patch
Patch322: 0052-Use-a-file-list-to-add-build-id-files-to-pkgList.patch
Patch323: 0053-Change-mkattr-to-always-create-a-defattr-with-explic.patch
# Fix regression from 0044-Use-RPMTAG_-NAME-instead-of-RPMTAG_-FLAGS-in-parsePr.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1468476
Patch330: 0054-rpmfc-fix-ternary-operator.patch
# These are not yet upstream
Patch902: rpm-4.7.1-geode-i686.patch
# Probably to be upstreamed in slightly different form
@ -636,6 +640,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
* Fri Jul 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.13.0.1-30
- Fix brokeness when using %%filter_setup (RHBZ #1468476)
* Tue Jul 04 2017 Mark Wielaard <mjw@fedoraproject.org> - 4.13.0.1-29
- Track patches using https://pagure.io/rpm-fedora
- Use file list to explicitly set mode for build-id dirs/files