[opensuse-buildservice] Building lxc for CentOS with python34
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all, I am trying to build the lxc package (1.0.8 atm) for CentOS7. To get a usable output of lxc-ls, I wanted to enable building with python3, which works fine with the openSUSE version. https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:L XC_Vanilla_stable-1.0 As CentOS7 only has python3 in EPEL, I created a package that pulls in the original src.rpm from EPEL. After some tweaking of the prjconf, the python34 package builds. It is called python34 on CentOS, and the version from epel installs /usr/bin/python34, not /usr/bin/python3. /usr/bin/python is still the 2.7 version. https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:C entOS_Zeug_Testing:python34-EPEL Aggregating the package to my lxc project, tweaking spec and prjconf and voila, the package is built. Only, I can't install it on CentOS, as the package somehow has a dependency for /usr/bin/python3: Error: Package: lxc-1.0.8-14.2.x86_64 (home_ojkastl_buildservice_LXC_Vanilla_stable-1.0) Requires: /usr/bin/python3 In the spec file for lxc, I set a Requires for python34 or python(abi) = 3.4 or similar, but always the same. And I would have thought that using the original srpm for building should results in correct dependecies, if they are somehow automagically added. Question: Any hints? Is this a problem with building EPEL SRPMs on OBS? Error in my spec file? Wrong prjconf? Any ideas? Thanks in advance. Johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlZoetgACgkQzi3gQ/xETbJ+BQCeIdZbLOcDE0e0JZYdD0FIAY2a 1x0AnjvJQHATuiYHeYhhCsjalKYn90pv =dkGq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, Dec 9, 2015 at 2:02 PM, Johannes Kastl
Dear all,
I am trying to build the lxc package (1.0.8 atm) for CentOS7. To get a usable output of lxc-ls, I wanted to enable building with python3, which works fine with the openSUSE version.
https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:L XC_Vanilla_stable-1.0
As CentOS7 only has python3 in EPEL, I created a package that pulls in the original src.rpm from EPEL. After some tweaking of the prjconf, the python34 package builds. It is called python34 on CentOS, and the version from epel installs /usr/bin/python34, not /usr/bin/python3. /usr/bin/python is still the 2.7 version.
https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:C entOS_Zeug_Testing:python34-EPEL
Aggregating the package to my lxc project, tweaking spec and prjconf and voila, the package is built.
Only, I can't install it on CentOS, as the package somehow has a dependency for /usr/bin/python3:
Error: Package: lxc-1.0.8-14.2.x86_64 (home_ojkastl_buildservice_LXC_Vanilla_stable-1.0) Requires: /usr/bin/python3
In the spec file for lxc, I set a Requires for python34 or python(abi) = 3.4 or similar, but always the same. And I would have thought that using the original srpm for building should results in correct dependecies, if they are somehow automagically added.
Question: Any hints? Is this a problem with building EPEL SRPMs on OBS? Error in my spec file? Wrong prjconf?
Any ideas?
Thanks in advance.
Johannes
This is most likely coming from scripts inside the package actually referencing /usr/bin/python3 in the shebang or something along those lines. File requires are usually generated from that. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 10.12.15 schrieb Neal Gompa:
This is most likely coming from scripts inside the package actually referencing /usr/bin/python3 in the shebang or something along those lines. File requires are usually generated from that.
Thanks Neal, I'll have a look at it. I just was not sure if it was something in the spec or the prjconf... Johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlZrDLQACgkQzi3gQ/xETbLfxQCfZIF4csVpXQe2SIPXVclwp4nv +GUAn2Jv+yuESgKKwDo0tzgWcM/kJGcz =H0Ks -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Johannes Kastl
-
Neal Gompa