[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#28913] [PATCH 2/2] gnu: Add criu.

From: Ricardo Wurmus
Subject: [bug#28913] [PATCH 2/2] gnu: Add criu.
Date: Mon, 23 Oct 2017 08:07:30 +0200
User-agent: mu4e 0.9.18; emacs 25.3.1

Ludovic Courtès <address@hidden> writes:

> Ricardo Wurmus <address@hidden> skribis:
>> * gnu/packages/virtualization.scm (criu): New variable.
> [...]
>> +         (replace 'configure
>> +           (lambda* (#:key inputs #:allow-other-keys)
>> +             ;; The includes for libnl are located in a sub-directory.
>> +             (setenv "C_INCLUDE_PATH"
>> +                     (string-append (assoc-ref inputs "libnl")
>> +                                    "/include/libnl3:"
>> +                                    (getenv "C_INCLUDE_PATH")))
> And there’s no libnet.pc or similar to provide the right -I flag?

There is a libnl-3.0.pc file with these contents:

--8<---------------cut here---------------start------------->8---

Name: libnl
Description: Convenience library for netlink sockets
Version: 3.4.0
Libs: -L${libdir} -lnl-3
Cflags: -I${includedir}/libnl3
--8<---------------cut here---------------end--------------->8---

That’s not enough, though, to find header files included by other libnl
headers.  Without the setenv snippet above compilation fails with this

--8<---------------cut here---------------start------------->8---
In file included from criu/libnetlink.c:5:0:
 fatal error: netlink/netlink.h: No such file or directory
compilation terminated.
--8<---------------cut here---------------end--------------->8---

>> +    (synopsis "Checkpoint and restore in userspace")
> “user space” (two words)?

Okay. Thanks for reviewing these patches!


GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]