Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Feb 2010 13:38:22 -0800
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        freebsd-questions@freebsd.org
Subject:   Re: portupgrade, batch mode?
Message-ID:  <86aavk4tgx.fsf@blue.stonehenge.com>
In-Reply-To: <20100207212357.GA59613@orange.esperance-linux.co.uk> (Frank Shute's message of "Sun, 7 Feb 2010 21:23:57 %2B0000")
References:  <8021a2661002070359g6c23344cq744a843024ebf565@mail.gmail.com> <20100207193216.GA59358@orange.esperance-linux.co.uk> <86eikw4ws6.fsf@blue.stonehenge.com> <20100207212357.GA59613@orange.esperance-linux.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Frank" == Frank Shute <frank@shute.org.uk> writes:

Frank> All the Perl ports I've installed (e.g p5-*) have just installed for
Frank> me without any curses options menu.

Lucky. :)

Frank> Although I'd describe you as a "Perl power user" and undoubtedly have
Frank> more Perl ports installed than I have.

    red.stonehenge.com:~ +# pkg_info | grep -c 'p5-'
    3314
    red.stonehenge.com:~ +# cat MAKE_ALL_PERL_PORTS
    #!/bin/sh

    cd /usr/ports || exit 1

    pkg_info -q -o -a >/tmp/$$

    for i in `ls -d */p5* | fgrep -vxf /tmp/$$`
    do
        if pkg_info -q -O $i | grep -q .
        then echo "SKIPPING $i - INSTALLED";
        else
            (
                cd $i &&
                echo "<== $i ==>" &&
                if make missing | grep -v '/p5-'
                then echo "SKIPPING $i - DEPENDENCIES"
                else
                    (
                        trap ':' 2
                        make BATCH=yes install clean </dev/null
                    )
                fi
            )
        fi
    done

Yes, I have actually installed all Perl ports that depend only on
other CPAN modules, and not anything else that I didn't already
have installed.

Frank> Are you talking about ports that depend on Perl? Can you give an
Frank> example of a Perl port that asks you questions? Don't mean to be
Frank> obstructive in any way; genuinely curious as AFAICR I haven't come
Frank> across one.

I wish I could remember.  Just that something comes up every once in a while
and I curse that the upgrade has stopped. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86aavk4tgx.fsf>