NetBSD Problem Report #52413

From john@hlin.zia.io  Mon Jul 17 07:41:01 2017
Return-Path: <john@hlin.zia.io>
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" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5EB577A17C
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Jul 2017 07:41:01 +0000 (UTC)
Message-Id: <201707170740.v6H7eoPL010645@hlin.zia.io>
Date: Mon, 17 Jul 2017 07:40:50 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: pbulk as documented is broken
X-Send-Pr-Version: 3.95

>Number:         52413
>Category:       pkg
>Synopsis:       pbulk as documented is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 17 07:45:00 +0000 2017
>Last-Modified:  Mon Jul 17 21:55:00 +0000 2017
>Originator:     John Klos
>Release:        NetBSD 8.0_BETA
>Organization:

>Environment:


System: NetBSD hlin.zia.io 8.0_BETA NetBSD 8.0_BETA (HLIN) #0: Fri Jun 23 08:42:42 UTC 2017 john@hlin.zia.io:/usr/obj-evbarm/sys/arch/evbarm/compile/HLIN evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:

Attempted to follow directions here:
https://wiki.netbsd.org/tutorials/pkgsrc/pbulk/

After scannng 15286 packages, building cwrappers failed. From configure.log:
configure.log 
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb 
fetch-pkg-vulnerabilities'.
mkdir: /usr/pkgsrc/pkgtools/cwrappers/work: Permission denied
*** Error code 1

pbulk output:
.................................... 15286/15286
Resolving...
Building...
Initialisation complete.
[1400/18931] Starting build of  cwrappers-20170611
[1400/18931] Failed to build    cwrappers-20170611
Building pkg_summary...
cd: can't cd to /mnt/packages/All

>How-To-Repeat:

Attempt to follow the directions from the NetBSD wiki.
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Mon, 17 Jul 2017 08:30:31 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: joerg->pkg-manager
Responsible-Changed-By: joerg@NetBSD.org
Responsible-Changed-When: Mon, 17 Jul 2017 19:29:11 +0000
Responsible-Changed-Why:
Assign back. I have nothing to do with the wiki page and the setup described
doesn't reflect any of the very basic configuration recommendations. It doesn't
even include WRKOBJDIR and therefore requires a tree writable by the (unprivileged)
build account.


From: John Klos <john@ziaspace.com>
To: gnats-bugs@NetBSD.org
Cc: joerg@NetBSD.org
Subject: Re: pkg/52413 (pbulk as documented is broken)
Date: Mon, 17 Jul 2017 20:57:03 +0000 (UTC)

 > Assign back. I have nothing to do with the wiki page and the setup described
 > doesn't reflect any of the very basic configuration recommendations. It doesn't
 > even include WRKOBJDIR and therefore requires a tree writable by the (unprivileged)
 > build account.

 While I agree that you're not responsible for documentation on the wiki, 
 is it reasonable that the default behavior of pbulk is to create an 
 unprivileged user, then try to compile with that user with the default 
 build location inside of the pkgsrc tree?

 Perhaps the build location's default in the context of pbulk should be 
 /usr/pbulk/tmp/. I think people should be able to chroot to a clean 
 location with a clean pkgsrc, then run:

 sh /usr/pkgsrc/mk/pbulk/pbulk.sh
 /usr/pbulk/bin/bulkbuild

 without having to create an intermediate mk.conf or edit 
 /usr/pbulk/etc/mk.conf. Otherwise, what's the point of having a whole 
 build system with tools and configuration inside of /usr/pbulk?

 Back to this problem specifically, aside from adding WRKDIR to 
 /usr/pbulk/etc/mk.conf, what else nees to be changed to make this work out 
 of the box?

 Thanks,
 John

From: Joerg Sonnenberger <joerg@bec.de>
To: John Klos <john@ziaspace.com>
Cc: gnats-bugs@NetBSD.org, joerg@NetBSD.org
Subject: Re: pkg/52413 (pbulk as documented is broken)
Date: Mon, 17 Jul 2017 23:53:40 +0200

 On Mon, Jul 17, 2017 at 08:57:03PM +0000, John Klos wrote:
 > > Assign back. I have nothing to do with the wiki page and the setup described
 > > doesn't reflect any of the very basic configuration recommendations. It doesn't
 > > even include WRKOBJDIR and therefore requires a tree writable by the (unprivileged)
 > > build account.
 > 
 > While I agree that you're not responsible for documentation on the wiki, is
 > it reasonable that the default behavior of pbulk is to create an
 > unprivileged user, then try to compile with that user with the default build
 > location inside of the pkgsrc tree?

 pbulk itself doesn't even create a user.

 > Perhaps the build location's default in the context of pbulk should be
 > /usr/pbulk/tmp/. I think people should be able to chroot to a clean location
 > with a clean pkgsrc, then run:
 > 
 > sh /usr/pkgsrc/mk/pbulk/pbulk.sh
 > /usr/pbulk/bin/bulkbuild

 I am not responsible for pbulk.sh either.

 > without having to create an intermediate mk.conf or edit
 > /usr/pbulk/etc/mk.conf. Otherwise, what's the point of having a whole build
 > system with tools and configuration inside of /usr/pbulk?

 To have a consistent way to build the bulk build software itself and
 dependencies, without interacting with the to-be-build packages?

 > 
 > Back to this problem specifically, aside from adding WRKDIR to
 > /usr/pbulk/etc/mk.conf, what else nees to be changed to make this work out
 > of the box?

 Not /usr/pbulk/etc/mk.conf, /etc/mk.conf.

 Joerg

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