After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505359 - install nautilus extension in the right spot
install nautilus extension in the right spot
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Hib Eris
Evince Maintainers
: 508808 (view as bug list)
Depends on: 505331
Blocks:
 
 
Reported: 2007-12-24 05:09 UTC by Matthias Clasen
Modified: 2012-01-07 10:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (544 bytes, patch)
2007-12-24 05:10 UTC, Matthias Clasen
committed Details | Review
Patch to get extension dir from libnautilus-extension.pc (1.62 KB, patch)
2008-01-01 22:09 UTC, Brian Pepple
none Details | Review
Fix against current trunk (991 bytes, patch)
2008-01-13 14:30 UTC, Wouter Bolsterlee (uws)
committed Details | Review
0001-Respect-prefix-when-installing-nautilus-extensions.patch (1.49 KB, patch)
2011-12-15 21:40 UTC, Hib Eris
reviewed Details | Review

Description Matthias Clasen 2007-12-24 05:09:59 UTC
nautilus 2.21 looks for extensions in /usr/lib/nautilus/extensions-2.0
Comment 1 Matthias Clasen 2007-12-24 05:10:30 UTC
Created attachment 101534 [details] [review]
patch
Comment 2 Carlos Garcia Campos 2007-12-24 09:56:00 UTC
Thanks Matthias. Please commit. 
Comment 3 Brian Pepple 2008-01-01 22:09:14 UTC
Created attachment 101953 [details] [review]
Patch to get extension dir from libnautilus-extension.pc

How about using this patch instead?  That way we're not hard-coding the extension dir.
Comment 4 Matthias Clasen 2008-01-01 23:41:45 UTC
Yeah, I had considered that, but decided not to bother, since a change in the location generally goes along with an api change that warrants close inspection of the source anyway. I.e. you don't really want to blindly rebuild and install in the new location. Also, the patch adds yet more unnecessary configure goo; 
I'd just call pkg-config in the Makefile. 

Either way, not a big deal.
Comment 5 Nickolay V. Shmyrev 2008-01-12 13:22:48 UTC
*** Bug 508808 has been marked as a duplicate of this bug. ***
Comment 6 Nickolay V. Shmyrev 2008-01-12 13:26:07 UTC
I'm for a second patch actually
Comment 7 Nickolay V. Shmyrev 2008-01-13 14:17:28 UTC
But applied first, it's really simplier. Thanks a lot to all.
Comment 8 Wouter Bolsterlee (uws) 2008-01-13 14:27:04 UTC
I don't agree. We should have a decent fix, not a simpler happens-to-work fix. If API changes the build will break anyway, so it won't go unnotices if that happens.
Comment 9 Wouter Bolsterlee (uws) 2008-01-13 14:30:12 UTC
Created attachment 102739 [details] [review]
Fix against current trunk

I'm about to commit this change.
Comment 10 Wouter Bolsterlee (uws) 2008-01-13 14:32:18 UTC
2008-01-13  Wouter Bolsterlee  <wbolster@svn.gnome.org>

	* properties/Makefile.am:

	Get the nautilus extension dir properly instead of using
	a hack. Fixes bug #505359.
Comment 11 Hib Eris 2011-12-15 21:37:38 UTC
Hi,

I am reopening this bug report because the chosen solution to this problem in comment 9 causes an installation error when you do not have write permission in the global nautilus extension dir (e.g. /usr/lib/nautilus/extension-3.0) and you do:

$ configure --prefix=/tmp/local
$ make
$ make install

I will post a new proposed patch.
Comment 12 Hib Eris 2011-12-15 21:40:13 UTC
Created attachment 203605 [details] [review]
0001-Respect-prefix-when-installing-nautilus-extensions.patch

I'm about to commit this change.

If anyone has any objections, please let me know.
Comment 13 Carlos Garcia Campos 2011-12-16 11:04:49 UTC
Review of attachment 203605 [details] [review]:

::: properties/Makefile.am
@@ +17,3 @@
 if ENABLE_NAUTILUS
 
+nautilusextensiondir=$(libdir)$(NAUTILUS_EXTENSION_DIR)

Isn't there a slash missing? or does libdir always have a trailing slash?
Comment 14 Hib Eris 2011-12-16 11:21:50 UTC
(In reply to comment #13)
> Review of attachment 203605 [details] [review]:
> 
> +nautilusextensiondir=$(libdir)$(NAUTILUS_EXTENSION_DIR)
> 
> Isn't there a slash missing? 

no,

> or does libdir always have a trailing slash?

no, but $(NAUTILUS_EXTENSION_DIR) has a leading slash.
Comment 15 Hib Eris 2011-12-16 11:23:23 UTC
(In reply to comment #13)
> Review of attachment 203605 [details] [review]:
> 
> +nautilusextensiondir=$(libdir)$(NAUTILUS_EXTENSION_DIR)
> 
> Isn't there a slash missing? 

no,

> or does libdir always have a trailing slash?

no, but $(NAUTILUS_EXTENSION_DIR) has a leading slash.
Comment 16 Carlos Garcia Campos 2011-12-16 11:37:34 UTC
hmm, I would add the slash anyway, double slash should work too.