guix-patches
[Top][All Lists]
Advanced

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

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


From: Ludovic Courtès
Subject: [bug#28913] [PATCH 2/2] gnu: Add criu.
Date: Mon, 23 Oct 2017 09:25:32 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Ricardo Wurmus <address@hidden> skribis:

> 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:
>
> prefix=/gnu/store/qyr5m7c21a4myx5421m90yxkxav2qij7-libnl-3.4.0
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
>
> Name: libnl
> Description: Convenience library for netlink sockets
> Version: 3.4.0
> Libs: -L${libdir} -lnl-3
> Cflags: -I${includedir}/libnl3
>
>
> That’s not enough, though, to find header files included by other libnl
> headers.  Without the setenv snippet above compilation fails with this
> error:
>
> In file included from criu/libnetlink.c:5:0:
> /gnu/store/qyr5m7c21a4myx5421m90yxkxav2qij7-libnl-3.4.0/include/libnl3/netlink/attr.h:15:29:
>  fatal error: netlink/netlink.h: No such file or directory
> compilation terminated.

Could it be that ‘Cflags’ from the .pc file is not honored?

Ludo’.





reply via email to

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