home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3101 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.7 KB  |  64 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.arizona.edu!pab
  3. From: pab@cs.arizona.edu (Peter A. Bigot)
  4. Subject: 2.3.3 fixincludes bug+patch
  5. Message-ID: <199301021930.AA20889@omnia.cs.arizona.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 2 Jan 1993 05:30:54 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 51
  12.  
  13. There is a bug in fixincludes which arises given a certain configuration of
  14. /usr/include.  We have /usr/include/X11 as a symlink to
  15. /usr/X11R5/include/X11.  /usr/X11R5/include/X11 has several subdirectories
  16. (e.g., phigs).  fixincludes as distributed detects these subdirectories when
  17. building the subdirectories list of /usr/include, and creates them in the
  18. LIB directory.  However, it then proceeds to delete the entire
  19. ${LIB}/include/X11 hierarchy and replace it with a symlink to
  20. ${LIB}/include/root/usr/X11R5/include/X11.  The subdirectories that were in
  21. $LIB/include/X11 are not recreated.  As a result, when
  22. /usr/include/X11/phigs/phigs.h is being fixed, the copy to
  23. $LIB/include/X11/phigs/phigs.h fails since the phigs subdirectory doesn't
  24. exist.
  25.  
  26. The following patch makes fixincludes duplicate the subdirectory creation in
  27. the new root area.
  28.  
  29. --- fixincludes.orig    Fri Dec  4 17:49:22 1992
  30. +++ fixincludes    Sat Jan  2 10:31:14 1993
  31. @@ -177,6 +177,17 @@
  32.            dirname=`echo $dirname | sed -e 's|[^/]*/||'`
  33.          done
  34.        fi
  35. +          # Duplicate directory structure created in ${LIB}/$file in new
  36. +          # root area.
  37. +          for file2 in $files; do
  38. +            if expr ${file2} : "${file}/.*" > /dev/null ; then
  39. +              dupdir=${LIB}/root$x/`echo $file2 | sed -n "s|^${file}/||p"`
  40. +#              echo "Duplicating from ${file}'s ${file2} to ${dupdir}"
  41. +              if [ ! -d ${dupdir} ] ; then
  42. +                mkdir ${dupdir}
  43. +                fi
  44. +              fi
  45. +            done
  46.        rm -fr ${LIB}/$file > /dev/null 2>&1
  47.        ln -s ${LIB}/root$x ${LIB}/$file > /dev/null 2>&1
  48.        treetops="$treetops $x ${LIB}/root$x"
  49.  
  50. --
  51.                      Peter A. Bigot -- pab@cs.arizona.edu
  52.           Dept. of Computer Science, University of Arizona, Tucson AZ
  53. ---------------------------- The current quote is: ----------------------------
  54.  "That's all for now.  This is Miss Lidia, saying: 'Bye-bye'--and remember,
  55.          the better you look, the more you'll see."
  56.  
  57. -- 
  58.                      Peter A. Bigot -- pab@cs.arizona.edu
  59.           Dept. of Computer Science, University of Arizona, Tucson AZ
  60. ---------------------------- The current quote is: ----------------------------
  61.  "That's all for now.  This is Miss Lidia, saying: 'Bye-bye'--and remember,
  62.          the better you look, the more you'll see."
  63.  
  64.