[lxc-devel] Compilation fails under Centos 7
Michael H. Warfield
mhw at WittsEnd.com
Tue Sep 9 16:55:55 UTC 2014
On Tue, 2014-09-09 at 12:21 -0400, Stéphane Graber wrote:
> On Tue, Sep 09, 2014 at 12:06:59PM -0400, Michael H. Warfield wrote:
> > On Fri, 2014-09-05 at 13:16 -0400, CDR wrote:
> > > I do a "make rpm" after a ./configure but:
> > >
> > > Processing files: lxc-debuginfo-1.1.0-0.1.alpha1.el7.centos.x86_64
> > > Provides: lxc-debuginfo = 1.1.0-0.1.alpha1.el7.centos
> > > lxc-debuginfo(x86-64) = 1.1.0-0.1.alpha1.el7.centos
> > > Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1
> > > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <=
> > > 3.0.4-1
> > > Checking for unpackaged file(s): /usr/lib/rpm/check-files
> > > /root/rpmbuild/BUILDROOT/lxc-1.1.0-0.1.alpha1.el7.centos.x86_64
> > > error: Installed (but unpackaged) file(s) found:
> > > /usr/lib/systemd/system/lxc-net.service
> >
> > > RPM build errors:
> > > File listed twice: /usr/libexec/lxc/lxc-autostart-helper
> > > File listed twice: /usr/libexec/lxc/lxc-devsetup
> > > File listed twice: /usr/libexec/lxc/lxc-user-nic
> > > Installed (but unpackaged) file(s) found:
> > > /usr/lib/systemd/system/lxc-net.service
> > > make: *** [rpm] Error 1
> >
> > This was due to a refactoring of the upstart init network code nearly a
> > month ago by someone, AFAIK, not currently on the list which created
> > some files in an incorrect location and the creation of dependencies on
> > it in the systemd code. Patches for this fax paux have been submitted
> > by me and Stéphane is currently evaluating my patch set to correct the
> > problems that were created by the earlier submission by another that
> > inadvertently broke all the rpm based systems. This was reported
> > several weeks ago and I submitted my fix, after some private discussion,
> > on 08/25.
> >
> > Please review the following thread, starting on 08/25/2014, on this list
> > for the patches and some discussion...
> >
> > > [lxc-devel] [PATCH] [v3] Integrated lxc-net service for rpm based
> > platforms.
> >
> > At the current time, 1.1.0alpha1 will not build on rpm systems using
> > "make rpm" if you have "%_unpackaged_files_terminate_build 1". Setting
> > that to zero will not help as the systemd service unit files will fail
> > to run due to the missing file.
> >
> > While the fix to include the missing file may look trivial, it's not the
> > correct answer. We're currently waiting on Stéphane but he only started
> > reviewing my patch set about a or so week ago.
> >
> > Stéphane: We need that patch set to get the rpm builds up and going
> > again. Any update?
> Sorry, been pretty busy with other things at work and I just moved to a
> new house so not much time for LXC in my spare time either...
Ah, as I enjoy the luxury of being "retired". Ha... I know the feeling
well and I feel for you. Even in "retirement", I can't find the time I
want or need to work on some of these things or I would have had the
template patches in to you a week ago.
Fortunately, June and I have not been plagued with moving (ourselves).
We have helped move our kids between houses 7 or 8 times (my youngest
son just bought a house a month ago) since I moved in with June 20 years
ago, but it's not the same thing at all. I really feel for you. And
I'm glad it's you and not me!
> I believe I'm pretty close to having something that really should work
> for everyone, I only need to fix some code duplication and then will
> send an updated patch to the list.
Excellent! Much appreciated. I'll jump on them and check them out as
soon as I see them. I'll get my template patches for CentOS, Fedora,
and OpenSUSE up in the next day or so (just finishing regression testing
the builds on my test platforms) that will include a minor change in the
OpenMandriva for that silly systemd-journald PITA 100% CPU.
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 978-7061 | mhw at WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 465 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140909/62e35b70/attachment.sig>
More information about the lxc-devel
mailing list