From b2383ab22230342ae86e2e8ccef898bf29123040 Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 24 Feb 2003 07:27:48 +0000 Subject: [PATCH] Hah, Suse 7.3 doesn't have a libc-*, but it does have ld- .. this gets more interesting all the time. :-) --- BootRoot/Yard.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 84216d2..672b3c3 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -3720,8 +3720,17 @@ sub find_nss { my($nss_conf) = @_; my @nss_libs; + # What u know, Suse 7.3 doesn't have a libc-*, but it does have + # ld-* (libc6 2.2.4) --freesource + my($libc) = yard_glob("/lib/libc-*"); ## removed 2 - my($libc_version2, $libc_version) = $libc =~ m|/lib/libc-(\d)+\.(\d)|; ## changed 2 & . + my $libcc = "libc"; + if ( !$libc ) { + $libc = yard_glob("/lib/ld-*"); ## removed 2 + my $libcc = "ld"; + } + + my($libc_version2, $libc_version) = $libc =~ m|/lib/$libcc-(\d)+\.(\d)|; ## changed 2 & . if (!defined($libc_version)) { info(0,"\nParsing $nss_conf:\n"); warning_test "Can't determine your libc version\n";