From owner-freebsd-ports@FreeBSD.ORG Thu Apr 15 09:54:40 2004 Return-Path: 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 AA06A16A4CF for ; Thu, 15 Apr 2004 09:54:40 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97A9343D1F for ; Thu, 15 Apr 2004 09:54:35 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 4627C3BC3C; Thu, 15 Apr 2004 18:54:33 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i3FGsavC003569; Thu, 15 Apr 2004 18:54:36 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost)i3FGsa5V003568; Thu, 15 Apr 2004 18:54:36 +0200 (CEST) (envelope-from schweikh) Date: Thu, 15 Apr 2004 18:54:35 +0200 From: Jens Schweikhardt To: Garance A Drosihn Message-ID: <20040415165435.GB992@schweikhardt.net> References: <200404131516.i3DFGMJA078941@green.homeunix.org> <20040413181311.GA5858@schweikhardt.net> <20040414210630.4353e27c@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: Alexander Leidinger cc: freebsd-ports@freebsd.org Subject: Re: ports and DESTDIR (was: Second "RFC" on pkg-data idea for ports) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2004 16:54:40 -0000 Garance, # Another complication is that many ports include cross-references # to themselves or other programs "on the system". If you install # to /otherhost/usr/local/bin, then those ports will embed that # installation path in the files they install. No, not when it's done right. PREFIX is not DESTDIR. # When you then # run it on the other system, it references /other/usr/local # instead of the /usr/local that you want it to use. # # I know I have been bitten by this on some occasions, although I # can't think of a specific example right now... The either someone used DESTDIR when actually PREFIX was meant or some Makefile was bogusly using PREFIX:=$DESTDIR/$PREFIX or equivalent. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)