summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-17 11:54:06 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-17 11:54:06 +0000
commitda131b8ba29e38b400d479db2b0cb7c71758ab2b (patch)
tree6e7e4bef0734125d8dfebc6fa96f48f76d7fcf78 /net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch
parentAdded -j1 to emake install as a temporary fix for parallel install problems (... (diff)
downloadgentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.tar.gz
gentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.tar.bz2
gentoo-2-da131b8ba29e38b400d479db2b0cb7c71758ab2b.zip
Fixed build issue with libpcap-1.0.0, bug #247128, thank Matthias Liebig for report and fix. Changed a bit patches so everything respect CC, CFLAGS and etc... Added patch from debian to make regexps respect locale.
(Portage version: 2.2_rc14/cvs/Linux 2.6.26-openvz.git-35f41f1 i686)
Diffstat (limited to 'net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch')
-rw-r--r--net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch b/net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch
new file mode 100644
index 000000000000..d43f225cab0c
--- /dev/null
+++ b/net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch
@@ -0,0 +1,23 @@
+Call setlocale to make isprint() decide what's printable depending
+on the current locale. See bugs.debian.org/307496 .
+
+--- ngrep-1.45.ds1.orig/ngrep.c
++++ ngrep-1.45.ds1/ngrep.c
+@@ -97,6 +97,8 @@
+ #include "regex-0.12/regex.h"
+ #endif
+
++#include <locale.h>
++
+ #include "ngrep.h"
+
+
+@@ -195,6 +197,8 @@
+ signal(SIGWINCH, update_windowsize);
+ #endif
+
++ setlocale(LC_ALL, "");
++
+ while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMs:n:c:d:A:I:O:S:P:F:W:")) != EOF) {
+ switch (c) {
+ case 'W': {