On Feb 5, 2006, at 4:04 PM, William Harrington wrote:

2) Archive all your headers in an archive and compress it and save them somewhere. Build a new toolchain except build it so it goes into home that way when you extract the toolchain it'll always be in home, or you could keep the toolchain on another machine and build packages that way then transfer them over. You could fix the gcc source to one, either search for headers in home or always extract the kernels you backed up in /usr. Trust me, there are times on a server when you want to build a package for an upgrade.

Oops meant extract the headers, not the kernels.

# Begin script here
find $* -type f -name "*.so*" > /var/tmp/libs
exec 6</var/tmp/libs

while read -u 6 dta
do
ldd $dta | sed -n "s/.*=> \|(.*)\|\t\| //g;/\//p" >> /var/tmp/ needed_libs
done

exec 6<&-

sort /var/tmp/needed_libs -o /var/tmp/needed_libs_sorted
uniq /var/tmp/needed_libs_sorted /var/tmp/copy_these_libs

#End Script

Run script like ./whatever /lib /bin /sbin

William

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

Reply via email to