[lxc-devel] Compilation fails under Centos 7

Michael H. Warfield mhw at WittsEnd.com
Tue Sep 9 16:06:59 UTC 2014


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?

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/4731bb39/attachment.sig>


More information about the lxc-devel mailing list