From owner-freebsd-ports@FreeBSD.ORG Tue Aug 15 06:47:23 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECBB16A4DE for ; Tue, 15 Aug 2006 06:47:23 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADEA643D46 for ; Tue, 15 Aug 2006 06:47:21 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1GCshr-000Ao9-4P for freebsd-ports@FreeBSD.org; Tue, 15 Aug 2006 10:47:19 +0400 Message-ID: <44E16DF6.20705@FreeBSD.org> Date: Tue, 15 Aug 2006 10:47:18 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org References: <20060814234414.GA57035@hades.panopticon> In-Reply-To: <20060814234414.GA57035@hades.panopticon> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Subject: Re: ATTENTION: is the way DESTDIR was introduced completely wrong? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 06:47:23 -0000 Dmitry Marakasov wrote: > What I propose is: > - Change variable naming scheme. > All *BASE and *DIR vars should be reverted to their original meanings > (i.e. local paths). Instead, INSTALL_ vars should be introduced: > INSTALL_LOCALBASE=${DESTDIR}/${LOCALBASE} > INSTALL_X11BASE=${DESTDIR}/${X11BASE} > INSTALL_PREFIX=${DESTDIR}/${PREFIX} > INSTALL_DATADIR=${DESTDIR}/${DATADIR} > > etc. These should be used in do-install target. > > * This is far more clean and understandable, > * This allows us to make all ports (around 5k) that define do-install target > DESTDIR-compatible (there still may be issues, but nevertheless). > I agree with every your word. > - Introduce variable DESTDIR_COMPATIBLE to explititely mark > DESTDIR-compatible ports. > * I don't think DESTDIR compatibility can be tested automatically, so > this would make freebsd user's life easier (user will be sure that after he > installs ports into [jail|other freebsd installation mounted via > nfs|locally] being set corresponging DESTDIR, nothing will break). > Without such variable, he'll never be sure. > * Port maintainers will know what ports still are to be converted. > Nothing will be forgotten. > This is exactly I proposed. But I've not been heard. -- Dixi. Sem.