From 424ab08f0e139226daea9ac2834555b65544f84f Mon Sep 17 00:00:00 2001 From: Martin Mokrejs Date: Sat, 21 Apr 2018 10:12:23 +0200 Subject: [PATCH] sci-matchematics/glpk: respect EPREFIX Prepend EPREFIX in front of hardcoded include path. All modified ebuilds emerged successfully on a Gentoo::RAP host. Bug: https://bugs.gentoo.org/597620 Closes: https://github.com/gentoo/gentoo/pull/7238 --- sci-mathematics/glpk/glpk-4.63.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/sci-mathematics/glpk/glpk-4.63.ebuild b/sci-mathematics/glpk/glpk-4.63.ebuild index 4721b1832852..b32475f03a75 100644 --- a/sci-mathematics/glpk/glpk-4.63.ebuild +++ b/sci-mathematics/glpk/glpk-4.63.ebuild @@ -29,6 +29,7 @@ PATCHES=( ) src_prepare() { + sed -e 's#CPPFLAGS="-I/usr/include/mysql#CPPFLAGS="-I'"${EPREFIX}"'/usr/include/mysql#' -i configure.ac || die use odbc && [[ -z $(type -P odbc_config) ]] && \ append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc) -- 2.26.2