Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 325395

Summary: app-office/ledger-2.6.2 fails on amd64: reference to free variable display-time-mode
Product: Gentoo Linux Reporter: Arttu Valo <arttuv69>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: arttuv69, dabbott, gentoo, vostorga
Priority: High    
Version: 10.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 323265    

Description Arttu Valo 2010-06-24 19:04:57 UTC
While emerging ledger-2.6.2 on a stable-ish amd64 it fail as follows:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.    -DHAVE_EXPAT=1    -O2 -march=k8-sse3 -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -pipe -MT ledger-main.o -MD -MP -MF .deps/ledger-main.Tpo -c -o ledger-main.o `test -f 'main.cc' || echo './'`main.cc
mv -f .deps/libledger_la-gnucash.Tpo .deps/libledger_la-gnucash.Plo
WARNING: Warnings can be ignored. :-)
if test "xemacs" != no; then \
          set x; \
          list='ledger.el timeclock.el ledger.el timeclock.el'; for p in $list; do \
            if test -f "$p"; then d=; else d="./"; fi; \
            set x "$@" "$d$p"; shift; \
          done; \
          shift; \
          EMACS="xemacs" /bin/sh ./elisp-comp "$@" || exit 1; \
        else : ; fi
cp: warning: source file `ledger.el' specified more than once
cp: warning: source file `timeclock.el' specified more than once

Compiling /var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2/elc.17011/ledger.el...
While compiling toplevel forms in file /var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2/elc.17011/ledger.el:
  !! File error (("Cannot open load file" "esh-util"))
>>Error occurred processing ledger.el: Cannot open load file: "esh-util"

Compiling /var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2/elc.17011/timeclock.el...
While compiling timeclock-modeline-display in file /var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2/elc.17011/timeclock.el:
  ** reference to free variable display-time-mode
While compiling timeclock-log-data:
  ** variable todays-date bound but not referenced
While compiling timeclock-find-discrep:
  ** variable avg bound but not referenced
While compiling the end of the data:
  ** The following functions are not known to be defined: 
    cancel-timer, time-less-p
Wrote /var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2/elc.17011/timeclock.elc
Done
make[1]: *** [elc-stamp] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/ledger-main.Tpo .deps/ledger-main.Po
make[1]: Leaving directory `/var/tmp/portage/app-office/ledger-2.6.2/work/ledger-2.6.2'
make: *** [all] Error 2
 * ERROR: app-office/ledger-2.6.2 failed:
 *   emake failed

--------
USE flags in use:

[ebuild  N    ] app-office/ledger-2.6.2  USE="gnuplot xml -debug -emacs -ofx" 0 kB
Comment 1 Arttu Valo 2010-06-27 19:42:06 UTC
If I unmerge xemacs then the emerge will sort of pass, but still not properly. ledger's files will be installed and merged to the file system (and the temp dir cleaned, bye build logs), but portage will still spit out a message mentioning an unspecified error at src_compile.
Comment 2 Nick White 2010-06-30 11:36:19 UTC
On x86 I don't see any error message regarding src_compile. I am using paludis, but it's normally really good about flagging up warnings.

My use flags: app-office/ledger -debug -emacs -gnuplot -ofx -xml
Comment 3 Arttu Valo 2010-07-04 11:43:21 UTC
If I change to USE="-xml" then ledger emerges just fine also on the amd64 system. We have a suspect.
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2010-07-08 15:02:00 UTC
Can you reproduce this issue with app-office/ledger-2.6.3 ?
If so, please attach build log and emerge --info
Comment 5 Arttu Valo 2010-07-08 18:51:57 UTC
(In reply to comment #4)
> Can you reproduce this issue with app-office/ledger-2.6.3 ?

Where can I find the 2.6.3 ebuild? Some overlay?

Dumb copying the 2.6.2 ebuild to 2.6.3 and dropping the patch is a no-go. It won't even configure out of the tarball. configuration fails nearly immediately due to the script not finding install.sh.
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2010-07-08 19:42:48 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Can you reproduce this issue with app-office/ledger-2.6.3 ?
> 
> Where can I find the 2.6.3 ebuild? Some overlay?

My bad, please wait a few hours and do an emerge --sync again

> 
> Dumb copying the 2.6.2 ebuild to 2.6.3 and dropping the patch is a no-go. It
> won't even configure out of the tarball. configuration fails nearly immediately
> due to the script not finding install.sh.
> 

Yeah, it won't work because it needs the magic of autoreconf, please sync as told above :)
Comment 7 Arttu Valo 2010-07-09 11:47:23 UTC
(In reply to comment #6)
> please wait a few hours and do an emerge --sync again

Yup, 2.6.3 ebuild in portage tree compiles with my settings as well. Thanks!