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 760016 - 2.6.10 and master dump script error while running configure
2.6.10 and master dump script error while running configure
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Documentation
git-master
Other Linux
: Normal normal
: ---
Assigned To: gnucash-documentation-maint
gnucash-documentation-maint
Depends on:
Blocks:
 
 
Reported: 2015-12-30 23:52 UTC by Gilles Dartiguelongue
Modified: 2018-06-29 23:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gilles Dartiguelongue 2015-12-30 23:52:32 UTC
checking for fop... no
configure: WARNING: fop not found. You will not be able to generate PDF files.
configure: WARNING:
        fop-ttfreader not found, using the default Japanese fonts.

./configure: 2764: [: -lt: unexpected operator

This is because configure.ac is using a bash specific construct:

if [[ $fop_version -lt 2 ]]; then
Comment 1 John Ralls 2015-12-31 16:46:55 UTC
Does changing it to
  if [ test $fop_version -lt 2 ]; then
work for you?
Comment 2 John Ralls 2016-01-01 20:36:14 UTC
No, it's not bash-specific, but it is Bourne shell specific. If using `test` fixes if for you, great, I've pushed that fix. If not you'll need to install a Bourne-compliant shell and either link it to /bin/sh or set $CONFIG_SHELL to point to it.
Comment 3 Gilles Dartiguelongue 2016-01-01 23:19:56 UTC
using just:

if test $fop_version -lt 2; then

works for me. I wanted to prepare a patch using AS_IF like my recent gnucash patch but it needs more work than I currently have time for so this simple fix is ok for me.
Comment 4 John Ralls 2018-06-29 23:45:33 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=760016. Please update any external references or bookmarks.