Handling port that requires GNU binutils (libiberty, libbfd).

Edwin Groothuis edwin at mavetju.org
Mon Nov 17 12:13:56 PST 2003


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 at mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 


More information about the freebsd-ports mailing list