From nobody Wed Aug 27 00:58:41 2025 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 4cBR416YZzz65QFk for ; Wed, 27 Aug 2025 00:58:41 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cBR415wNYz3fNG for ; Wed, 27 Aug 2025 00:58:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756256321; 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=G6j6dAxrRHrKFafx5HANCSEd0hQuadr+F4v0QT75hvk=; b=vZ59X5uRrqH0aaL8Lh5UB9dHUuRJPNOGfq6NRVpvikTY90bnieEevI8PNyTHRGjFEzmJWN o7/qY8hZcUD8iW41Ry4pQy2tvkxSI9k44FCsbLZGAI+Jw4iEGERjxrEOv9sLPoi/BWtlht J6luTC+oLWwmMB51JkLB1qUxqIFNX3YfvVo2pJhhXZhcJ/ldglTBXtst2/cWQqVUwhxJJJ 6N0ThqgvlnVBfyj6kQUBjWQlxNJoQp09QZCk9MUIZjj9tOASEBmoKGTV1U5XmpT1Oz4bYZ OL7XGRmX+41Vc8ur5EzG7/PQ4M0u/knSvjyRMok8sDLsXmCeM304HjRv/8F1vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756256321; 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=G6j6dAxrRHrKFafx5HANCSEd0hQuadr+F4v0QT75hvk=; b=gRCcJFgqqzFxAsftXu8LEznsqQTrgL9MHCqv1jAV1jqUOcyHtMQPzc9/LM3u1KYTALWlBJ wOuwJp4zC2DEs/qRrUO6asXkqOL7+fuWybeR16+iJfeZuLpDqoPWpIQ4YA7eyEMJJcpp/w 9mq8vHam5cpWh2EFiNX0kDnzZzsLjaexQN5wjrPqnOsyatl46zQsvgNQawaecqRlM/D1Qw qr36z8VSBHF2TmYl6U+4S7ea2wR8BE0YWAxWXkUHB01mp9Ee4jpMcdBHbh9k/MmBNDpIGs v6DI8dAMb+BMn9t3AzLc3gUU4o4OCtqhBabW74LCnefjvLY5OLmvkxdF1XTnNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756256321; a=rsa-sha256; cv=none; b=aCp0AYHFn+XYSXY/wb66iWzJibDXFNbu6gDo5NydzZeOmhYHQPEfNVmje1X/JCI/uM4xK7 +Uv6y2ZJDIjDskQ0vBSP+4sfZwUJH4OQgkKgJjxPDf99NIJphDyKu8bODC+NxqXeOPOlOU 2/MO2R8maOMbmaAoucwfWE3AClw8hRLXX9YUF0twGBXAk0auoF2XGMFZbidSsuR8VPAzQr i3iliNy/oAOzIvNKICv6JSy+t4ZFyn8oxmGtz9cCapKdNErvnVgThzQ5aKHxpn2o7R+sDi 8k41sNICBqWdwLOeNBWr8X1dxK9FhgFmTMn2D671zWYGi2ovYlmrEMHE0L3i+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cBR415FKHz10bS for ; Wed, 27 Aug 2025 00:58:41 +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 57R0wfMR089964 for ; Wed, 27 Aug 2025 00:58:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57R0wfNL089963 for pkg@FreeBSD.org; Wed, 27 Aug 2025 00:58:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 289111] Should the bootstrap pkg get the "Fix symbols collision between libmd and libcrypto" fix too? Date: Wed, 27 Aug 2025 00:58:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289111 --- Comment #2 from Mark Millard --- (In reply to Xin LI from comment #1) Note that the summary is in the form of a question (as was the one for the orginal submittal) and that bapt asked for this submittal. However, bapt's original explanation of the change in the port-pkg is: QUOTE Makefile: link libmd after openssl crypto libs Some of the symbols exported by libmd have the same names as those in libcrypto. When they are statically link and libmd appears first in the link order, some OpenSSL routines end up using libmd's implementations. This causes problems since they aren't binary-compatible (OpenSSL's have a return value and libssl furthermore checks the return value, so when libmd implements them we end up comparing a garbage register with 0.) Reorder libraries to work around this problem. In FreeBSD main libmd has been fixed such that this isn't a problem, but those patches aren't in stable/14. Note that libmd is only used by lzma. See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286532 END QUOTE Looking in FreeBSD's usr.sbin/pkg/Makefile I see: LIBADD=3D archive der fetch pkgecc ucl crypto ssl util md And in releng/14.2 : LIBADD=3D archive fetch ucl crypto ssl util md Looking at the corrected port-pkg's src/makefile.autostup shows: @if PKG_OPENSSL_LIBS LOCAL_CFLAGS+=3D @PKG_OPENSSL_CFLAGS@ OTHER_LIBS+=3D @PKG_OPENSSL_LDFLAGS@ @PKG_OPENSSL_LIBS@ @else OTHER_LIBS+=3D -lssl -lcrypto @endif # libmd must be linked after libssl/libcrypto. @if HAVE_LIBMD OTHER_LIBS+=3D -lmd @endif So it may be that the order is already okay for libmd . (I'm not as sure about the apparent reversal of libssl vs. libcrypto .) Ultimately, bapt's judgment guides things here. But he may find it is a simple "not a bug". --=20 You are receiving this mail because: You are the assignee for the bug.=