From owner-freebsd-ports Wed Feb 20 8: 0:41 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 05B7837B405 for ; Wed, 20 Feb 2002 08:00:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1KG08p80219; Wed, 20 Feb 2002 08:00:08 -0800 (PST) (envelope-from gnats) Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id 56A5C37B4B0 for ; Wed, 20 Feb 2002 07:54:51 -0800 (PST) Received: by pr0n.kutulu.org (Postfix, from userid 1000) id B4DCF196; Wed, 20 Feb 2002 11:01:30 -0500 (EST) Message-Id: <20020220160130.B4DCF196@pr0n.kutulu.org> Date: Wed, 20 Feb 2002 11:01:30 -0500 (EST) From: kutulu Reply-To: kutulu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/35142: Portupgrade Suggestion: indicate portupgrade on make command line Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35142 >Category: ports >Synopsis: Portupgrade Suggestion: indicate portupgrade on make command line >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 08:00:08 PST 2002 >Closed-Date: >Last-Modified: >Originator: kutulu >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD pr0n.kutulu.org 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Feb 4 12:42:04 EST 2002 root@pr0n.kutulu.org:/usr/obj/usr/src/sys/PR0N i386 >Description: Certain ports (thinking specifically of mysql, but likely many others) require specific options to be set when upgrading vs. installing clean. For example, when running portupgrade on mysql-server, it always fails because the database exists. You must specify --make-env="SKIP_INSTALL_DB=yes" on the portupgrade command line. This specific case of a port requiring makefile options to cleanly run through portupgrade seems (IMHO) to be a likely enough occurance that portupgrade and the port Makefiles could handle it specifically. >How-To-Repeat: portupgrade mysql*server* >Fix: I would suggest that portupgrade always set some specific variable when it runs the make command line, eg: make PORTUPGRADING=1 install That way, port maintainers, if they choose, could include .if defined(PORTUPGRADING) (do stuff here) .endif This would have no effect on existing ports but would allow port maintainers moving forward to integrate much more smoothly with portupgrade. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message