/usr/src/gcc-4.9/debian/patches/gdc-base-version.diff is in gcc-4.9-source 4.9.3-13ubuntu2.
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 | # DP: Use the GCC base version for the D include dir name
--- a/src/libphobos/configure.ac
+++ b/src/libphobos/configure.ac
@@ -167,7 +167,7 @@
AC_SUBST(GDC)
AC_MSG_CHECKING([D GCC version])
-d_gcc_ver=`$GDC -dumpversion`
+d_gcc_ver=`$GDC -dumpversion | sed 's/^\(@<:@0-9@:>@*\.@<:@0-9@:>@*\).*/\1/'`
AC_MSG_RESULT($d_gcc_ver)
# Need to export this variables for multilib
|