Skip to contentSkip to conversation

use of HOST_GLIB

Buildroot Sven Neumann 2 participants 5 messages Sep 23, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I found that package/java/classpath and package/libsoup both use

ac_cv_path_GLIB_GENMARSHAL=$(HOST_GLIB)/glib-genmarshal

However HOST_GLIB does not seem to be defined. What is the proper way to refer to the glib-genmarshal binary that is installed by the host-libglib2 target?

Sven

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> I found that package/java/classpath and package/libsoup both use

Sven> ac_cv_path_GLIB_GENMARSHAL=$(HOST_GLIB)/glib-genmarshal

Sven> However HOST_GLIB does not seem to be defined. What is the proper Sven> way to refer to the glib-genmarshal binary that is installed by Sven> the host-libglib2 target?

Ahh, those must have been missed when we fixed the glib-genmarshal stuff. The proper variable to use is LIBGLIB2_HOST_BINARY.

I'll fix it in git - Thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
Quoted 5 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> I found that package/java/classpath and package/libsoup both use

Quoted 8 lines

Sven> ac_cv_path_GLIB_GENMARSHAL=$(HOST_GLIB)/glib-genmarshal

Sven> However HOST_GLIB does not seem to be defined. What is the proper Sven> way to refer to the glib-genmarshal binary that is installed by Sven> the host-libglib2 target?

Ahh, those must have been missed when we fixed the glib-genmarshal stuff. The proper variable to use is LIBGLIB2_HOST_BINARY.

That is a rather strange name. Nothing in LIBGLIB2_HOST_BINARY tells me that this is glib-genmarshal. What's the variable to use for glib-mkenums then ?

Sven

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Ahh, those must have been missed when we fixed the glib-genmarshal stuff. The proper variable to use is LIBGLIB2_HOST_BINARY.

Sven> That is a rather strange name. Nothing in LIBGLIB2_HOST_BINARY Sven> tells me that this is glib-genmarshal. What's the variable to use Sven> for glib-mkenums then ?

Well, it's just following the approach of the other host packages, but you can use $(HOST_DIR)/usr/bin/glib-genmarshal as well now that we're compiling it ourselves. I don't see any references in the tree to a explicitly defined glib-mkenums, should there be?

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

Hi,

Quoted 11 lines · Peter Korsgaard
Quoted 2 lines
Quoted 2 lines

Ahh, those must have been missed when we fixed the glib-genmarshal stuff. The proper variable to use is LIBGLIB2_HOST_BINARY.

Sven> That is a rather strange name. Nothing in LIBGLIB2_HOST_BINARY Sven> tells me that this is glib-genmarshal. What's the variable to use Sven> for glib-mkenums then ?

Well, it's just following the approach of the other host packages, but you can use $(HOST_DIR)/usr/bin/glib-genmarshal as well now that we're compiling it ourselves. I don't see any references in the tree to a explicitly defined glib-mkenums, should there be?

Well, it's pretty much the same story as with glib-genmarshal, perhaps not as commonly used though. glib-mkenums is a code-generation tool that glib installs and that applications and libraries using glib may use in their Makefiles. The AM_PATH_GLIB_2_0() macro uses pkg-config to find out where glib has installed it and defines the GLIB_MKENUMS variable pointing to the binary. There is also gobject-query, which is probably even less commonly used.

So yes, I think there should be a HOST_GLIB_MKENUMS variable and I think that LIBGLIB2_HOST_BINARY should be rather be named HOST_GLIB_GENMARSHAL.

Sven