FreeBSD Bugzilla – Attachment 160267 Details for
Bug 202603
[PATCH] net-p2p/namecoin: fix build with _FORTIFY_SOURCE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net-p2p-namecoin.diff
net-p2p-namecoin.diff (text/plain), 1.37 KB, created by
Oliver Pinter
on 2015-08-24 00:05:40 UTC
(
hide
)
Description:
net-p2p-namecoin.diff
Filename:
MIME Type:
Creator:
Oliver Pinter
Created:
2015-08-24 00:05:40 UTC
Size:
1.37 KB
patch
obsolete
>From 24f6524795788af6ee6158a6c8a0311ba649a443 Mon Sep 17 00:00:00 2001 >From: Oliver Pinter <oliver.pinter@hardenedbsd.org> >Date: Sun, 23 Aug 2015 23:56:06 +0000 >Subject: [PATCH] fix net-p2p/namecoin build with _FORITFY_SOURCE > >+ {"origin"=>"net-p2p/namecoin", "pkgname"=>"namecoin-0.3.80,1", "phase"=>"build", "errortype"=>"bad_C++_code"} > >... >In file included from src/util.cpp:5: >src/strlcpy.h:23:15: error: redefinition of a 'extern inline' function 'strlcpy' is not supported in C++ >inline size_t strlcpy(char *dst, const char *src, size_t siz) > ^ >/usr/include/secure/_string.h:306:1: note: previous definition is here >strlcpy(char * __restrict _d, const char * __restrict _s, size_t _n) >^ >... > >diff --git a/net-p2p/namecoin/files/patch-src_strlcpy.h b/net-p2p/namecoin/files/patch-src_strlcpy.h >new file mode 100644 >index 0000000..8ef365e >--- /dev/null >+++ b/net-p2p/namecoin/files/patch-src_strlcpy.h >@@ -0,0 +1,19 @@ >+--- src/strlcpy.h.orig 2015-08-23 23:45:51 UTC >++++ src/strlcpy.h >+@@ -15,6 +15,9 @@ >+ */ >+ #ifndef BITCOIN_STRLCPY_H >+ #define BITCOIN_STRLCPY_H >++ >++#ifndef __BSD_FORTIFY >++ >+ /* >+ * Copy src to string dst of size siz. At most siz-1 characters >+ * will be copied. Always NUL terminates (unless siz == 0). >+@@ -83,4 +86,6 @@ inline size_t strlcat(char *dst, const c >+ >+ return(dlen + (s - src)); /* count does not include NUL */ >+ } >++ >++#endif >+ #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202603
:
160267
|
160276
|
160277
|
160427