summaryrefslogtreecommitdiffstats
path: root/sysutils/grub/files
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2004-01-26 15:36:54 +0000
committerjedgar <jedgar@FreeBSD.org>2004-01-26 15:36:54 +0000
commit2fa9b07183763cbdfe2c8973bb552df3740dab6b (patch)
treedfb21c98bdfce0aa086ab52ebca8ddb378fd1026 /sysutils/grub/files
parentb53fe36121c192f2a63c93761d3c9d3939852ae8 (diff)
downloadFreeBSD-ports-2fa9b07183763cbdfe2c8973bb552df3740dab6b.zip
FreeBSD-ports-2fa9b07183763cbdfe2c8973bb552df3740dab6b.tar.gz
- Update to 0.94
- Utilize INFO macro - Fix CONFIGURE_TARGET for a new configure script - add patch for right geometry calculation in 5.x - fix patch-dosc_Makefile.in - New MAINTAINER: sem@ciam.ru PR: 61938 Submitted by: Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'sysutils/grub/files')
-rw-r--r--sysutils/grub/files/patch-docs_Makefile.in11
-rw-r--r--sysutils/grub/files/patch-dosc_Makefile.in11
-rw-r--r--sysutils/grub/files/patch-grub_asmstub.c11
-rw-r--r--sysutils/grub/files/patch-lib_device.c73
-rw-r--r--sysutils/grub/files/patch-stage2_fsys_reiserfs.c11
-rw-r--r--sysutils/grub/files/patch-stage2_xfs.h13
6 files changed, 90 insertions, 40 deletions
diff --git a/sysutils/grub/files/patch-docs_Makefile.in b/sysutils/grub/files/patch-docs_Makefile.in
new file mode 100644
index 0000000..74a3696
--- /dev/null
+++ b/sysutils/grub/files/patch-docs_Makefile.in
@@ -0,0 +1,11 @@
+--- docs/Makefile.in.orig Sun Oct 19 21:28:23 2003
++++ docs/Makefile.in Mon Jan 26 15:23:34 2004
+@@ -79,7 +79,7 @@
+ MAINT = @MAINT@
+ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+-MAKEINFO = @MAKEINFO@
++MAKEINFO = @MAKEINFO@ --no-split
+ NETBOOT_DRIVERS = @NETBOOT_DRIVERS@
+ NETBOOT_SUPPORT_FALSE = @NETBOOT_SUPPORT_FALSE@
+ NETBOOT_SUPPORT_TRUE = @NETBOOT_SUPPORT_TRUE@
diff --git a/sysutils/grub/files/patch-dosc_Makefile.in b/sysutils/grub/files/patch-dosc_Makefile.in
deleted file mode 100644
index 8257deb..0000000
--- a/sysutils/grub/files/patch-dosc_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- docs/Makefile.in.orig Thu Jul 5 07:29:56 2001
-+++ docs/Makefile.in Wed Oct 24 09:09:39 2001
-@@ -248,7 +248,7 @@
- MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
- $(TEXI2DVI) $<
-
--MAKEINFO = @MAKEINFO@
-+MAKEINFO = @MAKEINFO@ --no-split
- TEXI2DVI = texi2dvi
- DVIPS = dvips
- .dvi.ps:
diff --git a/sysutils/grub/files/patch-grub_asmstub.c b/sysutils/grub/files/patch-grub_asmstub.c
new file mode 100644
index 0000000..d3dcf84
--- /dev/null
+++ b/sysutils/grub/files/patch-grub_asmstub.c
@@ -0,0 +1,11 @@
+--- grub/asmstub.c.orig Sat Jan 24 01:52:56 2004
++++ grub/asmstub.c Sat Jan 24 19:11:23 2004
+@@ -779,7 +779,7 @@
+
+ if (disks[drive].flags == -1)
+ {
+- if (read_only || errno == EACCES || errno == EROFS)
++ if (read_only || errno == EACCES || errno == EROFS || errno == EPERM)
+ {
+ disks[drive].flags = open (devname, O_RDONLY);
+ if (disks[drive].flags == -1)
diff --git a/sysutils/grub/files/patch-lib_device.c b/sysutils/grub/files/patch-lib_device.c
index 9e4fb52..eb3b072 100644
--- a/sysutils/grub/files/patch-lib_device.c
+++ b/sysutils/grub/files/patch-lib_device.c
@@ -1,6 +1,66 @@
---- lib/device.c.orig Sat Oct 13 00:20:05 2001
-+++ lib/device.c Sun Mar 24 10:31:41 2002
-@@ -209,7 +209,7 @@
+--- lib/device.c.orig Sat Jan 24 01:52:56 2004
++++ lib/device.c Sun Jan 25 00:07:02 2004
+@@ -78,6 +78,12 @@
+ # include <sys/ioctl.h> /* ioctl */
+ # include <sys/disklabel.h>
+ # include <sys/cdio.h> /* CDIOCCLRDEBUG */
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#if __FreeBSD_version >= 500040
++#include <sys/disk.h>
++#endif
++#endif
+ #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ */
+
+ #ifdef HAVE_OPENDISK
+@@ -123,6 +129,7 @@
+ /* FreeBSD, NetBSD or OpenBSD */
+ {
+ struct disklabel hdg;
++#if __FreeBSD_version < 500040
+ if (ioctl (fd, DIOCGDINFO, &hdg))
+ goto fail;
+
+@@ -131,6 +138,38 @@
+ geom->sectors = hdg.d_nsectors;
+ geom->total_sectors = hdg.d_secperunit;
+
++#else
++ u_int u, secsize;
++ off_t mediasize;
++
++ if(ioctl(fd, DIOCGSECTORSIZE, &secsize) != 0)
++ secsize = 512;
++
++ if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0)
++ goto fail;
++
++ hdg.d_secperunit = mediasize / secsize;
++
++ if (ioctl(fd, DIOCGFWSECTORS, &u) == 0)
++ hdg.d_nsectors = u;
++ else
++ hdg.d_nsectors = 63;
++ if (ioctl(fd, DIOCGFWHEADS, &u) == 0)
++ hdg.d_ntracks = u;
++ else if (hdg.d_secperunit <= 63*1*1024)
++ hdg.d_ntracks = 1;
++ else if (hdg.d_secperunit <= 63*16*1024)
++ hdg.d_ntracks = 16;
++ else
++ hdg.d_ntracks = 255;
++ hdg.d_secpercyl = hdg.d_ntracks * hdg.d_nsectors;
++ hdg.d_ncylinders = hdg.d_secperunit / hdg.d_secpercyl;
++
++ geom->cylinders = hdg.d_ncylinders;
++ geom->heads = hdg.d_ntracks;
++ geom->sectors = hdg.d_nsectors;
++ geom->total_sectors = hdg.d_secperunit;
++#endif
+ close (fd);
+ return;
+ }
+@@ -233,7 +272,7 @@
#elif defined(__FreeBSD__)
/* FreeBSD */
# if __FreeBSD__ >= 4
@@ -9,12 +69,15 @@
# else /* __FreeBSD__ <= 3 */
sprintf (name, "/dev/rwd%d", unit);
# endif /* __FreeBSD__ <= 3 */
-@@ -245,7 +245,7 @@
+@@ -274,7 +313,11 @@
sprintf (name, "/dev/sd%d", unit);
#elif defined(__FreeBSD__)
/* FreeBSD */
-- sprintf (name, "/dev/rda%d", unit);
++# if __FreeBSD__ >= 4
+ sprintf (name, "/dev/da%d", unit);
++# else /* __FreeBSD__ <= 3 */
+ sprintf (name, "/dev/rda%d", unit);
++# endif /* __FreeBSD__ <= 3 */
#elif defined(__NetBSD__) && defined(HAVE_OPENDISK)
/* NetBSD */
char shortname[16];
diff --git a/sysutils/grub/files/patch-stage2_fsys_reiserfs.c b/sysutils/grub/files/patch-stage2_fsys_reiserfs.c
deleted file mode 100644
index 55abe96..0000000
--- a/sysutils/grub/files/patch-stage2_fsys_reiserfs.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- stage2/fsys_reiserfs.c.orig Tue Jan 6 11:05:27 2004
-+++ stage2/fsys_reiserfs.c Tue Jan 6 11:05:59 2004
-@@ -112,7 +112,7 @@
- /* offset in the log of where to start replay after a crash */
- __u32 j_first_unflushed_offset;
- /* mount id to detect very old transactions */
-- __u32 long j_mount_id;
-+ __u32 j_mount_id;
- };
-
- /* magic string to find desc blocks in the journal */
diff --git a/sysutils/grub/files/patch-stage2_xfs.h b/sysutils/grub/files/patch-stage2_xfs.h
deleted file mode 100644
index d886529..0000000
--- a/sysutils/grub/files/patch-stage2_xfs.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- stage2/xfs.h.orig Sat Oct 27 12:04:25 2001
-+++ stage2/xfs.h Tue Jul 9 16:03:40 2002
-@@ -33,7 +33,9 @@
- * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
- */
-
--#ifndef _BITS_TYPES_H
-+#include <sys/types.h>
-+
-+#if 0
- typedef signed char __int8_t;
- typedef unsigned char __uint8_t;
- typedef short __int16_t;
OpenPOWER on IntegriCloud