home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5683 < prev    next >
Encoding:
Text File  |  1992-09-14  |  8.1 KB  |  155 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: 386BSD PARTIAL PATCH KIT NOW AVAILABLE
  5. Message-ID: <1992Sep14.172427.1194@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1992Sep13.010735.1171@fcom.cc.utah.edu> <david.716436045@mlb.geomechanics.csiro.au>
  9. Date: Mon, 14 Sep 92 17:24:27 GMT
  10. Lines: 143
  11.  
  12. In article <david.716436045@mlb.geomechanics.csiro.au> david@mlb.geomechanics.csiro.au (David Le Blanc) writes:
  13. >terry@cs.weber.edu (A Wizard of Earth C) writes:
  14. >
  15. >>I have uploaded the first 19 patches and the patchkit software to the
  16. >>directory /pub/incoming/terry on agate.berkeley.edu.  This is not a
  17. >>complete set, as there are still 10-20 patches not yet in patchkit format.
  18. >
  19. >>The following is a list of the patches in the current patch kit.
  20. >>Remember that the patchkit expects to start with a "virgin" kernel... no
  21. >>strange hacks allowed.
  22. >
  23. >Please note that this is rather rude, and very restrictive.
  24.  
  25. I assume that you mean the reference to a '"virgin" kernel.  If you can tell
  26. me how to write a patch program that doesn't require context differences,
  27. I'll be happy to incorporate (and patent 8-)) the technology.
  28.  
  29. Until then, the patches are incremental in nature.  This means for all the
  30. existing patches, I have to start with a "baseline"... ie: a "virgin" kernel,
  31. or some agreed upon baseline.  It also means that, in order to produce the
  32. patches in the first place, I have to *manually* go through them to insure
  33. that conflicts between patches are resolved (since there was no incremental
  34. management of the patches in the first place).
  35.  
  36. If you produce a patch to wd.c and I produce a patch to wd.c, and joe blow
  37. produces a patch to wd.c, there has to be an *order* to the patches so that
  38. there aren't any conflicts.  There has to be *enforcement* of this order,
  39. since I can't tell what patches you already have installed, and for the
  40. context to be correct, the order *must* be enforced.  There's no other
  41. way I can see to get the majority of patches out to the majority of
  42. people.  I have been keeping multiple source trees for baselining from day
  43. 1 to facilitate this.
  44.  
  45. >Is your patch kit going to help me with the bus mouse driver I have to patch
  46. >in? Or make things hard?
  47.  
  48. If you are talking about the Logitech one posted here, then it will simply
  49. install as a patch, as will the AT&T EN100/PC-10 NAU ethernet board drivers.
  50.  
  51. It's true that I haven't taken into account automatic rebuild (at least not
  52. yet) of the patched files.  This is partly because I am rolling in the 4.3
  53. Reno patches posted to the net, and I can't be guaranteed a full source tree
  54. anywhere but the kernel (how do I remake "init" after it is patched, for
  55. example?).  I will probably be including a machanism for kernel rebuild
  56. and a tag to indicate that it is necessary, but have done nothing on it so
  57. far.  I suppose I will have to include the running of MAKEDEV as well.
  58.  
  59. I have also not placed it in an easily accessable area; casual browsers
  60. won't find it, and it won't be echoed to other sites mirroring agate.
  61. This is intentional; the thing is admittedly "alpha".  In particular, the
  62. code identifying falure to install the patch and patches 14 and 16 have
  63. problems.  Patches 14 and 16 can be incrementally deinstalled until this
  64. is fixed (it's fixed now, but upload will wait until tonight).  When it
  65. goes "beta", meaning that I know all patches so far are represented and
  66. that they install correctly, I will ask Chris to make the thing public,
  67. and it will get mirrored everywhere.
  68.  
  69. >Will it work with, or cause problems for those installing the patches for
  70. >using X386 ?
  71.  
  72. Obviously, if the context diffs for the X are not taken against baseline code,
  73. there will be problems.  Certainly there will *not* be problems if the diffs
  74. are against a "fully patched" kernel, or if the affected files are patch
  75. level 0 (new files) or part of the original distribution, and are not touched
  76. by the patch kit.
  77.  
  78. >Will the X386 patches be incorporated?
  79.  
  80. The ones on agate in the incoming/X386 directory *have been*; they just
  81. haven't been posted yet (I felt it would be easier to debug 20 patches
  82. at the same time rather than 40 of them -- so sue me).  If there are more
  83. recent versions, they will require incorporation against baseline, which
  84. is defines as the patches you have applied and the patch level of the
  85. file affected.
  86.  
  87. >Granted I have not seen the patchkit software, I would be happy if you
  88. >allowed a modular approach, so that I could add a patch to the
  89. >'patchkit' directory, edit some central config file, and run the software.
  90. >
  91. >I may then select the new patch, and have it applied.
  92.  
  93. It is modular; however, because I haven't been able to work out how to
  94. (automatically, preferrably) manage baselining, I haven't distributed the
  95. patch-building software (mkpatch) or it's documentation, or the tutorial.
  96. I am currently trying to work with Nate (the bug list keeper) on a way to
  97. manage this, and when we have something, I am sure we will post.  Until
  98. then, I will probably keep incorporating patches as they are posted.  To
  99. directly answer, the question, however, NO, YOU CAN NOT CURRENTLY MAKE
  100. NEW PATCHES BECAUSE YOU DO NOT HAVE THE PATCH PRODUCTION SOFTWARE, AND
  101. ANYONE THINKING OF MAKING PATCHES IS STRONGLY DISCOURAGED FROM PUTTING
  102. THEM IN PATCHKIT FORMAT THEMSELVES BECAUSE OF THE CONFLICT MANAGEMENT
  103. ISSUES WHICH STILL NEED TO BE ADDRESSED.
  104.  
  105. >Could all patches be kept in a compressed form?
  106.  
  107. Initially, all the patches *are* in compressed form.  The failure of a
  108. compression of compressed data is why the file containing both the patch
  109. kits and the patch software is simply a tar archive (as previously posted).
  110.  
  111. I do *not* store installed patches or ready-to-install patches in compressed
  112. form; however, the patch generation software does pack them that way for
  113. distribution.
  114.  
  115. I could not worry too much about disk space, since the way things are
  116. currently arranged, previous patch levels *must* be left around for subsequent
  117. patches to know what has been installed.  Later, this will be replaced with
  118. patch removal via "patch -R".  I haven't done that yet.
  119.  
  120.  
  121. Bottom line:  I make some assumptions which cost a small amount of disk space,
  122. which may be too expensive for people who only have a "very small" amount of
  123. disk.  These people are unlikely to benefit from the installation of patches
  124. anyway, since they are unlikely to be able to rebuild their kernel.  I make
  125. some assumptions about baselining that means you have to have a "virgin"
  126. kernel with no patches to the files to be patched.  This is the assumption
  127. that practically all patch posters have held to so far.  I make it so an
  128. idiot can patch kernels (not that I expect many idiots to be able to con
  129. anyone into installing the patch software for them, much less knowing how
  130. to usae ftp).  I make it so that you can apply multiple patches to the same
  131. file.  I make non-prerequisite patches optional (admittedly a value judgement
  132. on my part).  I provide a common mechanism for patch distribution so that
  133. patches and new files are not in a bad format because someon forgot the "-c"
  134. option to diff or put the file name parameters in the wrong order.
  135.  
  136. I am *not* setting myself up as "patch god".  Since I expect that 0.2 will
  137. eventually be released, that would be a stupid move on my part, not to mention
  138. that I really already have my hands full at the moment with other things.  I
  139. realize that this will probably be the short term effect of "official" patch
  140. numbers, and incremental installation, and am working dilligently to resolve
  141. this.  Until then, if you don't like it, don't use it.
  142.  
  143.  
  144.                     Terry Lambert
  145.                     terry_lambert@gateway.novell.com
  146.                     terry@icarus.weber.edu
  147. ---
  148. Any opinions in this posting are my own and not those of my present
  149. or previous employers.
  150. -- 
  151. -------------------------------------------------------------------------------
  152.                                         "I have an 8 user poetic license" - me
  153.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  154. -------------------------------------------------------------------------------
  155.