Hello Roland,

Looks like the gcc (4.7.2-5 in Debian) preprocessor just discards the "\"
line endings instead of interpreting as line continuations, resulting in
broken resulting files, as reported below.

Is this a known issue?

Please see also http://bugs.debian.org/698760 and please tell how we
can help debugging this.

Yes, this is a known issue.

I corrected it in one place, which is scmos/Makefile.  If you look
at that file, the lines of the type

        sed -e 's/\\/\\\\/' scmos.tech.in > scmos.tech.out

Are meant to add an extra backslash for each backslash in the file,
so that the preprocessor will remove only one of them, and keep the
rest.

This is clearly a bug in the preprocessor, and I was hoping it would
be fixed quickly, but apparently not.

The ideal solution would be to convert all the magic techfile input
files to m4 format, but it was a time-consuming task and I have never
done it.  Barring that, the proper solution would be to have the
configure script detect the preprocessor and handle the cases.  But
it may be okay to put the double-backslash in, as I think magic will
properly handle input with a double backslash if the preprocessor
does not convert it.

After fixing the Makefile in the scmos directory, I was unaware that
the Makefile in scmos/cif_template was also causing problems.

So tentatively, I think a good solution is to add the -e 's/\\/\\\\/'
line to SED_CMD in cif_template/Makefile.  I think this will solve
the problem.
                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: t...@opencircuitdesign.com    |
| Open Circuit Design, Inc.      | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-5030               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to