Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429582 - net-mail/dovecot-2.1.9 fails to build with USE=-sieve
Summary: net-mail/dovecot-2.1.9 fails to build with USE=-sieve
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-08-02 21:57 UTC by Malcolm Lashley
Modified: 2012-08-03 06:35 UTC (History)
2 users (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 Malcolm Lashley 2012-08-02 21:57:58 UTC
The added src_prepare function is missing an

if use sieve || use managesieve ; then ...

Without it the following path in $S is invalid, since dovecote-*-pigeonhole is conditionally fetched by

SRC_URI="http://www.dovecot.org/releases/${major_minor}/${MY_P}.tar.gz
    sieve? (
    http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
    )
    managesieve? (
    http://www.rename-it.nl/dovecot/${major_minor}/dovecot-${major_minor}-pigeonhole-${sieve_version}.tar.gz
    ) "

The broken code...
 
src_prepare() {
       cd "${WORKDIR}"/dovecot-2.1-pigeonhole* || die
       epatch "${FILESDIR}/${P}_managesieve_gold.patch"
       eautoreconf



Reproducible: Always

Steps to Reproduce:
1. USE="-sieve -managesieve" emerge -v =net-mail/dovecot-2.1.9

Actual Results:  
>>> Emerging (1 of 1) net-mail/dovecot-2.1.9
 * dovecot-2.1.9.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                               [ ok ]
>>> Unpacking source...
>>> Unpacking dovecot-2.1.9.tar.gz to /var/tmp/portage/net-mail/dovecot-2.1.9/work
>>> Source unpacked in /var/tmp/portage/net-mail/dovecot-2.1.9/work
>>> Preparing source in /var/tmp/portage/net-mail/dovecot-2.1.9/work/dovecot-2.1.9 ...
/var/tmp/portage/net-mail/dovecot-2.1.9/temp/environment: line 3223: cd: /var/tmp/portage/net-mail/dovecot-2.1.9/work/dovecot-2.1-pigeonhole*: No such file or directory
 * ERROR: net-mail/dovecot-2.1.9 failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_prepare
 *   environment, line 3223:  Called die
 * The specific snippet of code:
 *       cd "${WORKDIR}"/dovecot-2.1-pigeonhole* || die;
 * 
 * If you need support, post the output of `emerge --info '=net-mail/dovecot-2.1.9'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/dovecot-2.1.9'`.
 * The complete build log is located at '/usr/log/portage/logdir/net-mail:dovecot-2.1.9:20120802-214135.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-mail/dovecot-2.1.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/dovecot-2.1.9/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/dovecot-2.1.9/work/dovecot-2.1.9'
 * S: '/var/tmp/portage/net-mail/dovecot-2.1.9/work/dovecot-2.1.9'

>>> Failed to emerge net-mail/dovecot-2.1.9, Log file:


Expected Results:  
Patches to conditionally fetched parts of SRC_URI are applied conditionally.

duality dovecot # emerge --info
Portage 2.2.0_alpha120 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.5.0-gentoo x86_64)
=================================================================
System uname: Linux-3.5.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Thu, 02 Aug 2012 20:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
Comment 1 Fred Krogh 2012-08-03 02:44:26 UTC
Same problem here.
Comment 2 Eray Aslan gentoo-dev 2012-08-03 06:35:02 UTC
Fixed without a revbump.  Thanks for the report.