Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209929 - app-misc/sphinx ebuild does not enable postgresql support
Summary: app-misc/sphinx ebuild does not enable postgresql support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
: 210330 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-12 21:43 UTC by konstantinos metaxas
Modified: 2008-02-18 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 konstantinos metaxas 2008-02-12 21:43:37 UTC
The app-misc/sphinx ebuilds (currently 0.9.7 and 0.9.8_pre1065) do not enable support for postgresql, although the do support the 'postgres' USE flag.

The ebuild uses the use-with()function:
Like this:
$(use_with postgres) \

But the package's configure script uses --with-pgsql for enabling postgresql.

Reproducible: Always

Steps to Reproduce:
1.USE="postgres" emerge sphinx
2.Watch the configure script that says:checking whether to compile with PostgreSQL support... no
3.




Portage 2.1.4.4 (default-linux/amd64/2006.1, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo x86_64)
=================================================================
System uname: 2.6.23-gentoo x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Timestamp of tree: Tue, 12 Feb 2008 13:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
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.6.3, 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-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ntua.gr http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pythonhead /usr/portage/local/layman/pro-audio /usr/portage/local/layman/kde /usr/portage/local/arcanum"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi aiglx akode alsa amd64 apache2 arts avi berkdb bitmap-fonts bonobo bzip2 cddb cdr cli cracklib crypt cscope cups dbus dga dmi dmx doc dri dts dv dvb dvd dvdnav dvdr dvdread encode evo fftw flac flash foomaticdb fortran ftp gd gdbm ggi gif gnokii gnome gnutls gphoto2 gpm gtk gtk2 gtkhtml guile hal iconv ieee1394 imap imlib innodb ipv6 isdnlog ivtv jack java jave jpeg kde kdeenablefinal kdehiddenvisibility ladcca ldap libcaca libgda libwww lirc lm_sensors mad matroska mbox midi mmap mmx2motif mozilla mp3 mpeg mpi mudflap mule mysql nas ncurses nls nptl nptlonly odbc ogg oggvorbis openal openexr opengl openmp pam pcre pda pdf perl php pic pie png postgres postgresql ppds pppd python qt quicktime rar rdesktop readline reflection ruby samba scanner sdl session slp sndfile snmp sox speex spell spl sqlite srt ssl svg tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos vorbis wifi wxwindows x264 xanim xcomposite xine xinerama xml xml1 xml2 xorg xosd xprint xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="snd-emu10k1 hda-intel" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 konstantinos metaxas 2008-02-12 21:47:31 UTC
I managed to get it working by doing this:
Replacing src_compile()
from this:
src_compile() {
    econf \
        $(use_with mysql) \
        $(use_with postgres) \
        $(use_with debug) || die "econf failed"
     emake || die "emake failed"
}
To this:
src_compile() {
    if use postgres; then
        conf_opts="${conf_opts} --with-pgsql"
    fi

    econf \
        $(use_with mysql) \
        $(use_with debug) \
        ${conf_opts} || die "econf failed"

    emake || die "emake failed"
}
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 07:34:41 UTC
*** Bug 210330 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 07:35:33 UTC
(In reply to comment #1)

$(use_with postgres pgsql) is a lot shorter solution. :)
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2008-02-18 15:10:29 UTC
fixed in latest version.  Thanks for the report.