mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dietlibc/pkg_patch/pkg_lilo.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./partition.h.orig 2002-08-14 13:55:42.000000000 +0200
  23. +++ ./partition.h 2002-08-14 13:58:10.000000000 +0200
  24. @@ -16,10 +16,10 @@
  25. struct _change_rule *next;
  26. } CHANGE_RULE;
  27. -#if 1
  28. -
  29. #define LLSECTORSIZE ((long long)SECTOR_SIZE)
  30. +#if 0
  31. +
  32. loff_t llseek(unsigned int fd, loff_t offs, unsigned int whence);
  33. #endif
  34. --- ./partition.c.orig 2002-08-14 13:56:50.000000000 +0200
  35. +++ ./partition.c 2002-08-14 13:59:32.000000000 +0200
  36. @@ -9,6 +9,7 @@
  37. */
  38. +#include "asm/posix_types.h"
  39. #include <stdlib.h>
  40. #include <unistd.h>
  41. @@ -36,6 +37,7 @@
  42. +#if 0
  43. _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
  44. loff_t *, res, uint, wh);
  45. @@ -48,7 +50,7 @@
  46. return _llseek(fd, offs>>32, offs, &res, whence) < 0 ?
  47. (loff_t)(-1) : res;
  48. }
  49. -
  50. +#endif
  51. @@ -153,8 +155,8 @@
  52. }
  53. i=5;
  54. while (i<=pe && base) {
  55. - if (llseek(fd, LLSECTORSIZE*(base+second) + PART_TABLE_OFFSET, SEEK_SET) < 0)
  56. - die("secondary llseek failed");
  57. + if (lseek(fd, LLSECTORSIZE*(base+second) + PART_TABLE_OFFSET, SEEK_SET) < 0)
  58. + die("secondary lseek failed");
  59. if (read(fd, part_table, sizeof(part_table)) != sizeof(part_table)) die("secondary read pt failed");
  60. if ( read(fd, &boot_sig, sizeof(boot_sig)) != sizeof(boot_sig) ||
  61. boot_sig != BOOT_SIGNATURE ) die("read second boot signature failed");
  62. --- ./probe.c.orig 2002-08-14 13:59:52.000000000 +0200
  63. +++ ./probe.c 2002-08-14 14:00:02.000000000 +0200
  64. @@ -551,8 +551,8 @@
  65. }
  66. i=5;
  67. while (verbose>0 && base) {
  68. - if (llseek(fd, LLSECTORSIZE*(base+second) + PART_TABLE_OFFSET, SEEK_SET) < 0)
  69. - die("secondary llseek failed");
  70. + if (lseek(fd, LLSECTORSIZE*(base+second) + PART_TABLE_OFFSET, SEEK_SET) < 0)
  71. + die("secondary lseek failed");
  72. if (read(fd, pt, sizeof(pt)) != sizeof(pt)) die("secondary read pt failed");
  73. if ( read(fd, &boot_sig, sizeof(boot_sig)) != sizeof(boot_sig) ||
  74. boot_sig != BOOT_SIGNATURE ) die("read second boot signature failed");
  75. --- ./Makefile.orig Sat Jan 11 13:58:28 2003
  76. +++ ./Makefile Sat Jan 11 13:58:34 2003
  77. @@ -57,7 +57,7 @@
  78. # XL_SECS=n Support for extra large (non-standard) floppies.
  79. CONFIG=-DBDATA -DBUILTIN -DDSECS=3 -DIGNORECASE -DLBA32 -DLVM -DEVMS -DM386 \
  80. - -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVARSETUP \
  81. + -DONE_SHOT -DPASS160 -DREWRITE_TABLE -DSOLO_CHAIN -DVARSETUP \
  82. -DVERSION -DUNIFY
  83. # set the compiler optimization level