diff options
author | dudemanguy | 2019-12-04 11:32:10 -0600 |
---|---|---|
committer | dudemanguy | 2019-12-04 11:32:10 -0600 |
commit | b4910cb46cf8935ad9523a0ccf8f22146170d2ed (patch) | |
tree | 4f28280d273d340bfd21fa87bb365a462eec6efb | |
parent | 26310f89e3d8635032d604ff4346ad6e6f36ccc9 (diff) | |
download | aur-b4910cb46cf8935ad9523a0ccf8f22146170d2ed.tar.gz |
2.62.3-2
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | glib-thumbnailer.patch | 36 |
3 files changed, 21 insertions, 23 deletions
@@ -1,7 +1,7 @@ pkgbase = glib2-patched-thumbnailer pkgdesc = GLib2 patched with ahodesuka's thumbnailer patch. pkgver = 2.62.3 - pkgrel = 1 + pkgrel = 2 url = https://gist.github.com/Dudemanguy911/d199759b46a79782cc1b301649dec8a5 arch = x86_64 license = LGPL2.1 @@ -35,7 +35,7 @@ pkgbase = glib2-patched-thumbnailer sha256sums = 81a4df0b638730cffb7fa263c04841f7ca6b9c9578ee5045db6f30ff0c3fc531 sha256sums = e1123a5d85d2445faac33f6dae1085fdd620d83279a4e130a83fe38db52b62b3 sha256sums = 5ba204a2686304b1454d401a39a9d27d09dd25e4529664e3fd565be3d439f8b6 - sha256sums = 9ea789788962a941af83b99949ddc21d7d19d820f2170f58691ca83e53afb158 + sha256sums = 9f055d2a4f3fa08a7f0ca9f233a0ca6925247f572fb6873af7ac1e1f43f23d74 pkgname = glib2-patched-thumbnailer @@ -4,7 +4,7 @@ pkgname=glib2-patched-thumbnailer pkgver=2.62.3 -pkgrel=1 +pkgrel=2 pkgdesc="GLib2 patched with ahodesuka's thumbnailer patch." url="https://gist.github.com/Dudemanguy911/d199759b46a79782cc1b301649dec8a5" arch=(x86_64) @@ -27,7 +27,7 @@ sha256sums=('SKIP' '81a4df0b638730cffb7fa263c04841f7ca6b9c9578ee5045db6f30ff0c3fc531' 'e1123a5d85d2445faac33f6dae1085fdd620d83279a4e130a83fe38db52b62b3' '5ba204a2686304b1454d401a39a9d27d09dd25e4529664e3fd565be3d439f8b6' - '9ea789788962a941af83b99949ddc21d7d19d820f2170f58691ca83e53afb158') + '9f055d2a4f3fa08a7f0ca9f233a0ca6925247f572fb6873af7ac1e1f43f23d74') pkgver() { cd glib diff --git a/glib-thumbnailer.patch b/glib-thumbnailer.patch index 0d00eafecf31..87ead82363e7 100644 --- a/glib-thumbnailer.patch +++ b/glib-thumbnailer.patch @@ -1,9 +1,9 @@ diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c -index f46d4d6db..20b57f741 100644 +index 487f8cc1a..b0e6db728 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c -@@ -64,6 +64,12 @@ - #endif +@@ -66,6 +66,12 @@ + #include "glib-private.h" #include "thumbnail-verify.h" +#ifdef HAVE_DBUS1 @@ -15,24 +15,24 @@ index f46d4d6db..20b57f741 100644 #ifdef G_OS_WIN32 #include <windows.h> -@@ -101,6 +107,16 @@ struct ThumbMD5Context { +@@ -103,6 +109,16 @@ struct ThumbMD5Context { unsigned char in[64]; }; +#ifdef FREEDESKTOP_THUMBNAILER +typedef struct +{ -+ GMainLoop *mainloop; -+ guint32 handle; -+ gboolean success; -+ const char *error_message; ++ GMainLoop *mainloop; ++ guint32 handle; ++ gboolean success; ++ const char *error_message; +} ThumbnailerState; +#endif /* FREEDESKTOP_THUMBNAILER */ + #ifndef G_OS_WIN32 typedef struct { -@@ -1307,16 +1323,132 @@ get_content_type (const char *basename, +@@ -1355,16 +1371,130 @@ get_content_type (const char *basename, } @@ -52,13 +52,11 @@ index f46d4d6db..20b57f741 100644 + if (g_strcmp0 (signal_name, "Error") == 0) + { + g_variant_get (parameters, "(uasis)", &signal_handle, NULL, NULL, &state->error_message); -+ //g_assert (signal_handle == state->handle); + state->success = FALSE; + } + else if (g_strcmp0 (signal_name, "Ready") == 0) + { + g_variant_get (parameters, "(u^as)", &signal_handle, &uris); -+ //g_assert (signal_handle == state->handle); + state->success = TRUE; + } + else if (g_strcmp0 (signal_name, "Finished") == 0) @@ -90,7 +88,6 @@ index f46d4d6db..20b57f741 100644 + NULL, + NULL, + &error); -+ g_assert_no_error (error); + + proxy = g_dbus_proxy_new_sync (connection, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, @@ -114,7 +111,7 @@ index f46d4d6db..20b57f741 100644 + + g_main_context_push_thread_default (thread_context); + result = g_dbus_proxy_call_sync (proxy, -+ "Queue", ++ "Queue", + g_variant_new("(^as^asssu)", + uris, + mime_types, @@ -150,6 +147,7 @@ index f46d4d6db..20b57f741 100644 +} +#endif /* FREEDESKTOP_THUMBNAILER */ + ++ /* @stat_buf is the pre-calculated result of stat(path), or %NULL if that failed. */ static void get_thumbnail_attributes (const char *path, @@ -166,7 +164,7 @@ index f46d4d6db..20b57f741 100644 uri = g_filename_to_uri (path, NULL, NULL); -@@ -1335,6 +1467,7 @@ get_thumbnail_attributes (const char *path, +@@ -1383,6 +1513,7 @@ get_thumbnail_attributes (const char *path, _g_file_info_set_attribute_byte_string_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_PATH, filename); _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_IS_VALID, thumbnail_verify (filename, uri, stat_buf)); @@ -174,7 +172,7 @@ index f46d4d6db..20b57f741 100644 } else { -@@ -1348,6 +1481,7 @@ get_thumbnail_attributes (const char *path, +@@ -1396,6 +1527,7 @@ get_thumbnail_attributes (const char *path, _g_file_info_set_attribute_byte_string_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_PATH, filename); _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_IS_VALID, thumbnail_verify (filename, uri, stat_buf)); @@ -182,7 +180,7 @@ index f46d4d6db..20b57f741 100644 } else { -@@ -1363,9 +1497,32 @@ get_thumbnail_attributes (const char *path, +@@ -1411,9 +1543,32 @@ get_thumbnail_attributes (const char *path, _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAILING_FAILED, TRUE); _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_IS_VALID, thumbnail_verify (filename, uri, stat_buf)); @@ -215,7 +213,7 @@ index f46d4d6db..20b57f741 100644 g_free (basename); g_free (filename); g_free (uri); -@@ -1725,6 +1882,18 @@ _g_local_file_info_get (const char *basename, +@@ -1767,6 +1922,18 @@ _g_local_file_info_get (const char *basename, info = g_file_info_new (); @@ -234,7 +232,7 @@ index f46d4d6db..20b57f741 100644 /* Make sure we don't set any unwanted attributes */ g_file_info_set_attribute_mask (info, attribute_matcher); -@@ -1865,7 +2034,9 @@ _g_local_file_info_get (const char *basename, +@@ -1901,7 +2068,9 @@ _g_local_file_info_get (const char *basename, _g_file_attribute_matcher_matches_id (attribute_matcher, G_FILE_ATTRIBUTE_ID_STANDARD_ICON) || _g_file_attribute_matcher_matches_id (attribute_matcher, @@ -245,7 +243,7 @@ index f46d4d6db..20b57f741 100644 { char *content_type = get_content_type (basename, path, stat_ok ? &statbuf : NULL, is_symlink, symlink_broken, flags, FALSE); -@@ -1982,9 +2153,9 @@ _g_local_file_info_get (const char *basename, +@@ -2018,9 +2187,9 @@ _g_local_file_info_get (const char *basename, G_FILE_ATTRIBUTE_ID_THUMBNAILING_FAILED)) { if (stat_ok) |