pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/grub Fix build problems with GCC 4.x if netbo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/894a15f16293
branches:  trunk
changeset: 530333:894a15f16293
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Jun 25 13:05:56 2007 +0000

description:
Fix build problems with GCC 4.x if netboot support is enabled.
Patches provided by Dieter Roelants in PR pkg/36549.

diffstat:

 sysutils/grub/Makefile         |   3 +--
 sysutils/grub/distinfo         |   5 ++++-
 sysutils/grub/patches/patch-ak |  14 ++++++++++++++
 sysutils/grub/patches/patch-al |  22 ++++++++++++++++++++++
 sysutils/grub/patches/patch-am |  22 ++++++++++++++++++++++
 5 files changed, 63 insertions(+), 3 deletions(-)

diffs (96 lines):

diff -r 1d76b47d9c2a -r 894a15f16293 sysutils/grub/Makefile
--- a/sysutils/grub/Makefile    Mon Jun 25 10:53:21 2007 +0000
+++ b/sysutils/grub/Makefile    Mon Jun 25 13:05:56 2007 +0000
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2006/12/17 19:21:42 jmmv Exp $
-#
+# $NetBSD: Makefile,v 1.47 2007/06/25 13:05:56 tron Exp $
 
 DISTNAME=      grub-0.97
 PKGREVISION=   7
diff -r 1d76b47d9c2a -r 894a15f16293 sysutils/grub/distinfo
--- a/sysutils/grub/distinfo    Mon Jun 25 10:53:21 2007 +0000
+++ b/sysutils/grub/distinfo    Mon Jun 25 13:05:56 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2006/12/17 19:21:43 jmmv Exp $
+$NetBSD: distinfo,v 1.22 2007/06/25 13:05:56 tron Exp $
 
 SHA1 (grub-0.97.tar.gz) = 2580626c4579bd99336d3af4482c346c95dac4fb
 RMD160 (grub-0.97.tar.gz) = 7fb5674edf0c950bd38e94f85ff1e2909aa741f0
@@ -13,3 +13,6 @@
 SHA1 (patch-ah) = ff62b64177a0e68400c32e013cb585526db94217
 SHA1 (patch-ai) = 60088cf6786a364da37e19fbb5df4c6fd7641016
 SHA1 (patch-aj) = bfbac23a7c250ed615dcfb4a988708c970b617d8
+SHA1 (patch-ak) = 8e67eb603e639ca47536cb191e7e29ec48b95642
+SHA1 (patch-al) = 58761e867ff182ad46c42b15575395ba8c38fbd6
+SHA1 (patch-am) = d848f67f7f21fa076751d14bd3235ae7351be1b7
diff -r 1d76b47d9c2a -r 894a15f16293 sysutils/grub/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/grub/patches/patch-ak    Mon Jun 25 13:05:56 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ak,v 1.3 2007/06/25 13:05:56 tron Exp $
+
+--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/etherboot.h    2003-07-09 13:45:37.000000000 +0200
++++ netboot/etherboot.h        2007-06-24 15:28:38.000000000 +0200
+@@ -531,9 +531,7 @@
+ extern int network_ready;
+ extern struct rom_info rom;
+ extern struct arptable_t arptable[MAX_ARP];
+-extern struct bootpd_t bootp_data;
+ #define       BOOTP_DATA_ADDR (&bootp_data)
+-extern unsigned char *end_of_rfc1533;
+ 
+ /* config.c */
+ extern struct nic nic;
diff -r 1d76b47d9c2a -r 894a15f16293 sysutils/grub/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/grub/patches/patch-al    Mon Jun 25 13:05:56 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-al,v 1.3 2007/06/25 13:05:57 tron Exp $
+
+--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/sis900.c       2003-07-09 13:45:38.000000000 +0200
++++ netboot/sis900.c   2007-06-24 18:15:38.000000000 +0200
+@@ -901,7 +901,7 @@
+                 const char  *p)     /* Packet */
+ {
+     u32 status, to, nstype;
+-    u32 tx_status;
++    volatile u32 tx_status;
+     
+     /* Stop the transmitter */
+     outl(TxDIS, ioaddr + cr);
+@@ -940,7 +940,7 @@
+ 
+     to = currticks() + TX_TIMEOUT;
+ 
+-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
++    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+         /* wait */ ;
+ 
+     if (currticks() >= to) {
diff -r 1d76b47d9c2a -r 894a15f16293 sysutils/grub/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/grub/patches/patch-am    Mon Jun 25 13:05:56 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-am,v 1.3 2007/06/25 13:05:57 tron Exp $
+
+--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/natsemi.c      2003-07-09 13:45:38.000000000 +0200
++++ netboot/natsemi.c  2007-06-24 18:25:21.000000000 +0200
+@@ -608,7 +608,7 @@
+                const char  *p)     /* Packet */
+ {
+     u32 status, to, nstype;
+-    u32 tx_status;
++    volatile u32 tx_status;
+     
+     /* Stop the transmitter */
+     outl(TxOff, ioaddr + ChipCmd);
+@@ -647,7 +647,7 @@
+ 
+     to = currticks() + TX_TIMEOUT;
+ 
+-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
++    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+         /* wait */ ;
+ 
+     if (currticks() >= to) {



Home | Main Index | Thread Index | Old Index