NetBSD Problem Report #50639

From bad@bsd.de  Sun Jan 10 17:44:58 2016
Return-Path: <bad@bsd.de>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 814ED7AC9D
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 10 Jan 2016 17:44:58 +0000 (UTC)
Message-Id: <20160110174444.EDF5138445@limiting-factor.k.bsd.de>
Date: Sun, 10 Jan 2016 18:44:44 +0100 (MET)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@gnats.NetBSD.org
Subject: XAW_TYPE=3d fail
X-Send-Pr-Version: 3.95

>Number:         50639
>Category:       pkg
>Synopsis:       build failures because of XAW_TYPE=3d
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 10 17:45:01 +0000 2016
>Closed-Date:    Thu Jun 23 18:08:32 +0000 2016
>Last-Modified:  Thu Jun 23 18:08:32 +0000 2016
>Originator:     Christoph Badura
>Release:        NetBSD 6.1_STABLE pkgsrc from 2016-01-09
>Organization:

>Environment:


System: NetBSD size-isnt-everything 6.1_STABLE NetBSD 6.1_STABLE (thinkpad-500) #6: Wed Feb 11 19:35:21 MET 2015 bad@size-isnt-everything:/u/0/trees/src/netbsd-6/sys/arch/amd64/compile/thinkpad-500 amd64
Architecture: x86_64
Machine: amd64
>Description:

X11_TYPE=modular
XAW_TYPE=3d

Failures from the set of packages I normally build:

graphics/libotf
print/xdvik

graphics/libotf:
checking for unistd.h... (cached) yes
checking X11/Xaw/Command.h usability... no
checking X11/Xaw/Command.h presence... no
checking for X11/Xaw/Command.h... no
checking for size_t... yes
[...]
=> Checking file-check results for libotf-0.9.13nb3
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /pkg_comp/obj/pkgsrc/graphics/libotf/default/.destdir/usr/pkg:
ERROR:         /pkg_comp/obj/pkgsrc/graphics/libotf/default/.destdir/usr/pkg/bin/otfview
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/graphics/libotf

print/xdvik:
checking for XpQueryVersion in -lXp... no
checking for Xaw headers... no
configure: error: Sorry, you will need at least the Xaw header/library files to compile xdvik.  *** Error code 1
Stop.
make: stopped in /usr/pkgsrc/print/xdvik

there is no Xaw directory in .buildlink/include/X11 only Xaw3d.

>How-To-Repeat:


On a system without x11 sets installed do:

echo X11_TYPE=modular >>/etc/mk.conf
echo XAW_TYPE=3d >>/etc/mk.conf

cd graphics/libotf && make
cd print/xdvik && make

>Fix:


>Release-Note:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Sun, 10 Jan 2016 21:03:20 +0100

 Dear Christoph,

 bad@bsd.de writes:
 > >Number:         50639
 > >Category:       pkg
 > >Synopsis:       build failures because of XAW_TYPE=3D3d
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Jan 10 17:45:01 +0000 2016
 > >Originator:     Christoph Badura
 > >Release:        NetBSD 6.1_STABLE pkgsrc from 2015-01-09
 > >Organization:
 > [...]
 > >Description:
 > 	=

 > X11_TYPE=3Dmodular
 > XAW_TYPE=3D3d
 > =

 > Failures from the set of packages I normally build:
 > =

 > graphics/libotf
 > print/xdvik
 > =

 > graphics/libotf:
 > checking for unistd.h... (cached) yes
 > checking X11/Xaw/Command.h usability... no
 > checking X11/Xaw/Command.h presence... no
 > checking for X11/Xaw/Command.h... no
 > checking for size_t... yes
 > [...]
 > =3D> Checking file-check results for libotf-0.9.13nb3
 > ERROR: ************************************************************
 > ERROR: The following files are in the PLIST but not in /pkg_comp/obj/pkg=
 src/graphics/libotf/default/.destdir/usr/pkg:
 > ERROR:         /pkg_comp/obj/pkgsrc/graphics/libotf/default/.destdir/usr=
 /pkg/bin/otfview
 > *** Error code 1
 > Stop.
 > make: stopped in /usr/pkgsrc/graphics/libotf
 > =

 > print/xdvik:
 > checking for XpQueryVersion in -lXp... no
 > checking for Xaw headers... no
 > configure: error: Sorry, you will need at least the Xaw header/library f=
 iles to compile xdvik.  *** Error code 1
 > Stop.
 > make: stopped in /usr/pkgsrc/print/xdvik
 > =

 > there is no Xaw directory in .buildlink/include/X11 only Xaw3d.
 > =

 > >How-To-Repeat:
 > 	=

 > =

 > On a system without x11 sets installed do:
 > =

 > echo X11_TYPE=3Dmodular >>/etc/mk.conf
 > echo XAW_TYPE=3D3d >>/etc/mk.conf
 > =

 > cd graphics/libotf && make
 > cd print/xdvik && make
 > [...]
 It seems that both graphics/libotf and print/xdvik search for Xaw
 in the configure script hardcode headers paths and libraries
 (respectively in ${WRKSRC}/configure.ac and
 ${WRKSRC}/m4/xdvi-check-xaw.m4).

 Can you please change ``.include "../../mk/xaw.buildlink3.mk"'' in both
 pkgsrc/graphics/libotf/options.mk and pkgsrc/print/xdvik/Makefile to:
 ``.include "../../x11/libXaw/buildlink3.mk"''?

 Another important aspect is... Has anyone previously built
 graphics/libotf or print/xdvik with XAW_TYPE=3D3d (i.e. is it a recent
 regression or they have not worked with libXaw3d anyway)?


 Thank you in advance!
 Ciao,
 L.

From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Sun, 10 Jan 2016 21:26:17 +0100

 On Sun, Jan 10, 2016 at 08:05:01PM +0000, Leonardo Taccari wrote:
 >  bad@bsd.de writes:
 >  > >Release:        NetBSD 6.1_STABLE pkgsrc from 2015-01-09

 pkgsrc was, of course, from 2016-01-09.  I've updated the PR.

 >  Can you please change ``.include "../../mk/xaw.buildlink3.mk"'' in both
 >  pkgsrc/graphics/libotf/options.mk and pkgsrc/print/xdvik/Makefile to:
 >  ``.include "../../x11/libXaw/buildlink3.mk"''?

 I guess I can after the current build w/o XAW_TYPE=3d finishes in $days.

 --chris

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Sun, 10 Jan 2016 20:29:00 +0000

 On Sun, Jan 10, 2016 at 05:45:01PM +0000, bad@bsd.de wrote:
  > there is no Xaw directory in .buildlink/include/X11 only Xaw3d.

 Didn't the old xaw3d package provide a symlink for the Xaw directory?
 None of this can be expected to work transparently without that...

 -- 
 David A. Holland
 dholland@netbsd.org

From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Thu, 21 Jan 2016 09:24:44 +0100

 On Sun, Jan 10, 2016 at 08:30:02PM +0000, David Holland wrote:
 >  Didn't the old xaw3d package provide a symlink for the Xaw directory?
 >  None of this can be expected to work transparently without that...

 I don't know about the old xaw3d package and haven't got around to
 checking, but your point is valid.

 libotf configure script doesn't deal with xaw3d specially:

 checking X11/Xaw/Command.h usability... no
 checking X11/Xaw/Command.h presence... no
 checking for X11/Xaw/Command.h... no

 And libXaw3d doesn't present a X11/Xaw symlink nor does it add suitable -I
 directives to reach it.

 Unless there's a change to libXaw3d to make an attempt to fix this, I'm
 not going to waste time on pointless recompiles.

 --chris

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	bad@bsd.de
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Thu, 21 Jan 2016 13:06:42 +0100

 On Sun, Jan 10, 2016 at 08:30:02PM +0000, David Holland wrote:
 > The following reply was made to PR pkg/50639; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/50639: XAW_TYPE=3d fail
 > Date: Sun, 10 Jan 2016 20:29:00 +0000
 > 
 >  On Sun, Jan 10, 2016 at 05:45:01PM +0000, bad@bsd.de wrote:
 >   > there is no Xaw directory in .buildlink/include/X11 only Xaw3d.
 >  
 >  Didn't the old xaw3d package provide a symlink for the Xaw directory?
 >  None of this can be expected to work transparently without that...

 I don't think the new package should do that in $PREFIX, that would
 create more conflicts, wouldn't it? But it can certainly do it in the
 b3.mk file.

 Joerg

From: Mark Davies <mark@ecs.vuw.ac.nz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Fri, 22 Jan 2016 09:04:24 +1300

 On Thu, 21 Jan 2016 13:06:42 you wrote:
 > I don't think the new package should do that in $PREFIX, that would
 > create more conflicts, wouldn't it? But it can certainly do it in the
 > b3.mk file.

 I just looked at the old Xaw3d/buildlink3.mk and it had the following in it to 
 deal with this.


 BUILDLINK_TRANSFORM+=           l:Xaw:Xaw3d


 .if ${X11_TYPE} == "modular"
 .PHONY: buildlink-Xaw3d-inc-hack
 buildlink-Xaw3d-cookie: buildlink-Xaw3d-inc-hack

 buildlink-Xaw3d-inc-hack: buildlink-directories
         [ ! -h ${BUILDLINK_DIR}/include/X11/Xaw ] && \
                 ${MKDIR} ${BUILDLINK_DIR}/include/X11 && \
                 ${LN} -s Xaw3d ${BUILDLINK_DIR}/include/X11/Xaw
 .endif



 cheers
 mark

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	bad@bsd.de
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Thu, 21 Jan 2016 21:30:41 +0100

 On Thu, Jan 21, 2016 at 08:10:01PM +0000, Mark Davies wrote:
 > The following reply was made to PR pkg/50639; it has been noted by GNATS.
 > 
 > From: Mark Davies <mark@ecs.vuw.ac.nz>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/50639: XAW_TYPE=3d fail
 > Date: Fri, 22 Jan 2016 09:04:24 +1300
 > 
 >  On Thu, 21 Jan 2016 13:06:42 you wrote:
 >  > I don't think the new package should do that in $PREFIX, that would
 >  > create more conflicts, wouldn't it? But it can certainly do it in the
 >  > b3.mk file.
 >  
 >  I just looked at the old Xaw3d/buildlink3.mk and it had the following in it to 
 >  deal with this.

 [snip]

 Yeah, that's what I had in mind.

 Joerg

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 27 Jan 2016 14:51:01 +0000
State-Changed-Why:
markd committed a fix, does it work for you?


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50639: XAW_TYPE=3d fail
Date: Sun, 31 Jan 2016 07:56:30 +0000

 On Thu, Jan 21, 2016 at 08:35:01PM +0000, Joerg Sonnenberger wrote:
  >>  I just looked at the old Xaw3d/buildlink3.mk and it had the
  >>  following in it to deal with this.
  >  
  >  [snip]
  >  
  >  Yeah, that's what I had in mind.

 Yeah, same here.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50639 (build failures because of XAW_TYPE=3d)
Date: Thu, 4 Feb 2016 20:35:40 +0100

 On Wed, Jan 27, 2016 at 02:51:01PM +0000, wiz@NetBSD.org wrote:
 > State-Changed-Why:
 > markd committed a fix, does it work for you?

 I haven't found time to test yet.  And my chroot is stuck in the setup for
 pkg/50640, pkg/50682 which prevents me from updating my packages.

 But if markd says it's fixed, I believe him.  The change looks right.

 --chris

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 23 Jun 2016 18:08:32 +0000
State-Changed-Why:
Feedback received; we believe this to be fixed, please write in if contrary
information appears.


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