Hi: I just started using pkgsrc and am really impressed with it but I am having trouble building the package “/editors/emacs” from the pkgsrc-2011Q2 release and I am hoping that someone can help me. I think that there are two separate problems: a bad include in the pango source code and a conflicting library dependencies for Xft between devel/pango and graphics/cairo. What do I need to do to build and install editors/emacs? Any suggestions are greatly appreciated because I am fairly lost. I did read the manual before started (http://www.netbsd.org/docs/pkgsrc/index.html) but I probably missed something important. Here are the steps to reproduce the error. % # Preliminary setup of pkgsrc % mkdir /tools/sw/centos-5.5-x86_64/pkgsrc % cd /tools/sw/centos-5.5-x86_64/pkgsrc % cvs –q –z –d anoncvs%anaoncvs.NetBSD.org@localhost:/cvsroot checkout -P pkgsrc % mkdir /tools/sw/centos-5.5-x86_64/pkg % cd /tools/sw/centos-5.5-x86_64/bootstrap % ./bootstrap --prefix=/tools/sw/centos-5.5-x86_64/pkg % # Setup my path % export PATH=/tools/sw/centos-5.5-x86_64/pkg/bin:/tools/sw/centos-5.5-x86_64/pkg/sbin:${PATH} % # Installed some pkg tools: pkg_add, pkg_delete, pkg_info, etc. % cd /tools/sw/centos-5.5-x86_64/pkgsrc/pkgtools/pkg_install % bmake % bmake install % # Fix the X11 environment % # My very first attempt to install emacs failed because of this. % yum –y groupinstall ‘X Software Development’ % cd /usr/X11R6 % ln –s /usr/include include % ln –s /usr/lib64 lib % # Build emacs. % cd /tools/sw/centos-5.5-x86_64/pkgsrc/editors/emacs % bmake # # The first was a compile problem in pango which I # fixed by adding this line to the mk.conf file: # # CFLAGS+= -isystem /tools/sw/centos-5.5-x86_64/pkg/include/cairo # # The second problem results in the errors shown below. # I tried to fix it by building removing the fonts/Xft2 package # and adding the /x11/libXft package but that caused problems # in cairo so I reverted back. ===> Building binary package for pango-1.28.4nb1 => Creating binary package /tools/sw/centos-5.5-x86_64/pkgsrc/packages/All/pango-1.28.4nb1.tgz pkg_create: can't stat `/tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango/work/.destdir/tools/sw/centos-5.5-x86_64/pkg/include/pango-1.0/pango/pangoxft-render.h' pkg_create: can't stat `/tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango/work/.destdir/tools/sw/centos-5.5-x86_64/pkg/include/pango-1.0/pango/pangoxft.h' pkg_create: can't stat `/tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango/work/.destdir/tools/sw/centos-5.5-x86_64/pkg/lib/libpangoxft-1.0.la' pkg_create: can't stat `/tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango/work/.destdir/tools/sw/centos-5.5-x86_64/pkg/lib/pkgconfig/pangoxft.pc' pkg_create: lstat failed for file include/pango-1.0/pango/pangoxft-render.h: No such file or directory *** Error code 2 Stop. bmake: stopped in /tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango *** Error code 1 Stop. bmake: stopped in /tools/sw/centos-5.5-x86_64/pkgsrc/devel/pango I was able to build editors/emacs22 successfully because it depends on xaw. Unfortunately I need emacs 23. My newbie guess is that there is a conflict between graphics/cairo dependency on fonts/Xft2 and the devel/pango dependency on x11/libXft but, even if I am right, I have no idea how to fix it. System information · O/S: Linux – CentOS 5.5 (64 bit) · Kernel: Linux localhost.localdomain 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux · Pkgsrc: Released – 2011Q4 · Conf: /tools/sw/centos-5.5-x86_64/pkg/etc/mk.conf # Example /tools/sw/centos-5.5-x86_64/pkg/etc/mk.conf file produced by bootstrap-pkgsrc # Mon Jul 18 18:23:32 PDT 2011 .ifdef BSD_PKG_MK # begin pkgsrc settings PKG_DBDIR= /tools/sw/centos-5.5-x86_64/pkg/var/db/pkg LOCALBASE= /tools/sw/centos-5.5-x86_64/pkg VARBASE= /tools/sw/centos-5.5-x86_64/pkg/var PKG_TOOLS_BIN= /tools/sw/centos-5.5-x86_64/pkg/sbin PKGMANDIR= man CFLAGS+= -isystem /tools/sw/centos-5.5-x86_64/pkg/include/cairo .endif # end pkgsrc settings Best regards, Joe |