Subject: pkg/19452: ossaudio.buildlink2.mk attempts to hardlink soundcard.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <arto.huusko@utu.fi>
List: netbsd-bugs
Date: 12/18/2002 23:11:08
>Number: 19452
>Category: pkg
>Synopsis: ossaudio.buildlink2.mk 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
>Closed-Date:
>Last-Modified:
>Originator: Arto Huusko
>Release: NetBSD 1.6K
>Organization:
>Environment:
NetBSD/i386 1.6K
>Description:
ossaudio.buildlink2.mk 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).
>How-To-Repeat:
Put pkgsrc on different device than /usr/include (mount it from NFS for example) and try to build something that makes use of ossaudio.buildlink2.mk on a machine that has sys/soundcard.h (for example xmms on i386). Observe buildlinking phase fail with "ln .... cross-device link ..."
>Fix:
Change the line
${LN} $${sys_soundcard_h} $${mach_soundcard_h}; \
to
${LN} -s $${sys_soundcard_h} $${mach_soundcard_h}; \
in pkgsrc/mk/ossaudio.buildlink2.mk.
>Release-Note:
>Audit-Trail:
>Unformatted: