Skip to content

Commit

Permalink
sci-geosciences/grass: Fix build with glibc-2.26
Browse files Browse the repository at this point in the history
Reported-by: Martin von Gagern <[email protected]>
Thanks-to: MarisN <[email protected]>
Closes: https://bugs.gentoo.org/588980
Package-Manager: Portage-2.3.28, Repoman-2.3.9
  • Loading branch information
a17r committed Apr 4, 2018
1 parent 355d4ca commit f602ce2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Index: /grass/trunk/lib/raster/R.h
===================================================================
--- /grass/trunk/lib/raster/R.h (revision 71264)
+++ /grass/trunk/lib/raster/R.h (revision 71265)
@@ -1,5 +1,4 @@
#include <grass/config.h>
#include <grass/gis.h>
-#include <rpc/types.h>
#ifdef HAVE_GDAL
#include <gdal.h>
32 changes: 32 additions & 0 deletions sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Index: /grass/branches/releasebranch_7_2/lib/raster/get_row.c
===================================================================
--- /grass/branches/releasebranch_7_2/lib/raster/get_row.c (revision 71943)
+++ /grass/branches/releasebranch_7_2/lib/raster/get_row.c (revision 71944)
@@ -15,6 +15,4 @@
#include <unistd.h>
#include <sys/types.h>
-
-#include <rpc/types.h> /* need this for sgi */

#include <grass/config.h>
Index: /grass/branches/releasebranch_7_2/lib/raster/open.c
===================================================================
--- /grass/branches/releasebranch_7_2/lib/raster/open.c (revision 71943)
+++ /grass/branches/releasebranch_7_2/lib/raster/open.c (revision 71944)
@@ -13,6 +13,4 @@
*/

-#include <rpc/types.h>
-#include <rpc/xdr.h>
#include <unistd.h>
#include <string.h>
Index: /grass/branches/releasebranch_7_2/lib/raster/range.c
===================================================================
--- /grass/branches/releasebranch_7_2/lib/raster/range.c (revision 71943)
+++ /grass/branches/releasebranch_7_2/lib/raster/range.c (revision 71944)
@@ -13,5 +13,4 @@

#include <unistd.h>
-#include <rpc/types.h> /* need this for sgi */

#include <grass/raster.h>
1 change: 1 addition & 0 deletions sci-geosciences/grass/grass-7.2.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ REQUIRED_USE="
PATCHES=(
"${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
"${FILESDIR}/${P}"-gcc7.patch
"${FILESDIR}/${P}"-glibc-2.26-{1,2}.patch
)

pkg_setup() {
Expand Down

0 comments on commit f602ce2

Please sign in to comment.