HOWTO_EDIT 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. How to edit the LFS-BOOK
  2. ------------------------
  3. This document explains the necessary steps to be taken in order to make
  4. changes to the LFS-BOOK. Not every single aspect is detailed, just the
  5. more tricky ones.
  6. * No matter what, always make the following changes whenever you do
  7. something:
  8. Whenever you make a change, no matter how small, update the book's version
  9. number:
  10. 1) Open the index.xml file.
  11. 2) Find <!ENTITY version "yyyymmdd"> and make sure it contains the date on
  12. which you are making the change. If today is June 11th, 2001, change it
  13. to <!ENTITY version "20010611".
  14. 3) Find <ENTITY releasedate "Month, day, year"> and make sure it contains
  15. the same date as the 'version' entity. If today is June 11th, 2001, change
  16. it to: <!ENTITY releasedate "June 11th, 2001">
  17. * Updating a package's version
  18. Follow these steps in order to change a package (for example when you tested
  19. a newer version and want to include it in the book). Let's assume you're
  20. upgrading to bash-2.05.
  21. 1) Download bash-2.05 to the linuxfromscratch.org server in the
  22. /home/ftp/conglomeration directory. If the file isn't compressed with bzip2,
  23. but with gzip for example, ungzip it, then bzip2 it.
  24. 2) Enter the /home/ftp/cvs directory.
  25. 3) Remove the symlink that points to the previous version of the
  26. package.
  27. 4) You can remove the real file from the /home/ftp/conglomeration
  28. directory only is you are absolutely sure that there are no other books
  29. currently online that use that package version. If you don't remember
  30. which book versions are online right now, check the LFS website.
  31. 5) Make a new symlink by running the following command:
  32. ln -s ../conglomeration/bash-2.05.tar.bz2
  33. 6) Obtain the file size of the new package (run ls -l
  34. /home/ftp/conglomeration/packagename). Divide this number by 1024 and
  35. remember the result.
  36. 7) Enter the /home/ftp directory and create a new lfs-packages tarball.
  37. If today is June 11th, 2001 1:09 PM, run the following:
  38. tar cvfh lfs-packages-cvs-20010611-1309.tar cvs
  39. mv lfs-packages-cvs-20010611-1309.tar cvs
  40. (use the current date and time on the LFS server, not your local time if
  41. it differs)
  42. The reason for adding the hour and minute is that one may end up
  43. creating more than one tarball a day and it's easier this way to find
  44. out which packages file was being used in case there are a lot of
  45. updates.
  46. 8) Obtain the file size of the newly created tarball by running ls -l,
  47. divide the number by 1024 and remeber the result.
  48. 9) Open the index.xml file.
  49. 10) At the bottom of the file find the ENTITY that belongs to the package.
  50. You'll find it as <!ENTITY package-version "version">. Change the
  51. bash-version entity as follows: <!ENTITY bash-version "2.05">
  52. 11) Edit the <!ENTITY all-version> entity and update the file name to
  53. match the name of the tarball you just created.
  54. 12) Edit the <!ENTITY all-version> entity and update the file name to
  55. match the name of the new tarball you just created.
  56. 13) Open the chapter3/bash.xml file.
  57. 14) Enter the new size that you calculated in step 6.
  58. 15) Open the chapter3/all.xml file.
  59. 16) Update the file size to match the value you calculated in step 8.
  60. 17) Open the chapter3/packages.xml file, scroll to the bottom of the
  61. file and enter the same size as you entered in the previous step. Also
  62. divide this number by 1024 and enter the result as the MB value between
  63. brackets.
  64. 18) Open chapter1/changelog.xml and add the package to the list.
  65. Please don't use the "du -h" command to obtain the file size. The result
  66. of du is not acurate enough (it doesn't report the actual file size, but
  67. the size of clusters the file is using).
  68. If you are updating more than one package at the same time, don't
  69. re-create the tarball every time. Just update all the symlinks and
  70. create a new tarball once that includes all your updated packages.
  71. * Adding a new package update to Bugzilla
  72. 1) Login to bugzilla
  73. 2) Open bug #30
  74. 3) Check if the package is listed from a previous update
  75. 4) If so, reopen it and change the version number to match the new one
  76. 5) If not, add a new bug and fill it out as usual
  77. 6) When added, go back to the new bug and under "Bug xx depends on"
  78. enter "30" so that this new bug is added to the parent bug #30
  79. 7) Click on "Commit" to commit this change