The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / parted / 0003-fix-static-link-uuid.patch
1 configure: use pkg-config to find libuuid
2
3 In some conditions, libuuid may be linked with -lintl. This can be the
4 case on uClibc when locales are enabled.
5
6 When doing a shared link, this dependency is automatically pulled in via
7 a DT_NEEDED ELF tag
8
9 For a static link, there is no such mechanism to pull in dependent
10 libraries.
11
12 Currently, the check for libuuid is done with AC_CHECK_LIB, but this
13 does not handle dependencies, and thus a stattic build fails.
14
15 Use pkg-config to find libuuid, that automatically pulls in the
16 dependencies of libuuid, if any.
17
18 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
19
20 ---
21 Note: of course, that relies on the fact that libuuid installs a proper
22 .pc file; a patch will be submitted upstream shortly.
23
24 But even considering the current situation, where libuuid does not
25 provide a proper .pc file (yet), this patch does not change the
26 behaviour we've had so far; it is a bet on the future! ;-)
27
28 diff -durN parted-3.1.orig/configure.ac parted-3.1/configure.ac
29 --- parted-3.1.orig/configure.ac        2014-11-29 16:27:49.520560137 +0100
30 +++ parted-3.1/configure.ac     2014-11-29 16:32:50.799702049 +0100
31 @@ -313,16 +313,7 @@
32  AC_SUBST([DL_LIBS])
33  
34  dnl Check for libuuid
35 -UUID_LIBS=""
36 -AC_CHECK_LIB([uuid], [uuid_generate], [UUID_LIBS="-luuid"],
37 -       [AC_MSG_ERROR(dnl
38 -[GNU Parted requires libuuid - a part of the util-linux-ng package (but
39 -usually distributed separately in libuuid-devel, uuid-dev or similar)
40 -This can probably be found on your distribution's CD or FTP site or at:
41 -    http://userweb.kernel.org/~kzak/util-linux-ng/
42 -Note: originally, libuuid was part of the e2fsprogs package.  Later, it
43 -moved to util-linux-ng-2.16, and that package is now the preferred source.])])
44 -AC_SUBST([UUID_LIBS])
45 +PKG_CHECK_MODULES([UUID],[uuid])
46  
47  dnl Check for libdevmapper
48  DM_LIBS=