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 642784 - New autotools backend has problems with variables in dependencies
New autotools backend has problems with variables in dependencies
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: project-manager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Sébastien Granjoux
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-19 22:48 UTC by Jens Georg
Modified: 2011-05-21 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the issue (45.61 KB, image/png)
2011-02-19 22:48 UTC, Jens Georg
Details

Description Jens Georg 2011-02-19 22:48:50 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
Comment 1 Sébastien Granjoux 2011-02-26 09:45:20 UTC
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.
Comment 2 Sébastien Granjoux 2011-03-05 17:48:03 UTC
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.
Comment 3 Sébastien Granjoux 2011-03-05 21:01:43 UTC
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.
Comment 4 Jens Georg 2011-03-12 18:31:51 UTC
I think it was working with the old backend.
Comment 5 Jens Georg 2011-04-02 14:27:44 UTC
Indeed, the first part is fixed, just checked on master. Do you want to keep this bug open to track the other issue?
Comment 6 Sébastien Granjoux 2011-04-02 14:41:01 UTC
Thanks for checking, I will keep it open.
Comment 7 Sébastien Granjoux 2011-05-21 16:14:20 UTC
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).