pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/xentools413



Module Name:    pkgsrc
Committed By:   bouyer
Date:           Thu Feb  4 23:51:51 UTC 2021

Modified Files:
        pkgsrc/sysutils/xentools413: distinfo
Added Files:
        pkgsrc/sysutils/xentools413/patches:
            patch-.._seabios-rel-1.12.1_src_string.c

Log Message:
When compiling with -fwhole-program gcc will omit functions which
are not used in the file, even if not declared static.
Add __attribute__((externally_visible)) to memcpy() to force gcc to
include it.
Fixes build on -current (gcc 9)
This is a build fix so no PKGREVISION bump


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/sysutils/xentools413/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/xentools413/patches/patch-.._seabios-rel-1.12.1_src_string.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/xentools413/distinfo
diff -u pkgsrc/sysutils/xentools413/distinfo:1.8 pkgsrc/sysutils/xentools413/distinfo:1.9
--- pkgsrc/sysutils/xentools413/distinfo:1.8    Wed Feb  3 22:30:21 2021
+++ pkgsrc/sysutils/xentools413/distinfo        Thu Feb  4 23:51:51 2021
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2021/02/03 22:30:21 bouyer Exp $
+$NetBSD: distinfo,v 1.9 2021/02/04 23:51:51 bouyer Exp $
 
 SHA1 (xen413/ipxe-1dd56dbd11082fb622c2ed21cfaced4f47d798a6.tar.gz) = b78d21457bc07b4c4d3e770109c169ddafdacdf5
 RMD160 (xen413/ipxe-1dd56dbd11082fb622c2ed21cfaced4f47d798a6.tar.gz) = 846dbcc0f56e87fca8c87b00ca2ed031471d4246
@@ -12,6 +12,7 @@ SHA1 (xen413/xen-4.13.2.tar.gz) = d514f1
 RMD160 (xen413/xen-4.13.2.tar.gz) = 96727c20bd84338f8c67c7c584c01ef877bbcb18
 SHA512 (xen413/xen-4.13.2.tar.gz) = cd3092281c97e9421e303aa288aac04dcccd5536ba7c0ff4d51fbf3d07b5ffacfe3456ba06f5cf63577dafbf8cf3a5d9825ceb5e9ef8ca1427900cc3e57b50a3
 Size (xen413/xen-4.13.2.tar.gz) = 39037826 bytes
+SHA1 (patch-.._seabios-rel-1.12.1_src_string.c) = 8b4091daf0b653cfd4db51d2c09b5b42a08f6311
 SHA1 (patch-Config.mk) = c41005a60de2f94a72b0206030eb021c137653d3
 SHA1 (patch-Makefile) = 6c580cbea532d08a38cf5e54228bd0210a98da21
 SHA1 (patch-XSA115-c) = 7e3216a23c522fc73f47fa6deef8918c4dce7fae

Added files:

Index: pkgsrc/sysutils/xentools413/patches/patch-.._seabios-rel-1.12.1_src_string.c
diff -u /dev/null pkgsrc/sysutils/xentools413/patches/patch-.._seabios-rel-1.12.1_src_string.c:1.1
--- /dev/null   Thu Feb  4 23:51:51 2021
+++ pkgsrc/sysutils/xentools413/patches/patch-.._seabios-rel-1.12.1_src_string.c        Thu Feb  4 23:51:51 2021
@@ -0,0 +1,18 @@
+$NetBSD: patch-.._seabios-rel-1.12.1_src_string.c,v 1.1 2021/02/04 23:51:51 bouyer Exp $
+
+when the code is compiled -fwhole-program, memcpy() will be ommitted by gcc
+because nothing in the file references it. Later the link fails with
+undefined references to memcpy().
+Force the inclusion with (externally_visible) attribute
+
+--- ../seabios-rel-1.12.1/src/string.c.orig    2021-02-04 23:06:35.686612339 +0100
++++ ../seabios-rel-1.12.1/src/string.c 2021-02-04 23:03:33.884883498 +0100
+@@ -149,7 +149,7 @@
+         memcpy(d_fl, s_fl, len);
+ }
+ 
+-void *
++__attribute__((externally_visible)) void *
+ #undef memcpy
+ memcpy(void *d1, const void *s1, size_t len)
+ #if MODESEGMENT == 0



Home | Main Index | Thread Index | Old Index