Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169526 - app-office/openoffice-2.1.0 doesn't build with sys-libs/db-4.5
Summary: app-office/openoffice-2.1.0 doesn't build with sys-libs/db-4.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 22:10 UTC by dextorb
Modified: 2007-03-14 16:26 UTC (History)
3 users (show)

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


Attachments
add detection of db 4.5 (detect-db4.5.diff,1.04 KB, patch)
2007-03-06 10:16 UTC, Giacomo Perale
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dextorb 2007-03-05 22:10:18 UTC
openoffice-2.1.0 does not build with the newest version of sys-libs/db (4.5), so imho the ebuild should contain a "<=sys-libs/db-4.4" at the DEPENDS. 

Reproducible: Always
Comment 1 dextorb 2007-03-05 22:17:34 UTC
Portage 2.1.2.1 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Pentium III (Coppermine)
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 05 Mar 2007 21:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
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.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alias alsa audiofile automount autoreplace bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli connectionstatus contactnotes cracklib crypt css cups dbus divx dri dvd dvdr encode ffmpeg firefox flac fortran gdbm gif glitz gmedia gpm highlight history iconv idea imagemagick imlib jpeg kde kipi lcms libg++ logrotate lzo mad mikmod mmx mng mp3 mpeg mplayer musepack ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pdf perl php png postgres ppds python qt3 qt4 quicktime readline real realmedia reflection samba sdl session sndfile spell spl sqlite sse ssl svg tcl tcpd tiff tk tools truetype truetype-fonts type1-fonts udev unicode vcd vorbis wavpack win32codecs wma wmf wmp x86 xinerama xml xorg xrandr xv xvid yahoo 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 dextorb 2007-03-05 22:33:05 UTC
# eix -e db
[I] sys-libs/db
     Available versions:
        (1)     1.85-r1 1.85-r2 1.85-r3
        (3)     3.2.9-r10 3.2.9-r11
        (4.2)   4.2.52_p2-r1 4.2.52_p4-r2
        (4.3)   (~)4.3.29-r2
        (4.4)   (~)4.4.20_p4
        (4.5)   (~)4.5.20_p2
     Installed versions:  4.5.20_p2(4.5)(18:33:22 05.03.2007)(-bootstrap -doc -elibc_FreeBSD -java -nocxx tcl -test)
     Homepage:            http://www.oracle.com/technology/software/products/berkeley-db/index.html
     Description:         Oracle Berkeley DB


So, it's just db-4.5.20p2 installed.


By "emerge app-office/openoffice-2.1.0" I get this result:

...
checking which db to use... external
checking db-4.4/db.h usability... no
checking db-4.4/db.h presence... no
checking for db-4.4/db.h... no
checking db4.4/db.h usability... no
checking db4.4/db.h presence... no
checking for db4.4/db.h... no
checking db-4.3/db.h usability... no
checking db-4.3/db.h presence... no
checking for db-4.3/db.h... no
checking db4.3/db.h usability... no
checking db4.3/db.h presence... no
checking for db4.3/db.h... no
checking db-4.2/db.h usability... no
checking db-4.2/db.h presence... no
checking for db-4.2/db.h... no
checking db4.2/db.h usability... no
checking db4.2/db.h presence... no
checking for db4.2/db.h... no
checking db-4.1/db.h usability... no
checking db-4.1/db.h presence... no
checking for db-4.1/db.h... no
checking db4.1/db.h usability... no
checking db4.1/db.h presence... no
checking for db4.1/db.h... no
checking db-4/db.h usability... no
checking db-4/db.h presence... no
checking for db-4/db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db/db.h usability... no
checking db/db.h presence... no
checking for db/db.h... no
configure: error: no. install the db4-dev package
make: *** [stamp/build] Fehler 1

!!! ERROR: app-office/openoffice-2.1.0 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 5336:   Called src_compile
  openoffice-2.1.0.ebuild, line 322:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.1.0/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
                                           
Comment 3 dextorb 2007-03-05 22:39:12 UTC
By adding "<=sys-libs/db-4.4" to the COMMON_DEPENDS it shows:

# emerge -pv openoffice

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] sys-libs/db-4.3.29-r2  USE="tcl -bootstrap -doc -java -nocxx -test" 0 kB
[ebuild   R   ] app-office/openoffice-2.1.0  USE="cairo cups dbus firefox kde pam -binfilter -branding -debug -eds -gnome -gstreamer -gtk -java -ldap -odk -seamonkey -sound -webdav" LINGUAS="de -af -ar -as_IN -be_BY -bg -bn -bs -ca -cs -cy -da -el -en -en_GB -en_US -en_ZA -es -et -fa -fi -fr -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -lt -lv -mk -nb -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB

Total: 2 packages (1 in new slot, 1 reinstall), Size of downloads: 0 kB

By doing so, oo-emerge runs fine. But I don't really know, why a 4.3 and not a 4.4 will be installed. 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-05 22:45:12 UTC
https://bugs.gentoo.org/enter_bug.cgi?format=guided

<snip>
Bugzilla: Bugs regarding the Gentoo Bugzilla website  (bugs.gentoo.org),
Bugs related to ebuilds belong in 'Gentoo Linux'
</snip>

Sigh... hard to read, or what? This is NOT a Gentoo Bugzilla product bug!

Comment 5 dextorb 2007-03-05 22:56:21 UTC
Hi Jakub Moc,

indeed, I misunderstood this. I am sorry.
Comment 6 Giacomo Perale 2007-03-06 10:16:53 UTC
Created attachment 112270 [details, diff]
add detection of db 4.5

Actually, what goes wrong is that configure can't detect the presence of db 4.5 so it fails. The attached patch fixes the detection and the build process can continue.

At the moment I'm still building openoffice so I don't know if db 4.5 is compatible, I'm going to report on the result of the compilation later.
Comment 7 Hanno Zysik (geki) 2007-03-06 10:45:26 UTC
@ Giacomo
You may check the upgrade guide [1] for Berkeley DB to fix errors. Once you get openoffice merged open the "Help" (F1) and surf through it to see if it has any runtime issues. Thanks!

[1] http://www.oracle.com/technology/documentation/berkeley-db/db/ref/upgrade.4.5/toc.html
Comment 8 Giacomo Perale 2007-03-06 16:11:23 UTC
Ok, openoffice compiled without errors and is now merged. The help is working without problems: summary, search, internal links, everything seems to be ok, as far as I can see. I can't assure that there aren't memleaks, bugs triggered by specific actions or something else, of course.
Comment 9 dextorb 2007-03-06 17:47:31 UTC
Thanks alot Giacomo Perale,

this is a much better idea, then trying oo to use another db, as the newest. This patch is working here too, as far as I can see, building hasn't finished yet.
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2007-03-06 19:07:07 UTC
Builds and works fine here too, so I've added the patch to the ebuild. Still waiting for some more feedback before closing this.

thanks everyone
Comment 11 dextorb 2007-03-07 18:24:33 UTC
Building has been completed now, and the tests with the OO-Help run without any problem.
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2007-03-14 16:26:52 UTC
Forgot to close this