Bug: https://bugs.gentoo.org/638616
Closes: https://bugs.gentoo.org/638616
Package-Manager: Portage-2.3.16, Repoman-2.3.6
S="${WORKDIR}/${MYP}"
-PATCHES=( "${FILESDIR}"/${P}-no-interactive.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-no-interactive.patch
+ "${FILESDIR}"/${P}-gcc7.patch
+)
src_prepare() {
default
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
src_prepare() {
epatch "${FILESDIR}"/${P}-no-interactive.patch
+ epatch "${FILESDIR}"/${P}-gcc7.patch
sed -i -e "s/\$(LIB_DIR)/\$(LDFLAGS) &/" \
-e '/strip/d' Makefile*in || die
}
--- /dev/null
+Bug: https://bugs.gentoo.org/638616
+
+--- a/FRString.h
++++ b/FRString.h
+@@ -137,13 +137,13 @@
+ char* p = m_string ;
+
+ // skip first blank if any
+- while( isspace(*p) && p != '\0' ) {p++;}
++ while( isspace(*p) && *p != '\0' ) {p++;}
+
+ // skip one word
+- while( !isspace(*p) && p != '\0' ) {p++;}
++ while( !isspace(*p) && *p != '\0' ) {p++;}
+
+ // skip second blank if any
+- while( isspace(*p) && p != '\0' ) {p++;}
++ while( isspace(*p) && *p != '\0' ) {p++;}
+
+ // reset string
+ strcpy( tmp, p );