* [Buildroot] dbus-binding-tool
@ 2009-10-06 20:42 Sven Neumann
2009-10-06 21:05 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Sven Neumann @ 2009-10-06 20:42 UTC (permalink / raw)
To: buildroot
Hi,
we are using the dbus-binding-tool from host-dbus-glib in one of our
packages and today I found that the dbus-binding-tool binary calls
'glib-genmarshal'. So unless dbus-binding-tool is called with the PATH
adjusted to include host_dir/usr/bin before the system path, it will
fail in case that no glib-genmarshal is available on the host system.
I wonder how this should best be handled. For now I have adjusted our
build to call make with the PATH environment variable adjusted similar
to how Makefile.autotools.in does it. Should this be the recommended way
to call make or should we rather patch dbus-binding-tool in the
host-dbus-glib compile to explicitly call glib-genmarshal from
host_dir ?
Sven
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] dbus-binding-tool
2009-10-06 20:42 [Buildroot] dbus-binding-tool Sven Neumann
@ 2009-10-06 21:05 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2009-10-06 21:05 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Sven> Hi,
Sven> we are using the dbus-binding-tool from host-dbus-glib in one of our
Sven> packages and today I found that the dbus-binding-tool binary calls
Sven> 'glib-genmarshal'. So unless dbus-binding-tool is called with the PATH
Sven> adjusted to include host_dir/usr/bin before the system path, it will
Sven> fail in case that no glib-genmarshal is available on the host system.
Sven> I wonder how this should best be handled. For now I have adjusted our
Sven> build to call make with the PATH environment variable adjusted similar
Sven> to how Makefile.autotools.in does it. Should this be the recommended way
Sven> to call make or should we rather patch dbus-binding-tool in the
Sven> host-dbus-glib compile to explicitly call glib-genmarshal from
Sven> host_dir ?
From a quick look at the dbus-glib code, it seems to be a mistake that
they are explicitly calling glib-genmarshal, as the configure script
already gets the correct filename from pkg-config.
Maybe the cleanest solution would be to patch dbus-binding-tool to use
GLIB_GENMARSHAL, and then ensure that the host version of glib-2.0.pc
contains the full path to glib-genmarshal (or let configure add
$prefix/bin in front)? Upstream might even be willing to accept such a
patch.
Otherwise, simply changing DBUS_GLIB_HOST_BINARY to be
PATH=.. dbus-binding-tool or making a shellscript wrapper which sets the
path might be the easiest solution.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-06 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06 20:42 [Buildroot] dbus-binding-tool Sven Neumann
2009-10-06 21:05 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox