From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078612210518.tru64-unix-managers.marc@archive.invalid> From: Thomas Leitner Date: Wed, 21 May 1997 15:29:43 +0000 To: tru64-unix-managers Subject: SUMMARY: JDK 1.1 PThreads patch installation is a joke .... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078612210518 Hi, Thanks to Aideen McConville . He has send me a 3 scripts along with apropriate inventory files for getting the job done more easily. With his permission and with the usual "use at your own risk" warning, I'm including the files here. The only drawback is that the procedure requires about 10Megs for the old files in / and I had no room for the newly built kernel. So I did the following after running the scripts: # find / -xdev -name "*pre_*" -print >/tmp/lst # find /usr -xdev -name "*pre_*" -print >>/tmp/lst # tar -c -R /tmp/lst -v -f /home2/pre.tar # cat /tmp/lst | awk '{ print "rm " $1 }' | sh # rm /tmp/lst in order to save the obsolete files in a tar file at another place. After building the kernel, the machine is now up again and I'm just about to install the Java JDK 1.1. Thanks as well to Mike Newell khan@fbi003.informatik.fh-hamburg.de for their comments. Tom He're the files from Aideen: /* * NOTE!! The scripts and inventory files are based on the DIGITAL * UNIX 4.0B patches */ ---------- Unpack all the patch files into /patches (or create an appropriate link: such as ln -s /patches) Check the .xxx and .inv files for correctness! Copy the executable (.xxx) and inventory (.inv) files to /patches, cd to /patches, Make sure the .xxx files are executable and run each of them (no cmd-line arguments needed). A few of the files may be missing from your installed system, that's OK. Follow the instructions in DUV40Bpthreads-BL6ER.txt to rebuild kernel Good luck! :::::::::::::: patch133.xxx :::::::::::::: #!/usr/bin/csh # foreach f (`cat patch133.inv`) echo $f mv $f $f.pre_133 cp -p `basename $f` $f end :::::::::::::: patch133.inv :::::::::::::: /sys/BINARY/arch_alpha.mod /sys/BINARY/arch_alphapmap.mod /sys/BINARY/cam.mod /sys/BINARY/cam_disk.mod /sys/BINARY/cam_isp1020.mod /sys/BINARY/cam_sim.mod /sys/BINARY/ether.mod /sys/BINARY/ffm_fs.mod /sys/BINARY/inet.mod /sys/BINARY/loop.mod /sys/BINARY/nfs.mod /sys/BINARY/presto.mod /sys/BINARY/procfs.mod /sys/BINARY/re_xcr.mod /sys/BINARY/socket.mod /sys/BINARY/std_kern.mod /sys/BINARY/ufs.mod /sys/BINARY/vfs.mod /sys/BINARY/vm.mod /usr/sbin/audit_tool /usr/sbin/ifconfig /usr/sbin/ufs_fsck /usr/bin/lastcomm /usr/sys/include/io/cam/ccfg.h /usr/sys/include/io/cam/qlogic/isp1020.h /usr/sys/include/io/cam/cam_disk.h /usr/sys/include/io/cam/sim.h /usr/sys/include/sys/fcntl.h /usr/sys/include/sys/fcntl1.h /usr/sys/include/ufs/fs_proto.h /usr/sys/include/ufs/inode.h /usr/sys/include/netinet/tcp_timer.h /usr/sys/include/netinet/tcp_var.h /usr/sys/include/netinet/ip_var.h /usr/sys/include/netinet/proto_inet.h /usr/sys/include/netinet/in_pcb.h /usr/sys/include/net/if.h /usr/sys/include/sys/malloc.h /usr/sys/include/sys/socketvar.h /usr/sys/include/sys/siginfo.h /usr/sys/include/sys/signal.h /usr/sys/include/sys/time.h /usr/sys/include/sys/user.h /usr/sys/kern/lockinfo.c /usr/sys/vfs/vfs_conf.c :::::::::::::: patch136.xxx :::::::::::::: #!/usr/bin/csh # foreach f (`cat patch136.inv`) echo $f mv $f $f.pre_136 cp -p `basename $f` $f end # cd /shlib cp -p libc.so libc.so.pre_136 cp -p /patches/libc.so libc.new mv libc.new libc.so ln -f libc.so libc_r.so chown bin:bin libc.so libc_r.so chmod 644 libc.so libc_r.so # cd /usr/shlib mv libexc.so libexc.so.pre_136 mv libpthread.so libpthread.so.pre_136 mv libpthreaddebug.so libpthreaddebug.so.pre_136 mv libpthreads.so libpthreads.so.pre_136 cp -p /patches/libexc.so . cp -p /patches/libpthread.so . cp -p /patches/libpthreaddebug.so . cp -p /patches/libpthreads.so . chown bin:bin libexc.so libpthread.so libpthreaddebug.so libpthreads.so chmod 644 libexc.so libpthread.so libpthreaddebug.so libpthreads.so # cd /usr/ccs/lib mv libc.a libc.a.pre_136 cp -p /patches/libc.a . ln -f libc.a libc_r.a chown bin:bin libc.a libc_r.a chmod 644 libc.a libc_r.a # cd /patches :::::::::::::: patch136.inv :::::::::::::: /usr/include/ndbm.h /usr/sbin/mkpasswd /sbin/ls /usr/lib/nls/msg/en_US.ISO8859-1/libc.cat /usr/lib/nls/msg/en_US.ISO8859-1/nslookup.cat /usr/lib/uucp/uucico /usr/lib/uucp/uucleanup /sbin/mount /sbin/umount /usr/sbin/auditd /usr/sbin/named /usr/sbin/named-xfer /usr/sbin/uucpd /usr/sbin/screend /usr/sbin/ypbind /usr/bin/nslookup /usr/bin/uucp /usr/include/netdb.h /usr/include/pthread.h /usr/include/resolv.h /usr/include/tis.h /usr/include/arpa/nameser.h :::::::::::::: patch70.xxx :::::::::::::: #!/usr/bin/csh # foreach f (`cat patch70.inv`) echo $f mv $f $f.pre_70 cp -p `basename $f` $f end :::::::::::::: patch70.inv :::::::::::::: /sys/BINARY/advfs.mod /sbin/advfs/verify /sbin/advfs/logread This is my original message: ------------------------------------------------------------------- We're about to start a big Java 1.1 project and I wanted to install the JDK 1.1 from DEC which can be downloaded from: http://www.unix.digital.com/products/internet/java.html It requires the installation of a Pthreads patch which is really a joke. In the accompanying text file, DEC is seriously telling me to replace 77 (in words: seventy-seven) files by hand using "cd path; mv file file.old; cp -p /patches/file ." This just can't be true? Or am I missing something? Has anybody come up with a script for that? The problem is that all new files are in one directory and the final locations are specified in the inventory section of the TXT file. -------------------------------------------------------------------------- T o m L e i t n e r Dept. of Communications Graz University of Technology, e-mail : tom@finwds01.tu-graz.ac.at Inffeldgasse 12 Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe Fax : +43-316-463-697 Home page : http://wiis.tu-graz.ac.at/people/tom.html PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net --------------------------------------------------------------------------