Subject: Re: pkg/32174: [Solaris] security/openssl does not care of Solaris(x86)
To: None <jlam@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
List: pkgsrc-bugs
Date: 04/04/2006 10:40:02
The following reply was made to PR pkg/32174; it has been noted by GNATS.

From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32174: [Solaris] security/openssl does not care of Solaris(x86)
Date: Tue, 04 Apr 2006 19:37:09 +0900

 security/openssl/Makefile of revision 1.114 and later has a hint.
 
 I made an additional patch for Solaris x86_64. Please check and commit it
 if no problem. Thanks.
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/security/openssl/Makefile,v
 retrieving revision 1.115
 diff -u -r1.115 Makefile
 --- Makefile	14 Mar 2006 16:00:42 -0000	1.115
 +++ Makefile	4 Apr 2006 10:30:31 -0000
 @@ -57,14 +57,19 @@
  .  elif ${MACHINE_ARCH} == "x86_64"
  OPENSSL_MACHINE_ARCH=	${MACHINE_ARCH}
  .  endif
 +.  if !empty(OPENSSL_MACHINE_ARCH:M*64)
 +SUNABI=	64
 +.  else
 +SUNABI=
 +.  endif
  # only override the configure target if we know the platform, falling
  # back to ./config's autodetection if not.
  .  if defined(OPENSSL_MACHINE_ARCH) && !empty(OPENSSL_MACHINE_ARCH)
  CONFIGURE_SCRIPT=	./Configure
  .    if !empty(CC_VERSION:Mgcc*)
 -CONFIGURE_ARGS+=	solaris-${OPENSSL_MACHINE_ARCH}-gcc
 +CONFIGURE_ARGS+=	solaris${SUNABI}-${OPENSSL_MACHINE_ARCH}-gcc
  .    else
 -CONFIGURE_ARGS+=	solaris-${OPENSSL_MACHINE_ARCH}-cc
 +CONFIGURE_ARGS+=	solaris${SUNABI}-${OPENSSL_MACHINE_ARCH}-cc
  .    endif
  .  endif
  .elif ${OPSYS} == "IRIX"
 
 -- 
 NAKAJI Hiroyuki