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 752884 - Glib compile resources should not check if files are present when using `--generate-dependencies`
Glib compile resources should not check if files are present when using `--ge...
Status: RESOLVED DUPLICATE of bug 673101
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-07-26 13:18 UTC by Sebastian
Modified: 2015-07-26 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian 2015-07-26 13:18:56 UTC
So the man page for glib-compile-resources suggests the following like can be used, so that when building test.gresource we automatically depend on all files are included in test.gresource.xml:

test.gresource: test.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies test.gresource.xml)

The problem with this line is that $(shell ...) is evaluated when the makefile is read and not when the this target is run.

In the case that one of the files in test.gresource.xml is generated from another file, then it will not be available when this command is run.

I suggest to change the semantics of glib-compile-resources such that it does not check if files are really present when it is run with --generate-dependencies
Comment 1 Garrett Regier 2015-07-26 15:57:35 UTC

*** This bug has been marked as a duplicate of bug 673101 ***