sci-geosciences/grass: patch, fixes failure built with format-security

qa issue; error filed upstream by 'wraeth', patch rebased from the
upstream commit, runtested by myself, closes gentoo bug

Upstream patch: https://trac.osgeo.org/grass/changeset/66561
Gentoo bug: #563490

Package-Manager: portage-2.2.20.1
This commit is contained in:
Ian Delaney
2015-10-23 14:52:53 +08:00
parent 86cdd79cf3
commit ea4be14d06
2 changed files with 1032 additions and 4 deletions
File diff suppressed because it is too large Load Diff
+6 -4
View File
@@ -77,8 +77,7 @@ S="${WORKDIR}/${MY_P}"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
opengl? ( X )
"
opengl? ( X )"
pkg_setup() {
if use lapack; then
@@ -111,10 +110,13 @@ pkg_setup() {
src_prepare() {
# Fix undefined reference to errno in lib/raster/open.c
# see http://trac.osgeo.org/grass/changeset/66398
epatch "${FILESDIR}/${P}-include-errno.patch"
epatch "${FILESDIR}/${P}"-include-errno.patch
# Fix undeclared variable if OSG is disabled
epatch "${FILESDIR}/${P}-declare-inespg.patch"
epatch "${FILESDIR}/${P}"-declare-inespg.patch
# Bug #563490
epatch "${FILESDIR}/${PV}"-sec-format.patch
# Fix unversioned python calls
local pyver=${EPYTHON/python/}