From nobody Thu Apr 06 16:02:18 2023 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 4PsmV26Rt0z44Wt7 for ; Thu, 6 Apr 2023 16:02:18 +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 4PsmV24ptnz3PVM for ; Thu, 6 Apr 2023 16:02:18 +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=1680796938; 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=6fG0x6d+g9mQr6M015mzNGdu2amuJnqcmDHdceF5YbM=; b=jjmF8lyN0TxvkY1AY53jSHZDH4eqTHKxJ0OJLzYmUFDbD7lbV9bnIwYIbPIIwB8DRYl/je mfDVu0a65Ooteoc60Yc1Cd/2EszB/GpgKWWMTp9CddMCyarahNy1DB0YWaa3eDiPjzVAwa HkKxub7ZRsiZK678uqLwev6UNDB5Th/P3pwTzq5SGzPHV3Unn6NpUfEgqXJ0CYQt1wCFBC vT5AmsiIrXSoZ7HHkX7xzPw8Il0OM9AalUQFxBmphKLtUuvf0vT+4m0dioANJAF480AvzE KZi6oNoVSnGyvdgX6Fe7/7jMY3rzvVyMt9MlAOfajxwIIbPr5+xp9Hjkiu3CLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680796938; a=rsa-sha256; cv=none; b=pbk8oJtXA5RQQv10SCFDLXfp5m7KDbAg5D0fDuJ2yM3FXx6gkMy2tTyC5rrzKAbOIAVhfy xWswGRbOTyeGGhzjvKkL9xxql4WNxSGYcwJUKaDqJzKKJULvisJw/vhLiyjVC1823QIOms ESY65WwjOwJoZNIchuRoDFwimCHGGz856eVZ9E8zQfLqLU84bnb5v6wegcMH7bb7MmTZ20 jttDRaijPrb/9qu4YakpZm989S9DHtfHhNaZB109ThdFRd8UN/bmrrPzH389Xd5fzgnPzB N+b1g4ZpU0iVrzbSCISpIH6kVf6KeEPpPKtZVPUd6sGhbkcXDYPVpF3PIaUDFA== 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 4PsmV23tFrz18mD for ; Thu, 6 Apr 2023 16:02:18 +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 336G2IN6096828 for ; Thu, 6 Apr 2023 16:02:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 336G2ILo096827 for ports-bugs@FreeBSD.org; Thu, 6 Apr 2023 16:02:18 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 270670] devel/llvm*: LLVM_SUFFIX with '-' breaks llvm Python modules Date: Thu, 06 Apr 2023 16:02:18 +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 Many People X-Bugzilla-Who: kaktus@FreeBSD.org 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 attachments.created 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270670 Bug ID: 270670 Summary: devel/llvm*: LLVM_SUFFIX with '-' breaks llvm Python modules Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: kaktus@FreeBSD.org Created attachment 241325 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241325&action= =3Dedit proposed patch I found an issue with the lit tool that comes bundled with llvm (if the LIT options is selected). % lit-devel File "/usr/local/bin/lit-devel", line 3 from lit-devel.main import main ^ SyntaxError: invalid syntax Lit is written in Python. The issue is that the LLVM_SUFFIX contains a '-'= and sed that is being run during the build to add the LLVM_SUFFIX to filenames inadvertently converts also a Python module name. Python doesn't support importing modules with dashes in names. I'm attaching a patch that resolved that issue for me. It uses an undersco= re variant of the LLVM_SUFFIX ('_' in a module name is accepted) to change the relevant parts of python lib so lit-devel becomes lit_devel, the script name keeps the expected name of lit-LLVM_SUFFIX. I only tested it on llvm-devel. --=20 You are receiving this mail because: You are the assignee for the bug.=