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 618823 - plparse/Makefile.am: Improve the rules for totemplparser-marshal.{c,h}, re-adding support for automake 1.9
plparse/Makefile.am: Improve the rules for totemplparser-marshal.{c,h}, re-ad...
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
2.30.x
Other All
: Normal normal
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks:
 
 
Reported: 2010-05-17 00:20 UTC by Adrian Bunk
Modified: 2010-05-18 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to require automake >= 1.10 (1.58 KB, patch)
2010-05-17 00:20 UTC, Adrian Bunk
none Details | Review
plparse/Makefile.am: Improve the rules for totemplparser-marshal.{c,h} (1.47 KB, patch)
2010-05-18 13:26 UTC, Adrian Bunk
committed Details | Review

Description Adrian Bunk 2010-05-17 00:20:41 UTC
Created attachment 161192 [details] [review]
patch to require automake >= 1.10

$(builddir) is not available with automake 1.9:

<--  snip  -->

...
( /usr/bin/glib-genmarshal --prefix=totemplparser_marshal ./totemplparser-marshal.list --header --internal > /totemplparser-marshal.h )
/bin/sh: /totemplparser-marshal.h: Permission denied
make: *** [totemplparser-marshal.h] Error 1

<--  snip  -->

Caused by commit 9f73be4d36d873136da4ee5016758bdf4f9ca8df
(Don't distribute generated marshal files).
Comment 1 Christian Persch 2010-05-17 10:39:28 UTC
Why not fix the make rule instead, e.g. like this:

totemplparser-marshal.c: totemplparser-marshal.h
         $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal --header --body --internal $< > $@
Comment 2 Adrian Bunk 2010-05-17 11:05:31 UTC
(In reply to comment #1)
> Why not fix the make rule instead, e.g. like this:
> 
> totemplparser-marshal.c: totemplparser-marshal.h
>          $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal --header
> --body --internal $< > $@

$< is buggy this way (Should totemplparser-marshal.c depend on totemplparser-marshal.list instead of totemplparser-marshal.h? It would look logical.).

Otherwise your suggestion looks better than the current rule.
Comment 3 Christian Persch 2010-05-17 11:08:31 UTC
Right, the dep line should be 

totemplparser-marshal.c: totemplparser-marshal.list
Comment 4 Adrian Bunk 2010-05-18 13:26:32 UTC
Created attachment 161353 [details] [review]
plparse/Makefile.am: Improve the rules for totemplparser-marshal.{c,h}

Based on a suggestion by Christian Persch.

This also fixes building with automake 1.9.
Comment 5 Bastien Nocera 2010-05-18 15:15:21 UTC
Attachment 161353 [details] pushed as 234749a - plparse/Makefile.am: Improve the rules for totemplparser-marshal.{c,h}