Upstream ships pregenerated C++ source files for its lexers. These
files fail to compile under newer versions of GCC. This update forces
them to be rebuilt by removing them before compilaiton starts.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-i configure.ac || die
eautoreconf
+
+ # Remove C++ source files that were built with flex by upstream.
+ local f
+ local PREBUILT_CXX_LEXER_FILES=(
+ "$S"/src/io/exp_flexer.cc
+ "$S"/src/mira/parameters_flexer.cc
+ )
+
+ for f in "${PREBUILT_CXX_LEXER_FILES[@]}"; do
+ [[ -f $f ]] && { rm "$f" || die "Failed to remove $f"; } || die "$f not found"
+ done
}
src_configure() {