/usr/src/gcc-5/debian/patches/gdc-base-version.diff is in gcc-5-source 5.3.1-14ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # DP: Use the GCC base version for the D include dir name
Index: b/src/libphobos/configure.ac
===================================================================
--- a/src/libphobos/configure.ac
+++ b/src/libphobos/configure.ac
@@ -138,7 +138,7 @@ fi
AC_SUBST(GDC)
AC_MSG_CHECKING([D GCC version])
-d_gcc_ver=`$GDC -dumpversion`
+d_gcc_ver=`$GDC -dumpversion | sed 's/^\(@<:@0-9@:>@*\).*/\1/'`
AC_MSG_RESULT($d_gcc_ver)
phobos_toolexecdir=no
|