freebsd / portmaster

FreeBSD port management script without external databases or languages
77 stars 40 forks source link

Build error related to PM_PACKAGES_BUILD=pmp_build #78

Open major12 opened 2 months ago

major12 commented 2 months ago

My setup: portmaster-3.29_2 with PM_PACKAGES_BUILD=pmp_build in portmaster.rc

I was rebuilding installed ports and got error:

===> Configuring for jsoncpp-1.9.5 env: meson: No such file or directory ===> Script "configure" failed unexpectedly. Please report the problem to yuri@FreeBSD.org [maintainer] and attach the "/usr/ports/devel/jsoncpp/work/jsoncpp-1.9.5/_build/meson-logs/meson-log.txt" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1

Stop. make: stopped in /usr/ports/devel/jsoncpp

meson tool was installed as package by portmaster

===>>> Installing package from: /var/ports/packages/portmaster-download/meson-1.4.0.pkg [resolver1] Installing meson-1.4.0... pkg-static: Missing dependency 'python39' [resolver1] Extracting meson-1.4.0: 100%

===>>> Installation of devel/meson (meson-1.4.0) succeeded

but either it failed to be installed or failed to run. I do not have python39 installed, I use python310.

Probably meson (or other build dependency) should not be installed with "--accept-missing" here https://github.com/freebsd/portmaster/blob/cfd82c3f5099e3607157933fa6588543d0bab050/portmaster#L3871

It should be better to fallback to compilation from ports is this situation.