GNOME Bugzilla – Bug 642784
New autotools backend has problems with variables in dependencies
Last modified: 2011-05-21 16:14:20 UTC
Created attachment 181367 [details] Screenshot of the issue like this: BAR_SOURCES = \ a.vala \ b.vala foo_SOURCES = \ $(BAR_SOURCES) \ x.vala \ y.vala \ z.vala shows only target foo with 4 dependencies, $(BAR_SOURCES), x.vala, y.vala and z.vala. See attached screenshot. Repdoducable with git://git.gnome.org/rygel
Thanks for reporting this. Do you remember if this was working with the old autotools backend ? I have planned to make it works but I haven't tested it. Currently I'm spending time on more basic features to avoid regression as much as possible.
The issue is due to the fact that the variable BAR_SOURCES is recognized as an autotools variable listing source files for the BAR target.
I have fixed the issue above. I means even autotools variable are kept as normal variable. I have still found another issue with rygel. The backend expands variable as soon as they are used (like GNU makefile variable using :=) which is not the standard behavior. make is expanding all variable when the value is really needed. The difference is that the backend supports only variable previously defined. I will try to fix this, but it's more difficult.
I think it was working with the old backend.
Indeed, the first part is fixed, just checked on master. Do you want to keep this bug open to track the other issue?
Thanks for checking, I will keep it open.
I have changed the autotools backend to evaluate all autotools variable are the end. So this bug is fixed. Now it still doesn't load rygel project correctly due to this other issue (bug #642785).