Subject: pkg/29428: devel/cvs fails to build on Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigsegv@rambler.ru>
List: pkgsrc-bugs
Date: 02/17/2005 17:23:01
>Number:         29428
>Category:       pkg
>Synopsis:       devel/cvs fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 17:23:00 +0000 2005
>Originator:     sigsegv
>Release:        
>Organization:
>Environment:
SunOS serv01-dmz 5.10 Generic sun4u sparc SUNW,Ultra-5_10
>Description:
On Solaris 10 building cvs fails with the following error message:

checking whether to enable ipv6... yes
checking ipv6 stack type... unknown
checking getaddrinfo bug... buggy
Fatal: You must get working getaddrinfo() function.
       or you can specify "--disable-ipv6".
===> Building for cvs-1.11.17nb2
bmake: cannot open Makefile.

bmake: stopped in /usr/obj.pkg32/devel/cvs/work/cvs-1.11.17
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/cvs
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/obj.pkg32/devel/cvs/work/.work.log
===> 
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/cvs

>How-To-Repeat:

>Fix:
Makefile under devel/cvs needs to be updated to recognise Solaris 10 OS version

*** Makefile.orig       Thu Feb 17 16:53:12 2005
--- Makefile    Thu Feb 17 16:41:09 2005
***************
*** 25,30 ****
--- 25,31 ----
  
  .if defined(USE_INET6) && !empty(USE_INET6:M[yY][eE][sS]) && \
      empty(MACHINE_PLATFORM:MSunOS-5.[89]-*) && \
+     empty(MACHINE_PLATFORM:MSunOS-5.10-*) && \
      empty(MACHINE_PLATFORM:MLinux-*)
  CONFIGURE_ARGS+=      --enable-ipv6
  PATCH_SITES=          ftp://ftp.kame.net/pub/kame/misc/