NetBSD Problem Report #53914

From www@NetBSD.org  Sun Jan 27 20:37:55 2019
Return-Path: <www@NetBSD.org>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 03A3F7A177
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 27 Jan 2019 20:37:55 +0000 (UTC)
Message-Id: <20190127203753.CC8E57A1AC@mollari.NetBSD.org>
Date: Sun, 27 Jan 2019 20:37:53 +0000 (UTC)
From: rnestor@tx.rr.com
Reply-To: rnestor@tx.rr.com
To: gnats-bugs@NetBSD.org
Subject: pkg_comp-2.1 (and pkg_comp-2.0) fail to build some packages
X-Send-Pr-Version: www-1.0

>Number:         53914
>Category:       pkg
>Synopsis:       pkg_comp-2.1 (and pkg_comp-2.0) fail to build some packages
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 27 20:40:00 +0000 2019
>Originator:     Bob Nestor
>Release:        NetBSD 8.0_STABLE (GENERIC) #0: Fri Jan 11 15:56:48 UTC 2019
>Organization:
>Environment:
NetBSD bandit 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Fri Jan 11 15:56:48 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
pkg_comp doesn't build any package that use the X libraries
>How-To-Repeat:
pkg_comp auto geany
>Fix:
The following patch to sandboxctl seems to resolve the problem.

--- modules/netbsd_native.subr.orig	2019-01-27 20:18:36.623269326 +0000
+++ modules/netbsd_native.subr
@@ -37,6 +37,7 @@ shtk_import sandbox
 _netbsd_native_bindfs_mounts() {
     echo bin lib libdata libexec sbin
     echo usr/bin usr/include usr/lib usr/libdata usr/libexec usr/sbin usr/share
+    [ ! -d /usr/X11R7 ] || echo usr/X11R7

     # The distribution images for NetBSD/evbarm-earmv7hf 7.1 have /boot
     # directory containing the kernel (which is a separate partition) instead of

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.