The XPRINT merge added lines to linux.cf, FreeBSD.cf, and NetBSD.cf to define HasMotif YES. However, this is not the case on most of our users' machines, and has created a decent bit of support load on irc with people getting errors about Xm includes. Seems like we ought to apply the following and let people set HasMotif if they actually have it. (untested)
Created attachment 374 [details] [review] remove new HasMotif (and friends) defines
Eric Anholt wrote: > The XPRINT merge added lines to linux.cf, FreeBSD.cf, and NetBSD.cf to define > HasMotif YES. Known issue. I described that in http://freedesktop.org/pipermail/release-wranglers/2004-April/000589.html but until today (e.g. two months) I didn't saw any complaints or bugzilla bugs... > However, this is not the case on most of our users' machines, > and has created a decent bit of support load on irc with people getting errors > about Xm includes. Seems like we ought to apply the following and let people > set HasMotif if they actually have it. (untested) The problem is that there are libraries in the tree which depend on the Motif libraries. Usually they do not get build because the Linux distributions don't turn |HasMotif| "on" and then the libraries do not get build. The usual "solution" is to ship those libs with the applications then... but that has caused serious problems in the past. Yes... I know... Linux people don't care about binary compatibility - but the problem has reached a point where the term "DLL h*ll" is an understatement... ;-( Same applies to some tools in the tree... I am still unhappy about the detail that xstshowfont will never be part of the tree because it does not make sense to have a major tool in the tree which don't get build on platforms where it is needed. BTW: Why did you remove the |HasGhostScript| setting, too ? AFAIK even FreeBSD has GhostScript installed by default - and unlike Motif GhostScript is not a shared library so you won't get linker issues.
No, FreeBSD definitely doesn't have Ghostscript or Motif by default. An argument could be made that ghostscript will be installed on most FreeBSDers' machines that are installing xorg (I would disagree, but they should use ports anyway, where dependencies like that would be handled automatically), but HasMotif defaulting to YES is definitely not an option. Few people have Motif installed, and I think that "At least almost everybody has it installed" should be a requirement for Has* to be set by default. I have a hard time convincing myself that the default HasExpat for FreeBSD is even justified, and just about everyone has that. The HasMotif thing seems to be especially and issue because as far as I know you're going to need your xorg installed to be able to build motif...
Mhhh, I'll meet Egbert next week and then we'll debate the issue and make a decision whether the tree should depend on Motif or not.
Committed a fix. GhostScript was left in because it doesn't appear to be a build dependency, it will probably be wanted by anyone using Xprint, and Xprint is its only consumer. Leaving that in still feels dirty.
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.