Paste number 12226: if conditionals broken?

Index of paste annotations: 1

Paste number 12226: if conditionals broken?
Pasted by: yeled
When:15 years, 3 weeks ago
Share:Tweet this! | http://paste.lisp.org/+9FM
Channel:#darwinports
Paste contents:
Raw Source | XML | Display As
# $Id: Portfile,v 1.21 2005/10/04 08:02:35 yeled Exp $

PortSystem 1.0
name            mutt-devel
version         1.5.11
revision        1
categories      mail
maintainers     mij@opendarwin.org
description     Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc)
homepage        http://www.mutt.org/
platforms       darwin linux

long_description Mutt -- "The Mongrel of Mail User Agents" (part Elm, part \
                 Pine, part mh, part slrn, part everything else) is an \
                 interactive screen-oriented mailer program that supersedes \
                 Elm, Pine, mail and mailx.  Features include color support, \
                 message threading, MIME support (including RFC1522 support \
                 for encoded headers), customizable key bindings, POP3, \
                 Delivery Status Notification (DSN) support, and PGP/MIME.

master_sites    ftp://ftp.mutt.org/mutt/devel/
distname        mutt-${portversion}
checksums       ${distfiles} md5 00e6f8f7c37d4840e5e30583ebee21ce
patch.args      -p1

worksrcdir      mutt-${portversion}

depends_lib             port:gettext port:libiconv

configure.args  --disable-warnings \
                --mandir=${prefix}/share/man \
                --with-docdir=${prefix}/share/doc/mutt \
        --with-libiconv-prefix=${prefix}


variant cvs {
    fetch.type          cvs
    cvs.root            :pserver:anonymous@cvs.mutt.org:/home/roessler/cvs
    cvs.module          mutt
    cvs.password        anonymous 
    worksrcdir          mutt
    configure.cmd       ${worksrcpath}/prepare
        depends_build-append    port:autoconf
}

variant smtp {
# Include internal SMTP relay support
                configure.args-append --enable-smtp
                if { [variant_isset cvs] } {
                                patch_sites-append      http://mutt.kublai.com/patches/
                                patchfiles-append       patch-cvs20051003.bc.smtp
                                checksums-append        patch-cvs20051003.bc.smtp md5 \
                    69c8b148572db40100dab494488b8551
                } else {
                                patch_sites-append      http://mutt.kublai.com/patches/
                                patchfiles-append       patch-1.5.11.bc.smtp.11
                                checksums-append        patch-1.5.11.bc.smtp.11 md5 \
                                        cff0fcc448d66143ae699aacc1c7d2a8
                }
}

Annotations for this paste:

Annotation number 1: bug?
Pasted by: yeled
When:15 years, 3 weeks ago
Share:Tweet this! | http://paste.lisp.org/+9FM/1
Paste contents:
Raw Source | Display As
use the above Portfile and `sudo port -vdt destroot +smtp' - and it will download the correct patch.

but add +cvs to the mix and the cvs patchfiles-append isn't fetched - only the CVS checkout is done. (and then it breaks when it says it can't find all the patchfiles. If you fuck with the "if" conditional and put a "!" in front you will see that the cvs patch CAN be downloaded.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.