Bug 79411 - Replace use of INCLUDES with AM_CPPFLAGS in every Makefile.am
Summary: Replace use of INCLUDES with AM_CPPFLAGS in every Makefile.am
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-29 12:21 UTC by Hib Eris
Modified: 2014-12-01 14:14 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Replace use of INCLUDES with AM_CPPFLAGS in every Makefile.am (6.23 KB, patch)
2014-05-29 12:21 UTC, Hib Eris
Details | Splinter Review
Cleanup cpp/Makefile.am (2.59 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup cpp/tests/Makefile.am (1.11 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup fofi/Makefile.am (711 bytes, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup glib/Makefile.am (2.20 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup glib/demo/Makefile.am (1.31 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup glib/reference/Makefile.am (905 bytes, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup goo/Makefile.am (1.53 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup qt4/demos/Makefile.am (2.37 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup qt4/src/Makefile.am (1.94 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup qt4/tests/Makefile.am (6.31 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup qt5/demos/Makefile.am (2.37 KB, patch)
2014-06-06 20:28 UTC, Hib Eris
Details | Splinter Review
Cleanup qt5/src/Makefile.am (1.82 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Cleanup qt5/tests/Makefile.am (6.37 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Cleanup splash/Makefile.am (1.53 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Add cairo dependencies to GTK_TEST in configure (3.24 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Cleanup test/Makefile.am (2.26 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Cleanup utils/Makefile.am (3.15 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Replace INCLUDES with target_CPPFLAGS in poppler/Makefile.am (1.79 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Remove cairo_sources from poppler/Makefile.am (714 bytes, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Remove unused variable cairo_libs from poppler/Makefile.am (779 bytes, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Cleanup poppler/Makefile.am (2.90 KB, patch)
2014-06-06 20:29 UTC, Hib Eris
Details | Splinter Review
Fixing Makefile.am (39.16 KB, patch)
2014-07-22 14:03 UTC, Hib Eris
Details | Splinter Review

Description Hib Eris 2014-05-29 12:21:51 UTC
The use of INCLUDES is deprecated. Poppler requires at least
automake version 1.7 which support AM_CPPFLAGS.
Comment 1 Hib Eris 2014-05-29 12:21:53 UTC
Created attachment 100105 [details] [review]
Replace use of INCLUDES with AM_CPPFLAGS in every Makefile.am
Comment 2 Albert Astals Cid 2014-05-29 18:18:59 UTC
Can you point to somewhere that says that INCLUDES is deprecated?
Comment 3 Hib Eris 2014-05-29 19:08:24 UTC
http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html

INCLUDES

    This does the same job as AM_CPPFLAGS (or any per-target _CPPFLAGS variable if it is used). It is an older name for the same functionality. This variable is deprecated; we suggest using AM_CPPFLAGS and per-target _CPPFLAGS instead.



Also when you run autogen.sh:

$ ./autogen.sh 

Checking for automake >= 1.7...

  Testing automake-1.14... not found.
  Testing automake-1.13... found 1.13.3

Running autoreconf -v -i ...

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
cpp/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
cpp/tests/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
fofi/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
glib/Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
glib/demo/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
glib/reference/Makefile.am:70: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
goo/Makefile.am:43: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
poppler/Makefile.am:123: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
qt4/demos/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
qt4/src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
qt4/tests/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
parallel-tests: installing './test-driver'
qt5/demos/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
qt5/src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
qt5/tests/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
splash/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
test/Makefile.am:36: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
autoreconf: Leaving directory `.'
Comment 4 Carlos Garcia Campos 2014-05-30 07:24:35 UTC
Instead of just replacing INCLUDES with AM_CPPFLAGS everywhere we could use target CPPFLAGS, libpoppler_cpp_la_CPPFLAGS, libpoppler_la_CPPFLAGS, etc. I think it's more consistent with other flags, sources, etc.
Comment 5 Albert Astals Cid 2014-06-03 23:00:33 UTC
Agree with Carlos, Hib, can you do that?
Comment 6 Hib Eris 2014-06-04 05:34:51 UTC
(In reply to comment #5)
> Agree with Carlos, Hib, can you do that?

Yes, using taget_CPPFLAGS is much more consistent and cleaner. It will however also cause some more changes to the Makefile.am's than a simple find and replace.

I will work on a patch for this.
Comment 7 Hib Eris 2014-06-06 20:27:17 UTC
I've made a series of patches to replace INCLUDES with target_CPPFLAGS.

While doing this, I also did a lot of cleanup in the Makefile.am's to make them more uniform by using target_{SOURCES, CPPFLAGS, CFLAGS, LDFLAGS, LDADD} and by reshuffeling the code to always start the Makefile.am with global variables, with the target specific variables after those.

This made the patches rather large, but I hope you like the result anyway.
Comment 8 Hib Eris 2014-06-06 20:28:29 UTC
Created attachment 100538 [details] [review]
Cleanup cpp/Makefile.am
Comment 9 Hib Eris 2014-06-06 20:28:32 UTC
Created attachment 100539 [details] [review]
Cleanup cpp/tests/Makefile.am
Comment 10 Hib Eris 2014-06-06 20:28:35 UTC
Created attachment 100540 [details] [review]
Cleanup fofi/Makefile.am
Comment 11 Hib Eris 2014-06-06 20:28:38 UTC
Created attachment 100541 [details] [review]
Cleanup glib/Makefile.am
Comment 12 Hib Eris 2014-06-06 20:28:41 UTC
Created attachment 100542 [details] [review]
Cleanup glib/demo/Makefile.am
Comment 13 Hib Eris 2014-06-06 20:28:44 UTC
Created attachment 100543 [details] [review]
Cleanup glib/reference/Makefile.am
Comment 14 Hib Eris 2014-06-06 20:28:47 UTC
Created attachment 100544 [details] [review]
Cleanup goo/Makefile.am
Comment 15 Hib Eris 2014-06-06 20:28:50 UTC
Created attachment 100545 [details] [review]
Cleanup qt4/demos/Makefile.am
Comment 16 Hib Eris 2014-06-06 20:28:54 UTC
Created attachment 100546 [details] [review]
Cleanup qt4/src/Makefile.am
Comment 17 Hib Eris 2014-06-06 20:28:56 UTC
Created attachment 100547 [details] [review]
Cleanup qt4/tests/Makefile.am
Comment 18 Hib Eris 2014-06-06 20:28:59 UTC
Created attachment 100548 [details] [review]
Cleanup qt5/demos/Makefile.am
Comment 19 Hib Eris 2014-06-06 20:29:02 UTC
Created attachment 100549 [details] [review]
Cleanup qt5/src/Makefile.am
Comment 20 Hib Eris 2014-06-06 20:29:05 UTC
Created attachment 100550 [details] [review]
Cleanup qt5/tests/Makefile.am
Comment 21 Hib Eris 2014-06-06 20:29:07 UTC
Created attachment 100551 [details] [review]
Cleanup splash/Makefile.am
Comment 22 Hib Eris 2014-06-06 20:29:10 UTC
Created attachment 100552 [details] [review]
Add cairo dependencies to GTK_TEST in configure
Comment 23 Hib Eris 2014-06-06 20:29:13 UTC
Created attachment 100553 [details] [review]
Cleanup test/Makefile.am
Comment 24 Hib Eris 2014-06-06 20:29:16 UTC
Created attachment 100554 [details] [review]
Cleanup utils/Makefile.am
Comment 25 Hib Eris 2014-06-06 20:29:21 UTC
Created attachment 100555 [details] [review]
Replace INCLUDES with target_CPPFLAGS in poppler/Makefile.am
Comment 26 Hib Eris 2014-06-06 20:29:25 UTC
Created attachment 100556 [details] [review]
Remove cairo_sources from poppler/Makefile.am

This should have been removed with 50ecfadab36a9769b09e4c2c1670d86448a0e1ee.
Comment 27 Hib Eris 2014-06-06 20:29:28 UTC
Created attachment 100557 [details] [review]
Remove unused variable cairo_libs from poppler/Makefile.am

This should have been removed with d46553d696b2d7fe416ce8db40db54dd1d7c6733.
Comment 28 Hib Eris 2014-06-06 20:29:32 UTC
Created attachment 100558 [details] [review]
Cleanup poppler/Makefile.am
Comment 29 Hib Eris 2014-06-09 11:46:52 UTC
You can fetch these patches from my public git repository with:

git fetch git://gitorious.org/hiberis/poppler.git bfo-79411 && git checkout -b bfo-79411 FETCH_HEAD
Comment 30 Albert Astals Cid 2014-07-20 22:36:09 UTC
Can you please give me a single patch? I don't want to click 20 times to see the patches when all of them are "Fixing Makefile.am" stuff and can easily share the same commit.
Comment 31 Hib Eris 2014-07-22 14:03:44 UTC
Created attachment 103283 [details] [review]
Fixing Makefile.am
Comment 32 Albert Astals Cid 2014-08-12 16:13:25 UTC
Pushed, thanks
Comment 33 V Stuart Foote 2014-12-01 14:14:15 UTC
*** Bug 86742 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.