-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Evening everybody,
I hope this is the right mailinglist, apologies if it aint.
I am trying to build lxc, using the upstream spec file, on the OBS. I succeeded in adjusting it for openSUSE-related stuff, so it builds fine.
Nevertheless, I get errors when building for Fedora:
https://build.opensuse.org/package/live_build_log/home:ojkastl_buildservice:...
During
the %install there is a mkdir command, that does not use the buildroot, and therefore exits due to missing permissions:
[ 211s] Making install in templates [ 211s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[3]: Nothing to be done for `install-exec-am'. [ 211s] /bin/mkdir -p '/usr/share/lxc/config' [ 211s] /bin/mkdir: cannot create directory '/usr/share/lxc': Permission denied
As this only happens on Fedora 19 and 20, I am puzzled. The same spec builds fine for openSUSE.
I asked on the lxc-devel mailinglist, but without a solution. Building with the original spec on Fedora seems to work fine, so it's a puzzle (at least to me) why the install part should be suddenly not using the build root...
Any hints? Tricks? Where to start solving the mystery?
Regards, Johannes - -- You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's Cup, France is accusing the US of arrogance, and Germany doesn't want to go to war. (aus alt.jokes)
Johannes Kastl mail@ojkastl.de Sat, 14 Jun 2014 21:37:01 +0300:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Evening everybody,
I hope this is the right mailinglist, apologies if it aint.
I am trying to build lxc, using the upstream spec file, on the OBS. I succeeded in adjusting it for openSUSE-related stuff, so it builds fine.
Nevertheless, I get errors when building for Fedora:
https://build.opensuse.org/package/live_build_log/home:ojkastl_buildservice:...
During
the %install there is a mkdir command, that does not use the buildroot, and therefore exits due to missing permissions:
[ 211s] Making install in templates [ 211s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[3]: Nothing to be done for `install-exec-am'. [ 211s] /bin/mkdir -p '/usr/share/lxc/config' [ 211s] /bin/mkdir: cannot create directory '/usr/share/lxc': Permission denied
As this only happens on Fedora 19 and 20, I am puzzled. The same spec builds fine for openSUSE.
I asked on the lxc-devel mailinglist, but without a solution. Building with the original spec on Fedora seems to work fine, so it's a puzzle (at least to me) why the install part should be suddenly not using the build root...
Any hints? Tricks? Where to start solving the mystery?
Regards, Johannes
You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the Swiss hold the America's Cup, France is accusing the US of arrogance, and Germany doesn't want to go to war. (aus alt.jokes)
Hello!
`%makeinstall` is a buggy thing, try `make install INSTALL_ROOT=%{buildroot}` or `make install DESTDIR=%{buildroot}` instead. The correct variable name could be found in the MakeFile.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 14.06.2014 21:09 Dmitriy Perlow wrote:
`%makeinstall` is a buggy thing, try `make install INSTALL_ROOT=%{buildroot}` or `make install DESTDIR=%{buildroot}` instead. The correct variable name could be found in the MakeFile.
Unfortunately, at least when building locally, neither of these lines solve the error.
Regards, Johannes - -- `...a very ancient wizarding family noted for a vein of instability and violence that flourished through the generations due to their habit of merrying their own cousins.´ (Albus Dumbledore in Harry Potter and the Half-Blood Prince)
Johannes Kastl mail@ojkastl.de Sat, 14 Jun 2014 22:32:40 +0300:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 14.06.2014 21:09 Dmitriy Perlow wrote:
`%makeinstall` is a buggy thing, try `make install INSTALL_ROOT=%{buildroot}` or `make install DESTDIR=%{buildroot}` instead. The correct variable name could be found in the MakeFile.
Unfortunately, at least when building locally, neither of these lines solve the error.
Regards, Johannes
`...a very ancient wizarding family noted for a vein of instability and violence that flourished through the generations due to their habit of merrying their own cousins.´ (Albus Dumbledore in Harry Potter and the Half-Blood Prince)
Do new build logs contain the same errors? May be `%make_install` will solve it.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 14.06.2014 21:40 Dmitriy Perlow wrote:
Do new build logs contain the same errors?
Yes.
May be `%make_install` will solve it.
Unfortunately not.
Regards, Johannes - -- In the beginning there was nothing. God said, 'Let there be light!' And there was light. There was still nothing, but you could see it a whole lot better. (Ellen DeGeneres)
On Jun 15, 2014, at 20:34 , Johannes Kastl mail@ojkastl.de wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 14.06.2014 21:40 Dmitriy Perlow wrote:
Do new build logs contain the same errors?
Yes.
May be `%make_install` will solve it.
Unfortunately not.
Regards, Johannes
In the beginning there was nothing. God said, 'Let there be light!' And there was light. There was still nothing, but you could see it a whole lot better. (Ellen DeGeneres) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlOd2S0ACgkQzi3gQ/xETbJX0wCgkzEkM/lWpMZkO9yR3dMr63wI S60AoIHYCx82Grdu8WaELT4EtYWGTYys =B/41 -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
According to build log: [ 211s] /bin/mkdir -p '/usr/share/lxc/config' [ 211s] /bin/mkdir: cannot create directory '/usr/share/lxc': Permission denied [ 211s] make[3]: *** [install-templatesconfigDATA] Error 1 [ 211s] make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[2]: *** [install-am] Error 2 [ 211s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[1]: *** [install-recursive] Error 1 [ 211s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config' [ 211s] make: *** [install-recursive] Error 1 [ 211s] error: Bad exit status from /var/tmp/rpm-tmp.Pj14pK (%install)
Kanstantsin Shautsou gentoo.integer@gmail.com Tue, 17 Jun 2014 23:30:54 +0300:
On Jun 15, 2014, at 20:34 , Johannes Kastl mail@ojkastl.de wrote:
On 14.06.2014 21:40 Dmitriy Perlow wrote:
Do new build logs contain the same errors?
Yes.
May be `%make_install` will solve it.
Unfortunately not.
Regards, Johannes
According to build log:
Is so MakeFile just wrong? What do you mean?
[ 211s] /bin/mkdir -p '/usr/share/lxc/config' [ 211s] /bin/mkdir: cannot create directory '/usr/share/lxc': Permission denied [ 211s] make[3]: *** [install-templatesconfigDATA] Error 1 [ 211s] make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[2]: *** [install-am] Error 2 [ 211s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config/templates' [ 211s] make[1]: *** [install-recursive] Error 1 [ 211s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/lxc-1.0.4/config' [ 211s] make: *** [install-recursive] Error 1 [ 211s] error: Bad exit status from /var/tmp/rpm-tmp.Pj14pK (%install)
buildservice@lists.opensuse.org