When building sysutils/bareos-client in a clean enviroment (e.g. poudriere) the PYTHON configuration option does not work quite as expected when the DEFAULT_VERSION of python is 3.6. When the option is ON it naturally pulls in the DEFAULT_VERSION which fails since it seems bareos-client wants python2.7. Modifying sysutils/bareos-server/Makeifle so that USES+=python:2.7 fixed this. However then when the option is OFF the dependancy of ninja pulls in the default python version which bareos-client's cmake detects anyway and attempts to build with python support anyway, failing.
Does this software support Python 2 *and* 3, or only 2 at this time? Could you include the full build log of the failure, as an attachment please
Created attachment 204295 [details] Build log 1 or 4 unmodified ports DEFAULT_VERSION+=python=3.6 PYTHON disabled in bareos-client port options dependancy of ninja pulls in python3.6, it's detected, enabled and fails.
Created attachment 204296 [details] Build log 2 of 4 unmodified ports DEFAULT_VERSION+=python=3.6 PYTHON enbaled in bareos-client options Again it detects python3.6, uses it and fails.
Created attachment 204297 [details] Build log 3 of 4 modifed sysutils/bareos-server/Makefile line 68: PYTHON_USES=python:2.7 DEFAULT_VERSION=python=3.6 PYTHON disabled in port options. Again python3.6 pulled in by ninja dependancy, detected by cmake and enabled causing failure of build.
Created attachment 204298 [details] Build log 4 of 4 - the one that worked modifed sysutils/bareos-server/Makefile line 68: PYTHON_USES=python:2.7 DEFAULT_VERSION=python=3.6 PYTHON enabled in port options. Pulls in python2.7 for itself which cmake detects and uses, working. (python3.6 is still in the system, but the detection prefers 2.7) bareos-client needs 2.7, but will use 3.6 if it's there even if you turn off python in the options menu.
A commit references this bug: Author: acm Date: Fri May 10 20:19:43 UTC 2019 New revision: 501197 URL: https://svnweb.freebsd.org/changeset/ports/501197 Log: - Fix pthread error [1] - Fix build when python 2.x is not default version [2] - Fix build when NLS option is not selected [3] - Fix pkg-plist - Few other modifications PR: 237818 237823 237825 Submitted by: Trond.Endrestol _ at _ ximalas.info [1][3], beldin _ at _ beldin.org [2] Reported by: pkg-fallout Changes: head/sysutils/bareos-server/Makefile head/sysutils/bareos-server/files/patch-core-CMakeLists.txt head/sysutils/bareos-server/files/patch-core-cmake_BareosFindAllLibraries.cmake head/sysutils/bareos-server/files/patch-core-cmake_BareosSetVariableDefaults.cmake head/sysutils/bareos-server/files/patch-core-src-include_baconfig.h head/sysutils/bareos-server/files/patch-core-src-plugins-filed_CMakeLists.txt head/sysutils/bareos-server/files/patch-core-src-stored_CMakeLists.txt head/sysutils/bareos-server/pkg-plist