1 #!/bin/sh /usr/share/dpatch/dpatch-run
2 ## 068_fix_invalid_rpcgen_code.dpatch
8 diff -Naur .B/lib/Makefile .A/lib/Makefile
9 --- .B/lib/Makefile 2005-01-09 09:16:43.000000000 +0000
10 +++ .A/lib/Makefile 2007-01-07 21:36:36.000000000 +0000
14 $(RPCGEN) -c -o mount_xdr.c mount.x
15 + sed -i -e 's/IXDR_GET_LONG(\([^)]*\))/((long)IXDR_GET_U_INT32(\1))/' mount_xdr.c
16 + sed -i -e 's/IXDR_PUT_LONG(\([^)]*\),\([^)]*\))/((long)IXDR_PUT_INT32(\1,(long)(\2)))/' mount_xdr.c
17 + sed -i -e 's/IXDR_GET_SHORT(\([^)]*\))/((short)IXDR_GET_U_INT32(\1))/' mount_xdr.c
18 + sed -i -e 's/IXDR_PUT_SHORT(\([^)]*\),\([^)]*\))/((long)IXDR_PUT_INT32(\1,(long)(\2)))/' mount_xdr.c
20 mount_xdr.o: mount_xdr.c
21 $(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c