Ticket #25811: autoconf.diff
File autoconf.diff, 7.7 KB (added by nerdling (Jeremy Lavergne), 14 years ago) |
---|
-
files/0002-Fix-2.64-AC_TYPE_INT-_T-macro-body-text-regression.patch
1 From 83af14cdbfe2eb1fbc5ce8ea395244dbe65dd4f3 Mon Sep 17 00:00:00 20012 From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>3 Date: Wed, 9 Dec 2009 07:20:16 +01004 Subject: [PATCH 2/2] Fix 2.64 AC_TYPE_INT*_T macro body text regression.5 6 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum7 definition to prologue section, to avoid syntax error.8 * NEWS, THANKS: Update.9 Report by Pierre Ynard.10 11 Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>12 ---13 ChangeLog | 8 ++++++++14 NEWS | 3 +++15 THANKS | 1 +16 lib/autoconf/types.m4 | 12 ++++++------17 4 files changed, 18 insertions(+), 6 deletions(-)18 19 diff --git ChangeLog ChangeLog20 index 521ef79..b254d5e 10064421 --- ChangeLog22 +++ ChangeLog23 @@ -1,3 +1,11 @@24 +2009-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>25 +26 + Fix 2.65 AC_TYPE_INT*_T macro body text regression.27 + * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum28 + definition to prologue section, to avoid syntax error.29 + * NEWS, THANKS: Update.30 + Report by Pierre Ynard.31 +32 2009-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>33 34 Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.35 diff --git NEWS NEWS36 index d05b78c..436d22e 10064437 --- NEWS38 +++ NEWS39 @@ -1,5 +1,8 @@40 GNU Autoconf NEWS - User visible changes.41 42 +** The macros AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, and43 + AC_TYPE_INT64_T work again. Regression introduced in 2.65.44 +45 ** AC_FUNC_MMAP works in C++ mode again. Regression introduced in 2.65.46 47 * Major changes in Autoconf 2.65 (2009-11-21) [stable]48 diff --git THANKS THANKS49 index fdd6930..5ec7633 10064450 --- THANKS51 +++ THANKS52 @@ -307,6 +307,7 @@ Peter Stephenson pws@csr.com53 Philipp Thomas kthomas@gwdg.de54 Philippe De Muyter ?55 Pierre pierre42d@9online.fr56 +Pierre Ynard linkfanel@yahoo.fr57 Pontus Skoeld pont@soua.net58 Rainer Orth ro@TechFak.Uni-Bielefeld.DE59 Raja R Harinath harinath@cs.umn.edu60 diff --git lib/autoconf/types.m4 lib/autoconf/types.m461 index 7a73fc2..3829c4c 10064462 --- lib/autoconf/types.m463 +++ lib/autoconf/types.m464 @@ -635,14 +635,14 @@ m4_define([_AC_TYPE_INT_BODY],65 'long long int' 'short int' 'signed char'; do66 AC_COMPILE_IFELSE(67 [AC_LANG_BOOL_COMPILE_TRY(68 - [AC_INCLUDES_DEFAULT],69 - [enum { N = $[]2 / 2 - 1 };70 - 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)])],71 + [AC_INCLUDES_DEFAULT72 + enum { N = $[]2 / 2 - 1 };],73 + [0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)])],74 [AC_COMPILE_IFELSE(75 [AC_LANG_BOOL_COMPILE_TRY(76 - [AC_INCLUDES_DEFAULT],77 - [enum { N = $[]2 / 2 - 1 };78 - ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)79 + [AC_INCLUDES_DEFAULT80 + enum { N = $[]2 / 2 - 1 };],81 + [($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)82 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2)])],83 [],84 [AS_CASE([$ac_type], [int$[]2_t],85 --86 1.6.5.387 -
files/0001-Fix-AC_FUNC_MMAP-regression-with-C-compiler-in-2.65.patch
1 From a6bf8d5c754dcde068dedd2e826ae95af50c197e Mon Sep 17 00:00:00 20012 From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>3 Date: Tue, 24 Nov 2009 11:36:53 +01004 Subject: [PATCH 1/2] Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.5 MIME-Version: 1.06 Content-Type: text/plain; charset=UTF-87 Content-Transfer-Encoding: 8bit8 9 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*10 for the constant string. Cast void* to char* for assignment.11 * NEWS, THANKS: Update.12 Report by Michal Čihař.13 14 Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>15 ---16 ChangeLog | 8 ++++++++17 NEWS | 2 ++18 THANKS | 1 +19 lib/autoconf/functions.m4 | 7 ++++---20 4 files changed, 15 insertions(+), 3 deletions(-)21 22 diff --git ChangeLog ChangeLog23 index d8d0f9b..521ef79 10064424 --- ChangeLog25 +++ ChangeLog26 @@ -1,3 +1,11 @@27 +2009-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>28 +29 + Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.30 + * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*31 + for the constant string. Cast void* to char* for assignment.32 + * NEWS, THANKS: Update.33 + Report by Michal Čihař.34 +35 2009-11-21 Eric Blake <ebb9@byu.net>36 37 Release Version 2.65.38 diff --git NEWS NEWS39 index b72eb17..d05b78c 10064440 --- NEWS41 +++ NEWS42 @@ -1,5 +1,7 @@43 GNU Autoconf NEWS - User visible changes.44 45 +** AC_FUNC_MMAP works in C++ mode again. Regression introduced in 2.65.46 +47 * Major changes in Autoconf 2.65 (2009-11-21) [stable]48 Released by Eric Blake, based on git versions 2.64.*.49 50 diff --git THANKS THANKS51 index b288163..fdd6930 10064452 --- THANKS53 +++ THANKS54 @@ -250,6 +250,7 @@ Matthew D. Langston langston@SLAC.Stanford.EDU55 Matthew Mueller donut@azstarnet.com56 Matthew Woehlke mw_triad@users.sourceforge.net57 Matthias Andree matthias.andree@gmx.de58 +Michal Čihař nijel@debian.org59 Michael Elizabeth Chastain chastain@cygnus.com60 Michael Jenning ?61 Michael Matz matz@kde.org62 diff --git lib/autoconf/functions.m4 lib/autoconf/functions.m463 index 6b6e7fc..14a8cb9 10064464 --- lib/autoconf/functions.m465 +++ lib/autoconf/functions.m466 @@ -1258,6 +1258,7 @@ int67 main ()68 {69 char *data, *data2, *data3;70 + const char *cdata2;71 int i, pagesize;72 int fd, fd2;73 74 @@ -1282,10 +1283,10 @@ main ()75 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);76 if (fd2 < 0)77 return 4;78 - data2 = "";79 - if (write (fd2, data2, 1) != 1)80 + cdata2 = "";81 + if (write (fd2, cdata2, 1) != 1)82 return 5;83 - data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);84 + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);85 if (data2 == MAP_FAILED)86 return 6;87 for (i = 0; i < pagesize; ++i)88 --89 1.6.5.390 -
Portfile
1 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 4 5 5 6 name autoconf 6 7 epoch 1 7 version 2.65 8 revision 2 8 version 2.66 9 9 categories devel 10 10 maintainers ram openmaintainer 11 11 platforms darwin … … 29 29 universal_variant no 30 30 } 31 31 32 checksums md5 a6de1cc6434cd64038b0a0ae4e252b33 \ 33 sha1 9126ffb8d7d59f38f305ef53e208531d4b75bb87 \ 34 rmd160 250b0f46ae6f81fe47f30ae61335a2291d736197 32 checksums md5 d2d22a532ee0e4d6d86a02e6425ecfce \ 33 sha1 1b446c7365f79d4c1f494e14602c6115df99af1a 35 34 36 patchfiles 0001-Fix-AC_FUNC_MMAP-regression-with-C-compiler-in-2.65.patch \37 0002-Fix-2.64-AC_TYPE_INT-_T-macro-body-text-regression.patch38 39 35 depends_lib path:bin/perl:perl5 \ 40 36 port:m4 \ 41 37 port:help2man