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

Bug 403673

Summary: app-office/libreoffice-3.5.0.3[-postgresql] fails to build: configure: error: pg_config needed;
Product: Gentoo Linux Reporter: Torsten Kaiser <Storklerk>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Torsten Kaiser 2012-02-14 18:31:27 UTC
checking which hsqldb to use... internal
checking PostgreSQL C interface... external PostgreSQL
checking for pg_config... no
configure: error: pg_config needed; set PGCONFIG if not in PATH

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/config.log
 * ERROR: app-office/libreoffice-3.5.0.3 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 8813:  Called econf '--docdir=/usr/share/doc/libreoffice-3.5.0.3/' '--with-system-headers' '--with-system-libs' '--with-system-jars' '--with-system-dicts' '--enable-cairo-canvas' '--enable-largefile' '--enable-python=system' '--enable-randr' '--enable-randr-link' '--enable-release-build' '--enable-unix-qstart-libpng' '--disable-ccache' '--disable-crashdump' '--disable-dependency-tracking' '--disable-epm' '--disable-fetch-external' '--disable-gnome-vfs' '--disable-ext-report-builder' '--disable-kdeab' '--disable-kde' '--disable-ldap' '--disable-mozilla' '--disable-online-update' '--disable-pch' '--disable-rpath' '--disable-static-gtk' '--disable-strip-solver' '--disable-ugly' '--disable-zenity' '--with-alloc=jemalloc' '--with-build-version=Gentoo official package' '--enable-extension-integration' '--with-external-dict-dir=/usr/share/myspell' '--with-external-hyph-dir=/usr/share/myspell' '--with-external-thes-dir=/usr/share/myspell' '--with-external-tar=/var/tmp/portage/app-office/libreoffice-3.5.0.3/distdir' '--with-lang=' '--with-max-jobs=6' '--with-num-cpus=6' '--with-theme=default oxygen' '--with-unix-wrapper=libreoffice' '--with-vendor=Gentoo Foundation' '--with-x' '--without-afms' '--without-fonts' '--without-myspell-dicts' '--without-ppds' '--without-stlport' '--without-system-mozilla' '--without-help' '--without-helppack-integration' '--without-sun-templates' '--enable-binfilter' '--enable-dbus' '--disable-crashdump' '--disable-evolution2' '--disable-gconf' '--disable-gio' '--disable-lockdown' '--enable-graphite' '--enable-gstreamer' '--enable-gtk' '--enable-gtk3' '--enable-systray' '--enable-ext-scripting-beanshell' '--enable-kde4' '--enable-ext-mysql-connector' '--enable-nsplugin' '--disable-odk' '--enable-opengl' '--enable-ext-pdfimport' '--disable-ext-postgresql-sdbc' '--enable-librsvg=system' '--disable-linkoo' '--enable-vba' '--enable-activex-component' '--enable-neon' '--enable-xmlsec' '--with-java' '--with-system-mysql-cppconn' '--without-system-sane' '--without-system-vigra' '--with-about-bitmap=/var/tmp/portage/app-office/libreoffice-3.5.0.3/work/branding-about.png' '--with-intro-bitmap=/var/tmp/portage/app-office/libreoffice-3.5.0.3/work/branding-intro.png' '--without-system-hsqldb' '--without-system-saxon' '--with-ant-home=/usr/share/ant' '--with-jdk-home=/usr/lib64/icedtea6' '--with-java-target-version=1.6' '--with-jvm-path=/usr/lib64/' '--with-beanshell-jar=/usr/share/bsh/lib/bsh.jar' '--with-lucene-core-jar=/usr/share/lucene-2.9/lib/lucene-core.jar' '--with-lucene-analyzers-jar=/usr/share/lucene-analyzers-2.3/lib/lucene-analyzers.jar' '--without-junit'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"

[ebuild     U  ] app-office/libreoffice-3.5.0.3 [3.5.0.1] USE="binfilter branding dbus graphite gstreamer gtk gtk3 java jemalloc kde mysql nsplugin opengl pdfimport svg vba webdav xmlsec (-aqua) -debug -eds -gnome -odk -postgres -test" ELIBC="(-FreeBSD)" 106,477 kB

The cause seems to be that the ebuild uses the following line to disable postgresql:
$(use_enable postgres ext-postgresql-sdbc)

But the help text of configure from libreoffice contains:
--disable-postgresql-sdbc
                          Disable the build of the PostgreSQL-SDBC driver.

I guess someone upstream change the name of the option and now even with USE=-postgresql the build wants to configure it. And fails, because I have no postgresql installed and without the USE the libreoffice will not DEPEND on it.
Comment 1 Torsten Kaiser 2012-02-14 18:34:18 UTC
... sorry. Had already been reported.

*** This bug has been marked as a duplicate of bug 401401 ***