This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[build, doc] Avoid File::Glob in in (PR bootstrap/48135)

Prompted by PR bootstrap/48135, I had a closer look at
and noticed that it doesn't use File::Glob at all, but turns globs in
the input version script into a regular expression for matching.
Therefore, the requirement of a Perl version newer than what is bundled
in Solaris 8 should go away.

The same seems to apply to libstdc++-v3/scripts/, but I
haven't touched that file since I cannot test it.

The patch below was tested by a i386-pc-solaris2.11 bootstrap and
verifying that all version scripts were identical to their counterparts
with File::Glob included.

Will apply to mainline soon and probably backport to 4.6.1 later once
I've verified that using perl 5.005 from Solaris 8 really works.


2011-03-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR bootstrap/48135
	* Don't use File::Glob.

	PR bootstrap/48135
	* doc/install.texi (Prerequisites, Perl): Remove
	reference.  Solaris 8 perl works.

diff -r cc5961e4e5eb contrib/
--- a/contrib/	Sat Mar 19 22:44:56 2011 +0100
+++ b/contrib/	Sat Mar 19 22:57:20 2011 +0100
@@ -16,7 +16,6 @@
 # It depends on the GNU version of c++filt, since it must understand the
 # GNU mangling style.
-use File::Glob ':glob';
 use FileHandle;
 use IPC::Open2;
diff -r cc5961e4e5eb gcc/doc/install.texi
--- a/gcc/doc/install.texi	Sat Mar 19 22:44:56 2011 +0100
+++ b/gcc/doc/install.texi	Sat Mar 19 22:57:20 2011 +0100
@@ -308,10 +308,8 @@
 Necessary when targetting Darwin, building @samp{libstdc++},
 and not using @option{--disable-symvers}.
 Necessary when targetting Solaris 2 with Sun @command{ld} and not using
-@option{--disable-symvers}.  A helper
-script needs @samp{}, which is missing from @command{perl} 5.005
-included in Solaris@tie{}8.  The bundled @command{perl} in Solaris@tie{}9 and up
+@option{--disable-symvers}.  The bundled @command{perl} in Solaris@tie{}8
+and up works.
 Necessary when regenerating @file{Makefile} dependencies in libiberty.
 Necessary when regenerating @file{libiberty/functions.texi}.

Rainer Orth, Center for Biotechnology, Bielefeld University

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]