From nobody Thu Mar 09 16:44:16 2023 X-Original-To: pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PXZlP0NMLz3x7Cv for ; Thu, 9 Mar 2023 16:44:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXZlN5dTPz48KT for ; Thu, 9 Mar 2023 16:44:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678380256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7eJgx1X4dY6Vr8R5QkUDvkGHaD33J2LyOQAivAIJNcY=; b=P2fKf9GjeFPgDMyIZDvnBoqrLuYkGEmGG1VSZmf34ONFsLXVE2ab6JzohgyFX+tVPlVJfo GLIFeMXGUWriQyH/pOorI71FmZgFfOtCug5Dcf1BGcwWiqDoB5nELhUl80PeIsZUCVfQmx 5xt4mgoNFBsr7XkARkkWrBJVuYgOWQVtY9VQd0Dz4lHXLQifQxiccpUiYEYH4mTGJMSMe2 Yu6oVihx0bfTk5v9jCZ3QayyRv5VmVwWvzg6fg9oJsz/APFeuX10CdA9uYdGqLIH0IuI7p s67lnbkEgPlxzvGc+L/VQCmHiRiRvmX0lZOM+fN4p7Ss7EMjEk3iPXFzLGUIvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678380256; a=rsa-sha256; cv=none; b=xsXN4H/a6qc79kaKax6IkCsOfqmuph3SM8vJDOxDG01g3j+xak2568jnnJt1FkMdnfTTWz 5qwY4b1yeGsQheAVh/fNZQ8EuNQAO3ma3xC91vuV95Jq/7NDoV7yau0tIJWfdz5GzsRqt+ aWmWyMZpHFFADh3hmtY69qrT9z7WSeI38IZMyBvoY1I8yv1AnNkASBe4QLrTHS/Ex10o+s LT63uG6QjSxOl7xdz95mWAFGgEUXqwLgksT0d/MWakIzLsYAAzGQWk/Wus72tsZy+IHfVU Si2W7ESU80chCUIfNE0ihISoyqkpA/WxPXlNkLdb0k59VW5kIsKHjAMQu3xk0g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PXZlN4kkkzFTn for ; Thu, 9 Mar 2023 16:44:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 329GiG8v066760 for ; Thu, 9 Mar 2023 16:44:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 329GiGho066759 for pkg@FreeBSD.org; Thu, 9 Mar 2023 16:44:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 270023] usr.sbin/pkg doesn't compile with OpenSSL 3 Date: Thu, 09 Mar 2023 16:44:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ngie@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270023 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Db2654064c2d11a1ee36667b3ff8b0f4d2= 536af74 commit b2654064c2d11a1ee36667b3ff8b0f4d2536af74 Author: Baptiste Daroussin AuthorDate: 2023-03-09 16:38:30 +0000 Commit: Baptiste Daroussin CommitDate: 2023-03-09 16:43:01 +0000 pkg(7): use libmd for sha256 instead of openssl OpenSSL 3.0 has deprecated the sha256 api, let's use libmd which has the same API instead. In order to avoid the collision in definitions (sha256.h cannot be included in the same file as a file where openssl headers has been included) let's move the sha256 related code in its own file PR: 270023 Reported by: ngie usr.sbin/pkg/Makefile | 4 +- usr.sbin/pkg/hash.c (new) | 112 ++++++++++++++++++++++++++++++++++++++++++= ++++ usr.sbin/pkg/hash.h (new) | 32 +++++++++++++ usr.sbin/pkg/pkg.c | 78 +------------------------------- 4 files changed, 147 insertions(+), 79 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=