NetBSD Problem Report #54890
From triaxx@netbsd.org Fri Jan 24 12:47:09 2020
Return-Path: <triaxx@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 523718EDA3
for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Jan 2020 12:47:09 +0000 (UTC)
Message-Id: <20200124124412.5E68E8E9A3@mollari.NetBSD.org>
Date: Fri, 24 Jan 2020 12:44:12 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: security/openssl BUILDLINK_API_DEPENDS mismatch
X-Send-Pr-Version: 3.95
>Number: 54890
>Category: pkg
>Synopsis: security/openssl BUILDLINK_API_DEPENDS mismatch
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 24 12:50:00 +0000 2020
>Closed-Date: Tue Jan 28 07:35:54 +0000 2020
>Last-Modified: Tue Jan 28 07:35:54 +0000 2020
>Originator: Frédéric Fauberteau
>Release: NetBSD 8.0
>Organization:
>Environment:
System: NetBSD hydralisk.triaxx.org 8.0 NetBSD 8.0 (GENERIC) #0: Fri Jan 17 23:04:35 CET 2020 triaxx@hydralisk.triaxx.org:/mnt/ccd0/sysbuild/hydralisk-8.0/amd64/obj/mnt/ccd0/netbsd/netbsd-8-0-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
When building devel/cmake in a chrooted sandbox, the following error occurs:
===> Creating toolchain wrappers for cmake-3.16.3
ERROR: heimdal>=0.4e heimdal>=0.6 is not installed; can't buildlink files.
*** Error code 1
Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/cmake
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/cmake
The problem is that www/curl (a dependency of devel/cmake) thinks it can use builtin security/heimdal because mk/krb5.buildlink3.mk is included before security/openssl/buildlink3.mk. As a results BUILDLINK_API_DEPENDS.openssl is not defined yet and is set to 1.0.1c (that is less than the builtin version (1.0.2k)). But devel/cmake has security/openssl/buildlink3.mk included before and then BUILDLINK_API_DEPENDS.openssl is set to 1.1.1. devel/cmake thinks that heimdal cannot be used in builtin version since USE_BUILTIN.openssl is no (and then USE_BUILTIN.heimdal is no too).
>How-To-Repeat:
cd /usr/pkgsrc/devel/cmake && make configure
>Fix:
Index: builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssl/builtin.mk,v
retrieving revision 1.45
diff -u -r1.45 builtin.mk
--- builtin.mk 16 Jan 2020 13:30:29 -0000 1.45
+++ builtin.mk 24 Jan 2020 12:36:29 -0000
@@ -87,7 +87,7 @@
### take care builtin check case, BUILDLINK_API_DEPENDS may not be defined yet.
CHECK_BUILTIN.openssl?= no
. if !empty(CHECK_BUILTIN.openssl:M[yY][eE][sS])
-BUILDLINK_API_DEPENDS.openssl?= openssl>=1.0.1c
+BUILDLINK_API_DEPENDS.openssl?= openssl>=1.1.1
. endif
. for dep_ in ${BUILDLINK_API_DEPENDS.openssl}
. if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
>Release-Note:
>Audit-Trail:
From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/54890: security/openssl BUILDLINK_API_DEPENDS mismatch
Date: Fri, 24 Jan 2020 14:02:41 +0100
If the fix is correct, I suspect that a revision bumping is necessary
for packages that depend on security/openssl. If so, I don't know the
process.
From: =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= <triaxx@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54890 CVS commit: pkgsrc/security/openssl
Date: Tue, 28 Jan 2020 07:34:57 +0000
Module Name: pkgsrc
Committed By: triaxx
Date: Tue Jan 28 07:34:57 UTC 2020
Modified Files:
pkgsrc/security/openssl: builtin.mk
Log Message:
openssl: fix PR pkg/54890
pkgsrc changes:
---------------
* Make the BUILDLINK_API_DEPENDS of builtin.mk match the one of
buildlink3.mk.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/security/openssl/builtin.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Tue, 28 Jan 2020 07:35:54 +0000
State-Changed-Why:
Fix applied
>Unformatted:
(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.