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 649775 - glib-gio-gdbuscodegen-Makefile.patch
glib-gio-gdbuscodegen-Makefile.patch
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
2.29.x
Other All
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-05-09 08:25 UTC by Maarten Bosmans
Modified: 2011-05-11 20:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (470 bytes, patch)
2011-05-09 08:25 UTC, Maarten Bosmans
committed Details | Review

Description Maarten Bosmans 2011-05-09 08:25:42 UTC
Created attachment 187492 [details] [review]
proposed patch

The variables can contain spaces (in my case $(python) is set to '/usr/bin/env python'), so the sed commands should be quoted.

This bug shouldn't be necessary at all, why is the var @PYTHON@ handled in the Makefile, but not used in the .in file.
Furthermore, why was a homegrown sed solution used and not the default configure output mechanism?
Comment 1 David Zeuthen (not reading bugmail) 2011-05-09 17:36:04 UTC
-> gdbus component

To answer your question, I believe I just copied some of this from gobject-introspection and it's not impossible I may have screwed something up in the process.
Comment 2 Colin Walters 2011-05-11 15:16:14 UTC
(In reply to comment #0)
> Created an attachment (id=187492) [details] [review]
> proposed patch
> 
> The variables can contain spaces (in my case $(python) is set to '/usr/bin/env
> python'), so the sed commands should be quoted.

Makes sense.

> Furthermore, why was a homegrown sed solution used and not the default
> configure output mechanism?

Because basically configure substitutions are designed to substitute Makefiles; e.g. "libdir" can output to $(prefix)/lib, which is not what you want for non-Makefiles.
Comment 3 Maarten Bosmans 2011-05-11 16:33:39 UTC
If the only concern is the double evaluation of variables, then there is a macro for that:
http://www.gnu.org/software/autoconf-archive/ax_define_dir.html

While my patch fixes the immeadiate problem, using the standard autotool machinery for these kind of things would greatly increase portability of the build system over the use of one-off shell scripting solutions.
Comment 4 Colin Walters 2011-05-11 16:45:09 UTC
(In reply to comment #3)
> using the standard autotool
> machinery for these kind of things would greatly increase portability of the
> build system over the use of one-off shell scripting solutions.

That's nonsense; there is no portability issue here.
Comment 5 Colin Walters 2011-05-11 20:19:56 UTC
I wrote a commit message for you and pushed to git; thanks!

For future patches please use "git format-patch" to create a patch with a commit message.