Opened 16 years ago

Closed 16 years ago

#14297 closed defect (fixed)

Patch to update gnucash to 2.2.3 with bug-fixes

Reported by: mp@… Owned by: reiffert@…
Priority: High Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Gnucash 2.2.1 does not build on leopard because it depends on guile16 which has non-standard filenames. These problems are discussed extensively in ticket #13472.

There is a patch to fix the guile16 portfile in ticket #14296

I have cleaned up the gnucash portfile patch submitted by macosforge.lbn@… - updating the gnucash version to 2.2.3 and changing custom recursive file-traversal code to use fs-traverse instead.

I will also attach here the two patches from #13472 that need to be put in the gnucash/files directory.

Attachments (5)

patch-gnucash-Portfile.diff (1.5 KB) - added by mp@… 16 years ago.
patch for gnucash Portfile
patch-configure.diff (7.0 KB) - added by mp@… 16 years ago.
Copy into gnucash/files port directory
patch-SplitP.h.diff (375 bytes) - added by mp@… 16 years ago.
Copy into gnucash/files port directory
gnucash-2.2.3-error (3.9 KB) - added by lutz.horn@… 16 years ago.
Build output when trying to install gnucash with the patches.
patch-gnucash-Portfile.2.diff (1.1 KB) - added by mp@… 16 years ago.

Download all attachments as: .zip

Change History (11)

Changed 16 years ago by mp@…

Attachment: patch-gnucash-Portfile.diff added

patch for gnucash Portfile

Changed 16 years ago by mp@…

Attachment: patch-configure.diff added

Copy into gnucash/files port directory

Changed 16 years ago by mp@…

Attachment: patch-SplitP.h.diff added

Copy into gnucash/files port directory

Changed 16 years ago by lutz.horn@…

Attachment: gnucash-2.2.3-error added

Build output when trying to install gnucash with the patches.

comment:1 Changed 16 years ago by lutz.horn@…

After building guile16 with the patch from ticket #14296, applying the patches above, and trying to build gnucash, I get the error:

Making all in engine
chmod u+x ./iso-currencies-to-c
GUILE_LOAD_PATH=: srcdir=. ./iso-currencies-to-c
ERROR: In procedure open-file:
ERROR: No such file or directory: "/opt/local/share/guile/1.8/slib/require"
make[3]: *** [iso-4217-currencies.c] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Please see the attached file gnucash-2.2.3-error for the complete build output.

System is MacOS X 10.5.2, MacPorts 1.600.

comment:2 in reply to:  1 Changed 16 years ago by lutz.horn@…

Replying to lutz.horn@fastmail.fm:

After building guile16 with the patch from ticket #14296, applying the patches above, and trying to build gnucash, I get the error:

I've uninstalled gnucash and guile16, reapplied the patches, and now it works. gnucash is build corretly and runs.

I recommend to commit the patches for both guile16 and gnucash.

comment:3 Changed 16 years ago by reiffert@…

Owner: changed from macports-tickets@… to reiffert@…

When I was building gnucash with your patches, it wants to exec 'guile' from over 50 places in various shell scripts. What do you suppose? /opt/local/bin/guile does not exist in guile16 anymore. Suggestions?

comment:4 Changed 16 years ago by mp@…

I've added an extra line to the Portfile patch that replaces all 'exec guile' with 'exec guile16'. Most of these occurrences are in test files which aren't used, but there was one file that does need the change.

I also removed '+without-docs' from the default variants because

  1. the name was wrong - it should have been '+without_docs'
  2. firefox-x11 now builds, so gnucash-docs should build too

Changed 16 years ago by mp@…

comment:5 Changed 16 years ago by reiffert@…

I cant tell anything on without-docs as you dont do anything in your patch with it. Please add a complete Portfile, I will have a diff to my local version myself. What about gnucash 2.2.4?

comment:6 Changed 16 years ago by reiffert@…

Resolution: fixed
Status: newclosed

Gnucash 2.2.4 made it into svn in r35110. Please open new tickets when you find another error. Thanks for your work!

Note: See TracTickets for help on using tickets.