Subject: pkg/28914: getopt builtin.mk needs to be fixed?
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <reed@reedmedia.net>
List: pkgsrc-bugs
Date: 01/09/2005 03:12:01
>Number:         28914
>Category:       pkg
>Synopsis:       getopt is not installed but still wants to buildlink
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 09 03:12:00 +0000 2005
>Originator:     reed@reedmedia.net
>Release:        NetBSD 1.6.2_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.2_STABLE NetBSD 1.6.2_STABLE (MYKERNEL) #1: Tue Jun 1 12:16:43 PDT 2004 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:

I think the devel/getopt/builtin.mk needs to be fixed.

It says the getopt package is needed when it is already
part of native operating system (so it is skipped). And later buildlinking
fails.

See my old message:
 http://mail-index.netbsd.org/tech-pkg/2004/05/21/0006.html 

Notice two examples below, one from today under Linux and the other
a while ago under NetBSD.

===> Required package libgetopt>=1.3: NOT found
===> Verifying package for ../../devel/libgetopt
===> libgetopt-1.3 is part of your Linux distribution
===> Returning to build of ffmpeg-0.4.8nb3
===> Required installed package libtool-base>=1.5.10nb1: libtool-base-1.5.10nb4 found
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Required installed package gcc3-c>=3.3.4: gcc3-c-3.3.4 found
===> Patching for ffmpeg-0.4.8nb3
===> Applying pkgsrc patches for ffmpeg-0.4.8nb3
===> Overriding tools for ffmpeg-0.4.8nb3
===> Creating toolchain wrappers for ffmpeg-0.4.8nb3
getopt is not installed; can't buildlink files.
*** Error code 1

-=-=-=

work.rainier -> /usr/pkg/tmp/pkgsrc/multimedia/ffmpeg/work.rainier
===> Extracting for ffmpeg-0.4.8
===> Required package libgetopt>=1.3: NOT found
===> Verifying reinstall for ../../devel/libgetopt
===> libgetopt-1.3 is part of your NetBSD distribution
===> Returning to build of ffmpeg-0.4.8
===> Required installed package libtool-base>=1.5.2nb4: libtool-base-1.5.2nb4 found
===> Required installed package gmake>=3.78: gmake-3.80nb1 found
===> Patching for ffmpeg-0.4.8
===> Applying pkgsrc patches for ffmpeg-0.4.8
===> Overriding tools for ffmpeg-0.4.8
===> Buildlinking for ffmpeg-0.4.8
getopt is not installed; can't buildlink files.
*** Error code 1

>How-To-Repeat:
	
>Fix:
	

>Unformatted: