GNOME Bugzilla – Bug 680708
Can't build on FreeBSD ports system due to use of `$PKG_CONFIG --version xml` in configure
Last modified: 2018-06-29 23:09:45 UTC
Created attachment 219743 [details] modification to configure script which allows building on recent FreeBSD ports system. In the configure script there is the line: LIBXML_VERSION=`$PKG_CONFIG --version xml` (same in configure.ac) This line looks quite bogus by itself(it returns the version of the $PKG_CONFIG tool being used). It used to work with pkg-config because it just returns a number. In the FreeBSD ports system it now causes an invalid Makefile to be generated due to migration to pkgconf, which has a different output for the --version option. Also, the LIBXML_VERSION variable, which gets populated in all the Makefiles is not used. The attached patch simply forces it to 0.0 instead of the backtick command and this makes the software build correctly. Maybe that LIBXML_VERSION variable is some remain from the past which should be removed? Thanks in advance for any feedback.
You are right, it's not used anywhere. I'll remove it.
Committed to trunk in r22272.
And 2.4 in r22273. The fix will be in 2.4.12, if one is ever released.
Thanks for the very fast feedback!
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=680708. Please update any external references or bookmarks.