GNOME Bugzilla – Bug 645730
install with --prefix fails for charpick (and potentially other applets)
Last modified: 2013-10-24 16:10:22 UTC
With a --prefix given at configure or autogen, the make install fails for the charpick applet with: ... make[2]: Entering directory `/home/enrico/git/gnome-applets.tmp2/charpick' make[3]: Entering directory `/home/enrico/git/gnome-applets.tmp2/charpick' test -z "/home/enrico/git/gnome-applets.installed2/libexec" || /bin/mkdir -p "/home/enrico/git/gnome-applets.installed2/libexec" /bin/sh ../libtool --mode=install /usr/bin/install -c charpick_applet2 '/home/enrico/git/gnome-applets.installed2/libexec' libtool: install: /usr/bin/install -c charpick_applet2 /home/enrico/git/gnome-applets.installed2/libexec/charpick_applet2 test -z "/usr/share/gnome-panel/4.0/applets" || /bin/mkdir -p "/usr/share/gnome-panel/4.0/applets" /usr/bin/install -c -m 644 org.gnome.applets.CharpickerApplet.panel-applet '/usr/share/gnome-panel/4.0/applets' /usr/bin/install: cannot remove `/usr/share/gnome-panel/4.0/applets/org.gnome.applets.CharpickerApplet.panel-applet': Permission denied make[3]: *** [install-appletDATA] Error 1 make[3]: Leaving directory `/home/enrico/git/gnome-applets.tmp2/charpick' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/enrico/git/gnome-applets.tmp2/charpick' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/enrico/git/gnome-applets.tmp2/charpick' make: *** [install-recursive] Error 1 The reason is that the prefix is not used for installing the org.gnome.applets.CharpickerApplet.panel-applet file. The Makefile wants to install it to the system, which is not what you'd expect when specifying --prefix, and fortunately failes due to missing access rights. The Makefile uses $(DESTDIR) at the respective position but the variable is empty, though it perfectly works in other directories. I have no idea how to solve this. Any assistance is very much appreciated. Enrico
This means you installed gnome-panel in /usr. I don't think it's a bug, really: the applets, to be discoverable, have to be there.
Yes, but not if I do not intent to install the applets into the system but when I develop the applets and want to test installation or build a package. Then, prefex makes all installed files go to a different directory, which is not true for the *.panel-applet files.
During development / debugging, you have the option to use a locally-built gnome-panel, installed into a user-writeable prefix. Then configure and build your applets against that prefix and the .pc file in there. The test-install will then install into this prefix also. Then start with /opt/mypath.../bin/gnome-panel --replace and that panel will find the applets that you are developing. Also closing NOTABUG.