| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
The whole set of tracker_miner_fs_add_directory_without_parent(),
tracker_miner_fs_directory_add(), directory_remove() and
directory_remove_full() are all covered by TrackerIndexingTree and
basically unused, except for code in examples/.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There's a few changes here:
- The 2 vmethods are now given a GTask, its cancellable is to be
used if the handling goes async.
- tracker_miner_fs_file_notify() has changed into a more generic
tracker_miner_fs_notify_finish() method, that takes such GTask
and completes it.
- The vmethods are no longer given a TrackerSparqlBuilder, instead
they are expected to create the SPARQL through whatever mean is
most fit. The sparql is given in the tracker_miner_fs_notify_finish()
func. This opens the door to TrackerMinerFS implementations using
TrackerResource.
The intent is 1) Pass something to these vmethods that the user
can't forge or mess with, as matching on GFile relies that it's the
same pointer that it was given in the vmethods. And 2) Make the finish()
function more generic to be fit to other methods going async.
|
|
|
|
|
|
|
| |
It's been deprecated for a long time, it stands in the middle of
detaching TrackerMiner from DBus, and it's one less piece of
ontology-dependent libtracker-miner code. Enough reasons to
finally remove this.
|
|
|
|
|
|
|
| |
This is useful for people who are not building from Git but still want
to avoid Autotools.
See: https://mail.gnome.org/archives/desktop-devel-list/2017-April/msg00091.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See <http://mesonbuild.com/> for information about Meson.
Remaining issues:
* There's no `make dist` equivalent. We currently produce release
tarballs containing the output files of the Vala compiler. We need
to think through whether we can stop doing that. Shipping the
generated .c files does make the Vala preprocessor useless so
it would be good if we can stop.
* The Firefox, Thunderbird, Evolution and Nautilus plugins are not
built
* https://github.com/mesonbuild/meson/issues/671 -- means we can't
depend on tracker_common_dep in most places and have to manually
set link_with, include_directories and sources instead.
* https://github.com/mesonbuild/meson/issues/1469 -- without this we
have to install generated Vala headers using a script
* https://github.com/mesonbuild/meson/issues/1229 -- means adding
the #include guard to libtracker-sparql/tracker-generated-no-checks.h
is a pain
* The test suite has some spurious failures.
Here's a rough speed comparison.
Meson:
time sh -c 'meson .. --prefix=/opt/tracker-meson -D bash_completion=/opt/tracker-meson/share/bash-completion -Dsystemd_user_services=/opt/tracker-meson/lib/systemd/user -Ddbus_services=/opt/tracker-meson/share/dbus-1/services && ninja-build -j 4 && ninja-build install'
real 1m8.194s
user 2m16.962s
sys 0m20.532s
Autotools:
time sh -c './configure --prefix=/opt/tracker-autotools --with-bash-completion-dir=/opt/tracker-autotools/share/bash-completion --with-session-bus-services-dir=/opt/tracker-autotools/share/dbus-1/services --disable-nautilus-extension && make -j 4 && make install'
real 2m37.750s
user 4m37.214s
sys 0m54.806s
Plus 30+ seconds of ./autogen.sh first.
Note that Meson builds may fail if your source tree has generated files
from an Autotools build in there. If you see errors about duplicate
definitions, first try cleaning your source tree (use `git clean -dfx`,
but make sure you commit any work first!!)
|
|
|
|
| |
Coverity ID: 1188420
|
|
|
|
|
|
| |
Another one.
Coverity ID: 1188470
|
|
|
|
|
|
|
| |
It is unlikely to receive errors on queries there, but still this is an
example, so better be correct there.
Coverity ID: 1188420
|
|
|
|
|
|
| |
The cursor will be NULL in the error paths, no need to try to unref it.
Coverity ID: 1188470
|
|
|
|
| |
The code didn't work at all due to API changes in libtracker-miner.
|
| |
|
|
|
|
|
|
| |
We don't want people copying this code and then having linking problems and
3rd party apps using libtracker-sparql shouldn't be depending on internal
functions or libraries like libtracker-common.
|
|
|
|
|
|
| |
This works by using G_BUS_TYPE_SESSION if the env var TRACKER_BUS_TYPE is not
set and will allow for "system" to be used as a value. If it is set, the
system bus is used instead.
|
|
|
|
| |
@modulesdir@
|
| |
|
|
|
|
|
|
|
| |
Don't install libtracker-extract system-wide and don't generate any
introspection data.
This is a follow-up commit to 60fdc9b900ae1c66a65721c8314e8cc3358ca461
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We imported Makefile.decl from glib when it was using Subversion, a long time
ago. The script had a few issues (like running all unit tests twice on make
distcheck) and needed to be updated.
I've stolen a latest version from GLib's glib.mk and also their m4 macros
which are required to make this all work too.
This gives us the advantage of defining installable and uninstallable test
cases as well as test data, scripts and other useful stuff.
The debug output also looks quite good.
And distcheck passes :)
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=709703
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=709703
|
| |
|
| |
|
|
|
|
| |
This is not returned as a new reference.
|
|
|
|
|
|
| |
Calling g_thread_init with GLib 2.31 requires explicit dependency on
gthread-2.0. However, g_type_init initializes threads since GLib 2.24,
so it is no longer needed.
|
| |
|
| |
|
|
|
|
|
| |
This was causing the MP3 extractor to be used even if the MP3 rules file was
removed because the mockup uses a similar configuration
|
|
|
|
|
| |
Miner and Async query are not working as expected yet, but the code
should be correct.
|
|
|
|
|
|
|
|
|
| |
Plugin loading in threads may be problematic in certain environments.
As we do not currently support external plugins anyway, this changes
libtracker-bus and libtracker-direct to be part of libtracker-sparql.
This will also slightly improve initialization performance.
Fixes NB#241659.
|
| |
|
| |
|
|
|
|
| |
Also fixed mockup example to use new APIs
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
They were deprecated 13 months ago.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
Also standardise the width to 55 characters (unless line is longer)
|
| |
|
| |
|
| |
|