From owner-freebsd-questions@FreeBSD.ORG Mon Mar 1 18:29:43 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 932FF106564A for ; Mon, 1 Mar 2010 18:29:43 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6238C8FC17 for ; Mon, 1 Mar 2010 18:29:43 +0000 (UTC) Received: by pwj1 with SMTP id 1so320102pwj.13 for ; Mon, 01 Mar 2010 10:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Kn+8K9brzBIfWkMKt2kKis6fuqTrZ5DRipWYeGi2pb4=; b=k4n0eHExKb/40JDd6tL7H8jROjq/WFv4mInx6njTQD4HB7zAhawUCw8nmA9DLKeNRd /3W+GtHoFB03FrZQe31yFwXIKSP1RNQ2NtZDY71csXiRJ3Iw+9csNfgLwsY1ZmF+24gE 9kdhNljxNqQY5Ih9bYwWrxCWWmBsR9k3yvyBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ffz1iVGMwqhUTyowPZtBd3INZBztNZiVWTJrxPr6HJoHnwFptk9ZyKMgcj7GVpe435 3daw6PLwtQU2pObw+y2BiLbMktqsjeaLxwm1BUZqh9wx/efzb7ZLMn3LXrAI2WuPdHNM 0hz7oxZPrBi2h4B/h363JSkYMFhnV3+bRym8c= MIME-Version: 1.0 Received: by 10.142.151.22 with SMTP id y22mr2762092wfd.126.1267468174372; Mon, 01 Mar 2010 10:29:34 -0800 (PST) In-Reply-To: <4B8C0538.3090309@infracaninophile.co.uk> References: <86zl2tkrrv.fsf@blue.stonehenge.com> <6201873e1002281349n2bcfd16dte6fdce53cd14c1db@mail.gmail.com> <86iq9hkoxf.fsf@blue.stonehenge.com> <6201873e1002281738o35444a7ahcc184951f712f0a7@mail.gmail.com> <86ocj8kee0.fsf@blue.stonehenge.com> <6201873e1002281742i687c2d41y44e3e0f97f35166f@mail.gmail.com> <86k4twke6h.fsf@blue.stonehenge.com> <4B8B8EF4.9040806@infracaninophile.co.uk> <86pr3ohs9f.fsf@blue.stonehenge.com> <4B8C0538.3090309@infracaninophile.co.uk> Date: Mon, 1 Mar 2010 12:29:34 -0600 Message-ID: <6201873e1003011029p18442ac5p4f1ef9360436ff3f@mail.gmail.com> From: Adam Vande More To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, "Randal L. Schwartz" Subject: Re: how do I tell ports that perl5.8 should never be installed? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 18:29:43 -0000 On Mon, Mar 1, 2010 at 12:19 PM, Matthew Seaman < m.seaman@infracaninophile.co.uk> wrote: > > As far as I know, there isn't an official way to do this. What you > want sounds like a useful addition to the base system to me. > > You could do it in a fairly gross hacky way, like the following. This is > entirly untested, might not work at all and will certainly be at the > cost of some alarming error messages: > > # mkdir -p /var/db/pkg/perl-5.8.9_3 > # touch /var/db/pkg/perl-5.8.9_3/+IGNOREME > # chflags -R noschg /var/db/pkg/perl-5.8.9_3 > > Hopefully it chucks a spanner in the works before the package system > actually installs anything. Of course, you'll have to update that if > the perl5.8 port has any sort of version bump[*]. > > On second thoughts, writing a small wrapper around pkg_add(1) that greps > through the @pkgdep lines in the +CONTENTS file from the package tarball > and bails if it finds the wrong version of perl would be a much cleaner > approach. The -M (--master) and -S (--slave) flags to pkg_add look > interesting in this context. > > There is already enough dependency information available to portupgrade to know this. portupgrade simply doesn't act on it. However, as I already informed Mr. Schwartz, portmaster -P does work. -- Adam Vande More