> Date: Sun, 02 Mar 2014 01:55:54 -0600
> From: Bruce Dubbs <bruce.du...@gmail.com>
> To: LFS Developers Mailinglist <lfs-dev@linuxfromscratch.org>
> Subject: Re: [lfs-dev] Are we ready for LFS-7.5?
>
        .
        .
> I think I have the test for version-check.sh:
>
> for lib in lib{gmp,mpfr,mpc}.so; do
>    echo $lib: $(if find /usr/lib* -name $lib|
>                 grep -q $lib;then :;else echo not;fi) found
> done
>
        .
        .
>
> All of the libraries may not be strictly required, but it errs on the 
> side of completeness.
>
> If I can get agreement on this, I can add it and make the 7.5 release 
> tomorrow (um, later today).
>


Excuse me if I'm just now gotten brain-tired on this, but how about just
warning if the .la files are present, as follows. I've left it 'wordy'
just to try to be clear here; it can of course be boiled-down.

----
echo 'Searching for lib{gmp,mpfr,mpc}.la under /usr/lib* :';
for lib in lib{gmp,mpfr,mpc}.la; do
  find /usr/lib* -name $lib -ls ; 
done;
echo 'If any are shown above as found, then you should either remove them or 
move them aside temporarily - e.g. to /var/tmp - otherwise they may cause 
problems for compiling gcc in chapter 5.';
----

The find() '-ls' output is so the user can see orig perms/ownerships/&c,
in case they somehow want to restore later.

Also, I'd be wary of just recommending outright deletion, as it's the
user's host-system.




rgds,

akh





--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to