Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 11/19/2007 2:52 AM:
 Eric Blake a écrit :
 I'm the m4 maintainer, and am not using debian myself, so I don't have
 direct access to the files you are mentioning
   
 A bit surprising on bugs.debian.org ;)

That's because anyone is allowed to subscribe to debian bug feeds, whether
or not they use debian.  I have found that debian bug reports for m4 tend
to flush out issues that also affect other platforms, so I subscribed in
order to improve m4.  However, in this case, there is no m4 bug.

 
 Here's the whole directory /usr/share/sendmail hoping it will help ;)

Yep.  cf.m4 includes cfhead.m4, which does changecom(^A), which means that
# no longer starts m4 comments.  That means that text that follows # is
live to m4, and thus the line:

#   * `sendmailconfig`

in sendmail.mc is starting an unterminated doubly-nested quoted string,
rather than being a comment.

This is a sendmail bug, not an m4 bug.  cfhead.m4 should probably be
changed to call changecom(`#') after it has done all its work, once again
making # start comments in the user file, so that text in the user
comments is no longer live to m4.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQY4K84KuGfSFAYARAh8oAJ9XlOe5DM2df1jZUw8pjhEakaFJ5ACffitR
YDgO6B6sDFrjf16ga2IW2BU=
=4Bz1
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-19 Thread [EMAIL PROTECTED]

Eric Blake a écrit :

This is a sendmail bug, not an m4 bug.  cfhead.m4 should probably be
changed to call changecom(`#') after it has done all its work, once again
making # start comments in the user file, so that text in the user
comments is no longer live to m4.
  
So is it possible for you to forward this bug to Sendmail or may I send 
another bug report there ?






Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-19 Thread Santiago Vila
On Mon, 19 Nov 2007, [EMAIL PROTECTED] wrote:

 Eric Blake a écrit :
  This is a sendmail bug, not an m4 bug.  cfhead.m4 should probably be
  changed to call changecom(`#') after it has done all its work, once again
  making # start comments in the user file, so that text in the user
  comments is no longer live to m4.

 So is it possible for you to forward this bug to Sendmail or may I send
 another bug report there ?

I'm going to reassign it to the debian sendmail package.




Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-19 Thread Santiago Vila
reassign 451346 sendmail
thanks

Hello.

This bug was submitted against m4, but it's a sendmail bug.
See complete history here:

http://bugs.debian.org/451346

This is how Eric Blake, m4 author, explains why it is a bug in sendmail:

On Mon, 19 Nov 2007, Eric Blake wrote:

 [...]
  Here's the whole directory /usr/share/sendmail hoping it will help ;)
 
 Yep.  cf.m4 includes cfhead.m4, which does changecom(^A), which means that
 # no longer starts m4 comments.  That means that text that follows # is
 live to m4, and thus the line:
 
 #   * `sendmailconfig`
 
 in sendmail.mc is starting an unterminated doubly-nested quoted string,
 rather than being a comment.
 
 This is a sendmail bug, not an m4 bug.  cfhead.m4 should probably be
 changed to call changecom(`#') after it has done all its work, once again
 making # start comments in the user file, so that text in the user
 comments is no longer live to m4.

Thanks a lot.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-19 Thread Richard A Nelson


Very interesting issue !

Actually, the changecom is deliberate, as we want the # lines to be
passed through the m4 processing and into the resultant sendmail.cf;
who treats the # lines as comments.

The next odd thing is that the problem disappeared when you deleted
lines 18 and 19...  but that leaves line 20 - which also has `...`
in it;  why did it work with that line still there ?

Next up, is that I am running the same level of m4, and my sendmail.mc
starts the same (has the same three lines).   What version of sendmail
are you running?

Can you send me your sendmail.mc and any include() files it
references (sans anything in /usr/share/sendmail/cf - unless you've
changed them) ?

I should peruse the distributed mc/m4 files for `...` in comments,
but first I want to understand why this is failing for you, but not
for everyone  I'm expecting an edit elsewhere went amiss.

Thanks,
--
Rick
I sat laughing snidely into my notebook until they showed me a PC running
Linux. And oh! It was as though the heavens opened and God handed down a
client-side OS so beautiful, so graceful, and so elegant that a million
Microsoft developers couldn't have invented it even if they had a hundred
years and a thousand crates of Jolt cola.
-- LAN Times

On Mon, 19 Nov 2007, Santiago Vila wrote:


reassign 451346 sendmail
thanks

Hello.

This bug was submitted against m4, but it's a sendmail bug.
See complete history here:

http://bugs.debian.org/451346

This is how Eric Blake, m4 author, explains why it is a bug in sendmail:

On Mon, 19 Nov 2007, Eric Blake wrote:


[...]

Here's the whole directory /usr/share/sendmail hoping it will help ;)


Yep.  cf.m4 includes cfhead.m4, which does changecom(^A), which means that
# no longer starts m4 comments.  That means that text that follows # is
live to m4, and thus the line:

#   * `sendmailconfig`

in sendmail.mc is starting an unterminated doubly-nested quoted string,
rather than being a comment.

This is a sendmail bug, not an m4 bug.  cfhead.m4 should probably be
changed to call changecom(`#') after it has done all its work, once again
making # start comments in the user file, so that text in the user
comments is no longer live to m4.


Thanks a lot.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 11/15/2007 1:16 AM:
 m4:debian/sendmail.mc:18: ERROR: end of file in string
 
 when running m4 on the default sendmail.mc file.
 After anylizing the mentioned line
 #   * `sendmailconfig`
 and making a few tests it appears that if I remove the antiquotes `
 there is no more error 

I need to see more context before I can determine whether this is, as I
suspect, a quoting bug in your sendmail.mc file and not a bug in m4.  For
example, was line 18 inside a macro definition, and what were the current
quote and comment delimiters?  Please attach the sendmail.mc file that was
causing the problems.

This chapter in the m4 manual may be helpful:
http://www.gnu.org/software/m4/manual/html_node/Pseudo-Arguments.html#Pseudo-Arguments

It gives an example where an unquoted comment occurs _inside a macro
call_, and as a result, changes the behavior of the rescanning algorithm
to be less than intuitive.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPEWH84KuGfSFAYARAsWHAJ0U39U7C43BjpzgmZFgzDQNQBq2DQCgrru2
UmuUK8Y9e/tSpC0iWftA8+4=
=oUYJ
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to [EMAIL PROTECTED] on 11/15/2007 7:46 AM:
 Hello, the problem is that the sendmail.mc file, I'm talking about is
 the default one in my out of the box debian server...

I'm the m4 maintainer, and am not using debian myself, so I don't have
direct access to the files you are mentioning unless you send them to me.
 Maybe the debian packager will speak up on this matter soon.

 m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/sendmail.mc

You've now attached the problem lines in /etc/mail/sendmail.mc, but
without knowing the context of /usr/share/sendmail/cf/m4/cf.m4, I don't
know what the current quote and comment delimiters are at the time
sendmail.mc is parsed.  I can't reproduce the problem on my machine, given
the information presented so far, but lacking the exact files you are
parsing.  My suspicion is still that this is not an m4 bug, but a bug in
cf.m4 that is causing the lines in sendmail.mc to be interpreted with
different quoting rules than what you are normally used to.  Also, some
lines wrapped in your sendmail.mc example; consider attaching the file so
that line wraps don't ruin it.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPn0R84KuGfSFAYARAgnNAJkBpGeJdA3sQg++gSXDrOTH90Ur/ACgoCSK
wZjVUVROlBrUKELQ6r53Vc8=
=O7ze
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-15 Thread [EMAIL PROTECTED]
Package: m4
Version: 1.4.10-1
Severity: normal

I get the error :
 m4:debian/sendmail.mc:18: ERROR: end of file in string

when running m4 on the default sendmail.mc file.
After anylizing the mentioned line
 #   * `sendmailconfig`
and making a few tests it appears that if I remove the antiquotes `
there is no more error 
It's strange because as the line is commented out the quotes shouldn't matter

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages m4 depends on:
ii  libc6 2.6.1-1+b1 GNU C Library: Shared libraries

m4 recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#451346: m4:debian/sendmail.mc:18: ERROR: end of file in string

2007-11-15 Thread [EMAIL PROTECTED]
Hello, the problem is that the sendmail.mc file, I'm talking about is 
the default one in my out of the box debian server...

I can find it there :
/usr/share/sendmail/cf/debian/sendmail.mc
by the way there's the same problem with submit.mc in the same path.

I first discovered this error trying to add features to sendmail using 
webmin module, so I posted a bug report at webmin's, but it seemed 
rapidly obvious that the problem wasn't in webmin

as running
 m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/sendmail.mc
in the shell gave the same result.

I first tried to remove line 18 :
# * `sendmailconfig`
in the file but I got the same error, so I removed the new line 18
# * `make`
And then It worked...

It seems that there's something in the next line of this kind
# * `m4 /etc/mail/sendmail.mc  /etc/mail/sendmail.cf`
which prevents the error to occur, perhaps the  in the middle ?


here's the header of the sendmail.mc where are located the faulty lines

divert(-1)dnl
#-
# $Sendmail: debproto.mc,v 8.13.8 2006-12-08 20:21:10 cowboy Exp $
#
# Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
#
# cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.13.8
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
#   file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate
/etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the
following:
#   * `sendmailconfig`
#   * `make`
#   * `m4 /etc/mail/sendmail.mc  /etc/mail/sendmail.cf`
# The first two options are preferred as they will also update other
files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-
divert(0)dnl





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]