Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604720 - gnome-base/nautilus-3.22.2 Does not build with USE="-tracker"
Summary: gnome-base/nautilus-3.22.2 Does not build with USE="-tracker"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.22 gnome-3.22-stable
  Show dependency tree
 
Reported: 2017-01-05 07:15 UTC by Kamil Kamiński
Modified: 2017-03-16 11:11 UTC (History)
21 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (portage.txt,6.04 KB, text/plain)
2017-01-05 07:15 UTC, Kamil Kamiński
Details
Hide batch rename behind ENABLE_TRACKER ifdef (0001-Hide-batch-rename-behind-ENABLE_TRACKER-ifdef.patch,3.31 KB, patch)
2017-01-06 06:03 UTC, Jan Vesely
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Kamiński 2017-01-05 07:15:48 UTC
Created attachment 458794 [details]
emerge --info

I am using basic gnome installation, as my development machine does not need tracker, games and rest of gnomes bloatware.

Nautilus 3.22.2 however cannot be built anymore. It seems to ignore -tracker or hard require tracker-sparql dependency:

"In file included from nautilus-file-undo-operations.c:35:0:
nautilus-batch-rename-utilities.h:24:28: fatal error: tracker-sparql.h: No such file or directory
compilation terminated."
Comment 1 Marek Bartosiewicz 2017-01-05 08:35:57 UTC
I confirm the problem with compilation.
Comment 2 Kobboi 2017-01-05 12:56:27 UTC
git-bisected this issue to:

commit be12a7510090b2ec38229b6e86bc601800d2056b
Author: Alexandru Pandelea <alexandru.pandelea@gmail.com>
Date:   Sat Aug 27 19:34:08 2016 +0300

    Implement batch renaming

Logged upstream as https://bugzilla.gnome.org/show_bug.cgi?id=776898
Comment 3 Andreas Proteus 2017-01-05 13:50:51 UTC
USE="tracker" emerge -1va nautilus

Then remove crapware:
emerge -Ca tracker nautilus-tracker-tags

nautilus works fine after that.

P.S. I also did this to stop portage nagging.

:> /var/lib/portage/preserved_libs_registry
Comment 4 Mart Raudsepp gentoo-dev 2017-01-05 15:29:19 UTC
(In reply to Andreas Proteus from comment #3)
> USE="tracker" emerge -1va nautilus
> 
> Then remove crapware:
> emerge -Ca tracker nautilus-tracker-tags
> 
> nautilus works fine after that.
> 
> P.S. I also did this to stop portage nagging.
> 
> :> /var/lib/portage/preserved_libs_registry

Very bad idea.
This means you still have tracker just fine, it was preserved by portage, but you just have the library that nautilus links to.
With that bad hackery now after we fix it properly, I believe you'll still have tracker libraries installed, but because you messed with the portage file that keeps track of them, portage will never know and it'll stay there forever.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2017-01-05 21:46:32 UTC
I see that adding gnome@ as a CC on already-opened upstream bugs is useless…

I'm planning on p.masking 3.22.2. Any objections?

Cheers
Comment 6 Jan Vesely 2017-01-06 06:03:11 UTC
Created attachment 458878 [details, diff]
Hide batch rename behind ENABLE_TRACKER ifdef

This patch makes nautilus build for me. It runs OK, and rename appears greyed out when multiple files are selected. I haven't done any additional testing, though.
Comment 7 Jan Vesely 2017-01-06 06:04:42 UTC
(In reply to Rémi Cardona from comment #5)
> I see that adding gnome@ as a CC on already-opened upstream bugs is useless…
> 
> I'm planning on p.masking 3.22.2. Any objections?
> 
> Cheers

please don't, if it can be avoided. nautilus 3.22.2 fixes desktop icons in wayland session.

thanks
Comment 8 Juergen Rose 2017-01-09 16:14:37 UTC
(In reply to Jan Vesely from comment #6)
> Created attachment 458878 [details, diff] [details, diff]
> Hide batch rename behind ENABLE_TRACKER ifdef
> 
> This patch makes nautilus build for me. It runs OK, and rename appears
> greyed out when multiple files are selected. I haven't done any additional
> testing, though.

The patch seems to work for me, too.
Comment 10 Markus Walter 2017-02-06 18:07:59 UTC
(In reply to Mykyta Holubakha from comment #9)
> https://git.gnome.org/browse/nautilus/commit/?id=18d52a7

This patch solved the issue for me.
Comment 11 Andy Pettinger 2017-02-18 12:29:33 UTC
nautilus-3.22.1 removed prematurely, while this patched version of 3.22.2 has yet to enter portage tree.
Comment 12 Steffen Weber 2017-02-18 12:45:53 UTC
Workaround:

# mkdir -p /etc/portage/patches/gnome-base/nautilus-3.22.2/
# cd /etc/portage/patches/gnome-base/nautilus-3.22.2/
# curl https://git.gnome.org/browse/nautilus/patch/?id=18d52a729e7aa1878edb9c231559a6f8fbcaa492 > gentoo-bug-604720.patch
# emerge -1 nautilus
Comment 13 Mart Raudsepp gentoo-dev 2017-03-16 11:11:48 UTC
commit 1a1ed7afff728a4d53b4908be9b6106e11999633
Author: Mart Raudsepp <leio@gentoo.org>
Date:   Thu Mar 16 12:57:38 2017 +0200

    gnome-base/nautilus: bump to 3.22.3, fixing build with USE=-tracker
    
    Include the fact that USE=tracker is needed for batch renaming in metadata.xml.
    Make exempi depend specify a SLOT as 3.20 was made to post-3.22 bump.
    
    Gentoo-bug: 604720
    Package-Manager: Portage-2.3.4, Repoman-2.3.1