perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / desktop / tracker / patches / 02-uuid-pc-check.patch
blob8a0db4e2d58c87cee5a7bf2eca0d8ecb410b2105
1 Solaris libuuid doesn't deliver a pkg-config file yet; see bug 15586738.
2 So this manually detects and adds the necessary flags to use Solaris
3 libuuid.
5 Not appropiate for upstream.
6 --- tracker-1.4.0/configure.ac 2015-03-24 11:10:45.000000000 -0700
7 +++ tracker-1.4.0/configure.ac 2015-07-08 18:16:29.123676097 -0700
8 @@ -274,15 +274,27 @@
9 ;;
10 esac
12 +AC_SEARCH_LIBS([uuid_generate], [uuid], [have_libuuid=yes], [have_libuuid=no])
13 +if test "x$have_libuuid" = "xyes"; then
14 + AC_SEARCH_LIBS([uuid_unparse], [uuid], [have_libuuid=yes], [have_libuuid=no])
15 + if test "x$have_libuuid" = "xyes"; then
16 + AC_DEFINE(HAVE_LIBUUID, [], [Define if we have libuuid])
17 + fi
18 +fi
20 # Check requirements for libtracker-data
21 LIBTRACKER_DATA_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
22 gio-unix-2.0 >= $GLIB_REQUIRED
23 - sqlite3 >= $SQLITE_REQUIRED
24 - uuid"
25 + sqlite3 >= $SQLITE_REQUIRED"
26 PKG_CHECK_MODULES(LIBTRACKER_DATA, [$LIBTRACKER_DATA_REQUIRED])
28 LIBTRACKER_DATA_LIBS="$LIBTRACKER_DATA_LIBS -lz -lm"
30 +if test "x$have_libuuid" = "xyes"; then
31 + LIBTRACKER_DATA_CFLAGS="$LIBTRACKER_DATA_CFLAGS -I/usr/include/uuid"
32 + LIBTRACKER_DATA_LIBS="$LIBTRACKER_DATA_LIBS -luuid"
33 +fi
35 # Check requirements for libtracker-direct
36 LIBTRACKER_DIRECT_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
37 gio-unix-2.0 >= $GLIB_REQUIRED"
38 @@ -317,18 +327,26 @@
40 # Check requirements for libtracker-sparql
41 LIBTRACKER_SPARQL_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
42 - gio-unix-2.0 >= $GLIB_REQUIRED
43 - uuid"
44 + gio-unix-2.0 >= $GLIB_REQUIRED"
46 PKG_CHECK_MODULES(LIBTRACKER_SPARQL, [$LIBTRACKER_SPARQL_REQUIRED])
48 +if test "x$have_libuuid" = "xyes"; then
49 + LIBTRACKER_SPARQL_CFLAGS="$LIBTRACKER_SPARQL_CFLAGS -I/usr/include/uuid"
50 + LIBTRACKER_SPARQL_LIBS="$LIBTRACKER_SPARQL_LIBS -luuid"
51 +fi
53 # Check requirements for tracker-control
54 TRACKER_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
55 - gio-unix-2.0 >= $GLIB_REQUIRED
56 - uuid"
57 + gio-unix-2.0 >= $GLIB_REQUIRED"
59 PKG_CHECK_MODULES(TRACKER, [$TRACKER_REQUIRED])
61 +if test "x$have_libuuid" = "xyes"; then
62 + TRACKER_CFLAGS="$TRACKER_CFLAGS -I/usr/include/uuid"
63 + TRACKER_LIBS="$TRACKER_LIBS -luuid"
64 +fi
66 # Check requirements for tracker-resdump
67 TRACKER_RESDUMP_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
68 gee-0.8 >= $GEE_REQUIRED"