diff --git a/automake-1.13.1-reenable-disabled-macros.patch b/automake-1.13.1-reenable-disabled-macros.patch new file mode 100644 index 0000000..b4517d2 --- /dev/null +++ b/automake-1.13.1-reenable-disabled-macros.patch @@ -0,0 +1,72 @@ +diff --git a/m4/obsolete-err.m4 b/m4/obsolete-err.m4 +index d8119a4..6a09401 100644 +--- a/m4/obsolete-err.m4 ++++ b/m4/obsolete-err.m4 +@@ -8,19 +8,56 @@ + # gives unlimited permission to copy and/or distribute it, + # with or without modifications, as long as this notice is preserved. + +-dnl TODO: Remove in Automake 1.15. +-AC_DEFUN([AM_CONFIG_HEADER], +-[AC_FATAL(['$0': this macro is obsolete. +- You should use the 'AC][_CONFIG_HEADERS' macro instead.])]) +- +-dnl TODO: Remove in Automake 1.15. +-AC_DEFUN([AM_PROG_CC_STDC], +-[AC_FATAL(['$0': this macro is obsolete. +- You should simply use the 'AC][_PROG_CC' macro instead. +- Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', +- but upon 'ac_cv_prog_cc_stdc'.])]) ++# dnl TODO: Remove in Automake 1.15. ++# AC_DEFUN([AM_CONFIG_HEADER], ++# [AC_FATAL(['$0': this macro is obsolete. ++# You should use the 'AC][_CONFIG_HEADERS' macro instead.])]) ++# ++# dnl TODO: Remove in Automake 1.15. ++# AC_DEFUN([AM_PROG_CC_STDC], ++# [AC_FATAL(['$0': this macro is obsolete. ++# You should simply use the 'AC][_PROG_CC' macro instead. ++# Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', ++# but upon 'ac_cv_prog_cc_stdc'.])]) + + dnl TODO: Remove in Automake 1.14. + AC_DEFUN([AM_C_PROTOTYPES], + [AC_FATAL([automatic de-ANSI-fication support has been removed])]) + AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) ++ ++AU_DEFUN([AM_PROG_CC_STDC], ++[AC_PROG_CC ++AC_DIAGNOSE([obsolete], [$0: ++ your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon ++ 'ac_cv_prog_cc_stdc'. Remove this warning and the assignment when ++ you adjust the code. You can also remove the above call to ++ AC_PROG_CC if you already called it elsewhere.]) ++am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ++]) ++ ++# Reenable these macros in fedora until all packages are fixed (unlikely). ++# TODO: Prepare the some fedora-review checker, or rpmlint checker for this. ++ ++AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) ++AU_DEFUN([AM_SANITY_CHECK_CC], [AC_PROG_CC]) ++AU_DEFUN([fp_PROG_CC_STDC]) ++AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC]) ++AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) ++AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR]) ++AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) ++AU_DEFUN([ud_GNU_GETTEXT], [AM_GNU_GETTEXT]) ++AU_DEFUN([gm_PROG_LIBTOOL], [AM_PROG_LIBTOOL]) ++AU_DEFUN([AC_FEATURE_CTYPE], [AC_HEADER_STDC]) ++AU_DEFUN([AC_FEATURE_ERRNO], [AC_REPLACE_FUNCS([strerror])]) ++AU_DEFUN([AM_CYGWIN32], [AC_CYGWIN]) ++AU_DEFUN([AM_EXEEXT], [AC_EXEEXT]) ++AU_DEFUN([AM_FUNC_MKTIME], [AC_FUNC_MKTIME]) ++AU_DEFUN([AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL], ++ [AC_HEADER_TIOCGWINSZ]) ++AU_DEFUN([AM_MINGW32], [AC_MINGW32]) ++AU_DEFUN([AM_PROG_INSTALL], [AC_PROG_INSTALL]) ++AU_DEFUN([AM_SANITY_CHECK_CC], [AC_PROG_CC]) ++AU_DEFUN([AM_SYS_POSIX_TERMIOS], [AC_SYS_POSIX_TERMIOS]) ++AU_DEFUN([fp_FUNC_FNMATCH], [AC_FUNC_FNMATCH]) ++AU_DEFUN([fp_PROG_INSTALL], [AC_PROG_INSTALL]) ++AU_DEFUN([md_TYPE_PTRDIFF_T], [AC_CHECK_TYPES([ptrdiff_t])]) diff --git a/automake.spec b/automake.spec index b08d01d..3a59939 100644 --- a/automake.spec +++ b/automake.spec @@ -3,13 +3,14 @@ Summary: A GNU tool for automatically creating Makefiles Name: automake Version: %{api_version}.1 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and GFDL Group: Development/Tools Source: ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz # Disable test with vala (in Makefile.in — not Makefile.am — until the # autoreconf run is not safe) Patch0: automake-1.13.1-disable-vala-tests.patch +Patch1: automake-1.13.1-reenable-disabled-macros.patch URL: http://www.gnu.org/software/automake/ Requires: autoconf >= 2.65 BuildRequires: autoconf >= 2.65 @@ -51,10 +52,8 @@ Makefiles. %prep %setup -q -n automake-%{version} %patch0 -p1 -b .vala_tests_disable -# TODO: Do not run autoreconf until we are sure that on build machine is -# installed automake 1.13. Otherwise it will cause that Makefile is not using -# AM_TEST_ENVIRONMENT properly and testsuite will not work. -#autoreconf -i -f +%patch1 -p1 -b .reenable_macros +autoreconf -i -f %build ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \ @@ -91,6 +90,9 @@ fi %{_mandir}/man1/* %changelog +* Thu Jan 17 2013 Pavel Raiskup - 1.13.1-3 +- re-enable AM_CONFIG_HEADER macro in Fedora distribution (#896442) + * Mon Jan 14 2013 Pavel Raiskup - 1.13.1-2 - allow to run bigger subset of tests in testsuite