#66946 closed defect (fixed)

bazel-3.7 @3.7.2_1: build fails on Ventura, no python

Reported by: kencu (Ken) Owned by: missa-prime (Mohamed Issa)
Priority: Normal Milestone:
Component: ports Version:
Keywords: ventura Cc: cjones051073 (Chris Jones)
Port: bazel-3.7

Description

Execution platform: //:default_host_platform
env: python: No such file or directory
Target //src:bazel_nojdk failed to build

Attachments (1)

bazel-fail.log (1.8 MB) - added by kencu (Ken) 15 months ago.

Download all attachments as: .zip

Change History (5)

Changed 15 months ago by kencu (Ken)

Attachment: bazel-fail.log added

comment:1 Changed 15 months ago by kencu (Ken)

Port: bazel-3.7 added; bazel removed
Summary: bazel @4.2.2: build fails on Ventura, no pythonbazel-3.7 @3.7.2_1: build fails on Ventura, no python

comment:2 Changed 15 months ago by kencu (Ken)

this trivial little tweak fixes it:

% git diff
diff --git a/devel/bazel/Portfile b/devel/bazel/Portfile
index 95711397ded..522bb470dae 100644
--- a/devel/bazel/Portfile
+++ b/devel/bazel/Portfile
@@ -209,6 +209,7 @@ post-extract {
     file mkdir ${workpath}/bin
     ln -s ${prefix}/bin/python${py2ver} ${workpath}/bin/python2
     ln -s ${prefix}/bin/python${py3ver} ${workpath}/bin/python3
+    ln -s ${prefix}/bin/python${py3ver} ${workpath}/bin/python
 }
 
 if {${os.platform} eq "darwin" && ${os.major} < 16} {

comment:3 Changed 15 months ago by kencu (Ken)

yeah, that fixes both of the current ones:

 % port -v installed | grep bazel
  bazel @4.2.2_0 (active) requested_variants='' platform='darwin 22' archs='arm64' date='2023-02-18T09:05:52-0800'
  bazel-3.7 @3.7.2_1 (active) requested_variants='' platform='darwin 22' archs='arm64' date='2023-02-18T08:53:12-0800'

as this port is broken and this is super-trivial, I'll just push that fix.

comment:4 Changed 15 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 94ea5502ef9749af81c870bb633597eec40c8744/macports-ports (master):

basel-N: spec a python too

python2 and python3 were already specified

closes: #66946

Note: See TracTickets for help on using tickets.