Subject: pkg/19066: pkgsrc/sysutils/sh-utils lacks uname
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 11/15/2002 14:14:58
>Number:         19066
>Category:       pkg
>Synopsis:       pkgsrc/sysutils/sh-utils lacks uname
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 15 14:15:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
pkgsrc/sysutils/sh-utils lacks uname(1).
It is purposely built without it.

I first patched it to build and install for Linux, but then I see
GNU uname builds fine and works under NetBSD.
>How-To-Repeat:
Remove the "CONFIGURE_ENV+=         ac_cv_func_uname=no" line

Build it and run it, for example:

rainier:/usr/pkgsrc/sysutils/sh-utils$ ./work/sh-utils-2.0/src/uname -a
NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002     reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386 unknown
>Fix:
1) Remove the "CONFIGURE_ENV+=         ac_cv_func_uname=no" line.
2) remove the patches/patch-ab file
3) make makepatchsum
4) add lines to PLIST:
bin/${GNU_PROGRAM_PREFIX}uname
man/man1/${GNU_PROGRAM_PREFIX}uname.1
5) ignore the ${GNU_PROGRAM_PREFIX} above -- that is a hint :)

Thanks!
>Release-Note:
>Audit-Trail:
>Unformatted: