From nobody Tue Dec 10 21:07:58 2024 X-Original-To: ports-bugs@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 4Y7BCL4Cxwz5gcgY for ; Tue, 10 Dec 2024 21:07:58 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7BCL31pqz4XcV for ; Tue, 10 Dec 2024 21:07:58 +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=1733864878; 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; bh=CYsjMfI96IAp7gF8mzjq6KQYenlqOaGZLYJNn7XZIes=; b=yKb1NL3GvhrVmkA+myQ/6MLe0m9CSJm0gJlwNG/hc63JYoNORrM4tfQbDE7WeQT2WDdqwn ltSa5gblZKoGlZKfXwNBRGVBtKqe+LFX8TtDzgQSspJENWIk4P5bYMv6U18ipDFJVJRzvH 8Y74TsuNPRPj1u/OSK+WpjtdG2k9TqND1/1LS3+5ynDpN8N27lhP/RO3OS0hoJV4DZMEVa Bjhhjt1+pcP5rwuZHzeZC/9m5LCmLDBL5PIEFpjvVah6j0cu9uLW4QkHfPgM88bDFkxQi+ vT9r6UqeWe1ddSY6ZWm72uL8QkspDclQEfRMgXLfdooh6QpTuzaD4kHZEbnKXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733864878; a=rsa-sha256; cv=none; b=Kmh9U8mYBdd3p1H3Y59dtBEdEhCqVOMVIaiQzx6Z/eswbjOshxX6A3TXEDByOa2psc3P0s Oe5kpFnzB0z61z81MALTkEFgX4xe4TkAq9Byl81lhVaVITF3NwUenH0GWBCJuGpLyxmTm8 fHQjMcJ02JGTpVNQAjXk4R9zIU7+H+F2zleWwFXlYQhfX6tPARVVUs6R6J3W0Vbzoeqd6x cSHAMmSgUMOMfqQLlgGTs0Y1ezrEOXPnBrMjADwQuE0YRH31WHv8IKjg5loIf9RGjeS786 NrhcyP2iastVUhIRuueFsHCWdEYDbi9IQexwVEDTwRPqMvMYa8WIgo/rYfQvZw== 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 4Y7BCL2WQJzfh3 for ; Tue, 10 Dec 2024 21:07:58 +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 4BAL7wWI063382 for ; Tue, 10 Dec 2024 21:07:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BAL7w56063381 for ports-bugs@FreeBSD.org; Tue, 10 Dec 2024 21:07:58 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: ports-bugs@FreeBSD.org Subject: [Bug 283241] lang/rust: superfluous dependency on devel/llvm with option PORT_LLVM Date: Tue, 10 Dec 2024 21:07:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnikl@justmail.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283241 Bug ID: 283241 Summary: lang/rust: superfluous dependency on devel/llvm with option PORT_LLVM Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: gnikl@justmail.de CC: brooks@FreeBSD.org, rust@FreeBSD.org CC: brooks@FreeBSD.org, rust@FreeBSD.org I am aware that PORT_LLVM is considered an experimental option as stated in= bug #274743. lang/rust built with PORT_LLVM_USES set to llvm:min=3D19,lib,noexport # pkg info -dBb -F rust-1.83.0.pkg [PORT_LLVM set] rust-1.83.0 Shared Libs required: libzstd.so.1 Shared Libs provided: libstd-a806a8676d7bc991.so librustc_driver-e0652d09b319a00a.so Depends on : llvm19-19.1.5 -> pkg recorded a dependency on llvm19 but libLLVM is not in list of requir= ed libraries. Indeed, "readelf -d" for librustc_driver.so shows only system libraries (and libzstd.so.1) # pkg info -dBb -F rust-1.83.0.pkg [PORT_LLVM unset, LTO set] rust-1.83.0 Shared Libs required: libzstd.so.1 Shared Libs provided: libstd-a17289310c839863.so librustc_driver-2171cb97ac6fdb3f.so libLLVM.so.19.1-rust-1.83.0-stable -> no dependency on LLVM, but in the list of provided shared libraries is a= so of the rust included LLVM 19.1 # pkg info -dBb -F rust-1.83.0.pkg [PORT_LLVM set, LTO set] rust-1.83.0 Shared Libs required: libzstd.so.1 libLLVM.so.19.1 Shared Libs provided: libstd-a806a8676d7bc991.so librustc_driver-e0652d09b319a00a.so Depends on : llvm19-19.1.5 -> depends on llvm19 and requires libLLVM.so.19.1. readelf -d confirms that librustc_driver.so requires libLLVM. # pkg info -dBb -F rust-1.83.0.pkg [PORT_LLVM set but changed from lib to build] rust-1.83.0 Shared Libs required: libzstd.so.1 Shared Libs provided: libstd-a806a8676d7bc991.so librustc_driver-e0652d09b319a00a.so -> no recorded dependency on devel/llvm. This is what I expected in the fir= st place. Q1) What exactly does option LTO accomplish? I assumed it would enable LTO for the build of lang/rust. Having a pkg dependency on devel/llvm is surprising, Q2) Why does the port expose shared libraries? All libraries (libstd, librustc_driver and libLLVM...-stable) seem to be private libraries only used by the built tools. Could/should the port use BUNDLE_LIBS? --=20 You are receiving this mail because: You are the assignee for the bug.=