summaryrefslogtreecommitdiff
path: root/x11/kde-runtime4
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-06-03 10:23:33 +0000
committerjperkin <jperkin@pkgsrc.org>2013-06-03 10:23:33 +0000
commitd8b121b5748dcc280495aa35ab84ac02e0f5b9bd (patch)
tree6cdc287ec6eb0c981de777aec1638877e011b5a6 /x11/kde-runtime4
parent61dc4ab4d28d87b2b5c292e4e073eb602e72bd7a (diff)
downloadpkgsrc-d8b121b5748dcc280495aa35ab84ac02e0f5b9bd.tar.gz
Avoid obsolete *_U_LONG macros. Fixes SunOS 64-bit build.
Diffstat (limited to 'x11/kde-runtime4')
-rw-r--r--x11/kde-runtime4/distinfo3
-rw-r--r--x11/kde-runtime4/patches/patch-kioslave_nfs_nfs__prot__xdr.c150
2 files changed, 152 insertions, 1 deletions
diff --git a/x11/kde-runtime4/distinfo b/x11/kde-runtime4/distinfo
index 6b27f72635b..6108e9723d2 100644
--- a/x11/kde-runtime4/distinfo
+++ b/x11/kde-runtime4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2013/05/22 07:11:58 jperkin Exp $
+$NetBSD: distinfo,v 1.7 2013/06/03 10:23:33 jperkin Exp $
SHA1 (kde-runtime-4.10.3.tar.xz) = 22869b2ee7eb4b5b341a6d596dd904c0b0b812d1
RMD160 (kde-runtime-4.10.3.tar.xz) = 707da4cb365f283d6e5f9af69b7bb8d109c9d8cc
@@ -11,4 +11,5 @@ SHA1 (patch-af) = 1a8f15ac1c8dadd59fe00ca7ca304ba41521f896
SHA1 (patch-ag) = 5ca9064552379792c32577875d07562d3f736ab7
SHA1 (patch-ai) = 3742a827c4b18cde06828ff585d3130062803b9a
SHA1 (patch-ak) = 4fee3877613afddf179a7a8376586a6391b53c89
+SHA1 (patch-kioslave_nfs_nfs__prot__xdr.c) = 3b779d367a90dbdf158e8f299b4f1de818a6180a
SHA1 (patch-kwalletd_backend_blowfish.h) = 23bd9bf9671a770d203a10c46dc602145d2b9457
diff --git a/x11/kde-runtime4/patches/patch-kioslave_nfs_nfs__prot__xdr.c b/x11/kde-runtime4/patches/patch-kioslave_nfs_nfs__prot__xdr.c
new file mode 100644
index 00000000000..aed42645689
--- /dev/null
+++ b/x11/kde-runtime4/patches/patch-kioslave_nfs_nfs__prot__xdr.c
@@ -0,0 +1,150 @@
+$NetBSD: patch-kioslave_nfs_nfs__prot__xdr.c,v 1.1 2013/06/03 10:23:33 jperkin Exp $
+
+*_U_LONG are obsolete and unavailable in 64-bit mode, use *_U_INT32 instead.
+
+--- kioslave/nfs/nfs_prot_xdr.c.orig 2013-05-03 04:36:36.766201695 +0000
++++ kioslave/nfs/nfs_prot_xdr.c
+@@ -141,16 +141,16 @@ xdr_fattr(XDR *xdrs, fattr *objp)
+
+ }
+ else {
+- IXDR_PUT_U_LONG(buf,objp->mode);
+- IXDR_PUT_U_LONG(buf,objp->nlink);
+- IXDR_PUT_U_LONG(buf,objp->uid);
+- IXDR_PUT_U_LONG(buf,objp->gid);
+- IXDR_PUT_U_LONG(buf,objp->size);
+- IXDR_PUT_U_LONG(buf,objp->blocksize);
+- IXDR_PUT_U_LONG(buf,objp->rdev);
+- IXDR_PUT_U_LONG(buf,objp->blocks);
+- IXDR_PUT_U_LONG(buf,objp->fsid);
+- IXDR_PUT_U_LONG(buf,objp->fileid);
++ IXDR_PUT_U_INT32(buf,objp->mode);
++ IXDR_PUT_U_INT32(buf,objp->nlink);
++ IXDR_PUT_U_INT32(buf,objp->uid);
++ IXDR_PUT_U_INT32(buf,objp->gid);
++ IXDR_PUT_U_INT32(buf,objp->size);
++ IXDR_PUT_U_INT32(buf,objp->blocksize);
++ IXDR_PUT_U_INT32(buf,objp->rdev);
++ IXDR_PUT_U_INT32(buf,objp->blocks);
++ IXDR_PUT_U_INT32(buf,objp->fsid);
++ IXDR_PUT_U_INT32(buf,objp->fileid);
+ }
+ if (!xdr_nfstime(xdrs, &objp->atime)) {
+ return (FALSE);
+@@ -202,16 +202,16 @@ xdr_fattr(XDR *xdrs, fattr *objp)
+
+ }
+ else {
+- objp->mode = IXDR_GET_U_LONG(buf);
+- objp->nlink = IXDR_GET_U_LONG(buf);
+- objp->uid = IXDR_GET_U_LONG(buf);
+- objp->gid = IXDR_GET_U_LONG(buf);
+- objp->size = IXDR_GET_U_LONG(buf);
+- objp->blocksize = IXDR_GET_U_LONG(buf);
+- objp->rdev = IXDR_GET_U_LONG(buf);
+- objp->blocks = IXDR_GET_U_LONG(buf);
+- objp->fsid = IXDR_GET_U_LONG(buf);
+- objp->fileid = IXDR_GET_U_LONG(buf);
++ objp->mode = IXDR_GET_U_INT32(buf);
++ objp->nlink = IXDR_GET_U_INT32(buf);
++ objp->uid = IXDR_GET_U_INT32(buf);
++ objp->gid = IXDR_GET_U_INT32(buf);
++ objp->size = IXDR_GET_U_INT32(buf);
++ objp->blocksize = IXDR_GET_U_INT32(buf);
++ objp->rdev = IXDR_GET_U_INT32(buf);
++ objp->blocks = IXDR_GET_U_INT32(buf);
++ objp->fsid = IXDR_GET_U_INT32(buf);
++ objp->fileid = IXDR_GET_U_INT32(buf);
+ }
+ if (!xdr_nfstime(xdrs, &objp->atime)) {
+ return (FALSE);
+@@ -295,10 +295,10 @@ xdr_sattr(XDR *xdrs, sattr *objp)
+
+ }
+ else {
+- IXDR_PUT_U_LONG(buf,objp->mode);
+- IXDR_PUT_U_LONG(buf,objp->uid);
+- IXDR_PUT_U_LONG(buf,objp->gid);
+- IXDR_PUT_U_LONG(buf,objp->size);
++ IXDR_PUT_U_INT32(buf,objp->mode);
++ IXDR_PUT_U_INT32(buf,objp->uid);
++ IXDR_PUT_U_INT32(buf,objp->gid);
++ IXDR_PUT_U_INT32(buf,objp->size);
+ }
+ if (!xdr_nfstime(xdrs, &objp->atime)) {
+ return (FALSE);
+@@ -326,10 +326,10 @@ xdr_sattr(XDR *xdrs, sattr *objp)
+
+ }
+ else {
+- objp->mode = IXDR_GET_U_LONG(buf);
+- objp->uid = IXDR_GET_U_LONG(buf);
+- objp->gid = IXDR_GET_U_LONG(buf);
+- objp->size = IXDR_GET_U_LONG(buf);
++ objp->mode = IXDR_GET_U_INT32(buf);
++ objp->uid = IXDR_GET_U_INT32(buf);
++ objp->gid = IXDR_GET_U_INT32(buf);
++ objp->size = IXDR_GET_U_INT32(buf);
+ }
+ if (!xdr_nfstime(xdrs, &objp->atime)) {
+ return (FALSE);
+@@ -575,9 +575,9 @@ xdr_writeargs(XDR *xdrs, writeargs *objp
+
+ }
+ else {
+- IXDR_PUT_U_LONG(buf,objp->beginoffset);
+- IXDR_PUT_U_LONG(buf,objp->offset);
+- IXDR_PUT_U_LONG(buf,objp->totalcount);
++ IXDR_PUT_U_INT32(buf,objp->beginoffset);
++ IXDR_PUT_U_INT32(buf,objp->offset);
++ IXDR_PUT_U_INT32(buf,objp->totalcount);
+ }
+ if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
+ return (FALSE);
+@@ -602,9 +602,9 @@ xdr_writeargs(XDR *xdrs, writeargs *objp
+
+ }
+ else {
+- objp->beginoffset = IXDR_GET_U_LONG(buf);
+- objp->offset = IXDR_GET_U_LONG(buf);
+- objp->totalcount = IXDR_GET_U_LONG(buf);
++ objp->beginoffset = IXDR_GET_U_INT32(buf);
++ objp->offset = IXDR_GET_U_INT32(buf);
++ objp->totalcount = IXDR_GET_U_INT32(buf);
+ }
+ if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
+ return (FALSE);
+@@ -808,11 +808,11 @@ xdr_statfsokres(XDR *xdrs, statfsokres *
+
+ }
+ else {
+- IXDR_PUT_U_LONG(buf,objp->tsize);
+- IXDR_PUT_U_LONG(buf,objp->bsize);
+- IXDR_PUT_U_LONG(buf,objp->blocks);
+- IXDR_PUT_U_LONG(buf,objp->bfree);
+- IXDR_PUT_U_LONG(buf,objp->bavail);
++ IXDR_PUT_U_INT32(buf,objp->tsize);
++ IXDR_PUT_U_INT32(buf,objp->bsize);
++ IXDR_PUT_U_INT32(buf,objp->blocks);
++ IXDR_PUT_U_INT32(buf,objp->bfree);
++ IXDR_PUT_U_INT32(buf,objp->bavail);
+ }
+
+ return (TRUE);
+@@ -837,11 +837,11 @@ xdr_statfsokres(XDR *xdrs, statfsokres *
+
+ }
+ else {
+- objp->tsize = IXDR_GET_U_LONG(buf);
+- objp->bsize = IXDR_GET_U_LONG(buf);
+- objp->blocks = IXDR_GET_U_LONG(buf);
+- objp->bfree = IXDR_GET_U_LONG(buf);
+- objp->bavail = IXDR_GET_U_LONG(buf);
++ objp->tsize = IXDR_GET_U_INT32(buf);
++ objp->bsize = IXDR_GET_U_INT32(buf);
++ objp->blocks = IXDR_GET_U_INT32(buf);
++ objp->bfree = IXDR_GET_U_INT32(buf);
++ objp->bavail = IXDR_GET_U_INT32(buf);
+ }
+ return(TRUE);
+ }