[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#33990: marked as done (DEFS botches macros with arguments)



Your message dated Mon, 22 Dec 2025 18:02:22 +0000
with message-id <[🔎] E1vXkEg-00GKT8-2W@fasolo.debian.org>
and subject line Bug#1081135: Removed package(s) from unstable
has caused the Debian Bug report #33990,
regarding DEFS botches macros with arguments
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
33990: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=33990
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: autoconf
Version: 1.2

[Checking the CVS tree as of today, this bug still applies to 1.3.]

Currently, it is only possible to define a macro with arguments when
using AC_CONFIG_HEADER.  Thus, 

  AC_DEFINE([EXT_C(sym)], sym)

correctly produces

  #define EXT_C(sym) sym

in the config.h.

If AC_CONFIG_HEADER is not used, the translation of the header file
into @DEFS@ messes up the macro definition, producing:

  -DEXT_C=\(sym\)\ sym

The attached fix is quite trivial:

1999-03-01  Gordon Matzigkeit  <gord@trick.fig.org>

	* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): Don't require that macro
	symbols be valid C identifiers.

This makes the above AC_DEFINE generate the following:

  -DEXT_C\(sym\)=sym

Thanks,

-- 
 Gordon Matzigkeit <gord@fig.org>  //\ I'm a FIG (http://www.fig.org/)
Committed to freedom and diversity \// I use GNU (http://www.gnu.org/)

--- acgeneral.m4~	Mon Mar  1 08:36:12 1999
+++ acgeneral.m4	Mon Mar  1 08:36:28 1999
@@ -2007,7 +2007,7 @@
 # Protect against Makefile macro expansion.
 cat > conftest.defs <<\EOF
 changequote(<<, >>)dnl
-s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
+s%<<#define>> \([^ 	][^ 	]*\) *\(.*\)%-D\1=\2%g
 s%[ 	`~<<#>>$^&*(){}\\|;'"<>?]%\\&%g
 s%\[%\\&%g
 s%\]%\\&%g


--- End Message ---
--- Begin Message ---
Version: 2.13-69+rm

Dear submitter,

as the package autoconf2.13 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1081135

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply to: