New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14991 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

gnucash --disable-debug and --disable profile configure options turn ON debugging and profiling

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

Description

gnucash kept leaving "gmon.out" files strewn over my drive (it took me a while to figure out that it gnucash was the culprit!) It turns out that the current Portfile passes the --disable-debug and --disable profile configure options which seem to have the opposite effect: see the below output from "port -v configure gnucash +without_hbci" (note "-g" and "-pg" in CFLAGS and LDFLAGS)

  Options detected/selected
  -------------------------
  gnucash version ...... : 2.2.4
  Build for host ....... : i386-apple-darwin9.2.2
  Optional components....: ofx
  Extra Warnings ....... :  -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2
  CPPFLAGS ............. : -I/opt/local/include
  CFLAGS ............... :  -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2  -g  -O2 -pg -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused
  LDFLAGS .............. : -L/opt/local/lib -g -pg
  prefix.................: /opt/local
  QOF support ...........: internal
  QOF location ..........: internal
  QOF library dir .......: 
  QOF backend config ....: /opt/local/gnucash/xml/qsf

Once these two configure options are removed, gnucash no longer compiles with debugging and profiling, and gmon.out files are a thing of the past.

I'll attach a Portfile patch, but this assumes that the patch on ticket #14893 has already been applied. Sorry, but I wasn't sure what to do about two unrelated patches for the one file...

Attachments

patch-gnucash-Portfile.diff (401 bytes) - added by mp@… 5 years ago.

Change History

Changed 5 years ago by mp@…

comment:1 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to jmr@…
  • Status changed from new to assigned

comment:2 Changed 5 years ago by jmr@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Thanks, committed in r36495.

comment:3 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.