Blame SPECS/make.spec

b7955a
# -*- coding: utf-8 -*-
b7955a
%{?scl:%scl_package make}
b7955a
Summary: A GNU tool which simplifies the build process for users
b7955a
Name: %{?scl_prefix}make
b7955a
Epoch: 1
b7955a
Version: 4.2.1
b7955a
Release: 2%{?dist}
b7955a
License: GPLv2+
b7955a
Group: Development/Tools
b7955a
URL: http://www.gnu.org/software/make/
b7955a
Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.bz2
b7955a
b7955a
Patch1: make-4.2-noclock_gettime.patch
b7955a
Patch2: make-4.2-j8k.patch
b7955a
Patch3: make-4.2-getcwd.patch
b7955a
b7955a
# drop this as error reporting has been re-written upstream
b7955a
# removing the need for this patch
b7955a
# Patch4: make-4.0-err-reporting.patch
b7955a
b7955a
# Upstream: https://savannah.gnu.org/bugs/?30748
b7955a
Patch5: make-4.2-weird-shell.patch
b7955a
b7955a
Patch6: make-4.2-newlines.patch
b7955a
b7955a
# http://savannah.gnu.org/bugs/?34335
b7955a
Patch7: make-4.2-warn_undefined_function.patch
b7955a
b7955a
# http://lists.gnu.org/archive/html/bug-make/2011-06/msg00032.html
b7955a
Patch8: make-4.2-trace.patch
b7955a
b7955a
# Buildroot: %(mktemp -ud %{_tmppath}/make-%{version}-%{release}-XXXXXX)
b7955a
BuildRoot: %{_tmppath}/make-%{version}-%{release}-root-%(%{__id_u} -n)
b7955a
Requires(post): /sbin/install-info
b7955a
Requires(preun): /sbin/install-info
b7955a
BuildRequires: procps
b7955a
BuildRequires: perl
b7955a
%{?scl:Requires:%scl_runtime}
b7955a
b7955a
%description
b7955a
A GNU tool for controlling the generation of executables and other
b7955a
non-source files of a program from the program's source files. Make
b7955a
allows users to build and install packages without any significant
b7955a
knowledge about the details of the build process. The details about
b7955a
how the program should be built are provided for make in the program's
b7955a
makefile.
b7955a
b7955a
%prep
b7955a
echo "STARTING PREP of make"
b7955a
%setup -q -n make-%{version}
b7955a
%patch1 -p1
b7955a
%patch2 -p1
b7955a
%patch3 -p1
b7955a
#%patch4 -p1
b7955a
%patch5 -p1
b7955a
%patch6 -p1
b7955a
%patch7 -p1
b7955a
%patch8 -p1
b7955a
b7955a
rm -f tests/scripts/features/parallelism.orig
b7955a
b7955a
# Disable the output-sync test until upstream resolves timeout issue.
b7955a
rm -f tests/scripts/features/output-sync
b7955a
b7955a
%build
b7955a
echo "STARTING CONFIGURE of make"
b7955a
%configure
b7955a
echo "STARTING MAKE of make"
b7955a
make %{?_smp_mflags}
b7955a
b7955a
%install
b7955a
rm -rf ${RPM_BUILD_ROOT}
b7955a
make DESTDIR=$RPM_BUILD_ROOT install
b7955a
ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake
b7955a
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
b7955a
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
b7955a
b7955a
%find_lang make
b7955a
b7955a
%check
b7955a
echo ============TESTING===============
b7955a
/usr/bin/env LANG=C make check
b7955a
echo ============END TESTING===========
b7955a
b7955a
%clean
b7955a
rm -rf ${RPM_BUILD_ROOT}
b7955a
b7955a
%post
b7955a
if [ -f %{_infodir}/make.info.gz ]; then # for --excludedocs
b7955a
   /sbin/install-info %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make).                 The GNU make utility." || :
b7955a
fi
b7955a
b7955a
%preun
b7955a
if [ $1 = 0 ]; then
b7955a
   if [ -f %{_infodir}/make.info.gz ]; then # for --excludedocs
b7955a
      /sbin/install-info --delete %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make).                 The GNU make utility." || :
b7955a
   fi
b7955a
fi
b7955a
b7955a
%files  -f make.lang
b7955a
%defattr(-,root,root)
b7955a
%doc NEWS README COPYING AUTHORS
b7955a
%{_bindir}/*
b7955a
%{_mandir}/man*/*
b7955a
%{_infodir}/*.info*
b7955a
%{_includedir}/gnumake.h
b7955a
b7955a
%changelog
b7955a
* Tue Jun 13 2017 Patsy Franklin <pfrankli@redhat.com> - 4.2.1-2
b7955a
- After rebase, output-sync test can randomly timeout.  
b7955a
  Disable until resolved upstream.
b7955a
b7955a
* Thu Jun  8 2017 Patsy Franklin <pfrankli@redhat.com> - 4.2.1-1
b7955a
- Rebase to make-4.2.1
b7955a
  Removed two patches that have been resolved upstream.
b7955a
  Reworked seven patches.
b7955a
  Resolves: #1455702 and #1455705
b7955a
- make no longer segfaults inside a chroot without /dev/pts
b7955a
  Resolves: #1451452 and #1455695
b7955a
b7955a
* Tue Sep 13 2016 Patsy Franklin <pfrankli@redhat.com> - 4.1-3
b7955a
- Increase time before timeout for test fopen-fail to prevent
b7955a
  failing before issuing expected error.
b7955a
b7955a
* Wed Aug 03 2016 Patsy Franklin <pfrankli@redhat.com> - 4.1-2
b7955a
- Update change log info with correct date and info. (BZ #1363870)
b7955a
b7955a
* Wed Aug 03 2016 Patsy Franklin <pfrankli@redhat.com> - 4.1-1
b7955a
- Initial version for DTS.
b7955a
b7955a
* Thu Jul 07 2016 Patsy Franklin <pfrankli@redhat.com> - 1:3.82-23
b7955a
- In very obscure situations we may incorrectly write the free token
b7955a
  back to the pipe.
b7955a
  Resolves: #1322670
b7955a
b7955a
* Thu Jun 30 2016 Patsy Franklin <pfrankli@redhat.com> - 1:3.82-22
b7955a
- Check if the target-specific variable is the same as the global
b7955a
  variable, and if it is, don't free it.  Savannah bug #31743.
b7955a
  Resolves: #1323206
b7955a
b7955a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:3.82-21
b7955a
- Mass rebuild 2014-01-24
b7955a
b7955a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:3.82-20
b7955a
- Mass rebuild 2013-12-27
b7955a
b7955a
* Thu Aug 22 2013 Petr Machata <pmachata@redhat.com> - 1:3.82-19
b7955a
- make now restores rlimit to its original values before launching
b7955a
  subprocess via $(shell) (make-3.82-func_shell-rlimit.patch)
b7955a
- Determinize one test (make-3.82-tests-SECONDARY.patch)
b7955a
b7955a
* Fri Jul 26 2013 Petr Machata <pmachata@redhat.com> - 1:3.82-18
b7955a
- Backport upstream patch that adds wildcard expansion to pattern
b7955a
  rules. (make-3.82-stem_glob.patch)
b7955a
b7955a
* Wed Jun 19 2013 Petr Machata <pmachata@redhat.com> - 1:3.82-17
b7955a
- Add another fix for upstream bug 30612
b7955a
b7955a
* Thu Apr  4 2013 Petr Machata <pmachata@redhat.com> - 1:3.82-16
b7955a
- Update config.sub and config.guess to support aarch64
b7955a
b7955a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.82-15
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b7955a
b7955a
* Thu Nov 29 2012 Petr Machata <pmachata@redhat.com> - 1:3.82-14
b7955a
- Drop patch5, which hasn't been applied for years
b7955a
b7955a
* Mon Sep 10 2012 Petr Machata <pmachata@redhat.com> - 1:3.82-13
b7955a
- Add fix for upstream bug 30653
b7955a
- Resolves: #835424
b7955a
b7955a
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.82-12
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b7955a
b7955a
* Tue Mar 13 2012 Petr Machata <pmachata@redhat.com> - 1:3.82-11
b7955a
- Add a patch for avoiding glob if possible by Michael Meeks
b7955a
b7955a
* Mon Mar 12 2012 Petr Machata <pmachata@redhat.com> - 1:3.82-10
b7955a
- Apply the following patches, proposed upstream by Norbert Thiebaud:
b7955a
  - A patch for warning on call of undefined function
b7955a
  - A patch for tracing calls to "eval" and "call"
b7955a
b7955a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.82-9
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b7955a
b7955a
* Thu Nov  3 2011 Petr Machata <pmachata@redhat.com> - 1:3.82-8
b7955a
- Add a patch for preserving -j across Makefile rebuild
b7955a
- Resolves: #698702
b7955a
b7955a
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.82-7
b7955a
- Rebuilt for glibc bug#747377
b7955a
b7955a
* Thu May 12 2011 Lubomir Rintel <lkundrak@v3.sk> - 1:3.82-6
b7955a
- Fix free-after-use with nested assignments (#703104)
b7955a
b7955a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.82-5
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b7955a
b7955a
* Wed Oct 27 2010 Petr Machata <pmachata@redhat.com> - 1:3.82-4
b7955a
- Fix a discrepancy between behavior of find_next_token and
b7955a
  pre-allocation of token memory in func_sort.
b7955a
- Resolves: #643359
b7955a
b7955a
* Wed Sep 29 2010 jkeating - 1:3.82-3
b7955a
- Rebuilt for gcc bug 634757
b7955a
b7955a
* Mon Sep 13 2010 Petr Machata <pmachata@redhat.com> - 1:3.82-2
b7955a
- Add upstream fixes for upstream bugs 30612 and 30723
b7955a
- Resolves: #631552
b7955a
b7955a
* Wed Aug 11 2010 Petr Machata <pmachata@redhat.com> - 1:3.82-1
b7955a
- Upstream 3.82:
b7955a
  - Drop rlimit, fdleak, strcpy-overlap, recursion-test, double-free
b7955a
    patches, make supports this functionality now
b7955a
  - Disable the memory patch for the time being
b7955a
  - Port remaining patches
b7955a
  - Add weird-shell patch, upstream bug 30748
b7955a
- Resolves: #618998
b7955a
b7955a
* Wed Aug 11 2010 Petr Machata <pmachata@redhat.com> - 1:3.81-21
b7955a
- Add BR procps
b7955a
- Resolves: #616813
b7955a
b7955a
* Thu Jul  1 2010 Petr Machata <pmachata@redhat.com> - 1:3.81-20
b7955a
- Add a patch by Steve Kemp @debian that might fix the double free
b7955a
  problem.
b7955a
- Related: #609806
b7955a
b7955a
* Fri Jun  4 2010 Petr Machata <pmachata@redhat.com> - 1:3.81-19
b7955a
- Fix testsuite on F13
b7955a
- Resolves: #600004
b7955a
b7955a
* Tue Aug 11 2009 Petr Machata <pmachata@redhat.com> - 1:3.81-18
b7955a
- Fix installation with --excludedocs
b7955a
- Resolves: #515917
b7955a
b7955a
* Fri Jul 31 2009 Petr Machata <pmachata@redhat.com> - 1:3.81-17
b7955a
- Replace the use of strcpy on overlapping areas with memmove
b7955a
- Resolves: #514721
b7955a
b7955a
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.81-16
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b7955a
b7955a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.81-15
b7955a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b7955a
b7955a
* Mon Sep 22 2008 Petr Machata <pmachata@redhat.com> - 1:3.81-14
b7955a
- Fix patches to apply cleanly with fuzz=0
b7955a
b7955a
* Tue Sep 16 2008 Petr Machata <pmachata@redhat.com> - 1:3.81-13
b7955a
- Mark opened files as cloexec to prevent their leaking through fork
b7955a
- Resolves: #462090
b7955a
b7955a
* Tue Mar 25 2008 Petr Machata <pmachata@redhat.com> - 1:3.81-12
b7955a
- Fix the rlimit patch.  The success flag is kept in memory shared
b7955a
  with parent process after vfork, and so cannot be reset.
b7955a
- Related: #214033
b7955a
b7955a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:3.81-11
b7955a
- Autorebuild for GCC 4.3
b7955a
b7955a
* Thu Oct  4 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-10
b7955a
- Fix parallel builds with reexec.
b7955a
- Related: #212111, #211290
b7955a
b7955a
* Thu Oct  4 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-8
b7955a
- Cleaned up per merge review.
b7955a
- Related: #226120
b7955a
b7955a
* Thu Aug 16 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-7
b7955a
- Fix licensing tag.
b7955a
b7955a
* Fri Mar 16 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-6
b7955a
- Always run testsuite with C locale.
b7955a
- Resolves: #232607
b7955a
b7955a
* Thu Feb 22 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-5
b7955a
- Fix newline handling for quoted SHELL.
b7955a
- Resolves: #219409
b7955a
b7955a
* Fri Feb  2 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-4
b7955a
- Tidy up the specfile per rpmlint comments
b7955a
- Use utf-8 and fix national characters in contributor's names
b7955a
b7955a
* Thu Jan 25 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-3
b7955a
- Ville Skyttä: patch for non-failing %%post, %%preun
b7955a
- Resolves: #223709
b7955a
b7955a
* Thu Jan 25 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-2
b7955a
- make now restores rlimit to its original values before launching
b7955a
  subprocess (#214033)
b7955a
b7955a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:3.81-1.1
b7955a
- rebuild
b7955a
b7955a
* Tue May 23 2006 Petr Machata <pmachata@redhat.com> - 1:3.81-1
b7955a
- Upstream 3.81:
b7955a
  - Contains several backwards incompatible changes.  See NEWS inside
b7955a
    the source package to find out more.
b7955a
- memory patch and error reporting patch were ported to this version.
b7955a
b7955a
* Wed Mar 15 2006 Petr Machata <pmachata@redhat.com> 1:3.80-11
b7955a
- Applied (five years old) patch from Jonathan Kamens to allow make to
b7955a
  handle several pattern-specific variables (#52962).
b7955a
b7955a
  The patch was changed so that it forces make to process pattern
b7955a
  specific variables in the same order as they appear in file.
b7955a
  (Upstream make behaves this way, too.)  This is change from old make
b7955a
  behavior, which processed the variables in reverse order.  In case
b7955a
  you used only x=a assignments, this had the effect of using the
b7955a
  first pattern specific variable that matched.  For x+=a this just
b7955a
  doesn't work, and it produces absolutely nonintuitive results.
b7955a
b7955a
- (It would be great if make's target-specific variables were handled
b7955a
  the same way as pattern-specific ones, just without the pattern
b7955a
  component.  However current handling is documented and considered a
b7955a
  feature.)
b7955a
b7955a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:3.80-10.2
b7955a
- bump again for double-long bug on ppc(64)
b7955a
b7955a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:3.80-10.1
b7955a
- rebuilt for new gcc4.1 snapshot and glibc changes
b7955a
b7955a
* Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 3.80-10
b7955a
- H.J. Lu caught a typo in the patch and provided a new one. (#175376)
b7955a
b7955a
* Mon Jan 09 2006 Petr Machata <pmachata@redhat.com> 3.80-9
b7955a
- Applied patch from H.J. Lu.  Somehow reduces make's enormous memory
b7955a
  consumption. (#175376)
b7955a
b7955a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b7955a
- rebuilt
b7955a
b7955a
* Mon Aug 22 2005 Jakub Jelinek <jakub@redhat.com> 3.80-8
b7955a
- make sure errno for error reporting is not lost accross _() calls
b7955a
- report EOF on read pipe differently from read returning < 0 reporting
b7955a
b7955a
* Mon Mar  7 2005 Jakub Jelinek <jakub@redhat.com> 3.80-7
b7955a
- rebuilt with GCC 4
b7955a
b7955a
* Mon Dec 13 2004 Jakub Jelinek <jakub@redhat.com> 3.80-6
b7955a
- refuse -jN where N is bigger than PIPE_BUF (#142691, #17374)
b7955a
b7955a
* Thu Oct  7 2004 Jakub Jelinek <jakub@redhat.com> 3.80-5
b7955a
- add URL rpm tag (#134799)
b7955a
b7955a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
b7955a
- rebuilt
b7955a
b7955a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
b7955a
- rebuilt
b7955a
b7955a
* Tue Dec 02 2003 Florian La Roche <Florian.LaRoche@redhat.de>
b7955a
- add important bug-fixes from make home-page
b7955a
b7955a
* Sun Nov 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
b7955a
- update to 3.80
b7955a
b7955a
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
b7955a
- rebuilt
b7955a
b7955a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
b7955a
- rebuilt
b7955a
b7955a
* Sun Dec 29 2002 Tim Powers <timp@redhat.com>
b7955a
- fix references to %%install in the changelog so that the package will build
b7955a
b7955a
* Tue Dec 03 2002 Elliot Lee <sopwith@redhat.com> 3.79.1-15
b7955a
- _smp_mflags
b7955a
- Fix ppc build (sys_siglist issues in patch2)
b7955a
b7955a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
b7955a
- automated rebuild
b7955a
b7955a
* Thu May 23 2002 Tim Powers <timp@redhat.com>
b7955a
- automated rebuild
b7955a
b7955a
* Thu May 23 2002 Jakub Jelinek <jakub@redhat.com>
b7955a
- Run make check during build
b7955a
b7955a
* Thu May 23 2002 Bernhard Rosenkraenzer <bero@redhat.com>
b7955a
- Fix build with current auto* tools
b7955a
b7955a
* Fri Jan 25 2002 Jakub Jelinek <jakub@redhat.com>
b7955a
- rebuilt with gcc 3.1
b7955a
b7955a
* Fri Jul  6 2001 Trond Eivind Glomsrød <teg@redhat.com>
b7955a
- s/Copyright/License/
b7955a
- langify
b7955a
- Make sure it isn't setgid if built as root
b7955a
b7955a
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
b7955a
- Bump release + rebuild.
b7955a
b7955a
* Mon Aug  7 2000 Tim Waugh <twaugh@redhat.com>
b7955a
- change info-dir entry so that 'info make' works (#15029).
b7955a
b7955a
* Tue Aug  1 2000 Jakub Jelinek <jakub@redhat.com>
b7955a
- assume we don't have clock_gettime in configure, so that
b7955a
  make is not linked against -lpthread (and thus does not
b7955a
  limit stack to 2MB).
b7955a
b7955a
* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
b7955a
- add locale files (#14362).
b7955a
b7955a
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
b7955a
- automatic rebuild
b7955a
b7955a
* Sat Jun 24 2000 Preston Brown <pbrown@redhat.com>
b7955a
- 3.79.1 bugfix release
b7955a
b7955a
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
b7955a
- FHS packaging.
b7955a
b7955a
* Sun May  7 2000 Bernhard Rosenkraenzer <bero@redhat.com>
b7955a
- Fix build for some odd situations, such as
b7955a
  - previously installed make != GNU make
b7955a
  - /bin/sh != bash
b7955a
b7955a
* Mon Apr 17 2000 Florian La Roche <Florian.LaRoche@redhat.com>
b7955a
- update to 3.79
b7955a
b7955a
* Thu Feb 24 2000 Cristian Gafton <gafton@redhat.com>
b7955a
- add patch from Andreas Jaeger to fix dtype lookups (for glibc 2.1.3
b7955a
  builds)
b7955a
b7955a
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
b7955a
- compress man page.
b7955a
b7955a
* Fri Jan 21 2000 Cristian Gafton <gafton@redhat.com>
b7955a
- apply patch to fix a /tmp race condition from Thomas Biege
b7955a
- simplify %%install
b7955a
b7955a
* Sat Nov 27 1999 Jeff Johnson <jbj@redhat.com>
b7955a
- update to 3.78.1.
b7955a
b7955a
* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
b7955a
- added a serial tag so it upgrades right
b7955a
b7955a
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
b7955a
- auto rebuild in the new build environment (release 5)
b7955a
b7955a
* Wed Sep 16 1998 Cristian Gafton <gafton@redhat.com>
b7955a
- added a patch for large file support in glob
b7955a
 
b7955a
* Tue Aug 18 1998 Jeff Johnson <jbj@redhat.com>
b7955a
- update to 3.77
b7955a
b7955a
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
b7955a
- translations modified for de, fr, tr
b7955a
b7955a
* Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
b7955a
- udpated from 3.75 to 3.76
b7955a
- various spec file cleanups
b7955a
- added install-info support
b7955a
b7955a
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
b7955a
- built against glibc