[bug#67516] [PATCH] aclocal: handle both # and dnl for serial number lines
Mike Frysinger <[email protected]> Fri, 1 Dec 2023 15:10:02 -0500
| Newsgroups | gmane.comp.sysutils.automake.patches |
|---|---|
| Message-ID | <ZWo9mlnK-ctrf5_Q@vapier> |
On 28 Nov 2023 16:27, Nick Bowler wrote: > On 2023-11-28 16:06, Karl Berry wrote: > > Hi Ross - you sent a change to automake-patches back in February 2017. > > Sorry for the absurdly delayed reply. > > > > https://lists.gnu.org/archive/html/automake-patches/2017-02/msg00001.html > > > > Instead of only accepting comment lines that start with # for serial > > lines, also accept dnl. > > ... > > -my $serial_line_rx = '^#\s*serial\s+(\S*)'; > > +my $serial_line_rx = '^(?:#|dnl)\s*serial\s+(\S*)'; > > > > While there's no technical problem with the patch, I'm not sure > > supporting dnl is desirable. It seems better for the serial line to > > always end up in whatever file is generated, for the sake of debugging > > and documentation, instead of being eliminated at m4-time. If there was > > a specific case where it was better to eliminate it, please describe ... > > This shouldn't make any difference. In all "normal" uses of aclocal > everything in these files is going to be diverted to KILL anyway so > neither form should result in any output text going into configure. > > And with respect to how aclocal imports macro files into a project > (either as separate files w/ --install, or directly into aclocal.m4), > it just copies files verbatim so it doesn't matter what syntax is used. > > But by the same token there would seem to be no technical reason to > prefer dnl over #... only angle of concern i can think of is that people are using dnl in their code without realizing it's basically silently ignored. if we don't want to support dnl, we should prob be chatty about it at some log level. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmVqPZoACgkQQWM7n+g3 9YG67xAAoBBbc2TzLjEaJ2ptf06JDAwnSgGuJjYcLzn1h8IbrlI5zqibhSj/Ornd FwICaNW8QLIsoJBBMvLRzgYEJf73/xVkpoj326XQHzbGpy6Y8t60wG9XE2NvY6QK X3YqkDY9gWYWm/Eio6rMcJKSc7PTYkNapIq3S+y/VW5jGTx3wp5xKfQ1B3bMr76o Etqilgb9v3WZS13EDV7VoU8T1xTNsn91TSo8/Uk2X5a/8G5DDS15Pi8eIKCYpEn8 UYTCE3XKHMUF90w5CTQd7sjKreOUqcoCesRTOfCIBGir4eys5wM//OdWVuijhDFA CMGGWJr6Hyv2FAOxLIEyKQweL9hp+oXAShXKtqliTBmm5iZ7JyA94iY/1mq/horV ws+o7kTtou54L1oFU9O12gXj5TOOyRq+hKEh97jDY9W/g6i/v+TB2i0luV8Y+me1 9tI/kVTJh0FfmppDvjNjqXN6nqLf6s9QZGROSYrBs+5tqTI+CGQBlNBcaLicFTuk l43vl2aIu4CnBeZ3wZzfr+ukWJrB/zPr58pXGp2Iot1vQGGFZt7P9um4hZs/hAJl CMRIIOY69JzRwZhLXvjI1I9EvRkzqsNY6C/wDb1jE3M4JrFf6aYqHJ/smInF4396 ckbiDIAwDXbT1drJBBrncZSCYxknlc5WnH6PbMPclafTvNa4QT8= =Vj/T -----END PGP SIGNATURE-----