NetBSD Problem Report #47697

From he@smistad.uninett.no  Wed Mar 27 08:13:14 2013
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 7F2BC63EFA0
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Mar 2013 08:13:14 +0000 (UTC)
Message-Id: <20130327081309.EF72F3D0B5@smistad.uninett.no>
Date: Wed, 27 Mar 2013 09:13:09 +0100 (CET)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: pulseaudio fails to install on NetBSD/i386 5.2
X-Send-Pr-Version: 3.95

>Number:         47697
>Category:       pkg
>Synopsis:       pulseaudio fails to install on NetBSD/i386 5.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 27 08:15:00 +0000 2013
>Last-Modified:  Tue Jun 24 04:10:00 +0000 2014
>Originator:     Havard Eidnes
>Release:        NetBSD 5.2
>Organization:
	None
>Environment:
System: NetBSD smistad.uninett.no 5.2 NetBSD 5.2 (MAANEN) #1: Mon Mar 25 10:44:31 CET 2013 he@smistad.uninett.no:/usr/obj/sys/arch/i386/compile/MAANEN i386
Architecture: i386
Machine: i386
>Description:
	pulseaudio fails to install on NetBSD 5.2.

	It looks like a PLIST problem, in that the PLIST claims that
	some X11-related binaries should be installed, while they are
	in fact not.

	The reason appears to be that the configure stage of
	pulseaudio fails to get its requirements for the X11
	environment satisfied:

checking for X11... no

	Inspecting the config.log file reveals what is stopping it
	from accepting its environment as suitable for X11 feature
	inclusion:

configure:22863: checking for X11
configure:22870: $PKG_CONFIG --exists --print-errors " x11-xcb xcb >= 1.6 ice sm xtst "
Package x11-xcb was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11-xcb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11-xcb' found
configure:22873: $? = 1

	So, where is the x11-xcb pkg-config definition supposed to
	come from?  The xcb packages installed on my system are

libxcb-1.9          X protocol C-language Binding
xcb-util-0.3.9nb1   XCB Utilities
xcb-proto-1.8       XCB protocol descriptions (in XML)

	and x11-xcb is nowhere to be found in
	/usr/X11R7/lib/pkgconfig/ either.

	However, I find that I do have
	/usr/xsrc/external/mit/libX11/dist/x11-xcb.pc.in
	but apparently it's not being installed; I've not looked into
	why that is.

	All the other pkg-config requirements seems to be met on my
	system.

>How-To-Repeat:
	Try to install pulseaudio from pkgsrc 2012Q4 on NetBSD/5.2
	i386; watch it fail.

>Fix:
	I'm retrying with x11 removed from the options for pulseaudio:
	with this /etc/mk.conf setting:

PKG_OPTIONS.pulseaudio=avahi

	That doesn't appear to have the desired effect, though; pkgsrc
	still insists that several X11-related files should be
	installed.

	However, pulseaudio and the pkgsrc framework really should
	agree on whether the x11 feature should be enabled or not.

>Audit-Trail:
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47697: pulseaudio fails to install on NetBSD/i386 5.2
Date: Sun, 22 Jun 2014 19:23:18 -0400

 The reason the "x11" option won't work is because the native version
 of X11 on NetBSD 5.2 is "too old". (I put that in quotations because
 as the original submitter noted, in the source tree, there's a file
 that's intended to create a x11-xcb.pc file, but it's not installed
 by a build, for whatever reason. Perhaps the associated functionality
 isn't built by NetBSD in the -5 release series.) Using a newer
 version of libX11 from pkgsrc addresses the problem of the missing
 pkg-config file:

 $ pkg_admin dump | grep x11-xcb.pc
 file: /usr/pkg/lib/pkgconfig/x11-xcb.pc pkg: libX11-1.6.2nb1

 The "x11" option defaults to being enabled for this package, which
 is entirely reasonable, except on NetBSD 5.x that's not using
 "modular" X.org. Perhaps a test could be added that disables "x11"
 if building on NetBSD 5.x and "modular" isn't defined.

 As for setting PKG_OPTIONS.pulseaudio=avahi to disable "x11", that
 doesn't work; the package still insists on enabling "x11", I just
 tested that. I encountered the same situation with audio/libcanberra,
 where setting PKG_OPTIONS.libcanberra=gtk doesn't stop it from
 pulling in gtk3 as well. (In that case, I ended up editing the
 options.mk file to remove "gtk3" from PKG_SUGGESTED_OPTIONS. The same
 approach works for pulseaudio, though obviously it's not optimal...
 There may be a better way I'm not familiar with.)

 Dave

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/47697: pulseaudio fails to install on NetBSD/i386 5.2
Date: Mon, 23 Jun 2014 09:26:23 +0200

 On Sun, Jun 22, 2014 at 11:25:00PM +0000, David H. Gutteridge wrote:
 >  As for setting PKG_OPTIONS.pulseaudio=avahi to disable "x11", that
 >  doesn't work; the package still insists on enabling "x11", I just
 >  tested that.

 Perhaps that's a misunderstanding how to modify options.
 If you DO NOT want an option, you must write
 PKG_OPTIONS.pulseaudio=-x11

 > I encountered the same situation with audio/libcanberra,
 >  where setting PKG_OPTIONS.libcanberra=gtk doesn't stop it from
 >  pulling in gtk3 as well.

 Same here, since the gtk and gtk3 options are not conflicting.
  Thomas

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47697: pulseaudio fails to install on NetBSD/i386 5.2
Date: Mon, 23 Jun 2014 20:09:37 -0400

 On Mon, 23 Jun 2014, at 09:26:23 +0200, Thomas Klausner wrote:
 >On Sun, Jun 22, 2014 at 11:25:00PM +0000, David H. Gutteridge wrote:
 >> As for setting PKG_OPTIONS.pulseaudio=avahi to disable "x11", that
 >> doesn't work; the package still insists on enabling "x11", I just
 >> tested that.
 > 
 >Perhaps that's a misunderstanding how to modify options.
 >If you DO NOT want an option, you must write
 >PKG_OPTIONS.pulseaudio=-x11

 It is indeed. I see section 5.6 of the pkgsrc guide spells this out
 clearly. I should RTM first... I assume the original submitter had
 the same idea as me: that setting the variable would "clobber" any
 other potential settings, but the pkgsrc framework is more nuanced
 (I can see why it would be).

 >> I encountered the same situation with audio/libcanberra,
 >> where setting PKG_OPTIONS.libcanberra=gtk doesn't stop it from
 >> pulling in gtk3 as well.
 >
 >Same here, since the gtk and gtk3 options are not conflicting.

 That makes sense. Thanks for your help!

 Dave

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47697: pulseaudio fails to install on NetBSD/i386 5.2
Date: Tue, 24 Jun 2014 04:05:42 +0000

 On Sun, Jun 22, 2014 at 11:25:00PM +0000, David H. Gutteridge wrote:
  >  The reason the "x11" option won't work is because the native version
  >  of X11 on NetBSD 5.2 is "too old". (I put that in quotations because
  >  as the original submitter noted, in the source tree, there's a file
  >  that's intended to create a x11-xcb.pc file, but it's not installed
  >  by a build, for whatever reason. Perhaps the associated functionality
  >  isn't built by NetBSD in the -5 release series.) 

 There is no xcb in -5's native X11. Adding it is a fairly major
 undertaking.

 It is possible that we could persuade releng to take it for 5.3, or
 possibly even another massupdate of X like the 5.0 -> 5.1 one, but
 someone has to actually do the work. (There's no way I will ever get
 to it.)

 Given the stability and longevity of -5 it would be nice to do this,
 but at the moment I don't think the chances are too good. :(

  >  Using a newer
  >  version of libX11 from pkgsrc addresses the problem of the missing
  >  pkg-config file:

 ...however, IMO at least, if you're going to be building libX11 from
 pkgsrc you might as well just switch fully to pkgsrc X.

 -- 
 David A. Holland
 dholland@netbsd.org

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.