From 122b5f0711ea25b08bd2d42e442e48cf941e1293 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 26 Oct 2011 19:11:55 -0500 Subject: [PATCH 1/2] - Rebuilt for glibc bug#747377 --- make.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make.spec b/make.spec index aa4e0c1..f5aa545 100644 --- a/make.spec +++ b/make.spec @@ -3,7 +3,7 @@ Summary: A GNU tool which simplifies the build process for users Name: make Epoch: 1 Version: 3.82 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ Group: Development/Tools URL: http://www.gnu.org/software/make/ @@ -87,6 +87,9 @@ fi %{_infodir}/*.info* %changelog +* Wed Oct 26 2011 Fedora Release Engineering - 1:3.82-7 +- Rebuilt for glibc bug#747377 + * Tue May 12 2011 Lubomir Rintel - 1:3.82-6 - Fix free-after-use with nested assignments (#703104) From 88ea1307f72bc3623f8ffdc266bd127a672f4258 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 3 Nov 2011 10:33:23 +0100 Subject: [PATCH 2/2] Add a patch for preserving -j across Makefile rebuild --- make-3.82-parallel-remake.patch | 30 ++++++++++++++++++++++++++++++ make.spec | 9 ++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 make-3.82-parallel-remake.patch diff --git a/make-3.82-parallel-remake.patch b/make-3.82-parallel-remake.patch new file mode 100644 index 0000000..878b541 --- /dev/null +++ b/make-3.82-parallel-remake.patch @@ -0,0 +1,30 @@ +Index: main.c +=================================================================== +RCS file: /sources/make/make/main.c,v +retrieving revision 1.247 +retrieving revision 1.246 +diff -u -r1.247 -r1.246 +--- main.c 18 Sep 2011 23:39:26 -0000 1.247 ++++ main.c 29 Aug 2010 23:05:27 -0000 1.246 +@@ -2089,6 +2089,11 @@ + + ++restarts; + ++ /* If we're re-exec'ing the first make, put back the number of ++ job slots so define_makefiles() will get it right. */ ++ if (master_job_slots) ++ job_slots = master_job_slots; ++ + /* Reset makeflags in case they were changed. */ + { + const char *pv = define_makeflags (1, 1); +@@ -2830,9 +2825,6 @@ + && (*(unsigned int *) cs->value_ptr == + *(unsigned int *) cs->noarg_value)) + ADD_FLAG ("", 0); /* Optional value omitted; see below. */ +- else if (cs->c == 'j') +- /* Special case for `-j'. */ +- ADD_FLAG ("1", 1); + else + { + char *buf = alloca (30); diff --git a/make.spec b/make.spec index aa4e0c1..541d682 100644 --- a/make.spec +++ b/make.spec @@ -3,7 +3,7 @@ Summary: A GNU tool which simplifies the build process for users Name: make Epoch: 1 Version: 3.82 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ Group: Development/Tools URL: http://www.gnu.org/software/make/ @@ -19,6 +19,8 @@ Patch8: make-3.82-jobserver.patch Patch9: make-3.82-bugfixes.patch Patch10: make-3.82-sort-blank.patch Patch11: make-3.82-copy-on-expand.patch +# Uptream fix of https://savannah.gnu.org/bugs/?33873 +Patch12: make-3.82-parallel-remake.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -45,6 +47,7 @@ makefile. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p0 %build %configure @@ -87,6 +90,10 @@ fi %{_infodir}/*.info* %changelog +* Thu Nov 3 2011 Petr Machata - 1:3.82-7 +- Add a patch for preserving -j across Makefile rebuild +- Resolves: #698702 + * Tue May 12 2011 Lubomir Rintel - 1:3.82-6 - Fix free-after-use with nested assignments (#703104)