| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Due to some brain fart, ellipsizing was made to cut the string the
opposite way around to the given TRACKER_ELLIPSIZING_* value. Go
for the minimal fix and fully flip the condition/strings.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was in a sorry state for some reasons:
- It was pretty oblivious to UTF-8, so it might cut the string
mid-character.
- It uses g_memdup(), which should be best avoided. See
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1928
For the former, use g_utf8_* API to count characters (which is
what we want for terminal formatting purposes). For the latter,
use g_strndup(), which is gchar* oriented and takes gsize, to
avoid vulnerabilities and incompatibilities.
|
|
|
|
| |
This ensures our TRACKER_DEBUG=help functionality always works.
|
|
|
|
|
|
|
| |
Expand the %F in strftime() to %4Y-%M-%D, otherwise for years < 1000
we end up eating digits, and producing a not quite ISO8601 string.
Fixes: https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/146
|
|
|
|
| |
These are unused in the Tracker codebase.
|
|
|
|
| |
We (now) use none of this, the code can be removed.
|
|
|
|
|
| |
We use a very limited portion of this API in the Tracker repo, throw
away the remainders.
|
|
|
|
| |
These are only exercised in tests, we can do without them.
|
| |
|
|
|
|
| |
Tracker is not a source code indexer, so we have no use for these.
|
|
|
|
| |
Copied straight from tracker-miners repo.
|
|
|
|
|
| |
This is the inverse of tracker_util_parse_dbus_uri(), that we
can build a DBus URI with.
|
|
|
|
|
|
| |
This corresponds with the package name we expect distros to use.
Fixes https://gitlab.gnome.org/GNOME/tracker/-/issues/228
|
|
|
|
| |
This outputs all queries to the console.
|
| |
|
|
|
|
| |
This was missed in the parallel-installable branch.
|
|
|
|
|
|
|
|
|
| |
Users should now use G_MESSAGES_DEBUG=Tracker to see debug messages
on the console.
The TRACKER_VERBOSITY only worked if tracker_log_init() had been called,
which can't be done when libtracker-sparql is being used from an
application outside of Tracker.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This works the same as GTK's GTK_DEBUG variable. It will
allow us to include more types of optional debugging info,
and will make the default debug output more readlable.
See https://gitlab.gnome.org/GNOME/tracker/issues/178
|
|
|
|
| |
So they can be installed in parallel with other major versions
|
| |
|
|
|
|
|
| |
FTS4 and FTS5 introduced additional syntax. These are most likely
stop words too, but we should ignore them right away.
|
|
|
|
|
|
|
|
|
|
| |
And get rid of the map file. This allows us to selectively make API
public, so we no longer need it, nor regexps. Also, add the beginning
of TRACKER_AVAILABLE_IN_* defines, so we can help with testing minor
version changes, add deprecation warnings, etc.
So far we're heading towards 3.0, all public API started using this with
TRACKER_AVAILABLE_IN_ALL, since we're bumping major version.
|
|
|
|
|
| |
The URI scheme is dbus:[system|session]?:<interface>:<path>, and allows
us to connect with endpoints in either bus, with arbitrary object paths.
|
|
|
|
|
|
| |
With the massive shuffling happening in the tracker repo, some of these
utility functions are no longer used, and even meaningless in this source
tree. Clean all this up.
|
|
|
|
|
|
|
| |
This is still used in tracker-miners.git, but it's no longer used
in tracker.git.
See: https://gitlab.gnome.org/GNOME/tracker/issues/170
|
|
|
|
|
|
|
| |
This was causing build failures on non-Linux architectures
such as Debian/Hurd.
Fixes https://gitlab.gnome.org/GNOME/tracker/issues/169
|
|
|
|
|
| |
This may help with debugging
https://gitlab.gnome.org/GNOME/tracker/issues/145.
|
|
|
|
|
|
|
|
|
|
|
| |
In order for our g_info()/g_message()/g_debug() log messages to be
handled, we need to have G_MESSAGES_DEBUG=Tracker enabled in the
environment. Previously we would enable G_MESSAGES_DEBUG=all, which
has the effect of also enabling log output from GLib/GIO and other
dependencies.
In the interests of keeping logs clean, we now require the user to
explicitly set G_MESSAGES_DEBUG=all if they want maximum debug output.
|
|
|
|
| |
It is meant to affect all relative IRIs being parsed.
|
|
|
|
| |
So that we can convert losslessly between time+offset and strings.
|
|
|
|
|
| |
As per GNOME/tracker!106 libtracker-common is now a static library, as per this
there's not point of installing it.
|
|
|
|
|
|
|
|
|
| |
Hopefully the last chapter in the "make libtracker-common static" saga...
Turn this object into a refcounted struct, as we still may end up with
multiple copies of libtracker-common in libtracker-miner, through
libtracker-sparql.so and directly as it also uses libtracker-common.
This resulted in assertions when trying to register the same type name
twice.
|
|
|
|
|
|
|
|
|
|
|
| |
I attempted this before in https://gitlab.gnome.org/GNOME/tracker/102
(commit ac856befe3), but reverted it again because it caused errors
in tracker-miners about the type TrackerDomainOntology being registered
twice.
MR https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/89
removes the TrackerDomainOntology GType from libtracker-miners-common,
then we can make this library static for real.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We were using 'link_with: libtracker-common' to link to
libtracker-common in some places, which worked around an old Meson bug.
The bug (https://github.com/mesonbuild/meson/issues/671) was fixed in
Meson 0.42 so we can now remove the workaround.
The advantage of using 'dependency: tracker_common_dep' is that
transitive dependencies are now automatically propagated. We now
probably have some redundant dependency information on some of the
libraries, but that isn't a problem.
Fixes https://gitlab.gnome.org/GNOME/tracker/issues/112
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit ac856befe3bc237b4817da0c63285d5098be4f3f.
This commit broke tracker-miners, because if we statically link
against libtracker-common then it conflicts with
libtracker-miners-common and we end up with conflicts within GType
like this:
(tracker-extract:30499): GLib-GObject-WARNING **: 17:02:03.353: cannot register existing type 'TrackerDomainOntology'
(tracker-extract:30499): GLib-GObject-WARNING **: 17:02:03.353: cannot add private field to invalid (non-instantiatable) type '<invalid>'
(tracker-extract:30499): GLib-GObject-CRITICAL **: 17:02:03.353: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(tracker-extract:30499): GLib-CRITICAL **: 17:02:03.353: g_once_init_leave: assertion 'result != 0' failed
(tracker-extract:30499): GLib-GIO-CRITICAL **: 17:02:03.353: g_initable_new_valist: assertion 'G_TYPE_IS_INITABLE (object_type)' faile
|
|
|
|
|
| |
This library is API-unstable helper code. In the Autotools build system
we only linked to it statically and didn't install it.
|
|
|
|
|
|
|
| |
This is another change needed for tracker-miners to use the GSettings
schemas from this project when its build as a subproject.
See: https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/61
|
|
|
|
|
|
| |
There was a second if() hidden in the block, meant to be a "else if".
Also drop the continues, since there's not much code afterwards in
the loop.
|
|
|
|
| |
We need to link with libkvm on OpenBSD (kvm_open, kvm_openfiles, etc.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't need to store the full path build filename
in comments in the header files.
This change was recommended by the Reproducible Builds
project.
https://reproducible-builds.org/
https://bugs.debian.org/915503
|
| |
|
|
|
|
|
|
| |
This function is no longer used, so makes no sense to test for
it. This test used to break on CI with the default docker images
because of user permissions, so this obstacle is removed.
|
|
|
|
|
| |
The old unorm_normalize() function has been deprecated. This replacement
function is available on ICU >= 4.4, so we should be fine dependency-wise.
|
| |
|
| |
|
| |
|