Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "gd" packages fails to build under NetBSD/amd64 current



On Sun, Mar 23, 2014 at 06:08:42PM +0000, Patrick Welche wrote:
> On Sun, Mar 23, 2014 at 05:57:50PM +0000, Matthias Scheler wrote:
> > On Sun, Mar 23, 2014 at 05:53:39PM +0000, Matthias Scheler wrote:
> > > I cannot build "pkgsrc/graphics/gd" on my NetBSD/amd64 system using
> > > current with native X11 from today:
> > > 
> > > checking for deflate in -lz... yes
> > > checking libpng-config script... /usr/pkg/bin/libpng-config, cflags: 
> > > -I/usr/pkg/include/libpng16, libs: -Wl,-R/usr/pkg/lib -L/usr/pkg/lib 
> > > -lpng16
> > > checking for FcInit in -lfontconfig... no
> > > configure: error: fontconfig support requested, but not found
> > > *** Error code 1
> > > 
> > > Is anybody else seeing this?
> > 
> > I think I found the cause "/usr/X11R7/lib/pkgconfig/fontconfig.pc"
> > looks broken:
> > 
> > prefix=/usr/X11R7
> > exec_prefix=${prefix}
> > libdir=${prefix}/lib
> > includedir=${prefix}/include
> > sysconfdir=@sysconfdir@
> > localstatedir=@localstatedir@
> > PACKAGE=
> > confdir=@baseconfigdir@
> > cachedir=@fc_cachedir@
> > 
> > Name: Fontconfig
> > Description: Font configuration and customization library
> > Version: 2.11.0
> > Requires: xx
> > Requires.private: xx
>   ^^^^^^^^^^^^^^^^^^^^^
> 
> This is fixed by ryoon's patch in
> 
> http://mail-index.netbsd.org/current-users/2014/03/22/msg024499.html
> 
> Seems broken in a different way:
> 
> Requires: @PKGCONFIG_REQUIRES@
> Requires.private: @PKGCONFIG_REQUIRES_PRIVATELY@
> 
> So, no more xx, but somehow the substitution to ${PKGCONFIG_REQUIRES}
> hasn't happened for me...

Finally : I needed
cd /usr/src/external/mit/xorg/lib/fontconfig/src && make distclean
to get rid of the fontconfig.pc file, so it gets rebuilt. make clean
isn't enough. Now:

Name: Fontconfig
Description: Font configuration and customization library
Version: 2.11.0
Requires: 
Requires.private: 
Libs: -Wl,-rpath,${libdir} -L${libdir} -lfontconfig
Libs.private: -lexpat -lfreetype  
Cflags: -I${includedir}  -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include  

So ryoon's patches are all that is needed...

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index