NetBSD Problem Report #43398

From www@NetBSD.org  Tue Jun  1 09:22:04 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7E86663B8E3
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Jun 2010 09:22:04 +0000 (UTC)
Message-Id: <20100601092204.0DB3F63B8CF@www.NetBSD.org>
Date: Tue,  1 Jun 2010 09:22:04 +0000 (UTC)
From: obata@lins.jp
Reply-To: obata@lins.jp
To: gnats-bugs@NetBSD.org
Subject: Failed create wrapper due to missing hard link support on Haiku OS
X-Send-Pr-Version: www-1.0

>Number:         43398
>Category:       pkg
>Synopsis:       Failed create wrapper due to missing hard link support on Haiku OS
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 01 09:25:00 +0000 2010
>Last-Modified:  Mon Aug 16 10:05:01 +0000 2010
>Originator:     OBATA Akio
>Release:        
>Organization:
>Environment:
Haiku OS
>Description:
On Haiku OS, failed to create wrapper script due to missing hard link support: http://dev.haiku-os.org/ticket/1879

In pkgsrc/mk/wrapper/bsd.wrapper.mk line 503:
  ${LN} -f $$wrapper ${.TARGET}

It' the only one using hard link in pkgsrc framework.
>How-To-Repeat:
Use pkgsrc on Haiku (or other OS or filesystem not support hard link).

>Fix:
Even if I changed "${LN} -f" to "${LN} -sf", it works for me.
I'm not sure that hard link is really required on certain environment.

>Audit-Trail:
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43398 CVS commit: pkgsrc/mk
Date: Mon, 16 Aug 2010 10:03:45 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Mon Aug 16 10:03:44 UTC 2010

 Modified Files:
 	pkgsrc/mk/platform: Haiku.mk
 	pkgsrc/mk/wrapper: bsd.wrapper.mk

 Log Message:
 Force to use symbolic link for wrapper if WRAPPER_USE_SYMLINK is defined.
 Workaround for missing hard link support on Haiku, PR#43398.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/platform/Haiku.mk
 cvs rdiff -u -r1.84 -r1.85 pkgsrc/mk/wrapper/bsd.wrapper.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.