pkgsrc-Bugs archive

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

Re: pkg/47045: pkgsrc print/ghostscript fails to build Darwin (Mac OS X 10.7.5)



The following reply was made to PR pkg/47045; it has been noted by GNATS.

From: Ian McWilliam <kaosagnt%tpg.com.au@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
pkgsrc-bugs%NetBSD.org@localhost
Subject: Re: pkg/47045: pkgsrc print/ghostscript fails to build Darwin (Mac OS 
X 10.7.5)
Date: Tue, 9 Oct 2012 12:53:30 +1100

 On 08/10/2012, at 7:45 PM, Makoto Fujiwara wrote:
 
 > The following reply was made to PR pkg/47045; it has been noted by =
 GNATS.
 >=20
 > From: Makoto Fujiwara <makoto%ki.nu@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc:=20
 > Subject: Re: pkg/47045: pkgsrc print/ghostscript fails to build Darwin =
 (Mac OS X 10.7.5)
 > Date: Mon, 08 Oct 2012 17:43:09 +0900
 >=20
 > I may be wrong.
 > if=20
 >   freetype2-2.4.10    Font rendering engine and library API
 > is installed, you need following patch.
 >    patches/patch-freetype_include_freetype_internal_t1types_h
 >   Some previous version of
 > freetype2 may cause the original problem with this patch.
 >=20
 > By the way, with X11_TYPE=3Dnative, you may need more lines on =
 options.mk
 > (I am not sure why modular does not these lines yet).
 > I will raise this problem in different context.
 >=20
 > Thanks anyway,=20
 > --------
 > Makoto Fujiwara
 >=20
 > Index: options.mk
 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 > RCS file: /cvs/cvsroot/pkgsrc/print/ghostscript/options.mk,v
 > retrieving revision 1.12
 > diff -u -r1.12 options.mk
 > --- options.mk       7 Oct 2012 14:19:18 -0000       1.12
 > +++ options.mk       8 Oct 2012 08:38:31 -0000
 > @@ -15,6 +15,11 @@
 >  .include "../../x11/libX11/buildlink3.mk"
 >  .include "../../x11/libXt/buildlink3.mk"
 >  .include "../../x11/libXext/buildlink3.mk"
 > +
 > +. if !empty(X11_TYPE:Mnative)
 > +.  include "../../x11/libxcb/buildlink3.mk"
 > +.  include "../../graphics/freetype2/buildlink3.mk"
 > +. endif
 >  .else
 >  CONFIGURE_ARGS+=3D  --without-x
 >  CONFIGURE_ARGS+=3D  --disable-freetype
 >=20
 >=20
 >=20
 
 
 pkg_info | grep -i freetype
 freetype2-2.4.10    Font rendering engine and library API
 
 My mk.conf looks like this:
 
 
 .ifdef BSD_PKG_MK      # begin pkgsrc settings
 
 PKG_DEVELOPER?=3D              yes
 PKGSRCDIR=3D           /Users/ianm/ports/pkgsrc
 PKG_DBDIR=3D           /var/db/pkg
 LOCALBASE=3D           /usr/pkg
 VARBASE=3D             /var
 PKG_TOOLS_BIN=3D               /usr/pkg/sbin
 PKGMANDIR=3D           man
 USE_DESTDIR=3D         yes
 
 TOOLS_PLATFORM.pax?=3D /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}pax
 TOOLS_PLATFORM.tar?=3D /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}tar
 FETCH_CMD=3D           /usr/bin/ftp
 
 X11_TYPE=3D            native
 
 PKG_OPTIONS.pari=3D    -x11
 PKG_OPTIONS.gd=3D              -x11
 PKG_OPTIONS.graphviz=3D        -x11 -tcl -gtk -pangocairo
 
 ACCEPTABLE_LICENSES+=3D        artistic-2.0
 ACCEPTABLE_LICENSES+=3D        php-license
 ACCEPTABLE_LICENSES+=3D        bsd
 .endif                 # end pkgsrc settings
 
 
 If I need the patches/patch-freetype_include_freetype_internal_t1types_h =
 then why is it not being applied?
 
 I've applied the options.mk patch above but building still fails.
 
 gcc  -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2  =
 -DHAVE_BSWAP32  -O2  -Ijpeg -no-cpp-precomp -isystem /usr/include =
 -I/usr/pkg/include -I/usr/X11/include -I/usr/X11/include/freetype2 =
 -I/usr/include  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations =
 -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing =
 -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=3D1=
  -DHAVE_SYS_TIME_H=3D1 -DGX_COLOR_INDEX_TYPE=3D"unsigned long long" =
 -pipe -O2 -DA4 -fPIC -I/usr/pkg/include -I/usr/X11/include =
 -I/usr/X11/include/freetype2 -I/usr/include -DUSE_LIBICONV_GNU =
 -DUSE_LIBPAPER   -Ifreetype/include -DFT2_BUILD_LIBRARY =
 -DDARWIN_NO_CARBON  -o ./soobj/fttype1.o -c freetype/src/base/fttype1.c
 In file included from =
 freetype/include/freetype/internal/services/svpsinfo.h:23,
                  from freetype/src/base/fttype1.c:22:
 freetype/include/freetype/internal/t1types.h:113: error: expected =
 specifier-qualifier-list before 'T1_EncodingType'
 gnumake[2]: *** [soobj/fttype1.o] Error 1
 gnumake[1]: *** [so-subtarget_1] Error 2
 gnumake: *** [so] Error 2
 *** Error code 2
 
 Stop.
 bmake: stopped in /Users/ianm/ports/pkgsrc/print/ghostscript
 *** Error code 1
 
 Stop.
 bmake: stopped in /Users/ianm/ports/pkgsrc/print/ghostscript
 
 Ian McWilliam
 
 
 


Home | Main Index | Thread Index | Old Index