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 645695 - install broken since deec63dfe4c2527d5adfed049eeac423307229d1
install broken since deec63dfe4c2527d5adfed049eeac423307229d1
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: build-basic-autotools
git master
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-25 23:58 UTC by Carl-Anton Ingmarsson
Modified: 2011-04-16 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (1.82 KB, patch)
2011-03-26 13:31 UTC, Sébastien Granjoux
none Details | Review
Fix (2.01 KB, patch)
2011-03-26 14:15 UTC, Sébastien Granjoux
none Details | Review
Another fix (2.13 KB, patch)
2011-03-27 08:03 UTC, Sébastien Granjoux
committed Details | Review

Description Carl-Anton Ingmarsson 2011-03-25 23:58:28 UTC
Executing install from anjuta gives you the error:

/home/c-a/Programmering/anjuta/plugins/glade/(anjuta:11903): libanjuta-WARNING **: Cannot execute command: "make install"
execvp failed: No such file or directory
Comment 1 Sébastien Granjoux 2011-03-26 13:31:11 UTC
Created attachment 184286 [details] [review]
Fix

Thank you very much for reporting this bug, I have missed it.

Here is a patch fixing it, but it's quite late for anjuta 3.0.0. So I'm afraid it will be fixed only in anjuta 3.0.1.
Comment 2 Sébastien Granjoux 2011-03-26 14:15:48 UTC
Created attachment 184288 [details] [review]
Fix

I have thought that the error was only when not using any prefix (sudo nor "su -c") but in fact, the quote are needed only for "su -c".
Comment 3 Sébastien Granjoux 2011-03-27 08:03:31 UTC
Created attachment 184342 [details] [review]
Another fix

Here is an improved patch, checking if the prefix command ends with " -c" instead of "-c".
Comment 4 Sébastien Granjoux 2011-03-27 08:11:15 UTC
The previous committed patch is only a quick fix for version 3.0, so I don't close the bug.


A better fix has been requested by the release team. I think we need to use a format string with by example %c replaced by the command without quotes and %q replaced by the command with quote.

We need to replace
  "" => "%c"
  "sudo" => "sudo %c"
  "su -c" => "su -c %q"
And add a comment in the corresponding gconf key.
Comment 5 Sébastien Granjoux 2011-04-16 20:11:44 UTC
Now that the freeze period has ended, I have implemented and committed a more robust fix.