From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-misc/smbc/files/smbc-1.2.2-cflags.patch | 13 +++++++++++++ net-misc/smbc/files/smbc-1.2.2-size_t.patch | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 net-misc/smbc/files/smbc-1.2.2-cflags.patch create mode 100644 net-misc/smbc/files/smbc-1.2.2-size_t.patch (limited to 'net-misc/smbc/files') diff --git a/net-misc/smbc/files/smbc-1.2.2-cflags.patch b/net-misc/smbc/files/smbc-1.2.2-cflags.patch new file mode 100644 index 000000000000..0b7baf59c75a --- /dev/null +++ b/net-misc/smbc/files/smbc-1.2.2-cflags.patch @@ -0,0 +1,13 @@ +Do not define CFLAGS + +--- a/src/Makefile.am 2005-06-29 14:14:02.000000000 +0200 ++++ b/src/Makefile.am 2009-04-28 18:18:26.000000000 +0200 +@@ -18,7 +18,7 @@ + smb-ext.c smb-ext.h + + smbc_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall +-CFLAGS = -O3 ++#CFLAGS = -O3 + + if GDB + smbc_CFLAGS += -ggdb -g diff --git a/net-misc/smbc/files/smbc-1.2.2-size_t.patch b/net-misc/smbc/files/smbc-1.2.2-size_t.patch new file mode 100644 index 000000000000..cafaf4a1b713 --- /dev/null +++ b/net-misc/smbc/files/smbc-1.2.2-size_t.patch @@ -0,0 +1,16 @@ +Patch to enable running on amd64 (borrowed from http://bugs.debian.org/366580) + +--- a/src/convert.c ++++ b/src/convert.c +@@ -98,8 +98,9 @@ + + char *inbuf = (char*) src; + char *outbuf = param->dst; +- int inbytesleft = src_len - 1; +- int outbytesleft = param->dst_len - 1; ++ /* iconv requires size_t and not int ! */ ++ size_t inbytesleft = src_len - 1; ++ size_t outbytesleft = param->dst_len - 1; + bzero(param->dst, param->dst_len); + // Need some error handling here + iconv(param->cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); -- cgit v1.2.3