| Summary: | sysutils/bareos-client: Fails to build with PYTHON option enabled (when 2.7 isn't DEFAULT_VERSION) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | beldin | ||||||||||
| Component: | Individual Port(s) | Assignee: | Jose Alonso Cardenas Marquez <acm> | ||||||||||
| Status: | Closed FIXED | ||||||||||||
| Severity: | Affects Some People | CC: | koobs, python | ||||||||||
| Priority: | --- | Keywords: | needs-qa | ||||||||||
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(acm) |
||||||||||
| Hardware: | Any | ||||||||||||
| OS: | Any | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
beldin
2019-05-10 04:08:23 UTC
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 |