Subject: pkg/19855: unproven-pthreads incomplete installation
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/15/2003 14:25:59
>Number:         19855
>Category:       pkg
>Synopsis:       unproven-pthreads: machdep.h installed as broken symlink
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 15 04:27:01 PST 2003
>Originator:     Mishka
>Release:        NetBSD 1.6L
Terabyte ACS
System: NetBSD 1.6L NetBSD 1.6L (BATRAQ) #0: Fri Jan 10 20:13:10 EET 2003 i386
Architecture: i386
Machine: i386


	When I build some package using unproven-pthreads-0.17nb3, the
	compiler will fails with message "can't find pthread/machdep.h"
	The ls -l shows the following:

	batraq# ls -l /usr/pkg/pthreads/include/pthread/machdep.h
	lrwxr-xr-x  1 root  wheel  50 Jan 15 14:09 /usr/pkg/pthreads/include/pthread/machdep.h -> ../.././config/../machdep/engine-i386-netbsd-1.3.h

	But 1) all engine-* files isn't installed, and
	2) symlink is wrong in any case.


	Do any build for unproven-pthreads-0.17nb3 depended package
	(I found that on opensp-1.4)


	Of course, there is lot of ways to solve this.
	For my one-time build I have used following patch (after
	doing "make patch"):

	--- config/configure.orig	Mon Jul 10 22:03:06 2000
	+++ config/configure	Wed Jan 15 14:17:46 2003
	previous patches
	@@ -2052,8 +2072,7 @@
	   # Make a symlink if possible; otherwise try a hard link.
	-  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
	-    ln $srcdir/$ac_source $ac_dest; then :
	+  if ln $srcdir/$ac_source $ac_dest; then :
	     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source"
	1>&2; exit 1; }

	It use hard links by default and it seems ok, so as any files
	on which points machdep.h isn't installed anyway.

	Best wishes,