pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils Merge upstream patches for fixing the build w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0896a98bed5d
branches: trunk
changeset: 362176:0896a98bed5d
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun May 07 21:21:01 2017 +0000
description:
Merge upstream patches for fixing the build with clang.
diffstat:
sysutils/xenkernel45/distinfo | 6 +-
sysutils/xenkernel45/patches/patch-xen_arch_arm_xen.lds.S | 12 +
sysutils/xenkernel45/patches/patch-xen_arch_x86_alternative.c | 22 +++
sysutils/xenkernel45/patches/patch-xen_common_efi_boot.c | 77 +++++++++++
sysutils/xenkernel45/patches/patch-xen_include_xen_init.h | 12 +
sysutils/xenkernel46/distinfo | 6 +-
sysutils/xenkernel46/patches/patch-xen_arch_arm_xen.lds.S | 12 +
sysutils/xenkernel46/patches/patch-xen_arch_x86_alternative.c | 22 +++
sysutils/xenkernel46/patches/patch-xen_common_efi_boot.c | 77 +++++++++++
sysutils/xenkernel46/patches/patch-xen_include_xen_init.h | 12 +
10 files changed, 256 insertions(+), 2 deletions(-)
diffs (truncated from 325 to 300 lines):
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel45/distinfo
--- a/sysutils/xenkernel45/distinfo Sun May 07 21:19:47 2017 +0000
+++ b/sysutils/xenkernel45/distinfo Sun May 07 21:21:01 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.23 2017/04/08 11:47:33 spz Exp $
+$NetBSD: distinfo,v 1.24 2017/05/07 21:21:01 joerg Exp $
SHA1 (xen-4.5.5.tar.gz) = 4073d411c72d3298baacfc15577b92b9ae577073
RMD160 (xen-4.5.5.tar.gz) = 34132ab04752dc594fbdc1404c95f402b7bbbe39
@@ -17,8 +17,12 @@
SHA1 (patch-XSA-207) = e567afa1999bdb12800e7df43d5fdf8564d67fb1
SHA1 (patch-XSA-212) = 4637d51bcbb3b11fb0e22940f824ebacdaa15b4f
SHA1 (patch-xen_Makefile) = 750d0c8d4fea14d3ef3f872de5242a1f5104cbbe
+SHA1 (patch-xen_arch_arm_xen.lds.S) = fb15462a6f8f1d556f0a76062bce0768f11dcac2
SHA1 (patch-xen_arch_x86_Rules.mk) = 7b0894ba7311edb02118a021671f304cf3872154
+SHA1 (patch-xen_arch_x86_alternative.c) = d1ba40e0cbc5eff45030900790965460bc918ad4
+SHA1 (patch-xen_common_efi_boot.c) = 6bf417cf79339f8a0e557423ce45077c4cdb20b4
SHA1 (patch-xen_common_page__alloc.c) = c4d606de1cada8cf89b5abd16efada3d58c68a03
SHA1 (patch-xen_drivers_passthrough_vtd_x86_ats.c) = f72fd4bb2aeeaeb0b167031dfd5498e73666aa4e
SHA1 (patch-xen_include_asm-x86_current.h) = 8a21577be06383c0c7f53c15ba828f77fb6314ad
+SHA1 (patch-xen_include_xen_init.h) = 36fb182cde92e8767a9b73b301858911314cca73
SHA1 (patch-xen_include_xen_lib.h) = 82a219b7d9c5deaa2b8e0adc774f60395adc4815
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel45/patches/patch-xen_arch_arm_xen.lds.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_arch_arm_xen.lds.S Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_arch_arm_xen.lds.S,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/arch/arm/xen.lds.S.orig 2016-09-20 05:59:24.000000000 +0000
++++ xen/arch/arm/xen.lds.S
+@@ -110,6 +110,7 @@ SECTIONS
+ . = ALIGN(PAGE_SIZE);
+ .init.data : {
+ *(.init.rodata)
++ *(.init.rodata.rel)
+ *(.init.rodata.str*)
+ *(.init.data)
+ *(.init.data.rel)
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel45/patches/patch-xen_arch_x86_alternative.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_arch_x86_alternative.c Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-xen_arch_x86_alternative.c,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/arch/x86/alternative.c.orig 2016-09-20 05:59:24.000000000 +0000
++++ xen/arch/x86/alternative.c
+@@ -39,7 +39,7 @@ static const unsigned char k8nops[] __in
+ K8_NOP7,
+ K8_NOP8
+ };
+-static const unsigned char * const k8_nops[ASM_NOP_MAX+1] = {
++static const unsigned char * const k8_nops[ASM_NOP_MAX+1] __initconstrel = {
+ NULL,
+ k8nops,
+ k8nops + 1,
+@@ -63,7 +63,7 @@ static const unsigned char p6nops[] __in
+ P6_NOP7,
+ P6_NOP8
+ };
+-static const unsigned char * const p6_nops[ASM_NOP_MAX+1] = {
++static const unsigned char * const p6_nops[ASM_NOP_MAX+1] __initconstrel = {
+ NULL,
+ p6nops,
+ p6nops + 1,
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel45/patches/patch-xen_common_efi_boot.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_common_efi_boot.c Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,77 @@
+$NetBSD: patch-xen_common_efi_boot.c,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/common/efi/boot.c.orig 2016-09-20 05:59:24.000000000 +0000
++++ xen/common/efi/boot.c
+@@ -239,53 +239,33 @@ static void __init noreturn blexit(const
+ /* generic routine for printing error messages */
+ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode)
+ {
++ static const CHAR16* const ErrCodeToStr[] __initconstrel = {
++ [~EFI_ERROR_MASK & EFI_NOT_FOUND] = L"Not found",
++ [~EFI_ERROR_MASK & EFI_NO_MEDIA] = L"The device has no media",
++ [~EFI_ERROR_MASK & EFI_MEDIA_CHANGED] = L"Media changed",
++ [~EFI_ERROR_MASK & EFI_DEVICE_ERROR] = L"Device error",
++ [~EFI_ERROR_MASK & EFI_VOLUME_CORRUPTED] = L"Volume corrupted",
++ [~EFI_ERROR_MASK & EFI_ACCESS_DENIED] = L"Access denied",
++ [~EFI_ERROR_MASK & EFI_OUT_OF_RESOURCES] = L"Out of resources",
++ [~EFI_ERROR_MASK & EFI_VOLUME_FULL] = L"Volume is full",
++ [~EFI_ERROR_MASK & EFI_SECURITY_VIOLATION] = L"Security violation",
++ [~EFI_ERROR_MASK & EFI_CRC_ERROR] = L"CRC error",
++ [~EFI_ERROR_MASK & EFI_COMPROMISED_DATA] = L"Compromised data",
++ [~EFI_ERROR_MASK & EFI_BUFFER_TOO_SMALL] = L"Buffer too small",
++ };
++ EFI_STATUS ErrIdx = ErrCode & ~EFI_ERROR_MASK;
++
+ StdOut = StdErr;
+ PrintErr((CHAR16 *)mesg);
+ PrintErr(L": ");
+
+- switch (ErrCode)
++ if( (ErrIdx < ARRAY_SIZE(ErrCodeToStr)) && ErrCodeToStr[ErrIdx] )
++ mesg = ErrCodeToStr[ErrIdx];
++ else
+ {
+- case EFI_NOT_FOUND:
+- mesg = L"Not found";
+- break;
+- case EFI_NO_MEDIA:
+- mesg = L"The device has no media";
+- break;
+- case EFI_MEDIA_CHANGED:
+- mesg = L"Media changed";
+- break;
+- case EFI_DEVICE_ERROR:
+- mesg = L"Device error";
+- break;
+- case EFI_VOLUME_CORRUPTED:
+- mesg = L"Volume corrupted";
+- break;
+- case EFI_ACCESS_DENIED:
+- mesg = L"Access denied";
+- break;
+- case EFI_OUT_OF_RESOURCES:
+- mesg = L"Out of resources";
+- break;
+- case EFI_VOLUME_FULL:
+- mesg = L"Volume is full";
+- break;
+- case EFI_SECURITY_VIOLATION:
+- mesg = L"Security violation";
+- break;
+- case EFI_CRC_ERROR:
+- mesg = L"CRC error";
+- break;
+- case EFI_COMPROMISED_DATA:
+- mesg = L"Compromised data";
+- break;
+- case EFI_BUFFER_TOO_SMALL:
+- mesg = L"Buffer too small";
+- break;
+- default:
+ PrintErr(L"ErrCode: ");
+ DisplayUint(ErrCode, 0);
+ mesg = NULL;
+- break;
+ }
+ blexit(mesg);
+ }
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel45/patches/patch-xen_include_xen_init.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_include_xen_init.h Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_include_xen_init.h,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/include/xen/init.h.orig 2016-09-20 05:59:24.000000000 +0000
++++ xen/include/xen/init.h
+@@ -11,6 +11,7 @@
+ #define __exit __text_section(".exit.text")
+ #define __initdata __section(".init.data")
+ #define __initconst __section(".init.rodata")
++#define __initconstrel __section(".init.rodata.rel")
+ #define __exitdata __used_section(".exit.data")
+ #define __initsetup __used_section(".init.setup")
+ #define __init_call(lvl) __used_section(".initcall" lvl ".init")
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel46/distinfo
--- a/sysutils/xenkernel46/distinfo Sun May 07 21:19:47 2017 +0000
+++ b/sysutils/xenkernel46/distinfo Sun May 07 21:21:01 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2017/04/08 12:17:58 spz Exp $
+$NetBSD: distinfo,v 1.9 2017/05/07 21:21:01 joerg Exp $
SHA1 (xen-4.6.5.tar.gz) = af371af662211ee1480167b6c9e35142156f3a8d
RMD160 (xen-4.6.5.tar.gz) = 3f2468d7d3715d14842ac57b2180118ef48e93fa
@@ -8,11 +8,15 @@
SHA1 (patch-XSA-212) = 4637d51bcbb3b11fb0e22940f824ebacdaa15b4f
SHA1 (patch-tools_xentrace_xenalyze.c) = ab973cb7090dc90867dcddf9ab8965f8f2f36c46
SHA1 (patch-xen_Makefile) = be3f4577a205b23187b91319f91c50720919f70b
+SHA1 (patch-xen_arch_arm_xen.lds.S) = df0e4a13b9b3ae863448172bea28b1b92296327b
SHA1 (patch-xen_arch_x86_Rules.mk) = 7b0894ba7311edb02118a021671f304cf3872154
+SHA1 (patch-xen_arch_x86_alternative.c) = d86b414989b794202adf91735536cde96673439e
SHA1 (patch-xen_arch_x86_mm.c) = 3c1435fa5db6a0f542e5efe726997f262fa04041
SHA1 (patch-xen_arch_x86_xen.lds.S) = 58a890c404ca4f86ccfb58cf5a83b07e235034fc
+SHA1 (patch-xen_common_efi_boot.c) = 38e959b686c1d8c2b2dc173edda1a6d40607c63e
SHA1 (patch-xen_common_page__alloc.c) = c4d606de1cada8cf89b5abd16efada3d58c68a03
SHA1 (patch-xen_drivers_passthrough_vtd_x86_ats.c) = f72fd4bb2aeeaeb0b167031dfd5498e73666aa4e
SHA1 (patch-xen_include_asm-x86_current.h) = 8a21577be06383c0c7f53c15ba828f77fb6314ad
SHA1 (patch-xen_include_asm-x86_spinlock.h) = a78fe84c87632f0524af255f173676732418a75e
+SHA1 (patch-xen_include_xen_init.h) = 40d28d422687eac0c8224508619985f7337edddd
SHA1 (patch-xen_include_xen_lib.h) = 82a219b7d9c5deaa2b8e0adc774f60395adc4815
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel46/patches/patch-xen_arch_arm_xen.lds.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel46/patches/patch-xen_arch_arm_xen.lds.S Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_arch_arm_xen.lds.S,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/arch/arm/xen.lds.S.orig 2016-06-20 12:08:22.000000000 +0000
++++ xen/arch/arm/xen.lds.S
+@@ -110,6 +110,7 @@ SECTIONS
+ . = ALIGN(PAGE_SIZE);
+ .init.data : {
+ *(.init.rodata)
++ *(.init.rodata.rel)
+ *(.init.rodata.str*)
+ *(.init.data)
+ *(.init.data.rel)
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel46/patches/patch-xen_arch_x86_alternative.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel46/patches/patch-xen_arch_x86_alternative.c Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-xen_arch_x86_alternative.c,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/arch/x86/alternative.c.orig 2016-06-20 12:08:22.000000000 +0000
++++ xen/arch/x86/alternative.c
+@@ -38,7 +38,7 @@ static const unsigned char k8nops[] __in
+ K8_NOP7,
+ K8_NOP8
+ };
+-static const unsigned char * const k8_nops[ASM_NOP_MAX+1] = {
++static const unsigned char * const k8_nops[ASM_NOP_MAX+1] __initconstrel = {
+ NULL,
+ k8nops,
+ k8nops + 1,
+@@ -62,7 +62,7 @@ static const unsigned char p6nops[] __in
+ P6_NOP7,
+ P6_NOP8
+ };
+-static const unsigned char * const p6_nops[ASM_NOP_MAX+1] = {
++static const unsigned char * const p6_nops[ASM_NOP_MAX+1] __initconstrel = {
+ NULL,
+ p6nops,
+ p6nops + 1,
diff -r 4705b7606d79 -r 0896a98bed5d sysutils/xenkernel46/patches/patch-xen_common_efi_boot.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel46/patches/patch-xen_common_efi_boot.c Sun May 07 21:21:01 2017 +0000
@@ -0,0 +1,77 @@
+$NetBSD: patch-xen_common_efi_boot.c,v 1.1 2017/05/07 21:21:01 joerg Exp $
+
+--- xen/common/efi/boot.c.orig 2016-06-20 12:08:22.000000000 +0000
++++ xen/common/efi/boot.c
+@@ -241,53 +241,33 @@ static void __init noreturn blexit(const
+ /* generic routine for printing error messages */
+ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode)
+ {
++ static const CHAR16* const ErrCodeToStr[] __initconstrel = {
++ [~EFI_ERROR_MASK & EFI_NOT_FOUND] = L"Not found",
++ [~EFI_ERROR_MASK & EFI_NO_MEDIA] = L"The device has no media",
++ [~EFI_ERROR_MASK & EFI_MEDIA_CHANGED] = L"Media changed",
++ [~EFI_ERROR_MASK & EFI_DEVICE_ERROR] = L"Device error",
++ [~EFI_ERROR_MASK & EFI_VOLUME_CORRUPTED] = L"Volume corrupted",
++ [~EFI_ERROR_MASK & EFI_ACCESS_DENIED] = L"Access denied",
++ [~EFI_ERROR_MASK & EFI_OUT_OF_RESOURCES] = L"Out of resources",
++ [~EFI_ERROR_MASK & EFI_VOLUME_FULL] = L"Volume is full",
++ [~EFI_ERROR_MASK & EFI_SECURITY_VIOLATION] = L"Security violation",
++ [~EFI_ERROR_MASK & EFI_CRC_ERROR] = L"CRC error",
++ [~EFI_ERROR_MASK & EFI_COMPROMISED_DATA] = L"Compromised data",
++ [~EFI_ERROR_MASK & EFI_BUFFER_TOO_SMALL] = L"Buffer too small",
++ };
++ EFI_STATUS ErrIdx = ErrCode & ~EFI_ERROR_MASK;
++
+ StdOut = StdErr;
+ PrintErr((CHAR16 *)mesg);
+ PrintErr(L": ");
+
+- switch (ErrCode)
++ if( (ErrIdx < ARRAY_SIZE(ErrCodeToStr)) && ErrCodeToStr[ErrIdx] )
++ mesg = ErrCodeToStr[ErrIdx];
++ else
+ {
+- case EFI_NOT_FOUND:
+- mesg = L"Not found";
+- break;
+- case EFI_NO_MEDIA:
+- mesg = L"The device has no media";
+- break;
+- case EFI_MEDIA_CHANGED:
+- mesg = L"Media changed";
+- break;
+- case EFI_DEVICE_ERROR:
+- mesg = L"Device error";
+- break;
+- case EFI_VOLUME_CORRUPTED:
+- mesg = L"Volume corrupted";
+- break;
+- case EFI_ACCESS_DENIED:
+- mesg = L"Access denied";
+- break;
+- case EFI_OUT_OF_RESOURCES:
+- mesg = L"Out of resources";
+- break;
+- case EFI_VOLUME_FULL:
+- mesg = L"Volume is full";
+- break;
+- case EFI_SECURITY_VIOLATION:
+- mesg = L"Security violation";
+- break;
+- case EFI_CRC_ERROR:
+- mesg = L"CRC error";
+- break;
+- case EFI_COMPROMISED_DATA:
+- mesg = L"Compromised data";
+- break;
+- case EFI_BUFFER_TOO_SMALL:
+- mesg = L"Buffer too small";
Home |
Main Index |
Thread Index |
Old Index