[patch] header define symbol pollution

Ralf Corsepius rc040203 at freenet.de
Tue Sep 19 07:16:22 PDT 2006


Hi,

The patch below addresses apt's API polluting its headers with defines
reserved to autoconf/autoheader. 

To address this, I used a brute-force approach:

* Rename all WITH_ defines (Namespace of defines reserved to autoconf)
which are used in exported headers, into APT_WITH_
* Export a secondary, manually written config header
(apt-pkg/aptconf.h), which only contains these defines (autoheader only
generates the first AC_CONFIG_HEADER inside a configure.ac).

After applying the patch, svn add apt-pkg/aptconf.h.in and run
autoreconf from the toplevel to regenerate the auto* generated files.

Ralf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-rpm-rc-20060919-1.diff
Type: text/x-patch
Size: 23267 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20060919/60b002f9/attachment-0002.bin>


More information about the Apt-Rpm mailing list