[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Patches for 2.2-3.0 upgrade process [Was: ALERT: New Jordan's a.out->ELF upgrade is broken!!!]
From:       Ruslan Ermilov <ru () ucb ! crimea ! ua>
Date:       1999-01-29 17:25:48
[Download RAW message or body]

On Wed, Jan 27, 1999 at 10:28:05AM -0800, Jordan K. Hubbard wrote:
> 
> There is still more work which needs to be done on the ordering and
> TOC for what's installed.  Your own changes were overly simplistic and
> had other problems of their own.  I'll be further refining this over
> the next couple of days - I just took "kickme" to 4.0 with it and only
> one failure (to reboot, which was comparatively minor).  This is
> and harder problem to solve than you seem to give it credit for,
> and I'd also appreciate it if you'd start sending me diffs rather
> than commentaries.  Don't tell me what you THINK it does or should
> do, show me changes which have been empirically proven to do it
> better.
> 
> - Jordan

OK, here is the first problem and a patch for it.
Several people have already reported it.

Suppose, you have an *EMPTY* /usr/local/lib.

(This is the usual thing, if you have installed at least
one port, and you have no ports with libraries in /usr/local/lib).

During the second phase of upgrade process (aout-to-elf-install),
the `move_aout_libs.sh' script won't create /usr/local/lib/aout
for it, because this directory has no aout libraries at all, and
then Makefile.upgrade will fail on line 155 (rev 1.9.2.6),
that `ldconfig could not find /usr/local/lib/aout'.

Patch is attached (in two variants).

Best regards,
-- 
Ruslan Ermilov		Sysadmin and DBA of the
ru@ucb.crimea.ua	United Commercial Bank
+380.652.247.647	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

["move_aout_libs.sh.patch" (text/plain)]

Index: move_aout_libs.sh
===================================================================
RCS file: /usr/FreeBSD-CVS/src/tools/tools/upgrade/move_aout_libs.sh,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 move_aout_libs.sh
--- move_aout_libs.sh	1999/01/26 09:15:53	1.2.2.1
+++ move_aout_libs.sh	1999/01/29 16:55:23
@@ -111,8 +111,9 @@
 do
 	# Make sure the directory exists, or ldconfig will choke later.
 	if test ! -d $dir; then
-		mkdir -p $dir $dir/aout
+		mkdir -p $dir
 	fi
+	mkdir -p $dir/aout
 	echo "Searching library directory $dir for a.out libraries..."
 
 	# Get a list of archive libraries.

["move_aout_libs.sh.patch2" (text/plain)]

Index: move_aout_libs.sh
===================================================================
RCS file: /usr/FreeBSD-CVS/src/tools/tools/upgrade/move_aout_libs.sh,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 move_aout_libs.sh
--- move_aout_libs.sh	1999/01/26 09:15:53	1.2.2.1
+++ move_aout_libs.sh	1999/01/29 17:23:25
@@ -110,9 +110,8 @@
 for dir in $libdirs
 do
 	# Make sure the directory exists, or ldconfig will choke later.
-	if test ! -d $dir; then
-		mkdir -p $dir $dir/aout
-	fi
+	mkdir -p $dir $dir/aout
+
 	echo "Searching library directory $dir for a.out libraries..."
 
 	# Get a list of archive libraries.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic