223-magic-add-blcr.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Author: Alan Woodland <ajw05@aber.ac.uk>
  2. Description: Add support for BLCR context files (Closes: #538407).
  3. diff -Naurp file.orig/magic/Magdir/blcr file/magic/Magdir/blcr
  4. --- file.orig/magic/Magdir/blcr 1970-01-01 00:00:00.000000000 +0000
  5. +++ file/magic/Magdir/blcr 2009-07-25 16:16:17.000000000 +0000
  6. @@ -0,0 +1,25 @@
  7. +# Berkeley Lab Checkpoint Restart (BLCR) checkpoint context files
  8. +# http://ftg.lbl.gov/checkpoint
  9. +0 string C\0\0\0R\0\0\0 BLCR
  10. +>16 lelong 1 x86
  11. +>16 lelong 3 alpha
  12. +>16 lelong 5 x86-64
  13. +>16 lelong 7 ARM
  14. +>8 lelong x context data (little endian, version %d)
  15. +# Uncomment the following only of your "file" program supports "search"
  16. +#>0 search/1024 VMA\06 for kernel
  17. +#>>&1 byte x %d.
  18. +#>>&2 byte x %d.
  19. +#>>&3 byte x %d
  20. +0 string \0\0\0C\0\0\0R BLCR
  21. +>16 belong 2 SPARC
  22. +>16 belong 4 ppc
  23. +>16 belong 6 ppc64
  24. +>16 belong 7 ARMEB
  25. +>16 belong 8 SPARC64
  26. +>8 belong x context data (big endian, version %d)
  27. +# Uncomment the following only of your "file" program supports "search"
  28. +#>0 search/1024 VMA\06 for kernel
  29. +#>>&1 byte x %d.
  30. +#>>&2 byte x %d.
  31. +#>>&3 byte x %d
  32. diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
  33. --- file.orig/magic/Makefile.am 2009-07-25 16:15:25.000000000 +0000
  34. +++ file/magic/Makefile.am 2009-07-25 16:16:54.000000000 +0000
  35. @@ -25,6 +25,7 @@ $(MAGIC_FRAGMENT_DIR)/att3b \
  36. $(MAGIC_FRAGMENT_DIR)/audio \
  37. $(MAGIC_FRAGMENT_DIR)/basis \
  38. $(MAGIC_FRAGMENT_DIR)/bflt \
  39. +$(MAGIC_FRAGMENT_DIR)/blcr \
  40. $(MAGIC_FRAGMENT_DIR)/blender \
  41. $(MAGIC_FRAGMENT_DIR)/blit \
  42. $(MAGIC_FRAGMENT_DIR)/bout \
  43. diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
  44. --- file.orig/magic/Makefile.in 2009-07-25 16:15:25.000000000 +0000
  45. +++ file/magic/Makefile.in 2009-07-25 16:16:58.000000000 +0000
  46. @@ -190,6 +190,7 @@ $(MAGIC_FRAGMENT_DIR)/att3b \
  47. $(MAGIC_FRAGMENT_DIR)/audio \
  48. $(MAGIC_FRAGMENT_DIR)/basis \
  49. $(MAGIC_FRAGMENT_DIR)/bflt \
  50. +$(MAGIC_FRAGMENT_DIR)/blcr \
  51. $(MAGIC_FRAGMENT_DIR)/blender \
  52. $(MAGIC_FRAGMENT_DIR)/blit \
  53. $(MAGIC_FRAGMENT_DIR)/bout \