NetBSD Problem Report #54894

From www@netbsd.org  Sat Jan 25 08:21:42 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9916B8B4F0
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Jan 2020 08:21:42 +0000 (UTC)
Message-Id: <20200125082141.BEC2B8BAF8@mollari.NetBSD.org>
Date: Sat, 25 Jan 2020 08:21:41 +0000 (UTC)
From: hiroshi-hakoyama@nagano.ac.jp
Reply-To: hiroshi-hakoyama@nagano.ac.jp
To: gnats-bugs@NetBSD.org
Subject: openssl-1.1.1d fails to configure on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         54894
>Category:       pkg
>Synopsis:       openssl-1.1.1d fails to configure on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rillig
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 25 08:25:00 +0000 2020
>Closed-Date:    Wed Feb 12 16:18:53 +0000 2020
>Last-Modified:  Wed Feb 12 16:20:01 +0000 2020
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc current
>Organization:
Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
openssl-1.1.1d fails to configure on Solaris 10.

make configure
....
===> Configuring for openssl-1.1.1dnb2
Operating system: sun4u-whatever-solaris2
WARNING! Falling down to 'solaris-sparcv8-gcc'.
...

---------------------------------------------

OS should be 'solaris-sparcv9-gcc'.
/usr/pkgsrc/security/openssl/work/openssl-1.1.1d/config guesses the OS. 

There is a line in the config:

GCCVER=`sh -c "gcc -dumpversion" 2>/dev/null`

However, $GCCVER is 0.

sh -c "/usr/pkgsrc/security/openssl/work/.cwrapper/bin/gcc -dumpversion"
<unset_progname>: CWRAPPERS_CONFIG_DIR is missing from environment

This probably causes the result $GCCVER=0.

$GCCVER should be 43 or 55 in my case.

If I run the config on my shell environment, I can get the right value.

sh -c "gcc -dumpversion"
5.5.0




>How-To-Repeat:
cd /usr/pkgsrc/security/openssl
make configure


>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 25 Jan 2020 22:58:48 +0000
Responsible-Changed-Why:
Solaris pkgsrc issue


State-Changed-From-To: open->feedback
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Sun, 09 Feb 2020 20:38:58 +0000
State-Changed-Why:

Please update mk/*, then run "bmake configure-env" and try
"gcc -dumpversion" again. The previous error message about
CWRAPPERS_CONFIG_DIR will not occur again in that environment.

If the situation is still unclear after the above, please run
"bmake show-all-gcc" and check whether the output of that command
looks plausible.

If the situation is still unclear after that, please run
"bmake show-all-compiler".


From: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 "rillig@netbsd.org" <rillig@NetBSD.org>
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Mon, 10 Feb 2020 19:12:18 +0900

 > Please update mk/*, then run "bmake configure-env"=20

 I didn't understand the instructions.

 I used gcc 5.5.0 from OpenCSW Solaris packages instead of a gcc built =
 from pkgsrc.=20
 Can it be solved in this case?=20


 > 2020/02/10 5:38=E3=80=81rillig@netbsd.org =
 <rillig@NetBSD.org>=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB:
 >=20
 > Synopsis: openssl-1.1.1d fails to configure on Solaris 10
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rillig@NetBSD.org
 > State-Changed-When: Sun, 09 Feb 2020 20:38:58 +0000
 > State-Changed-Why:
 >=20
 > Please update mk/*, then run "bmake configure-env" and try
 > "gcc -dumpversion" again. The previous error message about
 > CWRAPPERS_CONFIG_DIR will not occur again in that environment.
 >=20
 > If the situation is still unclear after the above, please run
 > "bmake show-all-gcc" and check whether the output of that command
 > looks plausible.
 >=20
 > If the situation is still unclear after that, please run
 > "bmake show-all-compiler".
 >=20
 >=20
 >=20

From: Roland Illig <roland.illig@gmx.de>
To: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>, gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Mon, 10 Feb 2020 19:03:22 +0100

 On 10.02.2020 11:12, Hiroshi Hakoyama wrote:
 >> Please update mk/*, then run "bmake configure-env"
 >
 > I didn't understand the instructions.

 Yesterday I added the "configure-env" command to the pkgsrc
 infrastructure, to help investigate cases like yours. Therefore you
 should update pkgsrc to the most current version ("cvs update" or "git
 pull").

 After that, you should go to the security/openssl directory and run
 "bmake configure-env" there, so that you can try out some commands in
 the same environment as the configure script. For example, running "type
 gcc" should print something like .cwrappers/bin/gcc directory, and "gcc
 -dumpversion" should print 5.5.0.

  >> If the situation is still unclear after the above, please run
  >> "bmake show-all-gcc" and check whether the output of that command
  >> looks plausible.
  >>
  >> If the situation is still unclear after that, please run
  >> "bmake show-all-compiler".

 The other commands I suggested are intended to give you more details
 about the compiler settings from pkgsrc. For example, GCCBASE should
 point to the external GCC, and GCC_VERSION should match that compiler's
 version. All this information is useful for tracking down the actual
 cause of the build failure.

From: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
To: Roland Illig <roland.illig@gmx.de>
Cc: gnats-bugs@netbsd.org,
 solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Tue, 11 Feb 2020 16:22:30 +0900

 Thank you for the detailed suggestions.

 I got the following results.
 Still the problem of configuration occurs.

 # cd /usr/pkgsrc/security/openssl
 # bmake configure-env
 bash-3.2#=20
 bash-3.2# gcc -dumpversion
 5.5.0
 bash-3.2# exit

 # bmake show-all-gcc
 gcc:
   usr   USE_NATIVE_GCC=3D         no
   usr   USE_PKGSRC_GCC=3D         no
   usr   USE_PKGSRC_GCC_RUNTIME=3D no
   usr   GCCBASE=3D                /opt/csw/gcc5
   usr   GCC_VERSION_SUFFIX      # undefined
   usr   USE_CROSS_COMPILE=3D      NO
   usr   PKGSRC_USE_FORTIFY=3D     strong
   usr   PKGSRC_USE_RELRO=3D       no
   usr   PKGSRC_USE_SSP=3D         yes
   usr   COMPILER_USE_SYMLINKS=3D  yes
   usr   CC=3D                     gcc
   pkg   GCC_REQD=3D               2.8.0
   pkg   USE_GCC_RUNTIME=3D        yes
   pkg   USE_LANGUAGES=3D          c
   sys   CC_VERSION=3D             gcc-5.5.0
   sys   CC_VERSION_STRING=3D      gcc-5.5.0
   sys   LANGUAGES.gcc=3D          c c++ fortran77 objc
   sys   CCPATH=3D                 /opt/csw/gcc5/bin/gcc
   sys   CPPPATH=3D                /opt/csw/gcc5/bin/cpp
   sys   CXXPATH=3D                /opt/csw/gcc5/bin/g++
   sys   F77PATH                 # undefined
   sys   FCPATH                  # undefined
   sys   PKG_CC=3D                 =
 /usr/pkgsrc/security/openssl/work/.gcc/bin/gcc
   sys   PKG_CPP=3D                =
 /usr/pkgsrc/security/openssl/work/.gcc/bin/cpp
   sys   PKG_CXX=3D                =
 /usr/pkgsrc/security/openssl/work/.compiler/bin/c++-fail-wrapper
   sys   PKG_FC=3D                 =
 /usr/pkgsrc/security/openssl/work/.compiler/bin/fortran-fail-wrapper
   sys   FC=3D                     f77
   sys   PKGSRC_FORTRAN=3D         g95
   sys   ADAPATH                 # undefined
   sys   GMKPATH                 # undefined
   sys   GLKPATH                 # undefined
   sys   GBDPATH                 # undefined
   sys   CHPPATH                 # undefined
   sys   GLSPATH                 # undefined
   sys   GNTPATH                 # undefined
   sys   PRPPATH                 # undefined
   use   MACHINE_ARCH=3D           sparc
   use   PATH=3D                   =
 /usr/pkgsrc/security/openssl/work/.cwrapper/bin:/usr/pkgsrc/security/opens=
 sl/work/.buildlink/bin:/usr/pkgsrc/security/openssl/work/.gcc/bin:/usr/pkg=
 src/security/openssl/work/.tools/bin:/usr/pkg/bin:/usr/ccs/bin:/usr/pkg/bi=
 n:/usr/pkg/sbin:/opt/csw/bin:/usr/local/bin:/usr/local/sbin:/usr/sunvts/bi=
 n:/usr/bin:/usr/sbin:/usr/sadm/admin/bin:/usr/sadm/bin:/bin:/sbin:/usr/ope=
 nwin/bin
   use   DRAGONFLY_CCVER         # undefined
   use   OPSYS=3D                  SunOS
   use   LOCALBASE=3D              /usr/pkg
   use   USE_LIBTOOL             # undefined
   use   LIBABISUFFIX=3D           # empty
   use   COMPILER_RPATH_FLAG=3D    -Wl,-R
   use   MACHINE_GNU_PLATFORM=3D   sparc-sun-solaris2.10
   use   WRKDIR=3D                 /usr/pkgsrc/security/openssl/work
   use   MACHINE_PLATFORM=3D       SunOS-5.10-sparc
   use   PKGPATH=3D                security/openssl
   use   _PKGSRC_MKPIE=3D          no
   use   _PKGSRC_MKREPRO=3D        no
   use   _MKREPRO_CFLAGS.gcc     # undefined
   use   _PKGSRC_USE_FORTIFY=3D    yes
   use   _PKGSRC_USE_RELRO=3D      no
   use   _PKGSRC_USE_STACK_CHECK=3D no
   use   _OPSYS_INCLUDE_DIRS=3D    /usr/include
   use   _OPSYS_LIB_DIRS=3D        /lib /usr/lib
   def   MAKEFLAGS=3D              \
                                 _MAKE=3D/usr/pkg/bin/bmake \
                                 OPSYS=3DSunOS \
                                 OS_VERSION=3D5.10 \
                                 LOWER_OPSYS=3Dsolaris \
                                 _PKGSRCDIR=3D/usr/pkgsrc \
                                 PKGTOOLS_VERSION=3D20191008 \
                                 _CC=3D/opt/csw/gcc5/bin/gcc \
                                 =
 _PATH_ORIG=3D/usr/ccs/bin:/usr/pkg/bin:/usr/pkg/sbin:/opt/csw/bin:/usr/loc=
 al/bin:/usr/local/sbin:/usr/sunvts/bin:/usr/bin:/usr/sbin:/usr/sadm/admin/=
 bin:/usr/sadm/bin:/bin:/sbin:/usr/openwin/bin \
                                 # end of MAKEFLAGS
   def   IMAKEOPTS=3D              \
                                 -DHasGcc2=3DYES \
                                 -DHasGcc2ForCplusplus=3DYES \
                                 # end of IMAKEOPTS
   def   CFLAGS=3D                  -O3 -mcpu=3Dultrasparc3 =
 -mtune=3Dultrasparc3 -D_FORTIFY_SOURCE=3D2
   def   LDFLAGS=3D                # empty
   def   PREPEND_PATH=3D           \
                                 /usr/pkg/bin \
                                 =
 /usr/pkgsrc/security/openssl/work/.tools/bin \
                                 =
 /usr/pkgsrc/security/openssl/work/.gcc/bin \
                                 =
 /usr/pkgsrc/security/openssl/work/.buildlink/bin \
                                 =
 /usr/pkgsrc/security/openssl/work/.cwrapper/bin \
                                 # end of PREPEND_PATH
   def   COMPILER_INCLUDE_DIRS=3D  /usr/include
   def   COMPILER_LIB_DIRS=3D      /lib /usr/lib
   def   CWRAPPERS_APPEND.cc=3D    -D_FORTIFY_SOURCE=3D2 =
 -fstack-protector -I/usr/pkg/include
   def   CWRAPPERS_APPEND.cxx=3D   -fstack-protector -I/usr/pkg/include
   def   CWRAPPERS_APPEND.ld     # undefined
   def   PKG_ADA=3D                =
 /usr/pkgsrc/security/openssl/work/.compiler/bin/ada-fail-wrapper
   def   PKG_GMK                 # undefined
   def   PKG_GLK                 # undefined
   def   PKG_GBD                 # undefined
   def   PKG_CHP                 # undefined
   def   PKG_GNT                 # undefined
   def   PKG_GLS                 # undefined
   def   PKG_PRP                 # undefined
   def   PKGSRC_ADA              # undefined
   def   PKGSRC_GMK              # undefined
   def   PKGSRC_GLK              # undefined
   def   PKGSRC_GBD              # undefined
   def   PKGSRC_CHP              # undefined
   def   PKGSRC_GNT              # undefined
   def   PKGSRC_GLS              # undefined
   def   PKGSRC_PRP              # undefined
   def   _CC=3D                    /opt/csw/gcc5/bin/gcc
   def   _COMPILER_RPATH_FLAG=3D   -Wl,-R
   def   _COMPILER_STRIP_VARS=3D     CC CPP CXX
   def   _GCCBINDIR=3D             /opt/csw/gcc5/bin
   def   _GCC_ARCHDIR            # undefined
   def   _GCC_BIN_PREFIX         # undefined
   def   _GCC_CFLAGS=3D            -D_FORTIFY_SOURCE=3D2
   def   _GCC_CC=3D                =
 /usr/pkgsrc/security/openssl/work/.gcc/bin/gcc
   def   _GCC_CPP=3D               =
 /usr/pkgsrc/security/openssl/work/.gcc/bin/cpp
   def   _GCC_CXX=3D               =
 /usr/pkgsrc/security/openssl/work/.gcc/bin/g++
   def   _GCC_DEPENDENCY=3D        gcc2>=3D2.8.0:../../lang/gcc2
   def   _GCC_DEPENDS=3D           gcc2>=3D2.8.0
   def   _GCC_DIST_NAME=3D         gcc8
   def   _GCC_DIST_VERSION=3D      8.3.0
   def   _GCC_FC                 # undefined
   def   _GCC_LDFLAGS            # undefined
   def   _GCC_LIBDIRS            # undefined
   def   _GCC_PKG=3D               gcc-5.5.0
   def   _GCC_PKGBASE=3D           gcc2
   def   _GCC_PKGSRCDIR=3D         ../../lang/gcc2
   def   _GCC_PKG_SATISFIES_DEP=3D YES
   def   _GCC_PREFIX             # undefined
   def   _GCC_REQD=3D              2.8.0
   def   _GCC_STRICTEST_REQD=3D    2.8.0
   def   _GCC_SUBPREFIX          # undefined
   def   _GCC_TEST_DEPENDS=3D      gcc>=3D2.8.0
   def   _GCC_NEEDS_A_FORTRAN=3D   yes
   def   _GCC_VARS=3D               CC CPP CXX
   def   _GCC_VERSION=3D           5.5.0
   def   _GCC_VERSION_STRING=3D    gcc version 5.5.0 (GCC) # ends with =
 space
   def   _GCC_ADA                # undefined
   def   _GCC_GMK                # undefined
   def   _GCC_GLK                # undefined
   def   _GCC_GBD                # undefined
   def   _GCC_CHP                # undefined
   def   _GCC_GLS                # undefined
   def   _GCC_GNT                # undefined
   def   _GCC_PRP                # undefined
   def   _IGNORE_GCC             # undefined
   def   _IGNORE_GCC3CXX         # undefined
   def   _IGNORE_GCC3F77         # undefined
   def   _IGNORE_GCC3OBJC        # undefined
   def   _IS_BUILTIN_GCC=3D        YES
   def   _LANGUAGES.gcc=3D          c
   def   _LINKER_RPATH_FLAG=3D     -R
   def   _NEED_GCC2=3D             yes
   def   _NEED_GCC3=3D             no
   def   _NEED_GCC34=3D            no
   def   _NEED_GCC44=3D            no
   def   _NEED_GCC48=3D            no
   def   _NEED_GCC49=3D            no
   def   _NEED_GCC5=3D             no
   def   _NEED_GCC6=3D             no
   def   _NEED_GCC7=3D             no
   def   _NEED_GCC8=3D             no
   def   _NEED_GCC_AUX=3D          no
   def   _NEED_NEWER_GCC=3D        NO
   def   _PKGSRC_GCC_VERSION=3D    gcc2-8.3.0
   def   _USE_GCC_SHLIB=3D         yes
   def   _USE_PKGSRC_GCC=3D        NO
   def   _WRAP_EXTRA_ARGS.CC=3D    -m32 -fstack-protector
   def   _EXTRA_CC_DIRS=3D         /opt/csw/gcc5/bin
   def   _CXX_STD_VERSIONS=3D      gnu++17 c++17 gnu++14 c++14 gnu++11 =
 c++11 gnu++0x c++0x gnu++03 c++03
   def   _CXX_STD_FLAG.gnu++17=3D  -std=3Dgnu++17
   def   _CXX_STD_FLAG.c++17=3D    -std=3Dc++17
   def   _CXX_STD_FLAG.gnu++14=3D  -std=3Dgnu++14
   def   _CXX_STD_FLAG.c++14=3D    -std=3Dc++14
   def   _CXX_STD_FLAG.gnu++11=3D  -std=3Dgnu++11
   def   _CXX_STD_FLAG.c++11=3D    -std=3Dc++11
   def   _CXX_STD_FLAG.gnu++0x=3D  -std=3Dgnu++0x
   def   _CXX_STD_FLAG.c++0x=3D    -std=3Dc++0x
   def   _CXX_STD_FLAG.gnu++03=3D  -std=3Dgnu++03
   def   _CXX_STD_FLAG.c++03=3D    -std=3Dc++03
   def   _MKPIE_CFLAGS.gcc       # undefined
   def   _MKPIE_LDFLAGS.gcc      # undefined
   def   _FORTIFY_CFLAGS=3D        -D_FORTIFY_SOURCE=3D2
   def   _RELRO_LDFLAGS=3D         -Wl,-z,relro -Wl,-z,now
   def   _STACK_CHECK_CFLAGS=3D    -fstack-check
   def   _CTF_CFLAGS=3D            -gdwarf-2
   def   _GCC_DIR=3D               /usr/pkgsrc/security/openssl/work/.gcc
   def   _ALIASES.CC=3D            cc gcc
   def   _ALIASES.CPP=3D           cpp
   def   _ALIASES.CXX=3D           c++ g++
   def   _ALIASES.FC             # undefined
   def   _ALIASES.ADA            # undefined
   def   _ALIASES.GMK            # undefined
   def   _ALIASES.GLK            # undefined
   def   _ALIASES.GBD            # undefined
   def   _ALIASES.CHP            # undefined
   def   _ALIASES.PRP            # undefined
   def   _ALIASES.GLS            # undefined
   def   _ALIASES.GNT            # undefined
   def   _COMPILER_ABI_FLAG.32=3D  -m32
   def   _COMPILER_ABI_FLAG.64=3D  -m64
   def   _COMPILER_ABI_FLAG.n32  # undefined
   def   _COMPILER_ABI_FLAG.o32  # undefined
   def   _SSP_CFLAGS=3D            -fstack-protector
   def   _CXX_STD_FLAG.c++03=3D    -std=3Dc++03
   def   _CXX_STD_FLAG.gnu++03=3D  -std=3Dgnu++03

 # bmake show-all-compiler
 compiler:
   usr   PKGSRC_COMPILER=3D        gcc
   usr   USE_PKGSRC_GCC=3D         no
   usr   ABI=3D                    32
   usr   COMPILER_USE_SYMLINKS=3D  yes
   pkg   USE_LANGUAGES=3D          c
   pkg   GCC_REQD=3D               2.8.0
   pkg   NOT_FOR_COMPILER        # undefined
   pkg   ONLY_FOR_COMPILER       # undefined
   sys   CC_VERSION=3D             gcc-5.5.0



From: Roland Illig <roland.illig@gmx.de>
To: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
Cc: gnats-bugs@netbsd.org, solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Tue, 11 Feb 2020 09:27:22 +0100

 On 11.02.2020 08:22, Hiroshi Hakoyama wrote:
 > Thank you for the detailed suggestions.
 >
 > # bmake show-all-gcc
 > gcc:
 >    usr   USE_NATIVE_GCC=3D         no
 >    usr   USE_PKGSRC_GCC=3D         no
 >    usr   USE_PKGSRC_GCC_RUNTIME=3D no
 ...

 This looks pretty good. Nothing unusual.

 Did you have a look at the code in the "config" file?

 It only sets GCCVER if CC is still unset. And since CONFIGURE_ENV
 includes CC=3Dcc, it is already set, and the block that could set GCCVER
 is skipped completely.

 On other platforms it works because the value of GCCVER is not used at all=
 .

 I hacked around a little, and when you add the following to the package
 Makefile, at the very end, below the inclusion of bsd.pkg.mk, it should
 work.

      .include "../../mk/bsd.pkg.mk"

      # empty, to force GCCVER to be evaluated on SunOS
      CONFIGURE_ENV+=3D CC=3D

 Please try this, and if that works, I'll have to think about a good and
 elegant solution. Usually the bsd.pkg.mk line is the last line in every
 package Makefile, therefore this is only a quick hack.

 With this line, the file work/.work.log should contain the word
 "-dumpversion", which it didn't contain before since that block was skippe=
 d.

From: Roland Illig <roland.illig@gmx.de>
To: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
Cc: gnats-bugs@netbsd.org, solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Tue, 11 Feb 2020 17:52:48 +0100

 See also https://github.com/openssl/openssl/issues/11060.

From: "Roland Illig" <rillig@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54894 CVS commit: pkgsrc/security/openssl
Date: Tue, 11 Feb 2020 17:23:11 +0000

 Module Name:	pkgsrc
 Committed By:	rillig
 Date:		Tue Feb 11 17:23:11 UTC 2020

 Modified Files:
 	pkgsrc/security/openssl: Makefile

 Log Message:
 security/openssl: fix build on Solaris

 This fixes PR pkg/54894.


 To generate a diff of this commit:
 cvs rdiff -u -r1.251 -r1.252 pkgsrc/security/openssl/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
To: Roland Illig <roland.illig@gmx.de>
Cc: gnats-bugs@netbsd.org,
 solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Wed, 12 Feb 2020 18:17:20 +0900

 > Did you have a look at the code in the "config" file?
 Yes, briefly.

 >    .include "../../mk/bsd.pkg.mk"
 > 
 >    # empty, to force GCCVER to be evaluated on SunOS
 >    CONFIGURE_ENV+= CC=
 > 
 > Please try this, and if that works, I'll have to think about a good and
 > elegant solution. Usually the bsd.pkg.mk line is the last line in every
 > package Makefile, therefore this is only a quick hack.
 It should be 

 CONFIGURE_ENV+= CC=""

 , instead of 

 > CONFIGURE_ENV+= CC=

 .

 I confirmed that this line fixed the problem.

Responsible-Changed-From-To: solaris-pkg-people->rillig
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Wed, 12 Feb 2020 16:18:53 +0000
Responsible-Changed-Why:


State-Changed-From-To: feedback->closed
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Wed, 12 Feb 2020 16:18:53 +0000
State-Changed-Why:

Fixed in pkgsrc-current. Thanks for the PR.


From: Roland Illig <roland.illig@gmx.de>
To: Hiroshi Hakoyama <hiroshi-hakoyama@nagano.ac.jp>
Cc: gnats-bugs@netbsd.org, solaris-pkg-people@netbsd.org,
 pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/54894 (openssl-1.1.1d fails to configure on Solaris 10)
Date: Wed, 12 Feb 2020 17:14:46 +0100

 On 12.02.2020 10:17, Hiroshi Hakoyama wrote:
 > It should be
 >
 > CONFIGURE_ENV+=3D CC=3D""
 >
 > , instead of
 >
 >> CONFIGURE_ENV+=3D CC=3D

 Agreed. In direct comparison the CC=3D might look like an unfinished line.
 For humans the first form is better. For bmake, both forms are
 equivalent though.

 > I confirmed that this line fixed the problem.

 That's good. Since I was sure that this would fix the problem, I have
 already committed the fix to security/openssl.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.