Subject: pkg/22178: Fix for pkgsrc/devel/ncurses install
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 07/18/2003 12:28:46
>Number:         22178
>Category:       pkg
>Synopsis:       Fix for pkgsrc/devel/ncurses install
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 18 12:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
Attempting to install devel/ncurses on SunOS (at least) fails in the
post-install phase:

[...]
installing etip.h in /home/jonp/pkg-5.8/include
/usr/ucb/install -c -o jonp -g inet -m 444 /home/jonp/pkgsrc/devel/ncurses/work/ncurses-5.3/c++/demo.cc /home/jonp/pkg-5.8/share/examples/ncurses++demo.cc
install: /home/jonp/pkg-5.8/share/examples/ncurses++demo.cc: No such file or directory
*** Error code 1
>How-To-Repeat:

>Fix:
Simple fix (also available in case of tab/space spammage at
http://www.perkin.org.uk/projects/netbsd/ncurses.patch)

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ncurses/Makefile,v
retrieving revision 1.49
diff -u -u -r1.49 Makefile
--- Makefile    2003/07/17 21:31:56     1.49
+++ Makefile    2003/07/18 11:05:39
@@ -63,6 +63,7 @@
 .endif

 post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples
        ${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \
                ${PREFIX}/share/examples/ncurses++demo.cc


resulting in:
===> [Automatic ELF shared object handling]
===> Registering installation for ncurses-5.3nb1

Real: 15:30 CPU: 82%(322.0/442.0) Page: 0 Swap: 0 I/O: (0/0) Mem: 0
>Release-Note:
>Audit-Trail:
>Unformatted: