Red Hat Bugzilla – Bug 427475
libxml++-devel examples build instructions vague
Last modified: 2008-05-13 06:00:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20071213 Fedora/188.8.131.52-3.fc8 Firefox/184.108.40.206
Description of problem:
The "Compilation and Linking" section
gives some broad pointers, but the
directory contains only a README file, no makefile or specific build instructions.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. <no steps documented>
Head scratching - I could try a few alternatives, but which one? How many others have ended up at the same crossroads?
A platform-specific makefile to build all the example apps would be best.
Next best would be autoconf/automake scripts, but seeing such a script determining the size of an "int" is getting old considering that the RPM is targetted at the i386 architecture.
Every example directory contains an "example" file that refers to
so there should also be a script/documentation on how to copy the examples directory to somewhere the user can build it.
The examples are added to the devel package just for convenience and reference.
If you really want to build them, you should download the entire project tar
ball and manually build it...
Still, the examples should be very easy to build by just using pkgconfig. You
only need these 2 lines in Makefile:
CXXFLAGS += `pkg-config --cflags libxml++-2.6`
LDFLAGS += `pkg-config --libs libxml++-2.6`
I'm sorry for being a nit-picker but this is still not as concrete as it could be.
I understand completely the way to write such a makefile/makefiles.
My point is, if two million people spend an hour figuring this out then that's
228.9 man YEARS wasted, when it's entirely possible that these same individuals
simply wanted to see an example running.
If you like, I could write it for you.
Alternative 2: Leave out the sample source files.
Alternative 3: Add your comment above to the README file.
Alternative 4: leave out the sample source files and add your comment above to
the README file.
Sorry I have to close this as a WONTFIX. As i said, the examples are added
purely as a convenience. As a matter of fact they're not installed by the
upstream build system, so this is already a deviation from what upstream is
doing. If the examples themselves generate complaints, I'll remove them
altogether from the devel package.
Also, almost all development packages in Fedora rely on pkg-config. libxml++ is
a very standard development package in that regard.