Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 166059
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: GNU Emacs Team <emacs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Martin Bays <mbays@sdf.lonestar.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
site-gentoo.el site-gentoo.el text/plain Martin Bays 2007-02-13 14:03 0000 5.52 KB Details
config.log emacs-cvs-22.0.9999 config.log text/plain Martin Bays 2007-02-13 14:05 0000 255.52 KB Details
app-editors:emacs-cvs-22.0.9999-r2:20070213-173313.log emerge log text/plain Martin Bays 2007-02-13 18:16 0000 666.09 KB Details
emacs-cvs-blessmail-build.patch Proposed bugfix: files/emacs-cvs-blessmail-build.patch patch Ulrich Müller 2007-02-17 10:47 0000 651 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 166059 depends on: 166682 Show dependency tree
Bug 166059 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-09 12:38 0000
Compilation failed:

Compressing *.el ...
chmod -R a+r
/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/image//usr/share/emacs/22.0.93/leim
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/leim'
cd lib-src; make maybe-blessmail  \
          MAKE='make' archlibdir='/usr/libexec/emacs/22.0.93/i686-pc-linux-gnu'
make[1]: Entering directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src'
../src/emacs -batch -l
/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: ipython
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src'
make: *** [blessmail] Error 2


$ emerge -pv emacs-cvs
[ebuild  N    ] app-editors/emacs-cvs-22.0.93-r2  USE="X alsa gif gtk jpeg
motif nls png spell -Xaw3d (-aqua) -gnome -gzip-el -lesstif -source -tiff
-toolkit-scroll-bars" 0 kB


$ emerge --info
Portage 2.1.2-r8 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0,
2.6.19-gonz i686)
=================================================================
System uname: 2.6.19-gonz i686 Pentium III (Katmai)
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 09 Feb 2007 08:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.4.3-r1, 1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch
publicworks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
http://gentoo.seren.com/gentoo http://gentoo.kems.net"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 arts avi bash-completion berkdb bitmap-fonts caca cli
cracklib crypt dga directfb dlloader dri eds emacs emboss encode esd fbcon
foomaticdb fortran gatos gdbm gif gpm gstreamer gtk gtk2 guile iconv imlib ipv6
isdnlog jpeg libg++ libwww mad midi mikmod mmx motif mozilla mp3 mpeg ncurses
nls nptl nsplugin ogg oggvorbis opengl oss pam pcre perl png pppd python qt3
qt4 quicktime readline real reflection sdl session spell spl sse ssl svga tcpd
theora truetype truetype-fonts type1-fonts udev unicode vorbis x86 xml xorg xv
xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU" VIDEO_CARDS="mach64 matrox mga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


/usr/share/emacs/site-lisp/site-gentoo.el does contain the line:
(require 'ipython)

I'm fairly sure I didn't put it there myself!

dev-python/ipython-0.7.3 is installed.

app-editors/emacs-21.4-r6 is installed and starts up correctly, without choking
in any obvious way on that line from site-gentoo.el.

------- Comment #1 From Christian Faulhammer 2007-02-13 06:26:27 0000 -------
Those compilation errors in a live ebuild are hard to catch and mostly caused
by upstream.  So please remove /usr/portage/cvs-src/emacs/ and try again.

------- Comment #2 From Martin Bays 2007-02-13 09:25:55 0000 -------
But it appears not to actually be a true cvs ebuild: rather it uses the source
at ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.93.tar.gz which has
datestamp Jan 23.

I should wait for 22.0.94? Or unmask emacs-cvs-22.0.9999, which seems to be an
actual live ebuild?

------- Comment #3 From Christian Faulhammer 2007-02-13 09:58:27 0000 -------
(In reply to comment #2)
> But it appears not to actually be a true cvs ebuild: rather it uses the source
> at ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.93.tar.gz which has
> datestamp Jan 23.

 Damn, I misread the summary...I thought it was 23.

> I should wait for 22.0.94? Or unmask emacs-cvs-22.0.9999, which seems to be an
> actual live ebuild?

 The release of emacs 22 isn't so far away.  Yes, please try the .9999, I will
have a look at 22.0.93-r2.

------- Comment #4 From Martin Bays 2007-02-13 11:58:51 0000 -------
22.0.9999-r2 bombed out with the same error:

make[1]: Entering directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l
/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: ipython
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2

------- Comment #5 From Christian Faulhammer 2007-02-13 12:28:30 0000 -------
I can't reproduce with your USE flags, with and without ipython, stable and
latest testing.  Please provide `emerge -pv ipython`.

------- Comment #6 From Martin Bays 2007-02-13 12:54:27 0000 -------
$ emerge -pv ipython
[ebuild   R   ] dev-python/ipython-0.7.3  USE="emacs -doc -examples -gnuplot
-test" 0 kB

------- Comment #7 From Christian Faulhammer 2007-02-13 13:24:12 0000 -------
What I think is that a path isn't exported to the Sandbox.  Try
`ROOTPATH="/usr/share/emacs/site-lisp/" emerge emacs-cvs` please.  I can't
reproduce your errors here.

Please give the contents of /usr/share/emacs/site-list/site-gentoo.el and I
will investigate a bit more.

------- Comment #8 From Christian Faulhammer 2007-02-13 13:28:18 0000 -------
Oh and maybe you can provide your config.log (using the ebuild command to
compile you should have it in /var/tmp/portage/.....).

------- Comment #9 From Martin Bays 2007-02-13 14:03:32 0000 -------
Created an attachment (id=110061) [details]
site-gentoo.el

------- Comment #10 From Martin Bays 2007-02-13 14:05:45 0000 -------
Created an attachment (id=110062) [details]
emacs-cvs-22.0.9999 config.log

------- Comment #11 From Martin Bays 2007-02-13 14:06:20 0000 -------
Same error when emerging with ROOTPATH set.

------- Comment #12 From Martin Bays 2007-02-13 14:12:06 0000 -------
Hmm... I don't know elisp, but going on pattern recognition alone my
site-gentoo.el appears to missing a line like
(add-to-list 'load-path "/usr/share/emacs/site-lisp/ipython")

I've tried adding that in, and am remerging.

------- Comment #13 From Christian Faulhammer 2007-02-13 14:24:00 0000 -------
(In reply to comment #12)
> Hmm... I don't know elisp, but going on pattern recognition alone my
> site-gentoo.el appears to missing a line like
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/ipython")
> > I've tried adding that in, and am remerging.

 I just recognized, that blessmail is ignored on my system, so I think you
could be right.

------- Comment #14 From Martin Bays 2007-02-13 14:52:03 0000 -------
Well, it stopped complaining about ipython after adding that line. But now I
get:

make[1]: Entering directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l
/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: python-mode
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2

even though there is an "add-to-list 'load-path" for the appropriate path to
python-mode.

------- Comment #15 From Martin Bays 2007-02-13 16:50:12 0000 -------
I just tried remerging python-mode, and this reverted
/usr/share/emacs/site-lisp/site-gentoo.el to the form I attached earlier, with
the ipython directory not being added to 'load-path. So now emerging emacs-cvs
gives the original error "Cannot open load file: ipython".

Is this a bug in dev-python/ipython's 50ipython-mode-gentoo.el, which currently
consists of the single line "(require 'ipython)"?

------- Comment #16 From Martin Bays 2007-02-13 16:52:52 0000 -------
Ah. Great minds think alike, eh?

------- Comment #17 From Christian Faulhammer 2007-02-13 17:11:50 0000 -------
(In reply to comment #14)
> Well, it stopped complaining about ipython after adding that line. But now I
> get:

 Ok, I had a look at the build system of Emacs, but can't find an obvious hint.
 So please provide the complete output of the emerge process.  Maybe I can find
something.

------- Comment #18 From Martin Bays 2007-02-13 18:16:12 0000 -------
Created an attachment (id=110084) [details]
emerge log

note that this is after hand-editing site-gentoo.el to fix the ipython problem

------- Comment #19 From Ulrich Müller 2007-02-16 22:49:07 0000 -------
Hm, ipython requires python-mode, so the ipython configuration within
site-gentoo.el should really be moved behind the one for python-mode.

Changing the ipython site-init file from 50ipython-mode-gentoo.el (why is it
called *-mode*, BTW?) to something like 62ipython-gentoo.el should do the job.

Martin: Could you edit your site-gentoo.el again, and verify if this fixes the
problem? Just move the line
(require 'ipython)
down and place it just after the python-mode configuration.

------- Comment #20 From Ulrich Müller 2007-02-17 07:27:34 0000 -------
dev-python/ipython also fails to rebuild the site-gentoo file. See bug #167305
(that I have just filed).

------- Comment #21 From Martin Bays 2007-02-17 09:30:35 0000 -------
After editing as requested in comment #19, it gets a fair bit further but still
fails on blessmail...

make[1]: Entering directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l
/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file...
Loading /usr/share/emacs/site-lisp/cedet/common/cedet...
"/usr/share/emacs/site-lisp/cedet/common/" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/cogre" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/ede" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/eieio" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/semantic" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/contrib" added to `load-path'
Setting up cedet...
Setting up cedet...done
Setting up cogre...
Setting up cogre...done
Setting up ede...
Setting up ede...done
Setting up eieio...
Setting up eieio...done
Setting up semantic...
Setting up semantic...done
Setting up speedbar...
Cannot open load file: speedbar-load
Setting up cedet-contrib...
Setting up cedet-contrib...done
ECB 2.32 uses loaded semantic 2.0pre3, eieio 1.0pre3 and speedbar 1.0.
Cannot open load file: semantic-el
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2


The path to semantic-el is
/usr/share/emacs/site-lisp/cedet/bovine/semantic-el.el

/usr/share/emacs/site-lisp/cedet/semantic/semantic.el also exists.

app-emacs/1.0_pre3-r2 is installed.

------- Comment #22 From Ulrich Müller 2007-02-17 10:45:30 0000 -------
I believe what we observe here are incompatibilities of some of your installed
Emacs extensions (cedet, ipython?) with Emacs-22.

On the other hand, during its build phase Emacs should not load the site-init
files at all. Indeed, in lisp/Makefile.in there is "EMACSOPT = -batch
--no-site-file --multibyte", whereas in lib-src/Makefile emacs is called on
blessmail.el without the "--no-site-file" option.

Attached patch should (hopefully) fix it.

------- Comment #23 From Ulrich Müller 2007-02-17 10:47:27 0000 -------
Created an attachment (id=110458) [details]
Proposed bugfix: files/emacs-cvs-blessmail-build.patch

------- Comment #24 From Martin Bays 2007-02-17 11:16:55 0000 -------
Good work, Ulrich. With that patch applied, it compiles without a hitch. It
also starts up without any obvious problems (though much slower that emacs-21).

Thanks.

------- Comment #25 From Ulrich Müller 2007-02-17 12:16:26 0000 -------
(In reply to comment #24)
> Good work, Ulrich. With that patch applied, it compiles without a hitch.

O.K., I have also reported the bug (and my patch) to Upstream.

This problem was already present in emacs-21.4 and I wonder why it had not
shown up before.

> Thanks.

You are welcome.

------- Comment #26 From Ulrich Müller 2007-02-20 08:22:14 0000 -------
The patch has been accepted by upstream and the bug is fixed in CVS:

> From: Glenn Morris <rgm@gnu.org>
> Thanks, I installed your fix...
> ... maybe you'd like to add this info to the Gentoo bug?

Only question that remains: Should the bugfix be applied to emacs-21.4, too?

------- Comment #27 From Christian Faulhammer 2007-02-20 22:23:04 0000 -------
(In reply to comment #26)
> The patch has been accepted by upstream and the bug is fixed in CVS:
> > From: Glenn Morris <rgm@gnu.org>
> > Thanks, I installed your fix...
> > ... maybe you'd like to add this info to the Gentoo bug?
> Only question that remains: Should the bugfix be applied to emacs-21.4, too?

 I did apply it to emacs-21.4-r7 (together with the temp string thingy) and
emacs-cvs-22.0.93-r2 (no revision bump, as it won't afflict users for which it
worked before).  Thanks a lot Ulrich for having a look as promised.  Fixed.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug