Subject: pkg/19452: attempts to hardlink soundcard.h
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/18/2002 23:11:08
>Number:         19452
>Category:       pkg
>Synopsis: attempts to hardlink soundcard.h
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 18 23:12:00 PST 2002
>Originator:     Arto Huusko
>Release:        NetBSD 1.6K
NetBSD/i386 1.6K
>Description: attempts to create a link to sys/soundcard.h in the buildlink's include/machine directory. The problem is that it tries to create a hardlink, which fails badly if /usr/include/sys and pkgsrc are not on the same device (i.e. pkgsrc is on NFS).
Put pkgsrc on different device than /usr/include (mount it from NFS for example) and try to build something that makes use of on a machine that has sys/soundcard.h (for example xmms on i386). Observe buildlinking phase fail with "ln .... cross-device link ..."
Change the line
		${LN} $${sys_soundcard_h} $${mach_soundcard_h};		\
		${LN} -s $${sys_soundcard_h} $${mach_soundcard_h};	\
in pkgsrc/mk/