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 645730 - install with --prefix fails for charpick (and potentially other applets)
install with --prefix fails for charpick (and potentially other applets)
Status: RESOLVED NOTABUG
Product: gnome-applets
Classification: Other
Component: charpick
git master
Other Linux
: Normal major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on: 647927
Blocks: 619818
 
 
Reported: 2011-03-26 10:25 UTC by Enrico Minack
Modified: 2013-10-24 16:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Enrico Minack 2011-03-26 10:25:57 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
Comment 1 Vincent Untz 2011-03-28 10:21:41 UTC
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.
Comment 2 Enrico Minack 2011-03-29 18:20:41 UTC
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.
Comment 3 Philipp 2013-10-24 16:10:22 UTC
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.