Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592664 - mail-client/mutt-1.7.0 fails at build: SASL support is only useful with POP or IMAP support
Summary: mail-client/mutt-1.7.0 fails at build: SASL support is only useful with POP o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-01 14:10 UTC by jorgicio
Modified: 2016-09-04 15:45 UTC (History)
7 users (show)

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


Attachments
The build.log (mutt-1.7.0-build.log,11.19 KB, text/x-log)
2016-09-01 14:10 UTC, jorgicio
Details
The emerge --info (emerge-info.txt,8.91 KB, text/plain)
2016-09-01 14:11 UTC, jorgicio
Details
configure log (config.log,75.41 KB, text/plain)
2016-09-03 17:59 UTC, Mike Gilbert
Details
replacement patch (0006-always-need-socket-for-getaddrinfo.patch,203 bytes, patch)
2016-09-04 14:45 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jorgicio 2016-09-01 14:10:18 UTC
Hi!

As mentioned above in the title, that happens when I build that version of mutt, although I have both USE-flags (imap and sasl) enabled.

There go the build and the emerge --info.

Thanks.

Reproducible: Always
Comment 1 jorgicio 2016-09-01 14:10:46 UTC
Created attachment 444722 [details]
The build.log
Comment 2 jorgicio 2016-09-01 14:11:06 UTC
Created attachment 444724 [details]
The emerge --info
Comment 3 Aric Belsito 2016-09-01 18:26:43 UTC
Same issue here. I have smtp, sasl, and imap enabled.
Comment 4 Michael Mair-Keimberger (iamnr3) 2016-09-03 07:53:41 UTC
+1
Same issue. Mutt fails to build for me as well.
Comment 5 Mike Gilbert gentoo-dev 2016-09-03 17:59:00 UTC
Created attachment 444912 [details]
configure log
Comment 6 Fabian Groffen gentoo-dev 2016-09-03 18:23:16 UTC
Thanks, would you please show me which use-flags you have enabled for mutt?

I have now:
mail-client/mutt-1.7.0 (berkdb crypt gpg imap mbox nls nntp sasl smime smtp ssl)

So that's imap + sasl which works fine.  I want to fix it, but don't understand why you get the error :/
Comment 7 Mike Gilbert gentoo-dev 2016-09-03 19:44:26 UTC
The USE flags are in the build log.

I'm pretty sure this is broken as a result of 0006-always-need-socket-for-getaddrinfo.patch. This removes the need_socket variable from some parts of configure.ac, but leaves behind a few references.
Comment 8 Fabian Groffen gentoo-dev 2016-09-04 11:42:49 UTC
Aye, fixed for the next revbump.
Comment 9 Fabian Groffen gentoo-dev 2016-09-04 13:00:14 UTC
please try with 1.7.0-r1
Comment 10 jorgicio 2016-09-04 13:32:30 UTC
Not fixed at all yet.

Tried with 1.7.10-r1 and I got the same error.

BTW, the USE-flags I have enabled are:

[U] mail-client/mutt
     Available versions:  1.5.23-r7 1.5.24-r2 (~)1.6.1-r1 (~)1.6.2 (~)1.7.0-r1 {berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos libressl mbox nls nntp notmuch pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet}
     Installed versions:  1.6.2(16:12:43 10/07/16)(berkdb crypt gdbm gpg idn imap kerberos mbox nls sasl smtp ssl -debug -doc -gnutls -libressl -nntp -notmuch -pop -qdbm -selinux -sidebar -slang -smime -tokyocabinet)
     Homepage:            http://www.mutt.org/
     Description:         A small but very powerful text-based mail client
Comment 11 jorgicio 2016-09-04 13:59:11 UTC
May the error is in the configure script generated:

10529 # Check whether --with-sasl was given.
10530 if test "${with_sasl+set}" = set; then :
10531   withval=$with_sasl;
10532         if test "$with_sasl" != "no"
10533         then
10534           if test "$need_socket" != "yes"
10535           then
10536             as_fn_error $? "SASL support is only useful with POP or IMAP support" "$LINENO" 5
10537           fi
Comment 12 Fabian Groffen gentoo-dev 2016-09-04 14:40:59 UTC
right, for some reason the right patch didn't end up in -r1.

Checking it out Right Now(tm).
Comment 13 Mike Gilbert gentoo-dev 2016-09-04 14:45:19 UTC
Created attachment 444956 [details, diff]
replacement patch

Here's a much simpler version of that patch; instead of trying to erase needs_socket from existence (and failing), just initialize it to "yes".

However, it does break the other patch series (features-extra, gentoo).
Comment 14 Fabian Groffen gentoo-dev 2016-09-04 14:47:14 UTC
http://marc.info/?l=mutt-dev&m=147299006108716&w=2

-r2 is going in now.
Comment 15 jorgicio 2016-09-04 15:42:40 UTC
Built and working fine.

Thank you. I hope it doesn't break other stuff.
Comment 16 Fabian Groffen gentoo-dev 2016-09-04 15:45:17 UTC
it won't as I more or less restored the original behaviour now :)