Subject: pkg/37190: Package sysutils/tree is badly broken
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <krille@users.sf.net>
List: pkgsrc-bugs
Date: 10/24/2007 07:55:00
>Number:         37190
>Category:       pkg
>Synopsis:       Package sysutils/tree is badly broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 24 07:55:00 +0000 2007
>Originator:     Christian Hattemer
>Release:        -current
>Organization:
>Environment:
NetBSD seafood 4.99.9 NetBSD 4.99.9 (SEAFOOD) #5: Thu May 10 21:57:50 CEST 2007
>Description:
The package sysutils/tree is badly broken.

It installs the files outside of /usr/pkg. The binary goes to /usr/bin/tree, the man-page goes to /usr/man/man1/tree.1. This is all hardcoded in the Makefile which comes with the distfile.

That Makefile also overrides CFLAGS an has some "Uncomment for $OS:" mechanism to select different flags.

Additionaly the PLIST is empty. This means that a binary package will also be empty.
>How-To-Repeat:
cd /usr/pkgsrc/sysutils/tree
make package
See that it installs in the wrong places and creates an empty package.
>Fix:
Package it correctly.