From nobody Thu Jul 20 11:47:45 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 4R69ss6wXWz4dZxh for ; Thu, 20 Jul 2023 11:47:45 +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 4R69ss5DNGz3sGF for ; Thu, 20 Jul 2023 11:47:45 +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=1689853665; 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=2OYPsipB4IKxo+OxdiTcd+ZyR4+/bblOCRTKjfHBu9w=; b=wH3gccysaL9VY7B5s0oToUMGE5R7eLHWwBHJGJBZJ4KJM20CMaoNnl0R22xJd3xfmdgR1m /1Ja+xAXhBpoxYNvRSlbzU7Ja6Quy9MD+7EIEftgBP5nuS+4LPXohjijmtPL1b/3kUaEpf rTS0YoAuKt1QMMCXX9uMcTtJa+fUDQDHJfgXZpC12pzBa312j2DrVGJiHvf51KdfWNXwdq TOEn7pAO5NmDcY2kfNXW9y4zbaE3YmDy78OqvkojVdF/rkndkAgMIRjarCKawWtSpVuobH K36tGL8g3qf8aWSv4wqJN8AZ6dDQUF3FNSI6s32xXwFAm+Jk99wIp6R1H3E0Aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689853665; a=rsa-sha256; cv=none; b=sFXq8hkNDykSK79fTZAawcIQGYkZDAH4BInK31kj4XKs/pCbI6tyPaXaUjdYPHVydvULEI yo//OKCtT1mDu/p4iXXDb730K02lAKYRByK6qLTO8eBlnccq/PMczpJ1+NE2kkrspEqND7 uwG9w45d/NXcPBPemSWhQ7R/QdGuF7wEW6n1UOFBoOz8p9aSEZUwKVC7OLPFTo4Caqbe/H QPuujZWpIQzdMdQhTnYN7Lgx1thD+y/L61PTuPHDMCyEY5rCpvCbEQHJjxoxTcAsxGfaUL eNdfO7TGJNPuGhfhqX615wHMwdf6BOZ3tu/+0EyVEy9vSNExJJeg92G32iDogA== 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 4R69ss4J81zVMk for ; Thu, 20 Jul 2023 11:47:45 +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 36KBljBp062194 for ; Thu, 20 Jul 2023 11:47:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36KBljc6062193 for ports-bugs@FreeBSD.org; Thu, 20 Jul 2023 11:47:45 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 272618] devel/py-maturin: command name is wrong for non-default python versions Date: Thu, 20 Jul 2023 11:47:45 +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 Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kai@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272618 Bug ID: 272618 Summary: devel/py-maturin: command name is wrong for non-default python versions Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kai@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Assignee: kai@FreeBSD.org Flags: maintainer-feedback?(kai@FreeBSD.org) Created attachment 243501 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243501&action= =3Dedit [patch] fix 'maturin' command name referenced in __init__.py for any python flavor If devel/py-maturin is built for a non-default python flavor (e.g., 'make FLAVOR=3Dpy38'), the port installs bin/maturin- and does not install bin/maturin. This is normal and expected. The site-packages/maturin/__init_= _.py file, however, explicitly defines the command to use as 'maturin'. Because of this when using maturin to build other ports, they can fail with= "No such file or directory: 'maturin'". For instance, 'make -C devel/py-rpds-py FLAVOR=3Dpy38' (assuming that the c= urrent default python of 3.9 has not been overridden to 3.8) gives the following error: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Building for py38-rpds-py-0.7.1_1 starting pep517 build cd /z1/local/users/jhein/.nobak/wd/usr/ports/devel/py-rpds-py/work-py38/rpds_p= y-0.7.1 && /usr/bin/env XDG_DATA_HOME=3D/z1/local/users/jhei> * Getting build dependencies for wheel... * Building wheel... Running `maturin pep517 build-wheel -i /usr/local/bin/python3.8 --compatibi= lity off` Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_pro= cess.py", line 353, in main() File "/usr/local/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_pro= cess.py", line 335, in main json_out['return_val'] =3D hook(**hook_input['kwargs']) File "/usr/local/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_pro= cess.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "/usr/local/lib/python3.8/site-packages/maturin/__init__.py", line 9= 0, in build_wheel return _build_wheel(wheel_directory, config_settings, metadata_director= y) File "/usr/local/lib/python3.8/site-packages/maturin/__init__.py", line 7= 3, in _build_wheel result =3D subprocess.run(command, stdout=3Dsubprocess.PIPE) File "/usr/local/lib/python3.8/subprocess.py", line 493, in run with Popen(*popenargs, **kwargs) as process: File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.8/subprocess.py", line 1720, in _execute_chi= ld raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'maturin' ERROR Backend subprocess exited when trying to invoke build_wheel *** Error code 1 Stop. make: stopped in /usr/ports/devel/py-rpds-py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Attached is a patch to change the command name to maturin- which will work for all flavors of python whether the version is the default or n= ot. --=20 You are receiving this mail because: You are the assignee for the bug.=