Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2003 07:13:48 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Lewis Thompson <purple@lewiz.net>
Cc:        ports@freebsd.org
Subject:   Re: Handling port that requires GNU binutils (libiberty, libbfd).
Message-ID:  <20031117201347.GO90377@k7.mavetju>
In-Reply-To: <20031117120848.GA14424@lewiz.org>
References:  <20031115123307.GA33995@lewiz.org> <20031116012936.GN59397@k7.mavetju> <20031117120848.GA14424@lewiz.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031117201347.GO90377>