summaryrefslogtreecommitdiff
path: root/app-cdr/brasero
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /app-cdr/brasero
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'app-cdr/brasero')
-rw-r--r--app-cdr/brasero/Manifest3
-rw-r--r--app-cdr/brasero/brasero-3.12.3.ebuild2
-rw-r--r--app-cdr/brasero/files/brasero-3.12.2-tracker3.patch240
3 files changed, 2 insertions, 243 deletions
diff --git a/app-cdr/brasero/Manifest b/app-cdr/brasero/Manifest
index 3033ed8a2688..6ace4f6f99ce 100644
--- a/app-cdr/brasero/Manifest
+++ b/app-cdr/brasero/Manifest
@@ -1,4 +1,3 @@
-AUX brasero-3.12.2-tracker3.patch 8745 BLAKE2B a3ca65c2354bc87f7d9c9bd4ec2dce06f7a97208193a48674ffb60ace244528e9f45e25b15c768af9cf5b002db549d058433eb069ad13cee2d1a2e76afee9b69 SHA512 0595dda2259c8a1a4b005ac6d8886a1b9333102df61a24cbaf61895160395374abcb2391e487b6e98eaa441fcc3164187c451edb6ddc0c19cb1b7d12658aff1b
DIST brasero-3.12.3.tar.xz 3156012 BLAKE2B e657f29719164b786e29a4974102cf6b0eb3316bec84a08838bd62b952c43994e0187f6cfeaa5080fa794b1ff1684553a3d643cd309b2957a8d4191c7ea8cfbf SHA512 0e3c97b2a754f7178207db390e33b832fcaed3856ae5dee447e5c26d712728302dbebbf839a4fb7565f63b3ebb1e4936e20739482a8114e6fe2700805659270a
-EBUILD brasero-3.12.3.ebuild 1812 BLAKE2B 0cf25cdeb704e7008c5e7b653800e5fa43bfa988b7115e0ec7dea3e5d4bc7c094108a1284cd47700bb6db3d5b2600ddbe55fc22ea4d7a2552206fd0af0ff37e9 SHA512 2e6a695e1796ab9aeb6e5835a4f93b3450da99b5e77a965127558507c77a46c98aaf11992d7d08bc2dc47907ecb060e0f06b73c61dab10e6cddf17706a46df3e
+EBUILD brasero-3.12.3.ebuild 1811 BLAKE2B 84e138caf14fea363de23817d23c7ab47719f0c2b22613f5cbc4dda3e4e4ce5d989d932146b798bd6861ab600d4bce24aeadb46b40ff64808ae14b81149d8100 SHA512 d49cba2dc1d4c0e0bf3d6ca5e48914bd7cb05178614c44553debe7cdc1914831016e2aaef6d744c0082406a0a89272e86965e26a0ed54f73176060b0ebe429ae
MISC metadata.xml 642 BLAKE2B 7ac9b4e7b0568b7d608eee9280b15f04218e931daac55cc6fcbafbc01fdc4bc0fcc3631403f25451dc13f07854eb366e2028903be22d8740cc9d0e1ed9074c9e SHA512 7f5c7b80d484710f9dcecd6266331054a90789f0c5e4942b0f26d6da861bdcd754f495d505562bce8a5fcf70e59f57cf54e1ab2ef521798b213eee4d2dbe2b4f
diff --git a/app-cdr/brasero/brasero-3.12.3.ebuild b/app-cdr/brasero/brasero-3.12.3.ebuild
index 5a4f2299021b..2bddf575a50f 100644
--- a/app-cdr/brasero/brasero-3.12.3.ebuild
+++ b/app-cdr/brasero/brasero-3.12.3.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Brasero"
LICENSE="GPL-2+ CC-BY-SA-3.0"
SLOT="0/3.1" # subslot is 3.suffix of libbrasero-burn3
IUSE="+css +introspection +libburn mp3 nautilus playlist tracker"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86"
DEPEND="
>=dev-libs/glib-2.29.14:2
diff --git a/app-cdr/brasero/files/brasero-3.12.2-tracker3.patch b/app-cdr/brasero/files/brasero-3.12.2-tracker3.patch
deleted file mode 100644
index 7a98f336cc14..000000000000
--- a/app-cdr/brasero/files/brasero-3.12.2-tracker3.patch
+++ /dev/null
@@ -1,240 +0,0 @@
-From ca0d487aac3b9cf21e520a00b94cb3eaf833b9a3 Mon Sep 17 00:00:00 2001
-From: Carlos Garnacho <carlosg@gnome.org>
-Date: Thu, 24 Dec 2020 12:19:49 +0100
-Subject: [PATCH 1/5] Obtain TrackerSparqlConnection in a single point
-
-The is_available vmethod tries to create a connection if it's not
-there. But the BraseroSearchTracker initialization already tries to
-obtain the SPARQL connection. Let this method return wether
-initialiation was successful.
----
- src/brasero-search-tracker.c | 6 ------
- 1 file changed, 6 deletions(-)
-
-diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
-index fe7be2bd..f8c29c0d 100644
---- a/src/brasero-search-tracker.c
-+++ b/src/brasero-search-tracker.c
-@@ -56,12 +56,6 @@ brasero_search_tracker_is_available (BraseroSearchEngine *engine)
- BraseroSearchTrackerPrivate *priv;
-
- priv = BRASERO_SEARCH_TRACKER_PRIVATE (engine);
-- GError *error = NULL;
-- if (priv->connection)
-- return TRUE;
--
-- priv->cancellable = g_cancellable_new ();
-- priv->connection = tracker_sparql_connection_get (priv->cancellable, &error);
- return (priv->connection != NULL);
- }
-
---
-GitLab
-
-
-From c0dace005ec34b345845aacd1f929fd618b199af Mon Sep 17 00:00:00 2001
-From: Carlos Garnacho <carlosg@gnome.org>
-Date: Thu, 24 Dec 2020 12:37:13 +0100
-Subject: [PATCH 2/5] Fix ORDER BY clauses in Tracker search
-
-The ?urn variable is not defined anywhere else in the query, so
-ordering is left undefined. Access the url/filename properly here.
----
- src/brasero-search-tracker.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
-index f8c29c0d..94085070 100644
---- a/src/brasero-search-tracker.c
-+++ b/src/brasero-search-tracker.c
-@@ -307,7 +307,7 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
- g_string_append (query, ")");
-
- g_string_append (query,
-- "} ORDER BY DESC(nie:url(?urn)) DESC(nfo:fileName(?urn))");
-+ "} ORDER BY DESC(?url) DESC(nfo:fileName(?file))");
-
- tracker_sparql_connection_query_async (priv->connection,
- query->str,
---
-GitLab
-
-
-From f7181445bf9c88b7fab1bb5237d602b491694a9e Mon Sep 17 00:00:00 2001
-From: Carlos Garnacho <carlosg@gnome.org>
-Date: Thu, 24 Dec 2020 13:04:03 +0100
-Subject: [PATCH 3/5] Only use fts:rank with FTS searches
-
-This fixes two things:
-- The use of fts:match depends on priv->keywords being set, but
- fts:rank() has undefined behavior if fts:match is not present.
- Its value is returned in the cursor, but fortunately unused,
- so it can go away.
-
-- Fixes "garbage" being added at the end of the query, concretely
- ") } ORDER BY ... " is appended at the supposed end of the query
- string. Older SPARQL parser implementations would allow garbage
- at the end of its parsing state, I suspect "LIMIT 0 OFFSET 10000"
- was just a mean to push it to that state that it'd allow the
- remaining string, so that is gone too.
----
- src/brasero-search-tracker.c | 21 +++++++++------------
- 1 file changed, 9 insertions(+), 12 deletions(-)
-
-diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
-index 94085070..ae1d388a 100644
---- a/src/brasero-search-tracker.c
-+++ b/src/brasero-search-tracker.c
-@@ -234,7 +234,7 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
-
- priv = BRASERO_SEARCH_TRACKER_PRIVATE (search);
-
-- query = g_string_new ("SELECT ?file ?url ?mime fts:rank(?file) " /* Which variables should be returned */
-+ query = g_string_new ("SELECT ?file ?url ?mime " /* Which variables should be returned */
- "WHERE {" /* Start defining the search and its scope */
- " ?file a nfo:FileDataObject . " /* File must be a file (not a stream, ...) */
- " ?file nie:url ?url . " /* Get the url of the file */
-@@ -293,21 +293,18 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
- " ) ");
- }
-
-- if (priv->keywords)
-+ if (priv->keywords) {
- g_string_append_printf (query,
- " ?file fts:match \"%s\" ", /* File must match possible keywords */
- priv->keywords);
-
-- g_string_append (query,
-- " } "
-- "ORDER BY ASC(fts:rank(?file)) "
-- "OFFSET 0 "
-- "LIMIT 10000");
--
-- g_string_append (query, ")");
--
-- g_string_append (query,
-- "} ORDER BY DESC(?url) DESC(nfo:fileName(?file))");
-+ g_string_append (query,
-+ " } "
-+ "ORDER BY ASC(fts:rank(?file))");
-+ } else {
-+ g_string_append (query,
-+ "} ORDER BY DESC(?url) DESC(nfo:fileName(?file))");
-+ }
-
- tracker_sparql_connection_query_async (priv->connection,
- query->str,
---
-GitLab
-
-
-From ede7758e2fae487d57be641a120c4c02bfd249f1 Mon Sep 17 00:00:00 2001
-From: Carlos Garnacho <carlosg@gnome.org>
-Date: Thu, 24 Dec 2020 13:15:21 +0100
-Subject: [PATCH 4/5] Observe nfo:FileDataObject/nie:InformationElement split
-
-These resources are interpreted differently in Tracker 3.0 compared
-to older versions, the newer version makes those 2 different resources
-(one representing the "file", other the "content) that relate to each
-other. In older tracker versions, these 2 aspects were conflated in
-a single resource.
-
-The query is implicitly crossing that barrier, so make it explicit.
-With this change, the query may run with either version.
----
- src/brasero-search-tracker.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
-index ae1d388a..9aa06289 100644
---- a/src/brasero-search-tracker.c
-+++ b/src/brasero-search-tracker.c
-@@ -238,7 +238,8 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
- "WHERE {" /* Start defining the search and its scope */
- " ?file a nfo:FileDataObject . " /* File must be a file (not a stream, ...) */
- " ?file nie:url ?url . " /* Get the url of the file */
-- " ?file nie:mimeType ?mime . "); /* Get its mime */
-+ " ?file nie:mimeType ?mime . " /* Get its mime */
-+ " ?content nie:isStoredAs ?file . "); /* Get the resource representing the content */
-
- if (priv->mimes) {
- int i;
-@@ -259,7 +260,7 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
- gboolean param_added = FALSE;
-
- g_string_append (query,
-- " ?file a ?type . "
-+ " ?content a ?type . "
- " FILTER ( ");
-
- if (priv->scope & BRASERO_SEARCH_SCOPE_MUSIC) {
---
-GitLab
-
-
-From 05589be7da3a0dfb00617df049d129abba703c36 Mon Sep 17 00:00:00 2001
-From: Carlos Garnacho <carlosg@gnome.org>
-Date: Thu, 24 Dec 2020 13:22:43 +0100
-Subject: [PATCH 5/5] Support Tracker 3.0
-
-Add the compile-time checks, and add the minimal code catering for
-the API changes. In 3.0 connections are no longer singletons.
----
- configure.ac | 6 +++++-
- src/brasero-search-tracker.c | 8 ++++++++
- 2 files changed, 13 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index d0c7a870..96afc551 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -388,7 +388,7 @@ AC_ARG_ENABLE(search,
- if test x"$enable_search" != "xno"; then
- # Try to figure out the tracker API version to use
- tracker_api="0.10"
-- m4_foreach([VERSION], [[0.10], [0.12], [0.14], [0.16], [0.18], [1.0], [2.0]],
-+ m4_foreach([VERSION], [[0.10], [0.12], [0.14], [0.16], [0.18], [1.0], [2.0], [3.0]],
- [PKG_CHECK_EXISTS([tracker-sparql-VERSION >= $TRACKER_REQUIRED],
- [tracker_api="VERSION"])
- ])
-@@ -408,6 +408,10 @@ if test x"$enable_search" = "xyes"; then
- AC_SUBST(BRASERO_SEARCH_LIBS)
- build_tracker="yes"
- build_search="yes"
-+
-+ if test x"$tracker_api" = x"3.0"; then
-+ AC_DEFINE(HAVE_TRACKER3, 1, [define if tracker3 is available])
-+ fi
- else
- build_search="no"
- fi
-diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
-index 9aa06289..40c5f1ac 100644
---- a/src/brasero-search-tracker.c
-+++ b/src/brasero-search-tracker.c
-@@ -17,6 +17,8 @@
- * with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-+#include "config.h"
-+
- #include <stdlib.h>
-
- #include <libtracker-sparql/tracker-sparql.h>
-@@ -444,7 +446,13 @@ brasero_search_tracker_init (BraseroSearchTracker *object)
-
- priv = BRASERO_SEARCH_TRACKER_PRIVATE (object);
- priv->cancellable = g_cancellable_new ();
-+
-+#ifdef HAVE_TRACKER3
-+ priv->connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker3.Miner.Files",
-+ NULL, NULL, &error);
-+#else
- priv->connection = tracker_sparql_connection_get (priv->cancellable, &error);
-+#endif
-
- if (error) {
- g_warning ("Could not establish a connection to Tracker: %s", error->message);
---
-GitLab
-