NetBSD Problem Report #28480
From jukka@mx1.salmi.ch Tue Nov 30 17:50:10 2004
Return-Path: <jukka@mx1.salmi.ch>
Received: from mx1.salmi.ch (mx1.salmi.ch [212.254.26.68])
by narn.netbsd.org (Postfix) with ESMTP id 5CAEF251F14
for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Nov 2004 17:50:10 +0000 (UTC)
Message-Id: <20041130175009.77D3E3484D@mx1.salmi.ch>
Date: Tue, 30 Nov 2004 18:50:09 +0100 (CET)
From: j+nbsd@2004.salmi.ch
Reply-To: j+nbsd@2004.salmi.ch
To: gnats-bugs@netbsd.org
Subject: buildlink errors when using distcc
X-Send-Pr-Version: 3.95
>Number: 28480
>Category: pkg
>Synopsis: buildlink errors when using distcc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 30 17:51:00 +0000 2004
>Closed-Date: Wed Dec 15 14:21:05 +0000 2004
>Last-Modified: Wed Dec 15 14:21:05 +0000 2004
>Originator: j+nbsd@2004.salmi.ch
>Release: NetBSD 2.0
>Organization:
>Environment:
System: NetBSD grouper.salmi.ch 2.0 NetBSD 2.0 (GROUPER) #0: Mon Nov 29 22:16:38 UTC 2004 root@himo.salmi.ch:/build/nbsd/sys/arch/i386/compile/GROUPER i386
Architecture: i386
Machine: i386
>Description:
Using PKGSRC_COMPILER='distcc gcc' makes building some packages fail.
>How-To-Repeat:
Set PKGSRC_COMPILER='distcc gcc' in /etc/mk.conf, and try to build e.g.
www/apache or mail/mutt-devel:
$ cd pkgsrc/www/apache && make
[...]
===> wrapper-message [apache-1.3.33nb1] ===> Creating toolchain wrappers for apache-1.3.33nb1
--- buildlink-db1-db185-h ---
cannot create /build/pkg/www/apache/work/.buildlink/include/db_185.h: directory nonexistent
*** [buildlink-db1-db185-h] Error code 2
1 error
make: stopped in /usr/pkgsrc/www/apache
*** Error code 2
[...]
$ cd ../../mail/mutt-devel && make
[...]
===> wrapper-message [mutt-1.5.6nb1] ===> Creating toolchain wrappers for mutt-1.5.6nb1
--- buildlink-ncurses-extra-includes ---
touch: /build/pkg/mail/mutt-devel/work/.buildlink/include/term.h: No such file or directory
*** [buildlink-ncurses-extra-includes] Error code 1
1 error
make: stopped in /usr/pkgsrc/mail/mutt-devel
*** Error code 2
[...]
When running make again without running the clean first target this error
does not occur. Somehow the missing directories are created in the meantime.
>Fix:
Don't know, maybe mkdir -p before creating the files?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jlam@netbsd.org
State-Changed-When: Sat, 11 Dec 2004 00:33:08 +0000
State-Changed-Why:
I've updated the builtin.mk files in pkgsrc to create directories before
putting files into them. Please let me know if this fixes the problem
you're seeing.
Thanks,
-- Johnny Lam <jlam@NetBSD.org>
From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28480 CVS commit: pkgsrc
Date: Sat, 11 Dec 2004 00:32:16 +0000 (UTC)
Module Name: pkgsrc
Committed By: jlam
Date: Sat Dec 11 00:32:16 UTC 2004
Modified Files:
pkgsrc/devel/gettext-lib: builtin.mk
pkgsrc/devel/ncurses: builtin.mk
pkgsrc/mk: db1.builtin.mk
pkgsrc/security/libdes: builtin.mk
Log Message:
Create directories before putting files in them. This should fix
PR pkg/28480.
To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 pkgsrc/devel/gettext-lib/builtin.mk
cvs rdiff -r1.6 -r1.7 pkgsrc/devel/ncurses/builtin.mk
cvs rdiff -r1.8 -r1.9 pkgsrc/mk/db1.builtin.mk
cvs rdiff -r1.2 -r1.3 pkgsrc/security/libdes/builtin.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
To: pkgsrc-bugs@netbsd.org
Cc: jlam@netbsd.org
Subject: Re: pkg/28480
Date: Sun, 12 Dec 2004 14:40:32 +0100
jlam@netbsd.org --> pkgsrc-bugs (2004-12-11 00:33:09 +0000):
> Synopsis: buildlink errors when using distcc
>
> State-Changed-From-To: open->feedback
> State-Changed-By: jlam@netbsd.org
> State-Changed-When: Sat, 11 Dec 2004 00:33:08 +0000
> State-Changed-Why:
> I've updated the builtin.mk files in pkgsrc to create directories before
> putting files into them. Please let me know if this fixes the problem
> you're seeing.
Yes, the changes fix the problem. Thank you!
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
State-Changed-From-To: feedback->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Wed, 15 Dec 2004 14:21:05 +0000
State-Changed-Why:
PR author confirms that the problem has been fixed. Thanks for the PR!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.