Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED (local issue)] help me understand portage's behavour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
oliver
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 170

PostPosted: Thu Jun 25, 2009 3:34 pm    Post subject: [SOLVED (local issue)] help me understand portage's behavour Reply with quote

Original title was: help me understand portage's behavour on legacy gtk build

EDIT
I don't really know the root cause, but I booted off a Sabayon live CD and the same ebuild compiled perfectly... I quickpkg'd it up and installed on my real O/S and all is good. So I guess it must be something odd on my installation. Either way, I don't think this is a gentoo or ebuild problem. Thanks for reading though

I have a legacy app that requires gnome-libs (yes, I know)

I have an ebuild, but it errors out in the configure part

Code:
checking for floor in -lm... yes
checking for dlfcn.h... (cached) yes
checking for locale.h... (cached) yes
checking for gmodule support... no
configure: error: Dynamic linking is not available on this platform. Some apps,
like panel, will not run properly.
 *
 * ERROR: gnome-base/gnome-libs-1.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2721:  Called die
 * The specific snippet of code:
 *       ./configure --host=${CHOST} --prefix=/usr --libdir=/usr/$(get_libdir) --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --localstatedir=/var/lib --enable-prefer-db1 ${myconf} || die;
 *  The die message:
 *   (no error message)


If I stick it in debug mode, I see the actual 'configure' command (from the build log) is:

Code:
./configure --host=x86_64-pc-linux-gnu --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --localstatedir=/var/lib --enable-prefer-db1 --disable-nls --disable-gtk-doc


If I run that directly from /var/tmp/portage/gnome-base/gnome-libs-1.4.2/work/gnome-libs-1.4.2 it gets past the gmodule support part.

Code:
checking for floor in -lm... yes
checking for dlfcn.h... (cached) yes
checking for locale.h... (cached) yes
checking for gmodule support... yes
checking for strerror... (cached) yes
checking for gethostbyname... yes
checking for setfsgid... yes
checking for setenv... (cached) yes
checking for putenv... (cached) yes
checking for strdup... (cached) yes


So it seems that it's something in the ebuild that changes the behaviour

The ebuild is:
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-libs/gnome-libs-1.4.2.ebuild,v 1.31 2006/01/16 03:58:47 halcy0n Exp $

inherit eutils libtool multilib autotools

DESCRIPTION="GNOME Core Libraries"
HOMEPAGE="http://www.gnome.org/"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/sources/${PN}/1.4/${P}.tar.bz2"

WANT_AUTOCONF=2.1

LICENSE="GPL-2"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86"
IUSE="doc nls kde"

RDEPEND=">=media-libs/imlib-1.9.10
        >=media-sound/esound-0.2.23
        =gnome-base/orbit-0*
        =x11-libs/gtk+-1.2*
        <=sys-libs/db-2
        doc? ( app-text/docbook-sgml
                dev-util/gtk-doc )"
DEPEND="${RDEPEND}
        nls? ( >=sys-devel/gettext-0.10.40
                >=dev-util/intltool-0.11 )"

src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}"/${P}-m4.patch
        # Correct problems with documentation. See bug #44439.
        epatch "${FILESDIR}"/${P}-gtkdoc_fixes.patch
        # Fix compilation with GCC4 ; bug #94321
        epatch "${FILESDIR}"/${P}-gcc4.patch
        # Fix compilation with GCC4 on ppc64 ; bug #117750
        epatch "${FILESDIR}"/${P}-ppc64.patch
        eautoconf
}

src_compile() {
        CFLAGS="$CFLAGS -I/usr/include/db1"

        # On alpha with 3.3.2 compilers we need to restrict options to
        # make this actually build.  I don't know what the upper limit is
        # but the following works (and who really cares about
        # gnome-libs-1.4.x performance)
        # (12 Nov 2003 agriffis)
        if use alpha; then
                # hopefully this overrides whatever is earlier on the line
                # since working out the replacements would be a pain
                CFLAGS="${CFLAGS} -O0 -mcpu=ev4"
        fi

        local myconf

        use nls || myconf="${myconf} --disable-nls"
        use kde && myconf="${myconf} --with-kde-datadir=/usr/share"
        use doc || myconf="${myconf} --disable-gtk-doc"

        # libtoolize
        elibtoolize

        ./configure --host=${CHOST} \
                --prefix=/usr \
                --libdir=/usr/$(get_libdir) \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
                --sysconfdir=/etc \
                --localstatedir=/var/lib \
                --enable-prefer-db1 \
                ${myconf} || die

        emake || die

        #do the docs (maby add a use variable or put in seperate
        #ebuild since it is mostly developer docs?)
        if use doc
        then
                cd ${S}/devel-docs
                emake || die
                cd ${S}
        fi
}

src_install() {
        make prefix=${D}/usr \
                libdir=${D}/usr/$(get_libdir) \
                mandir=${D}/usr/share/man \
                infodir=${D}/usr/share/info \
                sysconfdir=${D}/etc \
                localstatedir=${D}/var/lib \
                docdir=${D}/usr/share/doc/${P} \
                HTML_DIR=${D}/usr/share/gnome/html \
                install || die

        rm ${D}/usr/share/gtkrc*

        dodoc AUTHORS ChangeLog README NEWS HACKING
}


What am I missing?

Alternatively, is there any way to install manually (./configure; make; make install) and then create a tbz2 package that emerge understands?

Thanks
_________________
I can't help quoting you. 'Cos everything that you said rings true.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum