MOZCHANGES 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. To upgrade to a new revision of libjpeg-turbo, do the following:
  2. * Check out libjpeg-turbo from git:
  3. $ git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
  4. * In a clean clone of mozilla-central, run the update script (tag defaults to HEAD):
  5. $ ./media/update-libjpeg.sh /path/to/libjpeg-turbo [tag]
  6. and fix up any rejects from applying the Mozilla specific patches at the end
  7. of that script.
  8. * Since libjpeg-turbo normally creates jconfig.h and jconfigint.h at build time
  9. and we use pre-generated versions, changes to jconfig.h.in and jconfigint.h.in
  10. should be looked for and noted for later inclusion.
  11. * Now look through the new files and rm any which are npotb. When I upgraded
  12. to libjpeg-turbo 1.1.0, the only files I kept which didn't match
  13. *.c *.h *.asm *.inc
  14. were README and README-turbo.
  15. You can easily look for all non *.c, *.h, *.asm, and *.inc files by running
  16. $ hg status -nu | grep -v '\(c\|h\|asm\|inc\|md\|ijg\)$'
  17. Once you're comfortable that you're only deleting files you want to delete
  18. (and you've hg add'ed the files you want to keep), you can nuke the remaining
  19. files with
  20. $ hg status -nu | grep -v '\(c\|h\|asm\|inc\|md\|ijg\)$' | xargs rm
  21. A helpful command for finding the *.c files which aren't *currently* part of
  22. the build is
  23. diff <(ls *.c | sort) <(grep -o '\w*\.c' Makefile.in | sort)
  24. Of course, libjpeg-turbo might have added some new source files, so you'll
  25. have to look though and figure out which of these files to keep.
  26. * Update jconfig.h and jconfigint.h as noted previously.
  27. * Update moz.build to build any new files.
  28. * Finally, tell hg that we've added or removed some files:
  29. $ hg addremove
  30. == September 22, 2016 (libjpeg-turbo v1.5.1 cb88e5da8003afcdc443b787fdcb77285e5a8a02 2016-09-20) ==
  31. * Updated to v1.5.1 release.
  32. == June 23, 2016 (libjpeg-turbo v1.5.0 3ff13e651bbe6de9c6f15d05235d1d4f26f63ffc 2016-05-31) ==
  33. * Updated to v1.5.0 release.
  34. == October 5, 2015 (libjpeg-turbo v1.4.2 d8da49effe6460d55239c4c009c57f42d8e4a494 2015-09-21) ==
  35. * Updated to v1.4.2 release.
  36. == January 15, 2015 (libjpeg-turbo v1.4.0 r1481 2015-01-07) ==
  37. * Updated to v1.4.0 release.
  38. == March 24, 2014 (libjpeg-turbo v1.3.1 r1205 2014-03-22) ==
  39. * Updated to v1.3.1 release.
  40. == November 25, 2013 ==
  41. * Fix bug 891693.
  42. == June 4, 2013 (libjpeg-turbo v1.3.0 r988 2013-05-25) ==
  43. * Updated to v1.3.0 release.
  44. == December 12, 2012 ==
  45. * Replace the runtime computed jpeg_nbits_table with constants in
  46. jpeg_nbits_table.h to make it shareable among processes. (bug 815473)
  47. == October 13, 2012 ==
  48. * Modified config.h to use MOZ_ALWAYS_INLINE (bug 800106).
  49. == July 4, 2012 (libjpeg-turbo v1.2.1 r853 2012-06-30) ==
  50. * Updated to v1.2.1 stable release.
  51. == June 5, 2012 (libjpeg-turbo v1.2.x branch, r831 2012-05-30) ==
  52. * Updated to latest version on v1.2.x branch (bug 759891).
  53. == February 10, 2012 (libjpeg-turbo v1.2.0 r807 2012-02-10) ==
  54. * Imported jchuff.c, jdhuff.c, jdhuff.h under new licensing.
  55. * Created mozilla.diff for the required jmorecfg.h changes and to allow for any
  56. future changes made by Mozilla to upstream files.
  57. * Removed the following files which are unused by the Mozilla build:
  58. cderror.h, cdjpeg.h, jconfig.h.in, transupp.h, simd/jsimdcfg.inc.h
  59. == March 28, 2011 (initial commit, libjpeg-turbo v1.1.0 r469 2011-02-27) ==
  60. * Modified jmorecfg.h to define UINT8, UINT16, INT16, and INT32 in terms of
  61. prtypes to fix a build error on Windows.
  62. * Defined INLINE as NS_ALWAYS_INLINE in jconfig.h.
  63. * Removed the following files which are licensed under the wxWindows license:
  64. bmp.c, bmp.h, jpegut.c, jpgtest.cxx, rrtimer.h, rrutil.h, turbojpeg.h,
  65. turbojpegl.c
  66. * Reverted the following files to what was previously in Mozilla's tree
  67. (nominally libjpeg 6.2):
  68. jchuff.c, jdhuff.c, jdhuff.h
  69. since the versions of these files in libjpeg-turbo are also under the
  70. wxWindows license. (It would have been nicer to revert them to the new
  71. libjpeg-8b code, but that doesn't easily integrate with libjpeg-turbo.)