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)



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.
> 
> From: Makoto Fujiwara <makoto%ki.nu@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc: 
> 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
> 
> I may be wrong.
> if 
>   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.
> 
> By the way, with X11_TYPE=native, 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.
> 
> Thanks anyway, 
> --------
> Makoto Fujiwara
> 
> Index: options.mk
> ===================================================================
> 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+=     --without-x
>  CONFIGURE_ARGS+=     --disable-freetype
> 
> 
> 


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?=         yes
PKGSRCDIR=              /Users/ianm/ports/pkgsrc
PKG_DBDIR=              /var/db/pkg
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGMANDIR=              man
USE_DESTDIR=            yes

TOOLS_PLATFORM.pax?=    /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}pax
TOOLS_PLATFORM.tar?=    /usr/pkg/bin/${NBPAX_PROGRAM_PREFIX}tar
FETCH_CMD=              /usr/bin/ftp

X11_TYPE=               native

PKG_OPTIONS.pari=       -x11
PKG_OPTIONS.gd=         -x11
PKG_OPTIONS.graphviz=   -x11 -tcl -gtk -pangocairo

ACCEPTABLE_LICENSES+=   artistic-2.0
ACCEPTABLE_LICENSES+=   php-license
ACCEPTABLE_LICENSES+=   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=1 
-DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="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