NetBSD Problem Report #45809

From www@NetBSD.org  Mon Jan  9 19:20:07 2012
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 43F9A63BCB0
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  9 Jan 2012 19:20:07 +0000 (UTC)
Message-Id: <20120109192006.2BB3263B9DD@www.NetBSD.org>
Date: Mon,  9 Jan 2012 19:20:06 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
X-Send-Pr-Version: www-1.0

>Number:         45809
>Category:       pkg
>Synopsis:       graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 09 19:25:00 +0000 2012
>Closed-Date:    Sat Dec 19 00:31:28 +0000 2015
>Last-Modified:  Sat Dec 19 00:31:28 +0000 2015
>Originator:     John D. Baker
>Release:        5.1_STABLE/i386, pkgsrc-2011Q4
>Organization:
>Environment:
NetBSD slate.technoskunk.fur 5.1_STABLE NetBSD 5.1_STABLE (SLATE) #30: Sun Jan  8 19:02:12 CST 2012  sysop@slate.technoskunk.fur:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/SLATE i386

>Description:
Packaging graphics/libggi with pkgsrc-2011Q4 fails on
NetBSD-5.1_STABLE/i386 as follows:

[...]
=> Automatic manual page handling
pkg_create: can't stat `/d0/build/pkgsrc/graphics/libggi/work/.destdir/usr/pkg/lib/ggi/helper/helper_x_dga.la'
===> Building binary package for libggi-2.2.2
=> Creating binary package /d0/build/netbsd-5/packages/i386/All/libggi-2.2.2.tgz
pkg_create: can't stat `/d0/build/pkgsrc/graphics/libggi/work/.destdir/usr/pkg/lib/ggi/helper/helper_x_dga.la'
pkg_create: lstat failed for file lib/ggi/helper/helper_x_dga.la: No such file or directory
*** Error code 2

Stop.
make: stopped in /d0/local/pkgsrc/graphics/libggi
[...]
>How-To-Repeat:
attempt to package/install graphics/libggi with pkgsrc-2011Q4 on
NetBSD-5.1_STABLE/i386 (other arch/machine?) (dependency of
multimedia/mplayer with PKG_OPTIONS.mplayer+=ggi in this case).

The machine in question is uing the in-tree Xorg for NetBSD-5.1.

IIRC it packages fine on a machine running NetBSD-current/i386 (tested
with pkgsrc-HEAD during freeze period).

Scrolling back through the config dialog, I found:

  checking for X11/extensions/xf86dga.h... no
configure:17751: checking for X11/extensions/xf86dga.h
configure:17767: cc -c -O2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/pkg/in
clude -pedantic -I/usr/X11R7/include -I/usr/pkg/include -I/usr/X11R7/include -I/
usr/pkg/include -I/usr/X11R7/include conftest.c >&5
In file included from conftest.c:97:
/d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
h:9:2: warning: #warning is a GCC extension
/d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future
."
/d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
h:10:2: warning: #warning is a GCC extension
/d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead."
/d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
h:11:37: error: X11/extensions/Xxf86dga.h: No such file or directory
configure:17773: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "libggi"
| #define PACKAGE_TARNAME "libggi"
| #define PACKAGE_VERSION "2.2.2"
| #define PACKAGE_STRING "libggi 2.2.2"
| #define PACKAGE_BUGREPORT "http://www.ggi-project.org/contact.html"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_STRNCAT 1
| #define HAVE_STRNCPY 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_STRLCPY 1
| #define HAVE_STRLCAT 1
| #define HAVE_ASPRINTF 1
| #define HAVE_STRTOL 1
| #define HAVE_STRTOUL 1
| #define HAVE_STRTOLL 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_DECL_STRNCASECMP 1
| #define HAVE_DECL_SNPRINTF 1
| #define HAVE_DECL_SIGINTERRUPT 1
| #define HAVE_DECL_STRTOULL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SIGINTERRUPT 1
| #define HAVE_STRTOULL 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_GGI_GII_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SHM_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_ST_RDEV 1
| #define TIME_WITH_SYS_TIME 1
| #define RETSIGTYPE void
| #define HAVE_SOCKLEN_T 1
| #define HAVE_ALLOCA 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_VPRINTF 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_SELECT 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_SETENV 1
| #define HAVE_PUTENV 1
| #define HAVE_GETOPT 1
| #define HAVE_RANDOM 1
| #define HAVE_HERROR 1
| #define HAVE_GETHOSTBYNAME 1
| #define HAVE_SIGPENDING 1
| #define HAVE_FORK 1
| #define HAVE_KILL 1
| #define DO_SWAR_NONE 1
| #define HAVE_LIBC 1
| #define BUILTIN_DEFAULT 1
| #define BUILTIN_DISPLAY 1
| #define BUILTIN_HELPER_MANSYNC 1
| #define HAVE_XINITIMAGE 1
| /* end confdefs.h.  */
| #include <X11/Xlib.h>
| 
| #include <X11/extensions/xf86dga.h>
configure:17797: result: no
[...]
The relevant section of "config.log" says:

[...]


>Fix:
Workaround:  don't build anything with ggi support?

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on
 NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
Date: Sun, 22 Jan 2012 17:45:24 +0000

 On Mon, Jan 09, 2012 at 07:25:00PM +0000, jdbaker@mylinuxisp.com wrote:
  > In file included from conftest.c:97:
  > /d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
  > h:9:2: warning: #warning is a GCC extension
  > /d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
  > h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future
  > ."
  > /d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
  > h:10:2: warning: #warning is a GCC extension
  > /d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
  > h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead."
  > /d0/build/pkgsrc/graphics/libggi/work/.buildlink/include/X11/extensions/xf86dga.
  > h:11:37: error: X11/extensions/Xxf86dga.h: No such file or directory
  > configure:17773: $? = 1

 I've seen this in the bulk build reports but without a native X
 netbsd-5 box I've not been able to figure out what's going on.

 Does /usr/X11R7/include/X11/extensions/Xxf86dga.h exist?

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on
 NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
Date: Sun, 22 Jan 2012 21:20:32 +0000

 On Sun, Jan 22, 2012 at 05:50:04PM +0000, David Holland wrote:
  >  I've seen this in the bulk build reports but without a native X
  >  netbsd-5 box I've not been able to figure out what's going on.
  >  
  >  Does /usr/X11R7/include/X11/extensions/Xxf86dga.h exist?

 Also, does /usr/X11R7/include/X11/extensions/xf86dga.h exist? And does
 work/.buildlink/include/X11/extensions/xf86dga.h point at it or at
 something else (e.g. a file from a dgaproto or similar package in
 /usr/pkg)?

 -- 
 David A. Holland
 dholland@netbsd.org

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386,
 pkgsrc-2011Q4
Date: Sun, 22 Jan 2012 14:18:24 -0600 (CST)

 On Sun, 22 Jan 2012, David Holland wrote:

 > Does /usr/X11R7/include/X11/extensions/Xxf86dga.h exist?

 No.  It does not exist in native Xorg on NetBSD-5.

 I just noticed that building libggi pulls in "x11/xf86dgaproto", and
 buildlinks to that, (/usr/pkg/include/X11/extensions/xf86dga.h) which
 then tries to include <X11/extensions/Xxf86dga.h> as the "else" clause
 of "#ifdef _XF86DGA_SERVER_".  Said file also doesn't exist in
 "/usr/pkg/include/X11/extensions" either.

 My "/etc/mk.conf" doesn't set any "X11*" variables, so everything should
 be the default for the platform.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on
 NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
Date: Sun, 22 Jan 2012 22:18:05 +0000

 On Sun, Jan 22, 2012 at 09:25:04PM +0000, John D. Baker wrote:
  >  > Does /usr/X11R7/include/X11/extensions/Xxf86dga.h exist?
  >  
  >  No.  It does not exist in native Xorg on NetBSD-5.
  >  
  >  I just noticed that building libggi pulls in "x11/xf86dgaproto", and
  >  buildlinks to that, (/usr/pkg/include/X11/extensions/xf86dga.h) which
  >  then tries to include <X11/extensions/Xxf86dga.h> as the "else" clause
  >  of "#ifdef _XF86DGA_SERVER_".  Said file also doesn't exist in
  >  "/usr/pkg/include/X11/extensions" either.

 Ok, so we're using the builtin libXxf86dga but xf86dgaproto from
 pkgsrc? No wonder it isn't working.

 This seems to be because the API_DEPENDS in bl3.mk for libXxf86dga
 says >=1.0.1 (netbsd-5 has 1.0.2; current has 1.1.2) so that's
 accepted, but for xf86dgaproto it's >=2.1 (netbsd-5 has 2.0.3; current
 has 2.1) so that isn't accepted and it takes the one from pkgsrc.

 never mind that it's more important to use matching versions of the
 two packages than the most recent versions.

 Other than administering a retroactive beatdown to the xorg guys who
 thought it would be a good idea to distribute libraries and headers
 separately... I have no idea how to fix this or how it should be set
 up in order to have a reasonable chance of working.

  >  My "/etc/mk.conf" doesn't set any "X11*" variables, so everything should
  >  be the default for the platform.

 Right, it's not just you (nor is it just this package).

 -- 
 David A. Holland
 dholland@netbsd.org

From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386, pkgsrc-2011Q4
Date: Sun, 22 Jan 2012 23:33:49 +0100

 On Sun, Jan 22, 2012 at 10:20:04PM +0000, David Holland wrote:
 [..]

 >  Ok, so we're using the builtin libXxf86dga but xf86dgaproto from
 >  pkgsrc? No wonder it isn't working.
 >  
 >  This seems to be because the API_DEPENDS in bl3.mk for libXxf86dga
 >  says >=1.0.1 (netbsd-5 has 1.0.2; current has 1.1.2) so that's
 >  accepted, but for xf86dgaproto it's >=2.1 (netbsd-5 has 2.0.3; current
 >  has 2.1) so that isn't accepted and it takes the one from pkgsrc.
 >  
 >  never mind that it's more important to use matching versions of the
 >  two packages than the most recent versions.

 So changes like the recent one for pkgsrc/x11/gtk2/options.mk is asking
 more more trouble.

 Bernd

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809: graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386,
 pkgsrc-2011Q4
Date: Mon, 23 Jan 2012 09:47:36 -0600 (CST)

 On Sun, 22 Jan 2012, David Holland wrote:

 > Also, does /usr/X11R7/include/X11/extensions/xf86dga.h exist? And does

 Yes, this file exists but it is ignored--for reasons mentioned earlier
 (than this message) in the thread of followups.

 > work/.buildlink/include/X11/extensions/xf86dga.h point at it or at

 The buildlink include points to the file installed from
 "x11/xf86dgaproto" rather than to the native file.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809 graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386,
 pkgsrc-2011Q4
Date: Thu, 3 Jan 2013 23:51:33 -0600 (CST)

 As of NetBSD 5.2_STABLE/i386 and pkgsrc-2012Q4, this problem has
 reappeared exactly as described previously.  NetBSD 5.2*/i386
 w/pkgsrc-2010Q3 was not affected.

 NetBSD verthandi.technoskunk.fur 5.2_STABLE NetBSD 5.2_STABLE (VERTHANDI) #2: Thu Dec 20 00:53:25 CST 2012  sysop@verthandi.technoskunk.fur:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/VERTHANDI i386

 [...]
 => Automatic manual page handling
 pkg_create: can't stat `/d0/build/pkgsrc/graphics/libggi/work/.destdir/usr/pkg/lib/ggi/helper/helper_x_dga.la'
 ===> Building binary package for libggi-2.2.2nb1
 => Creating binary package /d0/build/netbsd-5/packages/i386/All/libggi-2.2.2nb1.tgz
 pkg_create: can't stat `/d0/build/pkgsrc/graphics/libggi/work/.destdir/usr/pkg/lib/ggi/helper/helper_x_dga.la'
 pkg_create: lstat failed for file lib/ggi/helper/helper_x_dga.la: No such file or directory
 *** Error code 2

 Stop.
 make: stopped in /x/pkgsrc/graphics/libggi
 *** Error code 1

 Stop.
 make: stopped in /x/pkgsrc/graphics/libggi

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809 graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386,
 pkgsrc-2011Q4
Date: Fri, 4 Jan 2013 00:17:37 -0600 (CST)

 On Thu, 3 Jan 2013, John D. Baker wrote:

 > reappeared exactly as described previously.  NetBSD 5.2*/i386
 > w/pkgsrc-2010Q3 was not affected.

 The above should read "w/pkgsrc-2012Q3".

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45809 (graphics/libggi fails packaging on NetBSD-5.1_STABLE/i386,
 pkgsrc-2011Q4)
Date: Fri, 18 Dec 2015 17:19:15 -0600 (CST)

 As netbsd-5 is EOL, this PR is no-longer relevant and may be closed.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 19 Dec 2015 00:31:28 +0000
State-Changed-Why:
NetBSD 5 is EOL. Thanks for the update!


>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.