After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680708 - Can't build on FreeBSD ports system due to use of `$PKG_CONFIG --version xml` in configure
Can't build on FreeBSD ports system due to use of `$PKG_CONFIG --version xml`...
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.4.x
Other FreeBSD
: Normal major
: ---
Assigned To: Derek Atkins
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2012-07-27 15:20 UTC by mad
Modified: 2018-06-29 23:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
modification to configure script which allows building on recent FreeBSD ports system. (506 bytes, application/octet-stream)
2012-07-27 15:20 UTC, mad
Details

Description mad 2012-07-27 15:20:23 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.
Comment 1 Derek Atkins 2012-07-27 15:40:54 UTC
You are right, it's not used anywhere.  I'll remove it.
Comment 2 Derek Atkins 2012-07-27 15:46:14 UTC
Committed to trunk in r22272.
Comment 3 Derek Atkins 2012-07-27 15:55:10 UTC
And 2.4 in r22273.
The fix will be in 2.4.12, if one is ever released.
Comment 4 mad 2012-07-27 15:57:39 UTC
Thanks for the very fast feedback!
Comment 5 John Ralls 2017-09-24 22:42:02 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 6 John Ralls 2018-06-29 23:09:45 UTC
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.