NetBSD Problem Report #47728

From makoto@mx.ki.nu  Mon Apr  8 01:43:58 2013
Return-Path: <makoto@mx.ki.nu>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 6195D63F36D
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  8 Apr 2013 01:43:58 +0000 (UTC)
Message-Id: <201304080143.r381hu3X023849@mx.ki.nu>
Date: Mon, 8 Apr 2013 10:43:56 +0900 (JST)
From: makoto@ki.nu
Reply-To: makoto@ki.nu
To: gnats-bugs@gnats.NetBSD.org
Subject: (libX11) Requested 'xproto >= 7.0.17' but Xproto is 7.0.15
X-Send-Pr-Version: 3.95

>Number:         47728
>Category:       pkg
>Synopsis:       Requested 'xproto >= 7.0.17' but version of Xproto is 7.0.15
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 08 01:45:00 +0000 2013
>Last-Modified:  Sun Oct 06 15:20:00 +0000 2013
>Originator:     Makoto Fujiwara
>Release:        NetBSD 5.2
>Organization:
KINU Corporation
>Environment:


System: NetBSD pinapa.z.ki.nu 5.2 NetBSD 5.2 (XEN3PAE_DOMU) #0: Wed Nov 28 09:34:42 UTC 2012 builds@b8.netbsd.org:/home/builds/ab/netbsd-5-2-RELEASE/i386/201211280503Z-obj/home/builds/ab/netbsd-5-2-RELEASE/src/sys/arch/i386/compile/XEN3PAE_DOMU i386
Architecture: i386
Machine: i386
>Description:
	Native X11 for NetBSD 5.2 is little bit outdated.
	To package x11/libX11, we need pkgsrc version of x11/proto.
	The problem looks:
checking for X11... configure: error: Package requirements 
   (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto inputproto) were not met:

Requested 'xproto >= 7.0.17' but version of Xproto is 7.0.15

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X11_CFLAGS
and X11_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/x11/libX11
>How-To-Repeat:
	set X11_TYPE=native or unset X11_TYPE in /etc/mk.conf
	Have NetBSD/i386 5.2 installed with X11
	Have pkgsrc updated
	cd /usr/pkgsrc/x11/libX11
	make package
>Fix:

Index: x11/libX11/Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/x11/libX11/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- x11/libX11/Makefile	29 Oct 2012 05:06:33 -0000	1.29
+++ x11/libX11/Makefile	8 Apr 2013 00:58:30 -0000
@@ -60,6 +60,11 @@
 .include "../../x11/xextproto/buildlink3.mk"
 .include "../../x11/xf86bigfontproto/buildlink3.mk"
 .include "../../x11/xproto/buildlink3.mk"
+.if ${OPSYS} == "NetBSD"
+. if !empty(OS_VERSION:M5*)
+PREFER_PKGSRC+=	xproto
+. endif
+.endif
 .include "../../x11/xtrans/buildlink3.mk"

 .include "../../mk/bsd.pkg.mk"

>Audit-Trail:
From: Edgar =?iso-8859-1?B?RnXf?= <ef@math.uni-bonn.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/47728
Date: Sun, 6 Oct 2013 00:21:16 +0200

 I'm getting the same error on Mac OS X (10.6.8) with 2013Q3.

From: Edgar =?iso-8859-1?B?RnXf?= <ef@math.uni-bonn.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47728
Date: Sun, 6 Oct 2013 00:22:21 +0200

 I'm getting the same error on Mac OS X (10.6.8) with 2013Q3.

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/47728: (libX11) Requested 'xproto >= 7.0.17' but Xproto is
 7.0.15
Date: Sun, 6 Oct 2013 11:08:03 +0200

 --PNTmBPCT7hxwcZjr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Does the attached patch change anything?
  Thomas

 --PNTmBPCT7hxwcZjr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="libX11.diff"

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/libX11/Makefile,v
 retrieving revision 1.35
 diff -u -r1.35 Makefile
 --- Makefile	9 Sep 2013 09:44:41 -0000	1.35
 +++ Makefile	6 Oct 2013 09:07:29 -0000
 @@ -43,7 +43,7 @@

  # XXX This needs to match the version of xcb-proto we get for the
  # target by buildlink3.
 -TOOL_DEPENDS+=		xproto-[0-9]*:../../x11/xproto
 +TOOL_DEPENDS+=		xproto>=7.0.17:../../x11/xproto
  .endif

  .include "../../x11/bigreqsproto/buildlink3.mk"

 --PNTmBPCT7hxwcZjr--

From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@NetBSD.org
Cc: Edgar =?ISO-2022-JP-2?B?RnUbJChEKU4bKEI=?= <ef@math.uni-bonn.de>
Subject: Re: pkg/47728: (libX11) Requested 'xproto >= 7.0.17' but Xproto is 7.0.15
Date: Mon, 07 Oct 2013 00:18:29 +0900

 Edgar and Thomas, thanks.
 Unfortunately, the patch Thomas shown does not fix the problem.

 And I've tested the line moved to the outside of following 
 .if .. .endif clause, 

 .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])

 I'm seeing following line on pbulk log anyway.
 ----
 checking for X11... configure: error: Package requirements
 (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto
 inputproto) were not met:
 ----
 By the way, x11-links packaged at the same pbulk run.

   Now the change attached fixes the problem on regular make
 (not pbulk run, meaning safe side) and pbulk. I mean safe side
 in this context, pbulk and x11-links has suspicious relation
 (I am afraid of). 

 Thanks,
 ---
 Makoto Fujiwara

 Index: x11/libX11/Makefile
 ===================================================================
 RCS file: /cvs/cvsroot/pkgsrc/x11/libX11/Makefile,v
 retrieving revision 1.35
 diff -u -r1.35 Makefile
 --- x11/libX11/Makefile	9 Sep 2013 09:44:41 -0000	1.35
 +++ x11/libX11/Makefile	6 Oct 2013 15:05:14 -0000
 @@ -36,6 +36,10 @@
  BUILDLINK_API_DEPENDS.libxcb+=libxcb>=1.8.1

  TOOL_DEPENDS+=		tradcpp-[0-9]*:../../devel/tradcpp
 +#PREFER_PKGSRC+=		xproto
 +TOOL_DEPENDS+=		xproto>=7.0.17:../../x11/xproto
 +USE_BUILTIN.xproto=
 +
  CONFIGURE_ENV+=		ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix"

  .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])

>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.