Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276045 - import dev-db/freetds, with econf changes
Summary: import dev-db/freetds, with econf changes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 08:59 UTC by Michael Yang
Modified: 2010-07-10 11:26 UTC (History)
1 user (show)

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


Attachments
patch for freetds-0.82-r2 ebuild (freetds-0.82-r2.ebuild.prefix.patch,528 bytes, patch)
2009-07-01 09:01 UTC, Michael Yang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Yang 2009-07-01 08:59:44 UTC
configure fails with sql.h not found if odbc USE flag is enabled.


Reproducible: Always

Steps to Reproduce:
1. USE="mssql odbc"
2. emerge unixODBC
3. emerge freetds

Actual Results:  
configure -> sql.h not found

Expected Results:  
installed freetds successfully

$ emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /home/testprefix/gentoo/usr/local/portage/my-overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2.00.13683-prefix (prefix/linux/x86, gcc-4.3.3, unavailable, 2.6.28-13-generic i686)
=================================================================
System uname: Linux-2.6.28-13-generic-i686-Intel-R-_Pentium-R-_M_processor_1600MHz-with-debian-5.0
Timestamp of tree: Wed, 01 Jul 2009 08:13:56 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.6.2-r01.1
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/binutils:  2.19.51.0.10
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.1
ACCEPT_KEYWORDS="~x86-linux"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/testprefix/gentoo/usr/portage/distfiles"
EPREFIX="/home/testprefix/gentoo"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/home/testprefix/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/testprefix/gentoo/"
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="/home/testprefix/gentoo/var/tmp"
PORTDIR="/home/testprefix/gentoo/usr/portage"
PORTDIR_OVERLAY="/home/testprefix/gentoo/usr/local/portage/my-overlay"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="berkdb bzip2 cli cracklib crypt dri fortran iconv ipv6 isdnlog midi mssql mudflap ncurses nls nptl nptlonly odbc openmp pcre perl pppd prefix python readline reflection session spl ssl sysfs tcpd unicode x86 xorg 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 mmap_emul 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Yang 2009-07-01 09:01:21 UTC
Created attachment 196232 [details, diff]
patch for freetds-0.82-r2 ebuild

inserted EPREFIX into unix flag with-unixodbc
Comment 2 Michael Yang 2009-07-01 09:10:51 UTC
note: used ecopy dev-db/freetds
Comment 3 Fabian Groffen gentoo-dev 2010-07-10 10:34:58 UTC
@php: please review and accept the following changes for Prefix:

diff -u -r1.1 freetds-0.82-r3.ebuild
--- freetds-0.82-r3.ebuild      14 Jun 2010 17:08:19 -0000      1.1
+++ freetds-0.82-r3.ebuild      10 Jul 2010 10:23:21 -0000
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-db/freetds/freetds-0.82-r3.ebuild,v 1.1 2010/06/14 17:08:19 mabi Exp $
 
-EAPI="2"
+EAPI="3"
 
 inherit autotools
 
@@ -31,9 +31,9 @@
        myconf="--with-tdsver=7.0 $(use_enable mssql msdblib)"
 
        if use iodbc ; then
-               myconf="${myconf} --enable-odbc --with-iodbc=/usr"
+               myconf="${myconf} --enable-odbc --with-iodbc=${EPREFIX}/usr"
        elif use odbc ; then
-               myconf="${myconf} --enable-odbc --with-unixodbc=/usr"
+               myconf="${myconf} --enable-odbc --with-unixodbc=${EPREFIX}/usr"
        fi
 
        econf $myconf || die "econf failed"
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-07-10 11:22:40 UTC
Sure, go ahead.
Comment 5 Fabian Groffen gentoo-dev 2010-07-10 11:26:33 UTC
thanks, applied