Subject: pkg/35939: build id's of multiple bulk builds overwrite each other
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hallmann@ahatec.de>
List: pkgsrc-bugs
Date: 03/07/2007 07:35:00
>Number:         35939
>Category:       pkg
>Synopsis:       build id's of multiple bulk builds overwrite each other
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 07 07:35:00 +0000 2007
>Originator:     AHA
>Release:        NetBSD 3.1_STABLE
>Organization:
Hallmann EDV Dienstleistungen
>Environment:
	
	
System: NetBSD kukalda 3.1_STABLE NetBSD 3.1_STABLE (GENERIC.MP) #7: Tue Jan 30 10:15:42 CET 2007 toor@kukalda:/export/work/build.objs/i386/3.0/export/netbsd/netbsd-3-0/src/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
The build id's are stored in a file during a bulk build.
Most other bulk build property-files are suffixed by the building hostname
but .bulk_build_id isn't.
>How-To-Repeat:
Start more than one bulk build on different machines on the 
same nfs-exported pkgsrc-tree.
	 
>Fix:

Apply the following patch

Index: bsd.bulk-pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bulk/bsd.bulk-pkg.mk,v
retrieving revision 1.130
diff -r1.130 bsd.bulk-pkg.mk
159c159
< BULK_BUILD_ID_FILE?=	${BULKFILESDIR}/.bulk_build_id
---
> BULK_BUILD_ID_FILE?=	${BULKFILESDIR}/.bulk_build_id${BULK_ID}