debian/0000755000000000000000000000000012254320364007167 5ustar debian/watch0000644000000000000000000000006712226014316010217 0ustar version=3 http://ftp.gnu.org/gnu/m4/m4-(\d.*)\.tar\.gz debian/m4.examples0000644000000000000000000000164411751746720011265 0ustar examples/forloop.m4 examples/file.m4 examples/regexp.m4 examples/capitalize.m4 examples/multiquotes.m4 examples/curry.m4 examples/incl.m4 examples/incl-test.m4 examples/undivert.incl examples/trace.m4 examples/capitalize2.m4 examples/sysv-args.m4 examples/forloop3.m4 examples/indir.m4 examples/stack.m4 examples/stack_sep.m4 examples/reverse.m4 examples/foreachq2.m4 examples/debug.m4 examples/ddivert.m4 examples/COPYING examples/join.m4 examples/exp.m4 examples/esyscmd.m4 examples/quote.m4 examples/patsubst.m4 examples/pushpop.m4 examples/hanoi.m4 examples/foreachq4.m4 examples/foreach.m4 examples/foo examples/sync-lines.m4 examples/wrapfifo.m4 examples/translit.m4 examples/foreachq3.m4 examples/undivert.m4 examples/wrap.m4 examples/fstab.m4 examples/forloop2.m4 examples/include.m4 examples/wraplifo2.m4 examples/wraplifo.m4 examples/foreach2.m4 examples/foreachq.m4 examples/comments.m4 examples/loop.m4 examples/misc.m4 debian/rules0000755000000000000000000000062212246630512010247 0ustar #!/usr/bin/make -f package = m4 export DEB_BUILD_MAINT_OPTIONS=hardening=-format %: dh $@ override_dh_auto_clean: [ ! -f Makefile ] || $(MAKE) distclean rm -rf doc/$(package) override_dh_auto_configure: dh_auto_configure -- --disable-rpath override_dh_installdocs: cd doc && makeinfo --html $(package).texi dh_installdocs -i doc/$(package)/*.html dh_installdocs -a NEWS README TODO THANKS debian/copyright0000644000000000000000000000362412226012253011121 0ustar This is the Debian prepackaged version of the FSF's GNU m4 macro processor. GNU `m4' has been originally written by René Seindal, from Denmark, with subsequent changes by François Pinard and other volunteers on the Internet. A list of contributors to the GNU program is in the THANKS file in the source distribution, or appended below in the binary package. This package was first put together by Ian Jackson and is currently maintained by Santiago Vila . The GNU sources for this release were obtained from http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.xz The changes were very minimal - merely adding support for the Debian package maintenance scheme, by adding various debian/* files. Program Copyright (C) 1989-2013 Free Software Foundation, Inc. Modifications for Debian Copyright (C) 1994 Ian Jackson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. M4 manual (m4.info) Copyright (C) 1989-1994, 2004-2013 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL', and the complete text of the GNU Free Documentation License can be found in `/usr/share/common-licenses/GFDL'. debian/source/0000755000000000000000000000000011340302611010455 5ustar debian/source/format0000644000000000000000000000001411340303420011662 0ustar 3.0 (quilt) debian/m4.install0000644000000000000000000000002611751460551011101 0ustar usr/share/* usr/bin/* debian/patches/0000755000000000000000000000000012254320344010614 5ustar debian/patches/float-endian-detection.patch0000644000000000000000000000432112254320344016152 0ustar Description: Fix detection of floating point endianness See https://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00104.html Author: Alan Modra Author: Colin Watson Forwarded: no Last-Update: 2013-12-18 Index: b/tests/test-isnanl.h =================================================================== --- a/tests/test-isnanl.h +++ b/tests/test-isnanl.h @@ -24,6 +24,12 @@ #include "nan.h" #include "macros.h" +#ifdef __FLOAT_WORD_ORDER__ +# define FLOAT_BIG_ENDIAN (__FLOAT_WORD_ORDER__ != __ORDER_LITTLE_ENDIAN__) +#else +# define FLOAT_BIG_ENDIAN (LDBL_EXPBIT0_WORD < NWORDS / 2) +#endif + int main () { @@ -56,10 +62,10 @@ # if LDBL_EXPBIT0_BIT > 0 m.word[LDBL_EXPBIT0_WORD] ^= (unsigned int) 1 << (LDBL_EXPBIT0_BIT - 1); # else - m.word[LDBL_EXPBIT0_WORD + (LDBL_EXPBIT0_WORD < NWORDS / 2 ? 1 : - 1)] + m.word[LDBL_EXPBIT0_WORD + (FLOAT_BIG_ENDIAN ? 1 : - 1)] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1); # endif - m.word[LDBL_EXPBIT0_WORD + (LDBL_EXPBIT0_WORD < NWORDS / 2 ? 1 : - 1)] + m.word[LDBL_EXPBIT0_WORD + (FLOAT_BIG_ENDIAN ? 1 : - 1)] |= (unsigned int) 1 << LDBL_EXPBIT0_BIT; ASSERT (isnanl (m.value)); } Index: b/tests/test-signbit.c =================================================================== --- a/tests/test-signbit.c +++ b/tests/test-signbit.c @@ -36,6 +36,12 @@ double zerod = 0.0; long double zerol = 0.0L; +#ifdef __FLOAT_WORD_ORDER__ +# define FLOAT_BIG_ENDIAN (__FLOAT_WORD_ORDER__ != __ORDER_LITTLE_ENDIAN__) +#else +# define FLOAT_BIG_ENDIAN (LDBL_EXPBIT0_WORD < NWORDS / 2) +#endif + static void test_signbitf () { @@ -156,10 +162,10 @@ # if LDBL_EXPBIT0_BIT > 0 m.word[LDBL_EXPBIT0_WORD] ^= (unsigned int) 1 << (LDBL_EXPBIT0_BIT - 1); # else - m.word[LDBL_EXPBIT0_WORD + (LDBL_EXPBIT0_WORD < NWORDS / 2 ? 1 : - 1)] + m.word[LDBL_EXPBIT0_WORD + (FLOAT_BIG_ENDIAN ? 1 : - 1)] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1); # endif - m.word[LDBL_EXPBIT0_WORD + (LDBL_EXPBIT0_WORD < NWORDS / 2 ? 1 : - 1)] + m.word[LDBL_EXPBIT0_WORD + (FLOAT_BIG_ENDIAN ? 1 : - 1)] |= (unsigned int) 1 << LDBL_EXPBIT0_BIT; (void) signbit (m.value); #undef NWORDS debian/patches/series0000644000000000000000000000003512254320252012025 0ustar float-endian-detection.patch debian/compat0000644000000000000000000000000211751460112010362 0ustar 9 debian/control0000644000000000000000000000201512254320357010572 0ustar Source: m4 Section: interpreters Priority: standard Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Santiago Vila Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9.20120311), texinfo, libsigsegv-dev Homepage: http://www.gnu.org/software/m4/ Package: m4 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: foreign Description: a macro processing language GNU `m4' is an implementation of the traditional UNIX macro processor. It is mostly SVR4 compatible, although it has some extensions (for example, handling more than 9 positional parameters to macros). `m4' also has builtin functions for including files, running shell commands, doing arithmetic, etc. Autoconf needs GNU `m4' for generating `configure' scripts, but not for running them. Package: m4-doc Section: doc Priority: optional Architecture: all Depends: ${misc:Depends} Description: Documentation for GNU m4 This package contains the HTML documentation for GNU m4. debian/m4-doc.doc-base0000644000000000000000000000127311170143724011653 0ustar Document: m4-doc Title: GNU m4 manual Author: René Seindal Abstract: This manual documents GNU m4. `m4' is a macro processor, in the sense that it copies its input to the output, expanding macros as it goes. Macros are either builtin or user-defined, and can take any number of arguments. Besides just doing macro expansion, `m4' has builtin functions for including named files, running UNIX commands, doing integer arithmetic, manipulating text in various ways, recursion, etc... `m4' can be used either as a front-end to a compiler, or as a macro processor in its own right. Section: Programming Format: HTML Index: /usr/share/doc/m4-doc/index.html Files: /usr/share/doc/m4-doc/*.html debian/m4.info0000644000000000000000000000001411751751435010367 0ustar doc/*.info* debian/changelog0000644000000000000000000002667112254320362011053 0ustar m4 (1.4.17-2ubuntu1) trusty; urgency=medium * Fix detection of floating point endianness. -- Colin Watson Wed, 18 Dec 2013 13:19:44 +0000 m4 (1.4.17-2) unstable; urgency=medium * Dropped --split=chapter from makeinfo invocation when generating HTML, it is not needed and it makes hppa build to fail. Closes: #730840. -- Santiago Vila Sun, 01 Dec 2013 13:53:08 +0100 m4 (1.4.17-1) unstable; urgency=low * New upstream release. * Switch from texi2html to makeinfo. * Added --disable-rpath to ./configure call. * Dropped 01-no-usr-share-info-dir-gz. debhelper sets AM_UPDATE_INFO_DIR=no. * Dropped 02-workaround-for-binutils-bug-on-mips. This was Bug #519006 and it was fixed three years ago in binutils_2.20.51.20100925-1. * Dropped 03-fix-for-test-readlink. This was a gnulib issue and it was fixed in 2011-03-30 by commit dc44690985e727ac2ef5af783a495a369223ab69. * Dropped 04-fix-for-gnulib-glibc-gets. This was a gnulib issue and it was fixed in 2012-03-29 by commit 66712c23388e93e5c518ebc8515140fa0c807348. * Dropped 99-config-guess-config-sub. Current files are recent enough. * This is again a 0-patch package. Congratulations to all parties involved. -- Santiago Vila Sat, 12 Oct 2013 14:10:16 +0200 m4 (1.4.16-5) unstable; urgency=low * Added fix for gnulib compilation against eglibc 2.16, which no longer declares gets by default. Closes: #694952. -- Santiago Vila Sun, 24 Feb 2013 13:29:12 +0100 m4 (1.4.16-4) unstable; urgency=low * Updated config.guess and config.sub. * Link against libsigsegv, recommended by upstream. Closes: #688804. -- Santiago Vila Wed, 17 Oct 2012 10:44:20 +0200 m4 (1.4.16-3) unstable; urgency=low * Switch to dh. * Added Multi-Arch: foreign. Closes: #640783. -- Santiago Vila Mon, 07 May 2012 16:11:38 +0200 m4 (1.4.16-2) unstable; urgency=medium * Fixed test-readlink to work with recent Linux. Closes: #630902. -- Santiago Vila Wed, 27 Jul 2011 22:03:24 +0200 m4 (1.4.16-1) unstable; urgency=low * New upstream release. * Use strip with prefix for cross-build. * Dropped 03-missing-sys-stat-include, no longer needed. -- Santiago Vila Tue, 05 Apr 2011 17:35:10 +0200 m4 (1.4.14-3) unstable; urgency=medium * Fix FTBFS problem with Ubuntu glibc. Closes: #584777. Thanks to Loïc Minier for the report. -- Santiago Vila Fri, 11 Jun 2010 18:42:02 +0200 m4 (1.4.14-2) unstable; urgency=low * Added workaround for binutils bug which makes test suite to fail on mips. Patch by Arnaud Patard. Thanks a lot. -- Santiago Vila Thu, 25 Mar 2010 19:00:10 +0100 m4 (1.4.14-1) unstable; urgency=low * New upstream release. Documentation is now under FDLv3+. -- Santiago Vila Sat, 27 Feb 2010 12:23:32 +0100 m4 (1.4.13-4) unstable; urgency=low * Improved regex of watch file to not report "latest" as the latest version. Closes: #554443. Thanks, Raphael Geissert. * Changed the way cross-build is supported. * Switch to 3.0 (quilt) source format. * Source in tar.bz2, while we are at it. * Use strip, not "install -s". * Added homepage. -- Santiago Vila Sun, 21 Feb 2010 20:39:22 +0100 m4 (1.4.13-3) unstable; urgency=medium * Changed debian/* files again for new texi2html behaviour. Closes: #552926. -- Santiago Vila Wed, 04 Nov 2009 12:19:02 +0100 m4 (1.4.13-2) unstable; urgency=low * Modified doc/Makefile.in to avoid /usr/share/info/dir.gz. * Handle info files as indicated by policy 3.8.3. * Removed useless calls to install-docs. * Updated config.guess and config.sub. * Honor nocheck in DEB_BUILD_OPTIONS. -- Santiago Vila Sun, 30 Aug 2009 19:09:10 +0200 m4 (1.4.13-1) unstable; urgency=low * New upstream release. * Moved to doc-base Programming section. -- Santiago Vila Sat, 11 Apr 2009 18:51:28 +0200 m4 (1.4.11-1) unstable; urgency=low * New upstream release. * Changed copyright file to refer to the GFDL in common-licenses. -- Santiago Vila Thu, 03 Apr 2008 09:49:04 +0200 m4 (1.4.10-1) unstable; urgency=low * New upstream release (now under GPLv3). Closes: #433233. -- Santiago Vila Thu, 23 Aug 2007 12:46:14 +0200 m4 (1.4.9-2) unstable; urgency=low * Fixed regression in eval builtin. Patch from CVS. -- Santiago Vila Fri, 25 May 2007 18:09:10 +0200 m4 (1.4.9-1) unstable; urgency=low * New upstream release. -- Santiago Vila Wed, 11 Apr 2007 08:23:36 +0200 m4 (1.4.8-2) unstable; urgency=medium * Fixed command line parsing bug which produced a segfault. Closes: #405594. Thanks to Sami Liedes for the report and the patch. -- Santiago Vila Fri, 5 Jan 2007 11:05:48 +0100 m4 (1.4.8-1) unstable; urgency=low * New upstream release. Lots of fixes, see the NEWS file for details. -- Santiago Vila Wed, 29 Nov 2006 16:53:44 +0100 m4 (1.4.7-1) unstable; urgency=low * New upstream release. See the NEWS file for details. -- Santiago Vila Mon, 25 Sep 2006 19:20:30 +0200 m4 (1.4.6-2) unstable; urgency=low * Fixed regression in handling macro without arguments as last token in file. Patch by Eric Blake (Closes: #385720). Reported by Andreas Schultz. -- Santiago Vila Mon, 4 Sep 2006 17:55:38 +0200 m4 (1.4.6-1) unstable; urgency=low * New upstream release. Lots of fixes, see the NEWS file for details. * Fixed incorrect output when using -s and -I (Closes: #53685). * Improved handling of "format" builtin (Closes: #96075). * Improved error message in case of EOF (Closes: #175365). * m4 is now 8-bit clean (Closes: #311378). -- Santiago Vila Mon, 28 Aug 2006 20:20:28 +0200 m4 (1.4.4-1) unstable; urgency=low * New upstream release. * Exit status is now 1 when missing files (Closes: #40148, #46403). This brings the behaviour in line with the future 2.0 release, so if your script breaks, you get to keep both pieces. * Updated FSF address in copyright file. -- Santiago Vila Fri, 21 Oct 2005 16:22:40 +0200 m4 (1.4.3-2) unstable; urgency=low * Fixed FTBFS bug caused by new texi2html behaviour (Closes: #317860). -- Santiago Vila Tue, 12 Jul 2005 16:35:20 +0200 m4 (1.4.3-1) unstable; urgency=low * New upstream release. * Added watch file. -- Santiago Vila Thu, 31 Mar 2005 19:14:00 +0200 m4 (1.4.2-2) unstable; urgency=low * Added appropriate --build and --host options to ./configure call in debian/rules to support cross-compilation. Also, skip "make check" after the build if we are cross-compiling. Closes: #283724. -- Santiago Vila Sat, 8 Jan 2005 19:38:46 +0100 m4 (1.4.2-1) unstable; urgency=low * New stable release (portability bug fixes, no user visible changes). * Changed doc-base and copyright files to UTF-8 (Closes: #266018). -- Santiago Vila Sun, 3 Oct 2004 18:55:52 +0200 m4 (1.4.1-1) unstable; urgency=low * The "10th anniversary" release. * From the official announcement: This release contains long standing bug fixes to the venerable 10 year old 1.4 release. It does not contain any of the development code from the forthcoming 2.0 release on the CVS trunk. * Removed build-dependency on texinfo (the .texi is untouched now). * Except for the debian/* files, this is now a 0-patch package. -- Santiago Vila Wed, 9 Jun 2004 16:40:44 +0200 m4 (1.4-17) unstable; urgency=medium * Propagate `translit' buffer-overrun patch from upstream. Thanks a lot to Paul Eggert for the report (Closes: #211477). -- Santiago Vila Thu, 18 Sep 2003 02:42:02 +0200 m4 (1.4-16) unstable; urgency=low * Changes in /usr/share/doc/m4/examples: - Modified stackovf.sh to use tempfile if it exists. - Removed Makefile and Makefile.in, they do not belong there. -- Santiago Vila Wed, 3 Sep 2003 17:04:48 +0200 m4 (1.4-15) unstable; urgency=low * Standards-Version: 3.5.8. -- Santiago Vila Sun, 29 Dec 2002 14:43:42 +0100 m4 (1.4-14) unstable; urgency=low * Added doc-base support. * Added support for DEB_BUILD_OPTIONS. -- Santiago Vila Sat, 24 Nov 2001 14:03:16 +0100 m4 (1.4-13) unstable; urgency=low * Do not mix buffered and unbuffered I/O, breaks autoconf under GNU/Hurd. Patch by Robert Bihlmeyer. Closes: #53052, #92629. -- Santiago Vila Wed, 4 Apr 2001 16:47:08 +0200 m4 (1.4-12) unstable; urgency=low * Modified maketemp macro to behave like OpenBSD version (Closes: #84416). * Fixed format string vulnerability (Closes: #84451). * Build-Depends: texinfo, since the .texi source is now modified. * Build-Depends-Indep: texi2html, not tetex-bin. -- Santiago Vila Mon, 5 Feb 2001 18:47:57 +0100 m4 (1.4-11) unstable; urgency=low * Standards-Version: 3.1.1. -- Santiago Vila Sat, 16 Dec 2000 20:42:35 +0100 m4 (1.4-10) unstable; urgency=low * Added m4(1), which refers to the info docs (Bug #33596). * Updated FSF's address in copyright file. -- Santiago Vila Sun, 7 Mar 1999 17:34:21 +0100 m4 (1.4-9) unstable; urgency=low * Added HTML docs, in a separate package. -- Santiago Vila Tue, 13 Oct 1998 21:07:44 +0200 m4 (1.4-8) unstable; urgency=low * info description in development section, bug #14911. * Improved check-them, the fix in 1.4-7 made checks 30 and 51 to fail. * Added NEWS, README, TODO and THANKS to the doc directory. * Shortened extended description (some info moved to copyright file). * Rewritten debian/rules. * Pristine source. * Added md5sums. * New maintainer. -- Santiago Vila Thu, 4 Dec 1997 13:44:42 +0100 m4 (1.4-7) unstable; urgency=low * linked against libc6, bug#11703 * added language control to check-them, bug#11545 * added change logs to /usr/doc/m4, bug#10236 * modified location of ./config in control file, bug#9716 * removed trailing depends -- Dale Scheetz Fri, 12 Sep 1997 11:35:12 -0400 m4 (1.4-6) unstable; urgency=low * fixed binary-arch and binary-indep targets in debian/rules. -- Dale Scheetz Sun, 29 Sep 1996 16:29:38 -0400 m4 (1.4-5) unstable; urgency=low * Converted to Standards-Version 2.1.0.0 -- Dale Scheetz Fri, 27 Sep 1996 14:10:56 -0400 M4 1.4 Debian 3 - dcs * updated debian.rules and debian.control for architecture and name. M4 1.4 Debian 2 - dcs * Rebuild as ELF M4 1.4 Debian 1 - iwj * Based on FSF version 1.4. Changes 1.2=>1.3 in Changelog and NEWS. M4 1.3 Debian 2 - iwj * Corrected some mistakes in debian.README. * Debian_Revision field in `control' corrected to Package_Revision. * Added Info manual copyright to debian.README. M4 1.3 Debian 1 - iwj * Based on FSF version 1.3. Changes 1.2=>1.3 in Changelog and NEWS. * Added Debian_Revision field to control file. * debian.rules deletes *.orig files. * debian.rules build runs regression tests. M4 1.2 Debian 2 - iwj * Removed debian.rules install target. * Added --quiet to install-info invocations. M4 1.2 Debian 1 - iwj Initial untested release.