From nobody Fri May 19 08:18:20 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 4QN08r3jkzz4BfHL for ; Fri, 19 May 2023 08:18:20 +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 4QN08r1F7Cz4GQT for ; Fri, 19 May 2023 08:18:20 +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=1684484300; 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=Id/v4yVyX5f4/J0r0T7yY5YA5Ag5qoOogwoMqJEzKCU=; b=ER4TXSE5UJbIwbjz8Q+/HMbrj/N40ZcxWr23NNoE7dAu//4hBx06mE6IVb0A4o+ZAb+Qn7 9mL0OAclWLd5aeVepI087TVoMxWMzC9X0Bx+VDNsrqO4XUd7TzUWbnstRT3hHackIC3PzF fEna45t7LuZQ8GpkZ6IMTGdFEN+I3G2Igr0nZ9h+ZK1ga1JCBP7qW5FS1cjYH2rLs8QE1J /OHFvJ1g3pzA2wMMCflyEyAbu15bkzfedtObjHIh9PUTrC0h7XxZRjxBvksxyIHczukwe6 Vh2hWlw64Cx0jpG4ui1ZhMno4crcdxk1VYBdg+ZYwbnMVmEiYSiM1W+D0Fqhiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684484300; a=rsa-sha256; cv=none; b=e9LGrjoWrgwxYozZmNTgK6k3yLQ+tfP9JNE6MMoGabVTVDordtG9oEx0dhn1mUARkv4FTi VULFUh6Lqwvurfqsp6qguN9uYKEEG9APgTp+W2dKCO28btf5wLqeuZ2PlG485Ep/8LmwDH QGMrTn9eA0lTmqtWdY37oTzVBTuvqrN/fJUXC4xVQuY6MxFIpz0vNdzAvFrVvsZD1eMQDI 80M9aOUvD/rkYVXFxU9swZEVPCh3uHtsi6OSae6Ul4TjvwPrCqz1+l7lmD2QuR1D9Bti0N VKsHjJcYlFiIdlXh68pFMtMtpUGQcUKV2ft8WjEN8ZDltCPw8psujWE3KOqhPQ== 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 4QN08r0D82zLJB for ; Fri, 19 May 2023 08:18:20 +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 34J8IJMT088544 for ; Fri, 19 May 2023 08:18:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34J8IJCu088543 for pkg@FreeBSD.org; Fri, 19 May 2023 08:18:19 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: Fri, 19 May 2023 08:18:20 +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: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bapt@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 #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7bc2192380e10f3469ab4eda69ade324a= ae976cd commit 7bc2192380e10f3469ab4eda69ade324aae976cd Author: Baptiste Daroussin AuthorDate: 2023-03-09 16:38:30 +0000 Commit: Baptiste Daroussin CommitDate: 2023-05-19 08:16:51 +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 (cherry picked from commit b2654064c2d11a1ee36667b3ff8b0f4d2536af74) 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.=