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 646532 - New autotools backend doesn't parse conditionally enabled subdirs, even when enabled
New autotools backend doesn't parse conditionally enabled subdirs, even when ...
Status: RESOLVED OBSOLETE
Product: anjuta
Classification: Applications
Component: plugins: project-manager
git master
Other Linux
: Normal normal
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-04-02 14:12 UTC by Jens Georg
Modified: 2020-11-06 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (22.48 KB, image/png)
2012-02-24 17:59 UTC, Jens Georg
Details

Description Jens Georg 2011-04-02 14:12:55 UTC
If e.g. Makefile.am has

if USE_LIBGTK
TOOLS_DIR = tools
else
TOOLS_DIR =
endif

SUBDIRS = libgssdp $(TOOLS_DIR) tests doc

then tools is completely ignored. For an example, see

http://gitorious.org/gupnp/gssdp
Comment 1 Sébastien Granjoux 2011-04-02 16:31:45 UTC
Thanks for reporting this issue.

I think the value is not ignored but overwritten by the last definition. So I suppose that
  if USE_LIBGTK
  TOOLS_DIR =
  else
  TOOLS_DIR = tools
  endif
will find the tools directory.

Anyway, I will try to fix it.
Comment 2 Jens Georg 2011-04-10 09:15:34 UTC
Ah, ok. Makes sense. Thanks for looking into it.
Comment 3 Jens Georg 2012-02-24 17:59:37 UTC
Created attachment 208370 [details]
Screenshot

Some update: with master the subdir isn't ignored anymore but there is one called $(TOOLS_DIR) now (see screenshot)
Comment 4 Sébastien Granjoux 2012-03-03 08:38:40 UTC
Yes, I know. It's one of the issue remaining in the autotools backend. I don't know how to handle this.

Probably the best solution would be to merge all definition, reading it like
TOOLS_DIR =
TOOLS_DIR += tools

But it makes sense only if the values could be appended. If by example, I have
if DEBUG_VERSION
CFLAGS = -O0 -g
else
CFLAGS = -O3
endif
You will see CFLAGS=-O0 -g -O3 in the GUI and I don't see how I could handle this in a better way.
Comment 5 Jens Georg 2012-03-03 08:51:42 UTC
Maybe it makes sense to special-case SUBDIRS here as it's not _that_ problematic for other variables but really annoying if you can't see everything in your project?
Comment 6 Jens Georg 2012-03-03 08:52:10 UTC
(In reply to comment #5)
> Maybe it makes sense to special-case SUBDIRS here as it's not _that_
> problematic for other variables but really annoying if you can't see everything
> in your project?

Uch, I should read my own bug description. Nevermind that comment :(
Comment 7 Sébastien Granjoux 2012-03-03 09:02:07 UTC
I think I can append them as it will be useful for SUBDIRS variables and it will not be really worst for other variables. But this is not easy to do, it will not be done for 3.4 perhaps for 3.6.
Comment 8 André Klapper 2020-11-06 20:21:47 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.