From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 26 23:28:40 2006 Return-Path: X-Original-To: ports-bugs@freebsd.org Delivered-To: freebsd-ports-bugs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1500516A409 for ; Wed, 26 Apr 2006 23:28:40 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 44BCB43D4C for ; Wed, 26 Apr 2006 23:28:37 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 26 Apr 2006 23:28:36 -0000 Received: from p50913366.dip0.t-ipconnect.de (EHLO m2a2.dyndns.org) [80.145.51.102] by mail.gmx.net (mp034) with SMTP; 27 Apr 2006 01:28:36 +0200 X-Authenticated: #428038 Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 7B3F0200F8E; Thu, 27 Apr 2006 01:28:35 +0200 (CEST) Received: from m2a2.dyndns.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08830-20; Thu, 27 Apr 2006 01:28:34 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 30AEE201E57; Thu, 27 Apr 2006 01:28:34 +0200 (CEST) From: Matthias Andree To: "Scot Hetzel" In-Reply-To: <790a9fff0604261529i28967cc1x99679cdd2d334ed9@mail.gmail.com> (Scot Hetzel's message of "Wed, 26 Apr 2006 17:29:11 -0500") References: <20060426203500.GB1433@merlin.emma.line.org> <444FE8F6.2040903@FreeBSD.org> <20060426220756.GB6337@merlin.emma.line.org> <790a9fff0604261529i28967cc1x99679cdd2d334ed9@mail.gmail.com> X-PGP-Key: http://home.pages.de/~mandree/keys/GPGKEY.asc Date: Thu, 27 Apr 2006 01:28:34 +0200 Message-ID: User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at emma.line.org X-Y-GMX-Trusted: 0 Cc: ports@freebsd.org, Doug Barton , portmgr@freebsd.org, ports-bugs@freebsd.org Subject: Re: HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 23:28:40 -0000 "Scot Hetzel" writes: > On 4/26/06, Matthias Andree wrote: >> And I do have an idea to protect the innocent from installing 6.1 >> packages on 6.0-RELEASE: >> >> 1. Add a PRE-INSTALL mode pkg-install script >> >> to all packages built for freebsd >= 600101 and < 700000 or >= 700007. >> >> 2. behavior: If the package is about to be installed on a >> freebsd < 600101 or >= 700000 and < 700007, the pre-install script >> complains, asks the user to use the port instead and exits, aborting >> the install with an error. As portsnap and portmaster are deployed, >> that's something that shouldn't be too difficult to explain. >> >> This could all be handled inside ports/Mk/bsd.port.mk. >> > The only problem I see is if a port already has a pkg-install script. > How do you append the warning to it? My idea would be to just prepend the checker code to the existing pkg-install script, or use a server that first calls the new checker script, then the original pkg-install script. -- Matthias Andree