Re: Problem with cmake's PythonInterp in F29 and F28

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Artur Iwicki" <suve@xxxxxxxxxxxxxxxxx>
> To: devel@xxxxxxxxxxxxxxxxxxxxxxx
> Sent: Sunday, February 24, 2019 3:27:43 PM
> Subject: Problem with cmake's PythonInterp in F29 and F28
> 
> I've got a package (colobot) which has a build-time dependency on Python3.
> The program had a new upstream release today, so I updated the spec file and
> fired up the builds.
> 
> Everything went smooth on rawhide and F30, whereas the F29 and F28 builds
> failed with a rather amusing error message:
> >BUILDSTDERR: CMake Error at
> >/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
> >BUILDSTDERR:   Could NOT find PythonInterp: Found unsuitable version "1.4",
> >but required
> >BUILDSTDERR:   is at least "2.7" (found
> >BUILDSTDERR:
> >/builddir/build/BUILD/colobot-colobot-gold-0.1.12-alpha/build/%{__python3})
> >BUILDSTDERR: Call Stack (most recent call first):
> >BUILDSTDERR:
> >/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:376
> >(_FPHSA_FAILURE_MESSAGE)
> >BUILDSTDERR:   /usr/share/cmake/Modules/FindPythonInterp.cmake:159
> >(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> >BUILDSTDERR:   data/CMakeLists.txt:6 (find_package)
> >-- Configuring incomplete, errors occurred!
> 
> So, uh, is this in issue with cmake, python3, the project's CMakeLists, or
> something totally different?
> 
> For anyone interested in the koji builds:
> rawhide: http://koji.fedoraproject.org/koji/buildinfo?buildID=1215429
> fc30: http://koji.fedoraproject.org/koji/buildinfo?buildID=1215430
> fc29: http://koji.fedoraproject.org/koji/buildinfo?buildID=1215433
> fc28: http://koji.fedoraproject.org/koji/buildinfo?buildID=1215434
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> 

This is an issue with the build dependencies. python3 should be replaced with python3-devel.

>From the SPEC on the build section: %cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%{__python3} ..

The %{__python3} macro will be defined when python3-devel is present in the build environment (to /usr/bin/python3).

In your build logs, it evaluates correctly on F30 but it stays like that in F29 and F28, so my guess would be that
something pulls python3-devel in the buildroot of F30, either one of the other dependencies or something else,
which is not the case for the other releases.

Nevertheless the rawhide build was basically successful by accident. I've tried a scratch build on F28 with
python3-devel as BuildRequires and it succeeded: https://koji.fedoraproject.org/koji/taskinfo?taskID=33010465

-- 
Regards,

Charalampos Stratakis
Software Engineer
Python Maintenance Team, Red Hat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux