diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-06-14 16:57:49 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-06-14 16:57:49 +0000 |
commit | c623fa6e99732775536f49dcfc45e176c688bc50 (patch) | |
tree | 8fc2afb1ca4b7e776961a26a2d761a7963dbd4e4 | |
parent | 308fb2ca112ae38eaad33b39c452c83d8dd52034 (diff) | |
download | pkgsrc-c623fa6e99732775536f49dcfc45e176c688bc50.tar.gz |
Do not assume swprintf is in std::, as it breaks the build under NetBSD
3.99.5 (at least). Closes PR pkg/30380 by wiz@.
-rw-r--r-- | meta-pkgs/boost/distinfo | 3 | ||||
-rw-r--r-- | meta-pkgs/boost/patches/patch-ac | 29 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-pkgs/boost/distinfo b/meta-pkgs/boost/distinfo index 83e4ebae730..153717b528c 100644 --- a/meta-pkgs/boost/distinfo +++ b/meta-pkgs/boost/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1 2005/02/26 22:48:34 jmmv Exp $ +$NetBSD: distinfo,v 1.2 2005/06/14 16:57:49 jmmv Exp $ SHA1 (boost_1_32_0.tar.bz2) = bb193b381d8e1c8321ee7d77f01c88837edc3e56 RMD160 (boost_1_32_0.tar.bz2) = 9a51660e01d5047b08a753a7fa38028d8aa171ec Size (boost_1_32_0.tar.bz2) = 10181552 bytes SHA1 (patch-aa) = 6f0b64da37de35b2b3d2eb5884608bd8f9a906fd SHA1 (patch-ab) = 197c51ac67d74923d02f8a9746b5d2e0f7b84736 +SHA1 (patch-ac) = 3d44a1a368b614d86aff57406363fba57e33a0ba diff --git a/meta-pkgs/boost/patches/patch-ac b/meta-pkgs/boost/patches/patch-ac new file mode 100644 index 00000000000..36f1e01d04b --- /dev/null +++ b/meta-pkgs/boost/patches/patch-ac @@ -0,0 +1,29 @@ +$NetBSD: patch-ac,v 1.1 2005/06/14 16:57:49 jmmv Exp $ + +--- libs/regex/src/wide_posix_api.cpp.orig 2003-12-16 14:06:00.000000000 +0100 ++++ libs/regex/src/wide_posix_api.cpp +@@ -28,6 +28,8 @@ + #include <cstring> + #include <cstdio> + ++using namespace std; // For swprintf, in case it is there. ++ + namespace boost{ + + namespace { +@@ -142,13 +144,13 @@ BOOST_REGEX_DECL regsize_t BOOST_REGEX_C + { + if(std::wcscmp(e->re_endp, wnames[i]) == 0) + { +- std::swprintf(localbuf, 5, L"%d", i); ++ swprintf(localbuf, 5, L"%d", i); + if(std::wcslen(localbuf) < buf_size) + std::wcscpy(buf, localbuf); + return std::wcslen(localbuf) + 1; + } + } +- std::swprintf(localbuf, 5, L"%d", 0); ++ swprintf(localbuf, 5, L"%d", 0); + if(std::wcslen(localbuf) < buf_size) + std::wcscpy(buf, localbuf); + return std::wcslen(localbuf) + 1; |