Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102540 - xemacs can't load berkeley-db
Summary: xemacs can't load berkeley-db
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-14 13:38 UTC by Dan Girellini
Modified: 2006-12-10 03:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix gdbm / berkdb confusion. (xemacs-db-patch,1.07 KB, patch)
2006-10-21 23:27 UTC, Adam Jones
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Girellini 2005-08-14 13:38:58 UTC
Even though xemacs is emerged with the +berkdb flag, xemacs doesn't seem to have
berkeley-db support.

Reproducible: Always
Steps to Reproduce:
1. M-x toggle-where-was-i

Actual Results:  
Error:  Cannot open load file: berkeley-db




   * app-editors/xemacs-21.4.15-r3
   Install date: Sun Aug 14 13:08:16 2005
   USE="gpm ldap nas X jpeg tiff png motif berkdb -postgres -xface -dnd -mule
-freewnn -canna -athena -neXt -Xaw3d"

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-
r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10, 2.16-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd
 dvdread eds emacs emboss encode esd exif fam ffmpeg flac foomaticdb fortran gd 
gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg junit lda
p libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg nas ncurses nls offensive 
ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline ruby sdl 
slang speex spell sse sse2 ssl tcltk tcpd tiff truetype truetype-fonts type1-fon
ts vorbis xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2005-09-03 02:59:32 UTC
yes, i seems that berkdb should be renamed to gdbm.

where does toggle-where-was-i come from? i don't have it.
Comment 2 Dan Girellini 2005-09-03 14:47:37 UTC
It's part of app-xemacs/edit-utils.
Comment 3 Geoff Leach 2006-06-08 02:14:29 UTC
Setting berkdb does indeed enable gdbm.

Updated ebuild for 21.4.19 in bug 97786 has both a gdbm and a berkdb flag. 

I tried toggle-where-was-i for the first time :) 

 
Comment 4 Adam Jones 2006-10-21 23:27:31 UTC
Created attachment 100194 [details, diff]
Patch to fix gdbm / berkdb confusion.


I've created a patch (which I have attached to this bug report) which does two things: first, it cleans up the current berkdb/gdbm confusion, so that if berkdb is specified, then that is what is used, and if gdbm is specified, then that is what is used;  second, this patch causes xemacs to use db-4 rather than db-1.
Comment 5 Hans de Graaff gentoo-dev Security 2006-12-10 03:43:26 UTC
This is now fixed in xemacs 21.4.19-r2, using a combination of my own and Adam's patches.