Bug 1186792
Summary: | Build Caribou with Python 3 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bohuslav "Slavek" Kabrda <bkabrda> |
Component: | caribou | Assignee: | Parag Nemade <pnemade> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dueno, pnemade, rkuska |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | caribou-0.4.17-2.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-20 16:27:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bohuslav "Slavek" Kabrda
2015-01-28 14:45:16 UTC
Hi, can you please do this before the deadline for Changes for F22? Otherwise we'd probably have to postpone even https://fedoraproject.org/wiki/Changes/Python_3_Migration_Improvements. Thanks. I am trying my best but looks like its not that easy the way we generally copy as py3dir and compile and install it as python3 subpackage. Here its a Makefile.am and pkgpythondir variable to decide python version. I am checking on this today more. (In reply to Parag from comment #2) > I am trying my best but looks like its not that easy the way we generally > copy as py3dir and compile and install it as python3 subpackage. Here its a > Makefile.am and pkgpythondir variable to decide python version. I am > checking on this today more. Thanks. If you need help with this, feel free to say so and I'll help. I think I will need your help. This should work: %build %configure --disable-static make V=1 %{?_smp_mflags} %install rm -fr %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" %if 0%{?with_python3} make clean %configure --disable-static PYTHON=python3 make install DESTDIR=%{buildroot} INSTALL="install -p" %endif # with_python3 libxml2 is using this^^ approach http://pkgs.fedoraproject.org/cgit/libxml2.git/commit/libxml2.spec?h=f22 Little fix (for further reference) posted link points to latest commit to f22 branch of libxml2 (which happens to be the correct one atm), this one points to commit id. http://pkgs.fedoraproject.org/cgit/libxml2.git/commit/?h=f22&id=2b37fdf7bdb4d5f2c2f067ab723c31e46fa4049f Robert, Thanks I tried that way but it failed to build python3 subpackage. Error for configure is configure:17519: WARNING: unrecognized options: --with-python Here is my current modified rawhide package (not committed) SPEC URL: https://pnemade.fedorapeople.org/fedora-work/SPECS/caribou.spec SRPM URL:https://pnemade.fedorapeople.org/fedora-work/SRPMS/caribou-0.4.17-2.fc23.src.rpm Scratch failed build -> http://koji.fedoraproject.org/koji/taskinfo?taskID=9004572 Hi Parag, your config doesn't have --with-python option, check out my comment #5 again: %configure --disable-static PYTHON=python3 you pass python3 as an environment variable. Awesome!! Thank you Robert for your brief help. Thanks Bohuslav for offering me the help. I need to use 2to3 and add few BuildRequires: to get the python3 build. Built this package in rawhide and f22 now. |