This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Installation into 'const' directory
- From: Michael Matz <matz at suse dot de>
- To: Art Haas <ahaas at airmail dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 16 Mar 2005 17:07:22 +0100 (CET)
- Subject: Re: Installation into 'const' directory
- References: <20050316150222.GC2202@artsapartment.org>
Hi,
On Wed, 16 Mar 2005, Art Haas wrote:
> This morning's build of GCC mainline installed various files into a
> directory named 'const' instead of a version number like name. The c++
> headers from yesterday's build were in a '4.1.0' directory, for example.
> A perusal of the ChangeLog suggests yesterday's patchset that revamped
> the build to use BASE-VER, DATESTAMP, and DEV-PHASE files is likely to
> have made this (unanticipated?) change.
See also http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01542.html .
I've hacked around this locally with the below patch for the toplevel
configure.
Ciao,
Michael.
--
Index: configure
===================================================================
RCS file: /cvs/gcc/gcc/configure,v
retrieving revision 1.206
diff -u -p -r1.206 configure
--- configure 28 Feb 2005 13:24:57 -0000 1.206
+++ configure 16 Mar 2005 14:07:10 -0000
@@ -858,14 +858,16 @@ extra_host_args=
if test "${with_gcc_version_trigger+set}" = set; then
gcc_version_trigger=$with_gcc_version_trigger
else
- gcc_version_trigger=$topsrcdir/gcc/version.c
+ gcc_version_trigger=$topsrcdir/gcc/BASE-VER
fi
if test -f "${gcc_version_trigger}"; then
- gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
+ #gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
+ gcc_version_full=`cat "${gcc_version_trigger}"`
else
gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
fi
-gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
+#gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
+gcc_version=${gcc_version_full}