Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202135 - app-office/openoffice fails to configure with cups USE flag disabled
Summary: app-office/openoffice fails to configure with cups USE flag disabled
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-13 14:58 UTC by Mr. B
Modified: 2007-12-14 15:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. B 2007-12-13 14:58:10 UTC
Configure appears to want cups headers, doesn't find them, so bails out:

checking for unistd.h... yes
checking cups/cups.h usability... no
checking cups/cups.h presence... no
checking for cups/cups.h... no
configure: error: cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-2.3.1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 5458:  Called die
 * The specific snippet of code:
 *       make || diefunc "$FUNCNAME" "$LINENO" "$?" "Build failed"
 *  The die message:
 *   Build failed


Downgrading to 2.1.3.19 solves the problem.

I got this with OO.o 2.3.0 too, but didn't think to downgrade portage. Doesn't work with sandbox and userpriv disabled either.

openoffice options:
USE="cairo gtk pam"
LINGUAS="en_GB"

Relevant emerge --info information:
Portage 2.1.4_rc9 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Timestamp of tree: Thu, 13 Dec 2007 02:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r6, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en_GB"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/gechi /usr/portage/local/layman/xeffects /usr/portage/local/layman/nouveau /usr/portage/local/layman/berkano /usr/portage/local/layman/toolchain /usr/portage/local/layman/mozilla /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
ELIBC="glibc" KERNEL="linux" LINGUAS="en_GB" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

My first but report, please don't bite. :P
Comment 1 Zac Medico gentoo-dev 2007-12-13 19:45:33 UTC
Is cups installed? If so, it seems like your installation got corrupted somehow. You should try reinstalling cups.
Comment 2 Mr. B 2007-12-13 23:46:34 UTC
I haven't got cups installed, I don't want cups installed and thus have the cups use flag disabled.
Comment 3 Zac Medico gentoo-dev 2007-12-14 00:01:12 UTC
(In reply to comment #2)
> I haven't got cups installed, I don't want cups installed and thus have the
> cups use flag disabled.

Ahh, sounds like a possible bug in the ebuild or configure script.
Comment 4 Mr. B 2007-12-14 03:53:40 UTC
Well, as I stated in the summary, it works with portage 2.1.3.19, so I assumed it was a bug in portage 2.1.4_rc9. My mistake.(?)
Comment 5 Zac Medico gentoo-dev 2007-12-14 08:33:19 UTC
(In reply to comment #4)
> Well, as I stated in the summary, it works with portage 2.1.3.19, so I assumed
> it was a bug in portage 2.1.4_rc9. My mistake.(?)

Can you try again and see if it's reproducible? I just unmerged cups here and tried to build it with USE=-cups and it seemed to make it through the configure script just fine.
Comment 6 SpanKY gentoo-dev 2007-12-14 12:04:49 UTC
post the config.log from the build directory ... one from the successful run and one from the failure

also post full build logs as attachments (one from each run), not just a snippet

that should hopefully allow us to better diagnosis things
Comment 7 Mr. B 2007-12-14 15:10:03 UTC
My apologies, when I was obtaining a config log I noticed this:

 * Found db version 4.5
//etc/portage/bashrc-ng/bashrc-ng.conf: line 83: --with-intro-bitmaps="/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/src/openintro_gentoo.bmp": No such file or directory
//etc/portage/bashrc-ng/bashrc-ng.conf: line 84: --disable-binfilter: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 85: --disable-mozilla: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 86: --without-system-mozilla: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 87: --disable-cups: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 88: --disable-ldap: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 89: --without-openldap: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 90: --disable-evolution2: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 91: --disable-gnome-vfs: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 92: --disable-lockdown: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 93: --disable-atkbridge: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 94: --disable-gstreamer: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 95: --disable-dbus: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 96: --disable-neon: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 97: --without-system-neon: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 98: --disable-pasf: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 99: --without-system-portaudio: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 100: --without-system-sndfile: command not found
//etc/portage/bashrc-ng/bashrc-ng.conf: line 101: --disable-crashdump: command not found
>>> Unpacking source...

There's no sandbox error with userpriv enabled and none with sandbox disabled so, it appears as though bashrc-ng is incompatible with 2.1.4_rc9. Which is strange because (I thought) I'd disabled bashrc-ng a while back (all references removed in make.conf, all options commented out in bashrc-ng.conf). The config options are written to bashrc-ng.conf

So I apologise for any time wasted on my part.