Merge lp:~jpakkane/xorg-gtest/autofix into lp:~oif-team/xorg-gtest/trunk

Proposed by Jussi Pakkanen
Status: Rejected
Rejected by: Chase Douglas
Proposed branch: lp:~jpakkane/xorg-gtest/autofix
Merge into: lp:~oif-team/xorg-gtest/trunk
Diff against target: 81 lines (+13/-32)
3 files modified
Makefile.am (+11/-1)
configure.ac (+2/-2)
examples/Makefile.am (+0/-29)
To merge this branch: bzr merge lp:~jpakkane/xorg-gtest/autofix
Reviewer Review Type Date Requested Status
Stephen M. Webb (community) Needs Fixing
Thomas Voß (community) Needs Fixing
Review via email: mp+91042@code.launchpad.net

Description of the change

The current autotools setup does not work. It builds successfully only if you already have the library built and installed on your system. Fix the build system to do the right thing.

To post a comment you must log in.
Revision history for this message
Thomas Voß (thomas-voss) wrote :

Get rid of the commented out xorg_gtest_example_LDADD in Makefile.am. Apart from that, looks good to me.

review: Needs Fixing
lp:~jpakkane/xorg-gtest/autofix updated
12. By Jussi Pakkanen

Remove useless line.

Revision history for this message
Stephen M. Webb (bregma) wrote :

The line

  xorg_gtest_example_LDFLAGS = libxorg-gtest.la libxorg-gtest_main.la -lgtest -lpthread -lX11

is wrong. It should be using the symbols for libraries found in the configuration run, like this.

  xorg_gtest_example_LDFLAGS = libxorg-gtest.la libxorg-gtest_main.la $(GTEST_LDFLAGS) $(XSERVER_LIBS)

except, of course, GTEST_LDFLAGS is not set in configure.ac, only GTEST_CPPFLAGS is, so that particular library can wait for another patch later. I'd like to point out that on my machine, $(XSERVER_LIBS) does not yield the same string as '-lX11'.

review: Needs Fixing
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This project has moved to freedesktop, so this merge request is obsolete.

Unmerged revisions

12. By Jussi Pakkanen

Remove useless line.

11. By Jussi Pakkanen

Fix autogarbage so it actually builds.

10. By Jussi Pakkanen

Fix maintainer mode setup.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.am'
2--- Makefile.am 2011-12-21 16:09:22 +0000
3+++ Makefile.am 2012-02-01 11:59:18 +0000
4@@ -1,4 +1,4 @@
5-SUBDIRS = doc examples
6+SUBDIRS = doc
7
8 lib_LTLIBRARIES = libxorg-gtest.la libxorg-gtest_main.la
9
10@@ -38,6 +38,16 @@
11
12 AM_CXXFLAGS = -Iinclude
13
14+noinst_PROGRAMS = xorg-gtest-example
15+
16+xorg_gtest_example_SOURCES = examples/xorg-gtest.cpp
17+
18+xorg_gtest_example_CPPFLAGS = \
19+ $(AM_CPPFLAGS) \
20+ $(GTEST_CPPFLAGS)
21+
22+xorg_gtest_example_LDFLAGS = libxorg-gtest.la libxorg-gtest_main.la -lgtest -lpthread -lX11
23+
24 .PHONY: ChangeLog INSTALL
25 INSTALL:
26 $(INSTALL_CMD)
27
28=== modified file 'configure.ac'
29--- configure.ac 2011-12-21 15:49:58 +0000
30+++ configure.ac 2012-02-01 11:59:18 +0000
31@@ -12,7 +12,7 @@
32 # Initialize Automake
33 AM_INIT_AUTOMAKE([1.11 foreign dist-bzip2])
34 AM_SILENT_RULES([yes])
35-AM_MAINTAINER_MODE
36+AM_MAINTAINER_MODE([enable])
37
38 LIB_VERSION=0:0:0
39 AC_SUBST([LIB_VERSION])
40@@ -43,6 +43,6 @@
41
42 AC_SUBST(AM_CPPFLAGS, "-Wall -Werror")
43
44-AC_CONFIG_FILES([doc/Makefile examples/Makefile])
45+AC_CONFIG_FILES([doc/Makefile])
46
47 AC_OUTPUT
48
49=== removed file 'examples/Makefile.am'
50--- examples/Makefile.am 2011-12-21 15:51:51 +0000
51+++ examples/Makefile.am 1970-01-01 00:00:00 +0000
52@@ -1,29 +0,0 @@
53-#
54-# @file examples/Makefile.am
55-# @brief automake recipe for the xorg-gtest examples
56-#
57-# Copyright 2011 Canonical, Ltd.
58-#
59-# This file is part of the utouch-geis library. This library is free software;
60-# you can redistribute it and/or modify it under the terms of the GNU Lesser
61-# General Public License as published by the Free Software Foundation; either
62-# version 3 of the License, or (at your option) any later version.
63-#
64-# This library is distributed in the hope that it will be useful, but WITHOUT
65-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
66-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
67-# details.
68-#
69-# You should have received a copy of the GNU General Public License
70-# along with this program. If not, see <http://www.gnu.org/licenses/>.
71-#
72-
73-noinst_PROGRAMS = xorg-gtest-example
74-
75-xorg_gtest_example_SOURCES = xorg-gtest.cpp
76-
77-xorg_gtest_example_CPPFLAGS = \
78- $(AM_CPPFLAGS) \
79- $(GTEST_CPPFLAGS)
80-
81-xorg_gtest_example_LDFLAGS = -lxorg-gtest -lxorg-gtest_main -lgtest -lpthread -lX11

Subscribers

People subscribed via source and target branches