diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-04-09 23:48:26 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-04-09 23:48:26 +0000 |
commit | 9f384889d7452b716a6894cc0aa8c2a8a96e96ef (patch) | |
tree | 68e9cd492acd26aca49725943b47324da8a851b5 /sys-fs/lvm2/files | |
parent | Bug #358847 - Remove virtual/portage PROVIDE since it's been replaced by (diff) | |
download | gentoo-2-9f384889d7452b716a6894cc0aa8c2a8a96e96ef.tar.gz gentoo-2-9f384889d7452b716a6894cc0aa8c2a8a96e96ef.tar.bz2 gentoo-2-9f384889d7452b716a6894cc0aa8c2a8a96e96ef.zip |
Bug #361429: Use pkg-config libudev to get libudev libraries, so that -lrt is brought in for linking correctly with new udev.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/lvm2/files')
-rw-r--r-- | sys-fs/lvm2/files/lvm2-2.02.84-udev-pkgconfig.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-fs/lvm2/files/lvm2-2.02.84-udev-pkgconfig.patch b/sys-fs/lvm2/files/lvm2-2.02.84-udev-pkgconfig.patch new file mode 100644 index 000000000000..d371ddd343f6 --- /dev/null +++ b/sys-fs/lvm2/files/lvm2-2.02.84-udev-pkgconfig.patch @@ -0,0 +1,25 @@ +diff -Nuar LVM2.2.02.84.orig/configure.in LVM2.2.02.84/configure.in +--- LVM2.2.02.84.orig/configure.in 2011-02-04 22:17:54.000000000 +0000 ++++ LVM2.2.02.84/configure.in 2011-04-09 23:42:27.134617541 +0000 +@@ -803,9 +803,18 @@ + AC_MSG_RESULT($UDEV_SYNC) + + if test x$UDEV_SYNC = xyes; then +- AC_CHECK_LIB(udev, udev_queue_get_udev_is_active, +- [UDEV_PC="libudev"; UDEV_LIBS="-ludev"], +- [AC_MSG_ERROR([bailing out... libudev library is required])]) ++ if test x$PKGCONFIG_INIT != x1; then ++ pkg_config_init ++ fi ++ PKG_CHECK_MODULES(UDEV, libudev, [UDEV_PC="libudev" HAVE_UDEV=yes], ++ [NOTFOUND=0 ++ AC_CHECK_HEADERS(libudev.h,,$bailout) ++ check_lib_no_libs udev udev_queue_get_udev_is_active ++ if test $NOTFOUND = 0; then ++ AC_CHECK_LIB(udev, udev_queue_get_udev_is_active, ++ [UDEV_PC="libudev"; UDEV_LIBS="-ludev"], ++ [AC_MSG_ERROR([bailing out... libudev library is required])]) ++ fi]) + AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) + fi + |