From owner-freebsd-ports@FreeBSD.ORG Mon Nov 17 12:13:56 2003 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 9203D16A4CE for ; Mon, 17 Nov 2003 12:13:56 -0800 (PST) Received: from mag.barnet.com.au (mag.barnet.com.au [218.185.88.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3719343FE0 for ; Mon, 17 Nov 2003 12:13:55 -0800 (PST) (envelope-from edwin@mavetju.org) Received: from extmail.barnet.com.au (tim.direct.int.barnet.com.au [10.10.10.2]) by mag.barnet.com.au (Postfix) with ESMTP id BF47D242B; Tue, 18 Nov 2003 07:13:51 +1100 (EST) X-Viruscan-Id: <3FB92BFF0000DC6101491C1A@VIRUSCAN-127.0.0.1> Received: from extmail-auth.barnet.com.au (localhost [127.0.0.1]) by extmail.barnet.com.au (Postfix) with ESMTP id 5DCC31E19; Tue, 18 Nov 2003 07:13:51 +1100 (EST) Received: from k7.mavetju (unknown [203.111.122.2]) by extmail-auth.barnet.com.au (Postfix) with ESMTP id DE4761E0C; Tue, 18 Nov 2003 07:13:50 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 222FF6A7101; Tue, 18 Nov 2003 07:13:48 +1100 (EST) Date: Tue, 18 Nov 2003 07:13:48 +1100 From: Edwin Groothuis To: Lewis Thompson Message-ID: <20031117201347.GO90377@k7.mavetju> References: <20031115123307.GA33995@lewiz.org> <20031116012936.GN59397@k7.mavetju> <20031117120848.GA14424@lewiz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031117120848.GA14424@lewiz.org> User-Agent: Mutt/1.4.1i cc: ports@freebsd.org Subject: Re: Handling port that requires GNU binutils (libiberty, libbfd). 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: Mon, 17 Nov 2003 20:13:56 -0000 On Mon, Nov 17, 2003 at 12:08:48PM +0000, Lewis Thompson wrote: > On Sun, Nov 16, 2003 at 12:29:37PM +1100, Edwin Groothuis wrote: > > On Sat, Nov 15, 2003 at 12:33:07PM +0000, Lewis Thompson wrote: > > > These are all part of binutils and as such are available in > > > /usr/obj/usr/src/gnu/usr.bin/binutils. However, they are not much > > > use to me there. > > > > You could copy them into your work directory in the post-fetch phase > > of the fetch phase of the port. > > Okay. I see what you're trying to get at but: > > a) Not everybody has the source installed, > and b) Not everybody has it compiled. > > Does anybody here think it would be acceptable for the port to require > the source? That doesn't seem a good idea to me. How would I go about > incorporating just libbfd and libiberty into my port? Is it possible? There are other ports which require it. Just do a grep for /usr/src in /usr/ports/*/Makefile: .if !exists(/usr/src/lib/libc) BROKEN= You need to have libc sources installed in /usr/src/lib/libc \ before compiling. .endif Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php