Subject: pkg/13957: 'make install' fails in www/arena
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 09/16/2001 06:34:03
>Number:         13957
>Category:       pkg
>Synopsis:       'make install' fails in www/arena
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 15 14:35:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        the latest pkgsrc tree
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.5X NetBSD 1.5X (BONNIE) #103: Sat Sep 15 00:08:58 JST 2001 root@bonnie.jaist.ac.jp:/c/src/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
'make install' fails in www/arena.

# make install
...
===> Installing for arena-0.3.62
install -c -s -o root -g wheel -m 555 /c/pkgsrc/www/arena/work/Arena-0.3.62/Arena/netbsd/arena /usr/pkg/bin/
install: /c/pkgsrc/www/arena/work/Arena-0.3.62/Arena/netbsd/arena: No such file or directory
*** Error code 1

I, however, actually have /c/pkgsrc/www/arena/work/Arena-0.3.62/Arena/netbsdelf/arena.

I think that the bad point is hard-coding directory name, netbsd, in Makefile as follows:
...
do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/Arena/netbsd/arena ${PREFIX}/bin/
...                                        ~~~~~~

It should be changed according to MACHINE_GNU_PLATFORM.

>How-To-Repeat:
	
Do 'make install' in www/arena.
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: