Subject: Whee
To: None <tech-pkg@netbsd.org>
From: Charles M. Hannum <root@ihack.net>
List: tech-pkg
Date: 10/17/1998 03:29:25
The GIMP didn't build correctly as of a few days ago; because it
didn't include -L${LOCALBASE}, it was unable to find the tiff, png,
jpeg and mpeg libraries.

The following seems obviously right to me; if you're going to -R a
directory, it makes no sense to not also -L it.

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.179
diff -c -2 -r1.179 bsd.pkg.mk
*** bsd.pkg.mk  1998/10/17 06:39:48     1.179
--- bsd.pkg.mk  1998/10/17 07:26:01
***************
*** 190,196 ****
  
  .if defined(USE_MOTIF) || defined(USE_X11)
! LDFLAGS+=             -Wl,-R${X11BASE}/lib
  .endif
! LDFLAGS+=             -Wl,-R${LOCALBASE}/lib
  MAKE_ENV+=            LDFLAGS="${LDFLAGS}"
  CONFIGURE_ENV+=               LDFLAGS="${LDFLAGS}"
--- 190,196 ----
  
  .if defined(USE_MOTIF) || defined(USE_X11)
! LDFLAGS+=             -L${X11BASE}/lib -Wl,-R${X11BASE}/lib
  .endif
! LDFLAGS+=             -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
  MAKE_ENV+=            LDFLAGS="${LDFLAGS}"
  CONFIGURE_ENV+=               LDFLAGS="${LDFLAGS}"


Also, could someone explain to me the logic of using strings(1) to
check the pkgtools date?  Couldn't you have at least used ident(1)?!
Better yet, why not add an option to pkg_info to print out a version
number?