Bug 101730

Summary: [PATCH] devel/m4: update to 1.4.5
Product: Ports & Packages Reporter: Stanislav Sedov <ssedov>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me CC: ade
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
m4-1.4.5.patch none

Description Stanislav Sedov 2006-08-09 22:40:11 UTC
- Update to 1.4.5
- Add knob to not install examples

The following files was added:
- files/Makefile.in.diff
- files/m4.info.diff

I removed the following files:
- files/patch-aa

ChangeLog:
* Fix sysval on BeOS, OS/2, and other systems that store exit status
  in the low-order byte.  Additionally, on Unix platforms, if syscmd was
  terminated by a signal, sysval now displays the signal number shifted
  left by eight bits, to match traditional m4 implementations.
* The maketemp macro is no longer subject to platform limitations (such as
  26 or 32 max files from a given template).
* Frozen files now require that the first directive be V (version), to
  better diagnose version mismatch.  Additionally, if the F directive
  (builtin function) names an unknown builtin that existed in the m4 that
  froze the file but not in the current m4 (for example, changeword), the
  warning is deferred until an attempt is made to actually use the
  builtin.  This allows downgrading from beta m4-1.4o to stable m4-1.4.5
  without breaking autoconf.
* The format and indir macros are now recognized only with arguments.
* The eval macro no longer crashes on x86 architectures when dividing the
  minimum integer by -1.
* On systems with ecvt and fcvt, format no longer truncates trailing
  zeroes on integers printed with %.0f.  On systems without these
  functions, format is no longer subject to a buffer overflow that
  permitted arbitrary code execution.
* On native Windows builds, the macro __windows__ is provided instead of
  __unix__.  Likewise, on OS/2 builds, the macro __os2__ is provided.  This
  allows input files to determine when syscmd might behave differently.
* Fix bug in 1.4.3 patch to use \n line-endings that did not work for
  cygwin.
* When given the empty string or 0, undivert is now documented as a no-op
  rather than closing stdout, warning about a non-existent file, or trying
  to read a directory as a file.
* Many documentation improvements.  Also, the manual is now distributed
  under FDL 1.2, rather than a stricter verbatim-only license.
* Raise the -L (--nesting-limit) command line option limit from 250 to
  1024.
* The decr, incr, divert, m4exit, and substr macros treat an empty number
  as 0, issue a warning, and expand as normal; rather than issuing an error
  and expanding to the empty string.
* The eval macro now treats an empty radix argument as 10, handles radix 1,
  and treats the width argument as number of digits excluding the sign,
  for compatibility with other m4 implementations.
* The ifdef, divert, m4exit, substr, and translit macros now correctly
  ignore extra arguments.
* The popdef and undefine macros now correctly accept multiple arguments.
* Although changeword is on its last leg, if enabled, it now reverts to the
  default (faster) regexp when passed the empty string.
* The regexp and substr macros now warn and ignore a trailing backslash in
  the replacement, and warn on \n for n larger than the number of
  sub-expressions in the regexp.
* Fix a recursive push_string crashing bug, which affected changequote of
  three or more characters on some compilers.
* Use automake to fix build portability issues.
* Fix a recursive m4wrap crashing bug.
* Fix a 1 in 2**32 hash crashing bug.
* Tracing a macro by name is now persistent, even if the macro is
  subsequently undefined or redefined.  The traceon and traceoff macros no
  longer warn about undefined symbols.  This solves a crash when using
  indir on an undefined macro traced with the -t option, as well as an
  incorrect result of ifdef.  Furthermore, tracing is no longer transferred
  with builtins, solving the bug of "m4 -tm4_eval" failing to give trace
  output on the input "define(`m4_eval',defn(`eval'))m4_eval(1)".
* Fix a crash when a macro is undefined while collecting its arguments, by
  always using the definition that was in effect before argument
  collection.  This behavior matches the C pre-processor, and means that
  the sequence "define(`f',`1')f(define(`f',`2'))f" is now documented to
  result in "12", rather than the previously undocumented "22".
* Update the regex engine to fix several bugs.
* Fix a potential crash on machines where char is signed.

Copy of this message was sent to (ade@FreeBSD.org).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-09 22:40:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ade

Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101730 

Adding to audit trail from misfiled PR stuck in GNATS spam-queue:

Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2006-09-30 13:39:24 UTC
On Wed, 20 Sep 2006 09:22:20 -0400
Mikhail Teterin <mi+kde@aldan.algebra.com> mentioned:

> Stanislav!
> 
> Can you, please, explain the need for the extra patches Makefile.in.diff and 
> m4.info.diff? Thanks!
> 
> 	-mi
> 
> 


Stock FreeBSD 4's makeinfo fails to rebuild info files. Info
files from new m4 requires features available only in recent
texinfo. That's why these patches should be applied in case
of FreeBSD 4.

m4.info.diff is intended to replace M4 occurencies with Gm4
(for recent FreeBSD version it gets patched directly in
texinfo source.

-- 
Stanislav Sedov              <stas@FreeBSD.org>          [[òÏÓÓÉÑ, íÏÓË×Á]]
PGP id: 0xEB269581           http://people.freebsd.org/~stas/stas.key.asc
Comment 3 Ade Lovett freebsd_committer freebsd_triage 2006-12-04 01:22:26 UTC
State Changed
From-To: open->closed

devel/m4 has been updated to 1.4.8 -- I have *not* included the FreeBSD 4.x 
related patches here, since they add significant extra complexity for an 
OS version that is essentially impossible to use with a current ports/ tree.