Summary: | [PATCH] xrdb should use mcpp if it's available | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Lorenzo Colitti <lorenzo> | ||||
Component: | App/xrdb | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED WONTFIX | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | enhancement | ||||||
Priority: | high | CC: | erik.andren, jwarnier | ||||
Version: | unspecified | Keywords: | patch | ||||
Hardware: | x86 (IA32) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Lorenzo Colitti
2005-08-31 11:03:11 UTC
Got a patch? No, I would need to understand how imake works first. :( But I'll come up with such a patch if it's likely to be accepted... The other problem is: how common is mcpp installed, anyway? It certainly isn't installed by default on my ubuntu system. Also, on my system cpp looks to be the same size as mcpp: 90K bytes. So where is this problem, again? It's not installed by default, but there are Debian and Ubuntu packages for it. I don't know about fedora. Regarding size, ccp is 90k but on my system it vforks and execs /usr/lib/gcc/i486-linux-gnu/4.0.2/cc1, which on my system is 4.3M You can see this with "strace -f cpp" Created attachment 3142 [details] [review] Try preferred preprocessors before falling back to CPP Tries the preprocessors in the preferred_cpps variable one by one and runs the first one it finds. If there are no preprocessors or if none can be found, it falls back to the CPP defined at compile time. The list of preferred preprocessors defaults to "mccp" I disagree with this approach. X should use standard utilities as much as possible. If you want to micro-optimize things this way, you already have all the knobs available. It is also possible to specify CppCmd=/usr/bin/mcpp in host.def (or add support for the autoconf build) for this kind of use. Originally I had considered detecting the cpp binary at compile time, but then if it were uninstalled xrdb would break completely, which is even worse. With the runtime check, it just works if mcpp (or any other compiler you want to put into the list) is present, and falls back gracefully if not. Added patch keyword http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=339683 blocks this: it makes mcpp useless for xrdb without that patch, which seems to be seriously bitrotting. Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. I originally wrote a patch for startup scripts instead of build-time. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343828. Patch doesn't apply. Bug is totally inactive. Closing. If you want to revive this, please send a patch to xorg-devel@lists.x.org. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.