NetBSD Problem Report #45194

From www@NetBSD.org  Sat Jul 30 20:38:05 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A490263C93E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Jul 2011 20:38:05 +0000 (UTC)
Message-Id: <20110730203805.0702863BAC3@www.NetBSD.org>
Date: Sat, 30 Jul 2011 20:38:05 +0000 (UTC)
From: jan.smydke@jh-inst.cas.cz
Reply-To: jan.smydke@jh-inst.cas.cz
To: gnats-bugs@NetBSD.org
Subject: graphics/cairo fails to finish build on Debian Linux
X-Send-Pr-Version: www-1.0

>Number:         45194
>Category:       pkg
>Synopsis:       graphics/cairo fails to finish build on Debian Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 30 20:40:00 +0000 2011
>Closed-Date:    Tue Aug 16 12:40:14 +0000 2011
>Last-Modified:  Tue Aug 16 12:40:14 +0000 2011
>Originator:     Jan Šmydke
>Release:        (Debian Linux amd64)
>Organization:
>Environment:
Linux gaspard 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
>Description:
building graphics/cairo from pkgsrc-2011Q2 on Debian Linux amd64 fails to finish:

> Automatic manual page handling
pkg_create: can't stat `/opt/pkgsrc/graphics/cairo/work/.destdir/opt/pkg/lib/pkgconfig/cairo-xcb-shm.pc'
===> Building binary package for cairo-1.10.2nb1
=> Creating binary package /opt/pkgsrc/packages/All/cairo-1.10.2nb1.tgz
pkg_create: can't stat `/opt/pkgsrc/graphics/cairo/work/.destdir/opt/pkg/lib/pkgconfig/cairo-xcb-shm.pc'
pkg_create: lstat failed for file lib/pkgconfig/cairo-xcb-shm.pc: No such file or directory
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/graphics/cairo
*** Error code 1

###################################################

I have found there is cairo-xcb.pc in that directory. Perhaps just a name problem?

>How-To-Repeat:
cd /graphics/cairo && bmake install
>Fix:

>Release-Note:

>Audit-Trail:
From: Emmanuel Kasper <emmanuel@libera.cc>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194
Date: Thu, 04 Aug 2011 21:37:34 +0200

 I also have Debian Linux AMD64, and got also bitten by this bug.

 Mybe the problem here comes that the cairo-xcb-shm.pc pkg-config file is
 not built, because it needs xcb-shm.pc which is itselt not found ?

 This the relevant part of config.log for cairo

 configure:22035: checking for xcb_shm
 configure:22042: $PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES"
 Package xcb-shm was not found in the pkg-config search path.
 Perhaps you should add the directory containing `xcb-shm.pc'
 to the PKG_CONFIG_PATH environment variable
 No package 'xcb-shm' found
 configure:22045: $? = 1
 configure:22058: $PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES"
 Package xcb-shm was not found in the pkg-config search path.
 Perhaps you should add the directory containing `xcb-shm.pc'
 to the PKG_CONFIG_PATH environment variable
 No package 'xcb-shm' found
 configure:22061: $? = 1
 No package 'xcb-shm' found
 configure:22088: result: no
 configure:22090: result: no
 configure:22120: checking whether cairo's XCB/SHM functions feature
 could be enabled
 configure:22124: result: no (requires  http://xcb.freedesktop.org)

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194: graphics/cairo fails to finish build on Debian Linux
Date: Mon, 08 Aug 2011 01:16:47 +0300

  >> Automatic manual page handling
 > pkg_create: can't stat `/opt/pkgsrc/graphics/cairo/work/.destdir/opt/pkg/lib/pkgconfig/cairo-xcb-shm.pc'
 > ===> Building binary package for cairo-1.10.2nb1
 > => Creating binary package /opt/pkgsrc/packages/All/cairo-1.10.2nb1.tgz
 > pkg_create: can't stat `/opt/pkgsrc/graphics/cairo/work/.destdir/opt/pkg/lib/pkgconfig/cairo-xcb-shm.pc'
 > pkg_create: lstat failed for file lib/pkgconfig/cairo-xcb-shm.pc: No such file or directory
 > *** Error code 2

 > Stop.
 > bmake: stopped in /opt/pkgsrc/graphics/cairo
 > *** Error code 1

 > ###################################################

 > I have found there is cairo-xcb.pc in that directory. Perhaps just a name problem?

  >>How-To-Repeat:
 > cd /graphics/cairo && bmake install
  >>Fix:

 Could you please show what do the following commands print
 (I assume your prefix is /opt/pkg)?

 bmake show-vars VARNAMES='X11_TYPE PKG_DEFAULT_OPTIONS PKG_OPTIONS.cairo'
 ls -la /opt/pkg/lib/pkgconfig
 /opt/pkg/sbin/pkg_info -a | grep xcb

 -- 
 Best regards, Aleksey Cheusov.

From: Emmanuel Kasper <emmanuel@libera.cc>
To: gnats-bugs@NetBSD.org
Cc: Aleksey Cheusov <cheusov@tut.by>
Subject: Re: pkg/45194
Date: Thu, 11 Aug 2011 17:30:31 +0200

 @Aleksey: not sure if you're talking to the original reporter or me,
 however here is the relevant info:

 bmake show-vars VARNAMES='X11_TYPE PKG_DEFAULT_OPTIONS PKG_OPTIONS.cairo'
 native

 LOCALBASE=		/home/manu/Projects/netbsd/pkg/lib/pkgconfig


 ls -la -rw-r--r--  1 manu manu   275  4 août  16:28 atk.pc
 -rw-r--r--  1 manu manu   254  4 août  20:16 audiofile.pc
 -rw-r--r--  1 manu manu   288  4 août  20:52 cairo-fc.pc
 -rw-r--r--  1 manu manu   285  4 août  20:52 cairo-ft.pc
 -rw-r--r--  1 manu manu   269  4 août  20:52 cairo-gl.pc
 -rw-r--r--  1 manu manu   263  4 août  20:52 cairo-glx.pc
 -rw-r--r--  1 manu manu   466  6 août  12:07 cairo.pc
 -rw-r--r--  1 manu manu   268  4 août  20:52 cairo-pdf.pc
 -rw-r--r--  1 manu manu   265  4 août  20:52 cairo-png.pc
 -rw-r--r--  1 manu manu   274  4 août  20:52 cairo-ps.pc
 -rw-r--r--  1 manu manu   265  4 août  20:52 cairo-svg.pc
 -rw-r--r--  1 manu manu   299  4 août  20:52 cairo-xcb.pc
 -rw-r--r--  1 manu manu   270  4 août  20:52 cairo-xlib.pc
 -rw-r--r--  1 manu manu   302  4 août  20:52 cairo-xlib-xrender.pc
 -rw-r--r--  1 manu manu   568  4 août  19:57 dbus-1.pc
 -rw-r--r--  1 manu manu   330  4 août  19:57 dbus-glib-1.pc
 -rw-r--r--  1 manu manu   286  4 août  20:18 esound.pc
 -rw-r--r--  1 manu manu   390  4 août  16:32 fontconfig.pc
 -rw-r--r--  1 manu manu   355  4 août  16:31 freetype2.pc
 -rw-r--r--  1 manu manu   415  4 août  19:58 gconf-2.0.pc
 -rw-r--r--  1 manu manu   545  4 août  16:30 gdk-pixbuf-2.0.pc
 -rw-r--r--  1 manu manu   428  4 août  16:27 gio-2.0.pc
 -rw-r--r--  1 manu manu   377  4 août  16:27 gio-unix-2.0.pc
 -rw-r--r--  1 manu manu   411  4 août  16:27 glib-2.0.pc
 -rw-r--r--  1 manu manu   308  4 août  16:36 gl.pc
 -rw-r--r--  1 manu manu   329  4 août  20:00 glu.pc
 -rw-r--r--  1 manu manu   330  4 août  16:36 glw.pc
 -rw-r--r--  1 manu manu   397  4 août  16:27 gmodule-2.0.pc
 -rw-r--r--  1 manu manu   397  4 août  16:27 gmodule-export-2.0.pc
 -rw-r--r--  1 manu manu   376  4 août  16:27 gmodule-no-export-2.0.pc
 -rw-r--r--  1 manu manu   320  4 août  16:27 gobject-2.0.pc
 -rw-r--r--  1 manu manu   326  4 août  16:27 gthread-2.0.pc
 -rw-r--r--  1 manu manu   249  4 août  20:02 lcms.pc
 -rw-r--r--  1 manu manu   307  4 août  13:25 libcrypto.pc
 -rw-r--r--  1 manu manu  1621  4 août  19:51 libcurl.pc
 -rw-r--r--  1 manu manu   286  4 août  20:28 libdaemon.pc
 -rw-r--r--  1 manu manu   460  4 août  21:42 libexslt.pc
 -rw-r--r--  1 manu manu   289  4 août  13:16 libffi.pc
 -rw-r--r--  1 manu manu   275  4 août  19:54 libIDL-2.0.pc
 -rw-r--r--  1 manu manu   910  4 août  16:58 libidn.pc
 -rw-r--r--  1 manu manu   305  4 août  16:24 libpcrecpp.pc
 -rw-r--r--  1 manu manu   314  4 août  16:24 libpcre.pc
 -rw-r--r--  1 manu manu   347  4 août  16:24 libpcreposix.pc
 -rw-r--r--  1 manu manu   285  4 août  16:30 libpng15.pc
 lrwxrwxrwx  1 manu manu    11  4 août  16:30 libpng.pc -> libpng15.pc
 -rw-r--r--  1 manu manu   322  4 août  13:25 libssl.pc
 -rw-r--r--  1 manu manu   303  4 août  13:28 libxml-2.0.pc
 -rw-r--r--  1 manu manu   352  4 août  21:42 libxslt.pc
 -rw-r--r--  1 manu manu   256  4 août  20:17 mad.pc
 -rw-r--r--  1 manu manu   311  4 août  20:17 ogg.pc
 -rw-r--r--  1 manu manu   332  4 août  13:25 openssl.pc
 -rw-r--r--  1 manu manu   441  4 août  19:55 ORBit-2.0.pc
 -rw-r--r--  1 manu manu   343  4 août  19:55 ORBit-CosNaming-2.0.pc
 -rw-r--r--  1 manu manu   333  4 août  19:55 ORBit-idl-2.0.pc
 -rw-r--r--  1 manu manu   344  4 août  19:55 ORBit-imodule-2.0.pc
 -rw-r--r--  1 manu manu   321  4 août  16:36 osmesa.pc
 -rw-r--r--  1 manu manu   270  4 août  16:36 pixman-1.pc
 -rw-r--r--  1 manu manu   224  4 août  20:22 printproto.pc
 -rw-r--r--  1 manu manu  1050  4 août  20:10 qt-mt.pc
 -rw-r--r--  1 manu manu   210  4 août  16:22 randrproto.pc
 -rw-r--r--  1 manu manu   211  4 août  13:29 renderproto.pc
 -rw-r--r--  1 manu manu   406  4 août  20:17 vorbisenc.pc
 -rw-r--r--  1 manu manu   432  4 août  20:17 vorbisfile.pc
 -rw-r--r--  1 manu manu   330  4 août  20:17 vorbis.pc
 -rw-r--r--  1 manu manu   285  4 août  21:43 xcb-composite.pc
 -rw-r--r--  1 manu manu   276  4 août  21:43 xcb-damage.pc
 -rw-r--r--  1 manu manu   259  4 août  21:43 xcb-dpms.pc
 -rw-r--r--  1 manu manu   243  4 août  21:43 xcb-dri2.pc
 -rw-r--r--  1 manu manu   256  4 août  21:43 xcb-glx.pc
 -rw-r--r--  1 manu manu   372  4 août  21:43 xcb.pc
 -rw-r--r--  1 manu manu   241  4 août  13:28 xcb-proto.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-randr.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-record.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-render.pc
 -rw-r--r--  1 manu manu   263  4 août  21:43 xcb-res.pc
 -rw-r--r--  1 manu manu   280  4 août  21:43 xcb-screensaver.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-shape.pc
 -rw-r--r--  1 manu manu   256  4 août  21:43 xcb-shm.pc
 -rw-r--r--  1 manu manu   259  4 août  21:43 xcb-sync.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-xevie.pc
 -rw-r--r--  1 manu manu   276  4 août  21:43 xcb-xf86dri.pc
 -rw-r--r--  1 manu manu   286  4 août  21:43 xcb-xfixes.pc
 -rw-r--r--  1 manu manu   271  4 août  21:43 xcb-xinerama.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-xprint.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-xtest.pc
 -rw-r--r--  1 manu manu   266  4 août  21:43 xcb-xvmc.pc
 -rw-r--r--  1 manu manu   261  4 août  21:43 xcb-xv.pc
 -rw-r--r--  1 manu manu   397  4 août  16:33 xcomposite.pc
 -rw-r--r--  1 manu manu   381  4 août  16:31 xcursor.pc
 -rw-r--r--  1 manu manu   250  4 août  16:31 xfixes.pc
 -rw-r--r--  1 manu manu   547  4 août  16:32 xft.pc
 -rw-r--r--  1 manu manu   284  4 août  20:22 xp.pc

 -rw-r--r--  1 manu manu   275  4 août  16:28 atk.pc
 -rw-r--r--  1 manu manu   254  4 août  20:16 audiofile.pc
 -rw-r--r--  1 manu manu   288  4 août  20:52 cairo-fc.pc
 -rw-r--r--  1 manu manu   285  4 août  20:52 cairo-ft.pc
 -rw-r--r--  1 manu manu   269  4 août  20:52 cairo-gl.pc
 -rw-r--r--  1 manu manu   263  4 août  20:52 cairo-glx.pc
 -rw-r--r--  1 manu manu   466  6 août  12:07 cairo.pc
 -rw-r--r--  1 manu manu   268  4 août  20:52 cairo-pdf.pc
 -rw-r--r--  1 manu manu   265  4 août  20:52 cairo-png.pc
 -rw-r--r--  1 manu manu   274  4 août  20:52 cairo-ps.pc
 -rw-r--r--  1 manu manu   265  4 août  20:52 cairo-svg.pc
 -rw-r--r--  1 manu manu   299  4 août  20:52 cairo-xcb.pc
 -rw-r--r--  1 manu manu   270  4 août  20:52 cairo-xlib.pc
 -rw-r--r--  1 manu manu   302  4 août  20:52 cairo-xlib-xrender.pc
 -rw-r--r--  1 manu manu   568  4 août  19:57 dbus-1.pc
 -rw-r--r--  1 manu manu   330  4 août  19:57 dbus-glib-1.pc
 -rw-r--r--  1 manu manu   286  4 août  20:18 esound.pc
 -rw-r--r--  1 manu manu   390  4 août  16:32 fontconfig.pc
 -rw-r--r--  1 manu manu   355  4 août  16:31 freetype2.pc
 -rw-r--r--  1 manu manu   415  4 août  19:58 gconf-2.0.pc
 -rw-r--r--  1 manu manu   545  4 août  16:30 gdk-pixbuf-2.0.pc
 -rw-r--r--  1 manu manu   428  4 août  16:27 gio-2.0.pc
 -rw-r--r--  1 manu manu   377  4 août  16:27 gio-unix-2.0.pc
 -rw-r--r--  1 manu manu   411  4 août  16:27 glib-2.0.pc
 -rw-r--r--  1 manu manu   308  4 août  16:36 gl.pc
 -rw-r--r--  1 manu manu   329  4 août  20:00 glu.pc
 -rw-r--r--  1 manu manu   330  4 août  16:36 glw.pc
 -rw-r--r--  1 manu manu   397  4 août  16:27 gmodule-2.0.pc
 -rw-r--r--  1 manu manu   397  4 août  16:27 gmodule-export-2.0.pc
 -rw-r--r--  1 manu manu   376  4 août  16:27 gmodule-no-export-2.0.pc
 -rw-r--r--  1 manu manu   320  4 août  16:27 gobject-2.0.pc
 -rw-r--r--  1 manu manu   326  4 août  16:27 gthread-2.0.pc
 -rw-r--r--  1 manu manu   249  4 août  20:02 lcms.pc
 -rw-r--r--  1 manu manu   307  4 août  13:25 libcrypto.pc
 -rw-r--r--  1 manu manu  1621  4 août  19:51 libcurl.pc
 -rw-r--r--  1 manu manu   286  4 août  20:28 libdaemon.pc
 -rw-r--r--  1 manu manu   460  4 août  21:42 libexslt.pc
 -rw-r--r--  1 manu manu   289  4 août  13:16 libffi.pc
 -rw-r--r--  1 manu manu   275  4 août  19:54 libIDL-2.0.pc
 -rw-r--r--  1 manu manu   910  4 août  16:58 libidn.pc
 -rw-r--r--  1 manu manu   305  4 août  16:24 libpcrecpp.pc
 -rw-r--r--  1 manu manu   314  4 août  16:24 libpcre.pc
 -rw-r--r--  1 manu manu   347  4 août  16:24 libpcreposix.pc
 -rw-r--r--  1 manu manu   285  4 août  16:30 libpng15.pc
 lrwxrwxrwx  1 manu manu    11  4 août  16:30 libpng.pc -> libpng15.pc
 -rw-r--r--  1 manu manu   322  4 août  13:25 libssl.pc
 -rw-r--r--  1 manu manu   303  4 août  13:28 libxml-2.0.pc
 -rw-r--r--  1 manu manu   352  4 août  21:42 libxslt.pc
 -rw-r--r--  1 manu manu   256  4 août  20:17 mad.pc
 -rw-r--r--  1 manu manu   311  4 août  20:17 ogg.pc
 -rw-r--r--  1 manu manu   332  4 août  13:25 openssl.pc
 -rw-r--r--  1 manu manu   441  4 août  19:55 ORBit-2.0.pc
 -rw-r--r--  1 manu manu   343  4 août  19:55 ORBit-CosNaming-2.0.pc
 -rw-r--r--  1 manu manu   333  4 août  19:55 ORBit-idl-2.0.pc
 -rw-r--r--  1 manu manu   344  4 août  19:55 ORBit-imodule-2.0.pc
 -rw-r--r--  1 manu manu   321  4 août  16:36 osmesa.pc
 -rw-r--r--  1 manu manu   270  4 août  16:36 pixman-1.pc
 -rw-r--r--  1 manu manu   224  4 août  20:22 printproto.pc
 -rw-r--r--  1 manu manu  1050  4 août  20:10 qt-mt.pc
 -rw-r--r--  1 manu manu   210  4 août  16:22 randrproto.pc
 -rw-r--r--  1 manu manu   211  4 août  13:29 renderproto.pc
 -rw-r--r--  1 manu manu   406  4 août  20:17 vorbisenc.pc
 -rw-r--r--  1 manu manu   432  4 août  20:17 vorbisfile.pc
 -rw-r--r--  1 manu manu   330  4 août  20:17 vorbis.pc
 -rw-r--r--  1 manu manu   285  4 août  21:43 xcb-composite.pc
 -rw-r--r--  1 manu manu   276  4 août  21:43 xcb-damage.pc
 -rw-r--r--  1 manu manu   259  4 août  21:43 xcb-dpms.pc
 -rw-r--r--  1 manu manu   243  4 août  21:43 xcb-dri2.pc
 -rw-r--r--  1 manu manu   256  4 août  21:43 xcb-glx.pc
 -rw-r--r--  1 manu manu   372  4 août  21:43 xcb.pc
 -rw-r--r--  1 manu manu   241  4 août  13:28 xcb-proto.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-randr.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-record.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-render.pc
 -rw-r--r--  1 manu manu   263  4 août  21:43 xcb-res.pc
 -rw-r--r--  1 manu manu   280  4 août  21:43 xcb-screensaver.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-shape.pc
 -rw-r--r--  1 manu manu   256  4 août  21:43 xcb-shm.pc
 -rw-r--r--  1 manu manu   259  4 août  21:43 xcb-sync.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-xevie.pc
 -rw-r--r--  1 manu manu   276  4 août  21:43 xcb-xf86dri.pc
 -rw-r--r--  1 manu manu   286  4 août  21:43 xcb-xfixes.pc
 -rw-r--r--  1 manu manu   271  4 août  21:43 xcb-xinerama.pc
 -rw-r--r--  1 manu manu   265  4 août  21:43 xcb-xprint.pc
 -rw-r--r--  1 manu manu   262  4 août  21:43 xcb-xtest.pc
 -rw-r--r--  1 manu manu   266  4 août  21:43 xcb-xvmc.pc
 -rw-r--r--  1 manu manu   261  4 août  21:43 xcb-xv.pc
 -rw-r--r--  1 manu manu   397  4 août  16:33 xcomposite.pc
 -rw-r--r--  1 manu manu   381  4 août  16:31 xcursor.pc
 -rw-r--r--  1 manu manu   250  4 août  16:31 xfixes.pc
 -rw-r--r--  1 manu manu   547  4 août  16:32 xft.pc
 -rw-r--r--  1 manu manu   284  4 août  20:22 xp.pc

 pkg_info -a | grep xcb
 py26-xcbgen-1.6nb2  XCB protocol descriptions (in XML)
 xcb-proto-1.6       XCB protocol descriptions (in XML)
 libxcb-1.7          X protocol C-language Binding

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194
Date: Thu, 11 Aug 2011 23:31:48 +0300

 > @Aleksey: not sure if you're talking to the original reporter or me,
 > however here is the relevant info:

 > bmake show-vars VARNAMES='X11_TYPE PKG_DEFAULT_OPTIONS PKG_OPTIONS.cairo'
 > native
 Wow. If you set X11_TYPE to "native" on non-NetBSD system be ready for a
 lot of very strange problems ;-) Personally, I'd recommend you to always
 set X11_TYPE=modular on non-NetBSD systems and Linux in particular.

 As about bug, it looks like configure could not find xcb-shm.pc.
 First, please analyse output of "bmake configure"
 and look for 

     checking for xcb_shm... no

 If it there, this is where this problem come from.
 Maybe installing Ubuntu package with xcb-shm.pc may help.
 On Debian it is libxcb-shm0-dev
 But I'm not sure it is a correct fix.

 -- 
 Best regards, Aleksey Cheusov.

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194 (graphics/cairo fails to finish build on Debian
 Linux)
Date: Thu, 11 Aug 2011 20:23:00 -0400

 On Thu, 11 Aug 2011 20:35:02 +0000 (UTC)
 Aleksey Cheusov <cheusov@tut.by> wrote:

 >  Wow. If you set X11_TYPE to "native" on non-NetBSD system be ready for a
 >  lot of very strange problems ;-) Personally, I'd recommend you to always
 >  set X11_TYPE=modular on non-NetBSD systems and Linux in particular.

 A Linux OS I could do this fine on was Slackware, as I didn't have to
 bother fetching a number of X11 lib and dev packages on it... on Debian
 that must be quite tricky, indeed.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194
Date: Fri, 12 Aug 2011 19:04:38 +0000

 On Thu, Aug 11, 2011 at 08:35:02PM +0000, Aleksey Cheusov wrote:
  >  Wow. If you set X11_TYPE to "native" on non-NetBSD system be ready for a
  >  lot of very strange problems ;-) Personally, I'd recommend you to always
  >  set X11_TYPE=modular on non-NetBSD systems and Linux in particular.

 It's supposed to be supported. However, you have to make sure you have
 all of the native X installed, which with Debian resembles pulling
 teeth.

 If Debian/Ubuntu has a meta-package to install all of X, it would be
 good to get that info into the pkgsrc guide.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Jan =?UTF-8?B?xaBteWRrZQ==?= <jan.smydke@jh-inst.cas.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194
Date: Sun, 14 Aug 2011 21:22:29 +0200

 It still fails

 >  Wow. If you set X11_TYPE to "native" on non-NetBSD system be ready
 > for a lot of very strange problems ;-) Personally, I'd recommend you
 > to always set X11_TYPE=modular on non-NetBSD systems and Linux in
 > particular. 
 >  As about bug, it looks like configure could not find xcb-shm.pc.
 >  First, please analyse output of "bmake configure"
 >  and look for 
 >  
 >      checking for xcb_shm... no
 >  
 >  If it there, this is where this problem come from.
 >  Maybe installing Ubuntu package with xcb-shm.pc may help.
 >  On Debian it is libxcb-shm0-dev
 >  But I'm not sure it is a correct fix.

 I have installed libxcb-shm0-dev, but the configure still gives:

 checking for xcb... yes
 checking whether cairo's XCB surface backend feature could be
 enabled... yes checking for cairo's XCB/SHM functions feature... 
 checking for xcb_shm... no
 no
 checking whether cairo's XCB/SHM functions feature could be enabled...
 no (requires  http://xcb.freedesktop.org)

 My output from the commands Aleksey asked about:

 ----
 bmake show-vars VARNAMES='X11_TYPE PKG_DEFAULT_OPTIONS
 PKG_OPTIONS.cairo':

 native


 ----
 ls -la /opt/pkg/lib/pkgconfig:
 total 132
 drwxr-xr-x 2 root root  4096 Jul 30 22:12 .
 drwxr-xr-x 9 root root 20480 Jul 30 22:12 ..
 -rw-r--r-- 1 root root   324 Jul 30 22:00 fontconfig.pc
 -rw-r--r-- 1 root root   311 Jul 30 21:59 freetype2.pc
 -rw-r--r-- 1 root root   384 Jul 30 21:56 gio-2.0.pc
 -rw-r--r-- 1 root root   333 Jul 30 21:56 gio-unix-2.0.pc
 -rw-r--r-- 1 root root   367 Jul 30 21:56 glib-2.0.pc
 -rw-r--r-- 1 root root   242 Jul 30 22:10 gl.pc
 -rw-r--r-- 1 root root   264 Jul 30 22:10 glw.pc
 -rw-r--r-- 1 root root   353 Jul 30 21:56 gmodule-2.0.pc
 -rw-r--r-- 1 root root   353 Jul 30 21:56 gmodule-export-2.0.pc
 -rw-r--r-- 1 root root   332 Jul 30 21:56 gmodule-no-export-2.0.pc
 -rw-r--r-- 1 root root   276 Jul 30 21:56 gobject-2.0.pc
 -rw-r--r-- 1 root root   282 Jul 30 21:56 gthread-2.0.pc
 -rw-r--r-- 1 root root   302 Jul 30 21:22 libarchive.pc
 -rw-r--r-- 1 root root  1594 Jul 30 21:19 libcurl.pc
 -rw-r--r-- 1 root root   245 Jul 30 21:37 libffi.pc
 -rw-r--r-- 1 root root   888 Jul 30 21:12 libidn.pc
 -rw-r--r-- 1 root root   283 Jul 30 21:48 libpcrecpp.pc
 -rw-r--r-- 1 root root   292 Jul 30 21:48 libpcre.pc
 -rw-r--r-- 1 root root   325 Jul 30 21:48 libpcreposix.pc
 -rw-r--r-- 1 root root   263 Jul 30 22:11 libpng15.pc
 lrwxrwxrwx 1 root root    11 Jul 30 22:11 libpng.pc -> libpng15.pc
 -rw-r--r-- 1 root root   281 Jul 30 21:46 libxml-2.0.pc
 -rw-r--r-- 1 root root   255 Jul 30 22:10 osmesa.pc
 -rw-r--r-- 1 root root   248 Jul 30 22:12 pixman-1.pc
 -rw-r--r-- 1 root root   188 Jul 30 21:47 randrproto.pc
 -rw-r--r-- 1 root root   189 Jul 30 21:37 renderproto.pc
 -rw-r--r-- 1 root root   219 Jul 30 21:47 xcb-proto.pc
 -rw-r--r-- 1 root root   459 Jul 30 22:01 xft.pc

 ----
 /opt/pkg/sbin/pkg_info -a | grep xcb:
 xcb-proto-1.6       XCB protocol descriptions (in XML)

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45194
Date: Mon, 15 Aug 2011 11:28:14 +0300

 > =A0I have installed libxcb-shm0-dev, but the configure still gives:
 >
 > =A0checking for xcb... yes
 > =A0checking whether cairo's XCB surface backend feature could be
 > =A0enabled... yes checking for cairo's XCB/SHM functions feature...
 > =A0checking for xcb_shm... no

 Try to rebuild x11-links package, install it and run
 "bmake configure" again.

 I consider
    pkg_info -L x11-links | grep xcb-shm.pc
 shows nothing nothing on your system.

State-Changed-From-To: open->feedback
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Tue, 16 Aug 2011 11:13:29 +0000
State-Changed-Why:
This issue looks like local problem. Fix was proposed. Feedback is needed.


From: Jan =?UTF-8?B?xaBteWRrZQ==?= <jan.smydke@jh-inst.cas.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45194
Date: Tue, 16 Aug 2011 13:55:32 +0200

 Works! Thanks a lot! JS

State-Changed-From-To: feedback->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Tue, 16 Aug 2011 12:40:14 +0000
State-Changed-Why:
Local problem. Proposed fix solved the problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.