pkgsrc-Bugs archive

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

pkg/51097: pkgsrc/sysutils/grub2: build failed



>Number:         51097
>Category:       pkg
>Synopsis:       pkgsrc/sysutils/grub2: build failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 27 14:20:00 +0000 2016
>Originator:     NONAKA Kimihiro
>Release:        HEAD (20160427)
>Organization:
>Environment:
NetBSD koharu.myhome.nonakap.org 7.99.28 NetBSD 7.99.28 (KOHARU) #3613: Wed Apr 27 21:37:49 JST 2016  nonaka%koharu.myhome.nonakap.org@localhost:/home/storage/snapshot/NetBSD/HEAD-20160424/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/KOHARU amd64
>Description:
net/bootp.c: In function ?grub_net_configure_by_dhcp_ack?:
net/bootp.c:255:30: error: passing argument 2 of ?parse_dhcp_vendor? discards ?c
onst? qualifier from pointer target type [-Werror=discarded-array-qualifiers]
     parse_dhcp_vendor (name, &bp->vendor, size - OFFSET_OF (vendor, bp), &mask)
;
                              ^
net/bootp.c:55:1: note: expected ?void *? but argument is of type ?const grub_ui
nt8_t (*)[] {aka const unsigned char (*)[]}?
 parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask)
 ^

>How-To-Repeat:
1. cd /usr/pkgsrc/sysutils/grub2
2. make

>Fix:
Apply the following patch.

--- grub-core/net/bootp.c.orig	2012-06-22 05:15:48.000000000 +0900
+++ grub-core/net/bootp.c	2016-04-27 22:57:02.990825737 +0900
@@ -52,9 +52,9 @@ set_env_limn_ro (const char *intername, 
 }
 
 static void
-parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask)
+parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask)
 {
-  grub_uint8_t *ptr, *ptr0;
+  const grub_uint8_t *ptr, *ptr0;
 
   ptr = ptr0 = vend;
 



Home | Main Index | Thread Index | Old Index