Subject: Re: CVS commit: pkgsrc/devel/gdb6
To: John R. Shannon <shannonjr@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-changes
Date: 06/03/2004 12:26:13
On Thu, 3 Jun 2004, John R. Shannon wrote:

> > I'd prefer that we didn't clutter up ${PREFIX}. (Other packages do this
> > too.) In my case, I use LOCALBASE as /usr on several machines.
>
> > Can you consider doing something like the following instead?
> >
> > CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/${GDB_SUBPREFIX}
> > CONFIGURE_ARGS+= 	--includedir=${PREFIX}/include/${GDB_SUBPREFIX}
>
> My log entry was a little imprecise, specifically the Makefile has:

I read the "$ cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/devel/gdb6/Makefile
pkgsrc/devel/gdb6/PLIST" output.

> GDB_SUBPREFIX=          gdb6
> GDB_PREFIX=             ${PREFIX}/${GDB_SUBPREFIX}
> CONFIGURE_ARGS+=        --libdir=${GDB_PREFIX}/lib
> CONFIGURE_ARGS+=        --includedir=${GDB_PREFIX}/include
>
> Is that OK? It's not quite the same.

No. I hope it doesn't create any ${PREFIX}/gdb6 file.

Please try getting rid of your GDB_SUBPREFIX and GDB_PREFIX variables
(unless used in build elsewhere). And please just try:
CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/gdb6
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/gdb6

(and adjust PLIST.)

I didn't test the above.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/