Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

automake incompatibility: require 1.12, to produce parser.hh

When using automake 1.12, make all|package|dist would fail with
make[2]: *** No rule to make target `parser.h', needed by `scanner.cc'.  Stop.

Automake news:
'Slightly [sic!] backward-incompatible change, relevant only for use
of Yacc with C++: the extensions of the header files produced by the
Yacc rules are now modelled after the extension of the corresponding
sources.  For example, yacc files named "foo.y++" and "bar.yy" will
produce header files named "foo.h++" and "bar.hh" respectively,
where they would have previously produced header files named simply
"foo.h" and "bar.h".'
Original bug:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7648#20

I don't see a simple way to make it work with AM 1.11 and 1.12,
sorry. To compile yast-core on openSUSE-12.1, install
http://software.opensuse.org/ymp/devel:tools:building/openSUSE_12.1/automake.ymp?base=openSUSE%3A12.1&query=automake
  • Loading branch information...
commit 7a1c6cfece411f7e5c21d1c57604c7e537fd2f2d 1 parent d470c63
@mvidner mvidner authored
View
2  base/tools/ycpc/ycpc.cc
@@ -25,7 +25,7 @@
#include <ycp/Xmlcode.h>
#include <ycp/Import.h>
#include <ycp/y2log.h>
-#include <../../libycp/src/parser.h>
+#include <../../libycp/src/parser.hh>
#include <ycp/pathsearch.h>
#include <y2/Y2Component.h>
#include <y2/Y2ComponentBroker.h>
View
1  libycp/src/.gitignore
@@ -3,5 +3,6 @@ libycp.kdoc
scanner.cc
parser.cc
parser.h
+parser.hh
parser.output
hashtable.h
View
6 libycp/src/Makefile.am
@@ -53,10 +53,10 @@ libycp_la_SOURCES = \
y2string.cc \
y2crypt.cc y2crypt.h
-$(srcdir)/scanner.cc: scanner.ll parser.h
+$(srcdir)/scanner.cc: scanner.ll parser.hh
flex++ -o$@ $<
-BUILT_SOURCES = parser.h
+BUILT_SOURCES = parser.hh
AM_YFLAGS = -d -v
@@ -75,5 +75,5 @@ CLEANFILES = parser.output parser.cc scanner.cc $(BUILT_SOURCES)
# don't distribute generated files
dist-hook:
rm $(distdir)/scanner.cc
- rm $(distdir)/parser.cc
+ rm $(distdir)/parser.cc $(distdir)/parser.hh
View
2  libycp/src/scanner.ll
@@ -23,7 +23,7 @@
#include "ycp/y2log.h"
#include "ycp/Import.h"
-#include "parser.h"
+#include "parser.hh"
// We handle the line counting using a define
// in case we need to fix it again or decide tou use option yylineno
View
5 package/yast2-core.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed Jul 11 14:55:26 CEST 2012 - mvidner@suse.cz
+
+- automake incompatibility: require 1.12, to produce parser.hh
+
+-------------------------------------------------------------------
Wed Jul 11 12:07:52 CEST 2012 - fehr@suse.de
- 2.23.5
View
2  yast2-core.spec.in
@@ -8,6 +8,8 @@ License: GPL-2.0+
BuildRequires: gcc-c++ boost-devel libtool
# we have a parser
BuildRequires: flex bison
+# incompatible change, parser.h -> parser.hh
+BuildRequires: automake >= 1.12
# needed for all yast packages
BuildRequires: yast2-devtools
# testsuite
Please sign in to comment.
Something went wrong with that request. Please try again.