Bug 255601 - print/harfbuzz: Fails to build on 13.0-RELEASE: env: /usr/local/bin/python3.7: No such file or directory
Summary: print/harfbuzz: Fails to build on 13.0-RELEASE: env: /usr/local/bin/python3.7...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-05-04 22:38 UTC by lumiwa
Modified: 2021-06-01 02:42 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (desktop)
lumiwa: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lumiwa 2021-05-04 22:38:38 UTC
I have new installed FreeBSD 13.0-RELEASE. Update for harfbuzz to 2.8.1 doesn't build on my system. I had update to Python 3.8 with follow /usr/ports/UPDATING and there are no errors.
...
env: /usr/local/bin/python3.7: No such file or directory
[ 84% 72/85] /usr/local/bin/meson --internal symbolextractor
/usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build
src/libharfbuzz.so.0.20801.0 src/libharfbuzz.so.0.20801.0
src/libharfbuzz.so.0.20801.0.p/libharfbuzz.so.0.20801.0.symbols ninja:
build stopped: subcommand failed. ===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the
failure to the maintainer. *** Error code 1

Stop.
make[1]: stopped in /usr/ports/print/harfbuzz
*** Error code 1

Stop.
make: stopped in /usr/ports/print/harfbuzz

===>>> make build failed for print/harfbuzz
===>>> Aborting update  

===>>> Update for print/harfbuzz failed
===>>> Aborting update
Comment 1 Daniel Engberg 2021-05-05 14:11:16 UTC
What does "make -V PYTHON_CMD" say?
Comment 2 lumiwa 2021-05-05 22:05:19 UTC
/usr/local/bin/python3.8
Comment 3 Tatsuki Makino 2021-05-06 02:21:11 UTC
If symlink of /usr/local/bin/python or /usr/local/bin/python3 exists, where does it point to?
Comment 4 dougs@dawnsign.com 2021-05-06 21:34:01 UTC
Hi, I've got a very similar situation as the OP. I'm on 12.0_RELEASE-p6. I needed to upgrade to Python3.8 from Python3.7 so followed instructions in /usr/ports/UPDATING. The problem begins when I execute the 'portmaster $REBUILD' step. Error message points to a missing /usr/local/bin/g-ir-scanner file. I then rebuild /usr/ports/devel/gobject-introspection and retry the 'portmaster $REBUILD' step. The next error message is as follows:

####
/usr/local/bin/meson --internal exe --capture src/hb-gobject-enums-tmp.h -- /usr/local/bin/glib-mkenums --identifier-prefix hb_ --symbol-prefix hb_gobject --template /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/src/hb-gobject-enums-tmp.h.tmpl /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-aat-layout.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-aat.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-blob.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-buffer.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-common.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-deprecated.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-draw.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-face.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-font.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-map.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-color.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-deprecated.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-font.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-layout.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-math.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-meta.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-metrics.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-name.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-shape.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot-var.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ot.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-set.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-shape-plan.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-shape.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-style.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-unicode.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/src/hb-version.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-ft.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-graphite2.h /usr/ports/print/harfbuzz/work/harfbuzz-2.8.1/_build/../src/hb-glib.h
--- stderr ---
env: /usr/local/bin/python3.7: No such file or directory

ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/print/harfbuzz
*** Error code 1

Stop.
make: stopped in /usr/ports/print/harfbuzz

===>>> make build failed for print/harfbuzz
===>>> Aborting update

===>>> Update for print/harfbuzz failed
===>>> Aborting update

===>>> Update for opencv-4.5.1_2 failed
===>>> Aborting update

===>>> The following actions were performed:
        Re-installation of meson-0.57.1_1
        Re-installation of itstool-2.0.6
        Re-installation of gtk-doc-1.33.2


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> graphics/opencv print/harfbuzz 

This command has been saved to ~/portmasterfail.txt

####

"make -V PYTHON_CMD" gives me /usr/local/bin/python3.8. There are no Python symlinks in /usr/local/bin/.
Comment 5 Tatsuki Makino 2021-05-06 21:44:54 UTC
(In reply to dougs@dawnsign.com from comment #4)

/usr/local/bin/glib-mkenums which was installed by package glib-2.66.7_1,1 has #!/usr/bin/env /usr/local/bin/python3.8.
If this is python 3.7, reinstalling glib may solve the problem.
Comment 6 lumiwa 2021-05-06 22:56:48 UTC
I just change python3.7 to 3.8 in /usr/local/bin/glib-mkenums and it works.

Thank you.
Comment 7 dougs@dawnsign.com 2021-05-07 03:34:29 UTC
(In reply to Tatsuki Makino from comment #5)

I can confirm that once devel/glib20 was reinstalled, I was able to complete the rest of the suggested Python3.8 rebuild procedure as specified in /usr/ports/UPDATING(In reply to Tatsuki Makino from comment #5)
Comment 8 Daniel Engberg 2021-05-31 20:22:00 UTC
I guess this can be closed then? :-)