Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85771 - muttng fails to link when "gpgme" in USE
Summary: muttng fails to link when "gpgme" in USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 06:34 UTC by Stelian Ionescu
Modified: 2005-03-25 04:35 UTC (History)
2 users (show)

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


Attachments
diff (muttng.diff,1.90 KB, patch)
2005-03-20 11:35 UTC, Torsten Veller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stelian Ionescu 2005-03-18 06:34:30 UTC
when gpgme support is enabled, libgpgme is not added to the list of libraries that muttng should link with. infact the command that links the muttng binary:

i686-pc-linux-gnu-gcc  -Wall -pedantic -pipe   -o muttng <lots_of_object_files> -Limap -limap -lslang -lm -L/usr/lib -lgnutls -lgcrypt -lgpg-error -lz -lsasl2   -lidn  -L/usr/lib -lgdbm

gives me a lot of errors of undefined references to functions belonging to libgpgme

this small patch to configure.in solves the problem:

--- muttng-orig-20050317/configure.in	2005-03-16 06:17:35.000000000 +0100
+++ /var/tmp/portage/muttng-20050317/work/muttng-20050317/configure.in	2005-03-18 15:05:54.469667784 +0100
@@ -114,6 +114,7 @@
 		else
 			LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
 			LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
+			MUTTLIBS="$MUTTLIBS $LIBGPGME_LIBS"
 			MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
 			AC_DEFINE(CRYPT_BACKEND_GPGME, 1,
 			          [Defined, if GPGME support is enabled])


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2005-03-18 10:16:57 UTC
Did you send this already upstream so it gets fixed in the next snapshot?
I don't know if 'fleang' for muttng works.
Comment 2 cprior 2005-03-18 13:04:00 UTC
I can confirm this bug.
Re: comment #1: I went first to bugs.gentoo.org as the ebuild (surprisingly) refers here.
Comment 3 Stelian Ionescu 2005-03-18 14:44:39 UTC
I'll report the bug to upstream too
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2005-03-20 11:34:18 UTC
Stelian submitted his patch upstream and it should be included in the latest snapshot. Thanks, Stelian.

cprior, thanks for this hint. As we don't want to strain upstream devs with distribution bugs it's best to post bugs here.

Aron, i attach a diff with some changes.
- gdbm or db is needed for headercache database (gdbm is chosen first in configure.)
- openssl is not needed if gnutls is selected
- added idn as useflag - there is already a package in the tree with this useflag
- autofoo moved to DEPEND
- >=autoconf-2.5 is needed
- added mixmaster support as requested for mutt
- is ncurses needed if slang is USEd?

BTW How do you want to maintain muttng? When will you release a new version?
Comment 5 Torsten Veller (RETIRED) gentoo-dev 2005-03-20 11:35:00 UTC
Created attachment 53963 [details, diff]
diff
Comment 6 Christopher Korn 2005-03-21 01:05:06 UTC
nice work torsten.

i guess if aron have enough time he will make updates on mutt. but it probably take some time. :/
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2005-03-25 04:35:57 UTC
All set now.  Thanks guys!