NetBSD Problem Report #46095
From www@NetBSD.org Sat Feb 25 16:07:12 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id AE91C63DB26
for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Feb 2012 16:07:12 +0000 (UTC)
Message-Id: <20120225160712.1C32863BA17@www.NetBSD.org>
Date: Sat, 25 Feb 2012 16:07:12 +0000 (UTC)
From: Christoph_Egger@gmx.de
Reply-To: Christoph_Egger@gmx.de
To: gnats-bugs@NetBSD.org
Subject: X11 version cannot be determined
X-Send-Pr-Version: www-1.0
>Number: 46095
>Category: pkg
>Synopsis: X11 version cannot be determined
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: sevan
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 25 16:10:00 +0000 2012
>Closed-Date: Sun Apr 19 18:29:26 +0000 2015
>Last-Modified: Sun Apr 19 18:29:26 +0000 2015
>Originator: Christoph Egger
>Release: MacOSX 10.4
>Organization:
>Environment:
Mac OS X 10.4
>Description:
When compiling a package, I see this warning:
bmake: "../../pkgtools/x11-links/../../pkgtools/x11-links/xorg-version.mk" line 38: warning: Couldn't read shell's output for "/usr/X11R6/bin/Xquartz -version 2>&1 | /usr/bin/awk '/X.org Release / { print $3 }'"
And later linking against -lX11 fails because libX11 cannot be found.
$ /usr/X11R6/bin/Xquartz -version
XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
>How-To-Repeat:
Build a package on MacOSX 10.4 with X11_TYPE=native.
>Fix:
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46095: X11 version cannot be determined
Date: Sun, 26 Feb 2012 01:39:07 +0900
On Sun, 26 Feb 2012 01:10:01 +0900, <Christoph_Egger@gmx.de> wrote:
> When compiling a package, I see this warning:
>
> bmake: "../../pkgtools/x11-links/../../pkgtools/x11-links/xorg-version.mk" line 38: warning: Couldn't read shell's output for "/usr/X11R6/bin/Xquartz -version 2>&1 | /usr/bin/awk '/X.org Release / { print $3 }'"
How about apply following patch?
Index: pkgtools/x11-links/version.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/x11-links/version.mk,v
retrieving revision 1.5
diff -u -r1.5 version.mk
--- pkgtools/x11-links/version.mk 30 Jan 2011 17:26:32 -0000 1.5
+++ pkgtools/x11-links/version.mk 25 Feb 2012 16:34:10 -0000
@@ -16,7 +16,7 @@
. include "xorg-version.mk"
. include "xfree-version.mk"
-. if defined(BUILTIN_X11_VERSION.xorg)
+. if defined(BUILTIN_X11_VERSION.xorg) && !empty(BUILTIN_X11_VERSION.xorg)
BUILTIN_X11_TYPE.native= ${BUILTIN_X11_TYPE.xorg}
BUILTIN_X11_VERSION.native= ${BUILTIN_X11_VERSION.xorg}
. elif defined(BUILTIN_X11_VERSION.XFree86)
Index: pkgtools/x11-links/xorg-version.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/x11-links/xorg-version.mk,v
retrieving revision 1.2
diff -u -r1.2 xorg-version.mk
--- pkgtools/x11-links/xorg-version.mk 9 Sep 2011 09:08:07 -0000 1.2
+++ pkgtools/x11-links/xorg-version.mk 25 Feb 2012 16:34:10 -0000
@@ -34,6 +34,7 @@
.if !defined(BUILTIN_X11_VERSION.xorg)
. if exists(${XQUARTZ})
BUILTIN_X11_VERSION.xorg!= \
+ ${ECHO}; \
${XQUARTZ} -version 2>&1 | \
${AWK} '/X.org Release / { print $$3 }'
. elif exists(${BUILTIN_XORG_VERSION_FILE})
>> How-To-Repeat:
>
> Build a package on MacOSX 10.4 with X11_TYPE=native.
It should not be used by default.
Index: mk/platform/Darwin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/platform/Darwin.mk,v
retrieving revision 1.47
diff -u -r1.47 Darwin.mk
--- mk/platform/Darwin.mk 10 Sep 2011 16:30:02 -0000 1.47
+++ mk/platform/Darwin.mk 25 Feb 2012 16:36:52 -0000
@@ -17,7 +17,7 @@
# Tiger (and earlier) use Xfree 4.4.0 (and earlier)
.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
-X11_TYPE?= native
+X11_TYPE?= modular
.endif
.if !defined(CPP) || ${CPP} == "cpp"
--
OBATA Akio / obache@NetBSD.org
Responsible-Changed-From-To: pkg-manager->sevan
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Thu, 09 Apr 2015 18:03:19 +0000
Responsible-Changed-Why:
Taking this as I have a system to verify on
State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Sun, 19 Apr 2015 18:29:26 +0000
State-Changed-Why:
On a fresh bootstrap of pkgsrc-current on OS X Tiger, forcing X11_TYPE to nattivee and attempting to build pkgtools/x11-links no longer produces such warnings
>Unformatted:
(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.