Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2021 18:26:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252277] cmake find_package(python3...) fails to get default python version
Message-ID:  <bug-252277-7788-ThysSlKfaM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252277-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252277-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252277

Torfinn Ingolfsen <tingox+freebsd@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tingox+freebsd@gmail.com

--- Comment #3 from Torfinn Ingolfsen <tingox+freebsd@gmail.com> ---
This is still a problem with cmake 3.19.6:
root@kg-core2# pkg info cmake* python3*
cmake-3.19.6
python37-3.7.10
python38-3.8.8

trying to build and install libSavitar:
--->  Installing '/usr/ports/devel/libsavitar'
=3D=3D=3D>  Deinstalling for libSavitar
=3D=3D=3D>   libSavitar not installed, skipping
=3D=3D=3D>  Installing for libSavitar-4.5.0_5
=3D=3D=3D>  Checking if libSavitar is already installed
=3D=3D=3D>   Registering installation for libSavitar-4.5.0_5
pkg-static: Unable to access file
/usr/ports/devel/libsavitar/work/stage/usr/local/lib/python3.7/site-package=
s/Savitar.so:No
such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/libsavitar
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/libsavitar
** Command failed (exit code 1): env MAKE_JOBS_NUMBER_LIMIT=3D12 make reins=
tall
--->  Restoring the old version
--->  Installing
'/var/tmp/pkg_replace.dDeaiZ/libSavitar-4.5.0_3/libSavitar-4.5.0_3.txz'
Installing libSavitar-4.5.0_3...
Extracting libSavitar-4.5.0_3: 100%
--->  Cleaning the preserved shared libraries
** Fix the problem and try again.
--->  ** [5/5] - 0 done, 4 ignored, 0 skipped, 1 failed
--->  Listing the results (!:failed)
        ! libSavitar-4.5.0_3 (install error)

and if I check the relevant directory in work:
root@kg-core2# l /usr/ports/devel/libsavitar/work/stage/usr/local/lib
./                   cmake/               libSavitar.so.0@
../                  debug/               libSavitar.so.0.1.1*
X11/                 libSavitar.so@       python3.8/
root@kg-core2# l
/usr/ports/devel/libsavitar/work/stage/usr/local/lib/python3.8/
./             ../            site-packages/
root@kg-core2# l
/usr/ports/devel/libsavitar/work/stage/usr/local/lib/python3.8/site-package=
s/
./          ../         Savitar.so*

This on=20
root@kg-core2# freebsd-version -ku
11.4-RELEASE-p5
11.4-RELEASE-p5
ports tree updated yesterday (March 21st, 2021).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252277-7788-ThysSlKfaM>