Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2014 - Balsa-1.2.4 build still fails -- two more fix suggestions
Summary: Balsa-1.2.4 build still fails -- two more fix suggestions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
: 2002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-22 20:50 UTC by Scott A. Friedman
Modified: 2003-02-04 19:42 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 Scott A. Friedman 2002-04-22 20:50:43 UTC
Hi

The Balsa build still fails. I dig around and there seems to be at least two 
things I see.

1. The Balsa 'configure' script has two errors(?) in it both relating to 
libesmtp. On lines 8978 and 9022 -lemstp is listed twice. One of these should 
be -lstdc++. Otherwise the test fails because -lpspell doesn't link. This 
looks like a Balsa bug so it's probably not a gentoo prob. Maybe someone can 
make a temporary patch?

2. Once this is changed the configure script again fails because Balsa wants 
libiconv to be available. It's currently masked in my portage tree. 

Thanks,
Scott
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-04-22 20:53:40 UTC
*** Bug 2002 has been marked as a duplicate of this bug. ***
Comment 2 Riccardo Persichetti 2002-04-24 04:54:46 UTC
i think i've solved the problem...

yes, the problem is with -lpspell, because it requires
also -lstdc++

i've made a simple diff that patches configure

here you are:

---diff-start---

--- balsa-1.3.4-orig/configure  Mon Mar 25 00:34:33 2002
+++ balsa-1.3.4/configure       Tue Apr 23 02:15:35 2002
@@ -6629,7 +6629,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lpspell $LIBS"
+  LIBS="-lpspell -lstdc++ $LIBS"
 
 else
   echo "$ac_t""no" 1>&6

---diff-end---

As you can notice i've made this patch against
1.3.4 because it is much much better than 1.2.4
and also quite stable...

here you are the balsa-1.3.4 ebuild:

---balsa-1.3.4.ebuild-start---

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke (blocke@shivan.org)
# Modified by Riccardo Persichetti (ricpersi@libero.it)
# /space/gentoo/cvsroot/gentoo-x86/net-mail/balsa/balsa-1.3.4.ebuild,v 1.2
2002/04/12 18:48:20 spider Exp

A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Balsa: email client for GNOME"
SRC_URI="http://www.theochem.kth.se/~pawsa/balsa/${A}"
HOMEPAGE="http://www.balsa.net"

DEPEND="=dev-libs/glib-1.2*
        >=x11-libs/gtk+-1.2.10-r4
        >=media-libs/imlib-1.9.10-r1
        >=gnome-base/gnome-core-1.4.0.4-r1
        >=gnome-base/gnome-print-0.30
        >=gnome-base/ORBit-0.5.10-r1
        >=media-libs/gdk-pixbuf-0.13.0
        >=app-text/pspell-0.11.2
        >=net-libs/libesmtp-0.8.6
        >=dev-libs/libpcre-3.4
        gtkhtml? ( >=gnome-extra/gtkhtml-0.16.1 )
        nls? ( sys-devel/gettext )
        ssl? ( dev-libs/openssl )"

src_unpack() {

        unpack ${P}.tar.bz2

        # this patch is from Riccardo Persichetti
        # (ricpersi@libero.it) to make balsa compile

        patch -p0 < ${FILESDIR}/balsa-1.3.4.diff
}

src_compile() {
        local myconf

        if [ -z "`use nls`" ] ; then
                myconf="$myconf --disable-nls"
        fi

        if [ "`use ssl`" ] ; then
                myconf="$myconf --with-ssl"
        fi

        if [ "`use gtkhtml`" ] ; then
                myconf="$myconf --with-gtkhtml"
        fi

        libmutt/configure --prefix=/usr --host=${CHOST} --with-mailpath=/var/mail
        assert "configure libmutt failed"
        ./configure --prefix=/usr --host=${CHOST} --enable-threads --enable-pcre
$myconf
        assert "configure balsa failed"
        emake || die "emake failed"
}

src_install () {
        make DESTDIR=${D} install || die "make install failed"
        dodoc AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README TODO docs/*
}

---balsa-1.3.4.ebuild-end---

it's not yet finished, infact balsa relyes on libesmtp,
gentoo installs 0.8.6 that is very old, 0.8.11 is newest...

---libesmtp-0.8.11.ebuild-start---

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke <blocke@shivan.org>
# /space/gentoo/cvsroot/gentoo-x86/net-libs/libesmtp/libesmtp-0.8.11.ebuild,v
1.1 2001/12/20 15:35:51 chouser Exp

A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="libESMTP is a library that implements the client side of the SMTP
protocol"
SRC_URI="http://www.stafford.uklinux.net/libesmtp/${A}"
HOMEPAGE="http://www.stafford.uklinux.net/libesmtp/index.html"

DEPEND="virtual/glibc
        >=sys-devel/libtool-1.3.5-r2
        ssl? ( >=dev-libs/openssl-0.9.6b )"

src_compile() {
        local myconf
        use ssl || myconf="$myconf --without-openssl"

        ./configure --prefix=/usr --enable-require-all-recipients $myconf
        assert "configure failed"
        emake || die "emake failed"
}

src_install () {
        make prefix=${D}/usr install || die "make install failed"
        dodoc AUTHORS COPYING COPYING.GPL INSTALL ChangeLog NEWS Notes README
TODO doc/api.xml
}

---libesmtp-0.8.11.ebuild-start---


that's it, hope this changes get it soon...


Cheers,

  Riccardo.
Comment 3 Spider (RETIRED) gentoo-dev 2002-04-24 16:55:29 UTC
in portage, 
I've made a patch for 1.2.4 and 1.3.4 is there but masked.