Subject: pkg/5464: ncurses with building and installation
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 05/18/1998 19:07:51
>Number:         5464
>Category:       pkg
>Synopsis:       ncurses with <bsd.lib.mk> building and installation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 18 16:20:01 1998
>Last-Modified:
>Originator:     Johnny C. Lam
>Organization:
>Release:        1.3E
>Environment:
System: NetBSD kasparov 1.3E NetBSD 1.3E (KASPAROV) #0: Tue May 12 15:39:07 EDT 1998 toor@kasparov:/usr/src/sys/arch/alpha/compile/KASPAROV alpha

>Description:
	The ncurses package, as well as other library packages in the
	NetBSD pkg system, doesn't build shared libraries with the
	correct options to be useful on ELF platforms such as the
	Alpha.

>How-To-Repeat:
	cd /usr/pkgsrc/devel/ncurses;
	make && make install
	ldd /usr/pkg/bin/tic

	Despite creating "shared libraries", the compiler can't find
	them when linking executables and links them statically instead.

>Fix:
	I've modified the ncurses build process to use the <bsd.lib.mk>
	build and install mechanisms.  I've also simplified some of the
	patches to the ncurses Makefiles.  The difference from the
	current ncurses Makefile skeleton is quite small, but it
	seemed easier to provide a new package.

	http://www.stat.cmu.edu/~lamj/ncurses.tar.gz

	It can be unpacked with:

	cd /usr/pkgsrc/devel
	tar zxvf ncurses.tar.gz

	It properly builds ELF shared libraries on my Alpha, but I
	have an a.out system to test this on.
>Audit-Trail:
>Unformatted: