java-rxtx/java-rxtx-2.1-no_utsrelease.patch

96 lines
4.0 KiB
Diff
Raw Permalink Normal View History

diff -Nru rxtx-2.1-7r2.orig/CNI/SerialImp.c rxtx-2.1-7r2/CNI/SerialImp.c
--- rxtx-2.1-7r2.orig/CNI/SerialImp.c 2005-06-16 17:09:55.000000000 +0200
+++ rxtx-2.1-7r2/CNI/SerialImp.c 2013-02-06 19:39:13.973705958 +0100
@@ -245,13 +245,6 @@
LEAVE( "RXTXPort:Initialize" );
return;
}
- if(strcmp(name.release,UTS_RELEASE)!=0)
- {
- sprintf( message, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE,
- name.release );
- report( message );
- getchar();
- }
LEAVE( "RXTXPort:Initialize" );
#endif /* DEBUG && __linux__ */
}
diff -Nru rxtx-2.1-7r2.orig/src/I2CImp.c rxtx-2.1-7r2/src/I2CImp.c
--- rxtx-2.1-7r2.orig/src/I2CImp.c 2004-10-17 16:23:02.000000000 +0200
+++ rxtx-2.1-7r2/src/I2CImp.c 2013-02-06 19:38:08.349258600 +0100
@@ -93,11 +93,6 @@
fprintf(stderr,"RXTX WARNING: cannot get system name\n");
return;
}
- if(strcmp(name.release,UTS_RELEASE)!=0)
- {
- fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
- getchar();
- }
#endif /* __linux__ */
#endif /* WIN32 */
}
diff -Nru rxtx-2.1-7r2.orig/src/RawImp.c rxtx-2.1-7r2/src/RawImp.c
--- rxtx-2.1-7r2.orig/src/RawImp.c 2004-10-16 18:20:35.000000000 +0200
+++ rxtx-2.1-7r2/src/RawImp.c 2013-02-06 19:38:28.770086558 +0100
@@ -237,11 +237,6 @@
fprintf(stderr,"RXTX WARNING: cannot get system name\n");
return;
}
- if(strcmp(name.release,UTS_RELEASE)!=0)
- {
- fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
- getchar();
- }
#endif /* __linux__ */
#endif /* WIN32 */
}
diff -Nru rxtx-2.1-7r2.orig/src/RS485Imp.c rxtx-2.1-7r2/src/RS485Imp.c
--- rxtx-2.1-7r2.orig/src/RS485Imp.c 2004-10-16 18:20:35.000000000 +0200
+++ rxtx-2.1-7r2/src/RS485Imp.c 2013-02-06 19:37:52.370393265 +0100
@@ -93,11 +93,6 @@
fprintf(stderr,"RXTX WARNING: cannot get system name\n");
return;
}
- if(strcmp(name.release,UTS_RELEASE)!=0)
- {
- fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
- getchar();
- }
#endif /* __linux__ */
#endif /* WIN32 */
}
diff -Nru rxtx-2.1-7r2.orig/src/SerialImp.c rxtx-2.1-7r2/src/SerialImp.c
--- rxtx-2.1-7r2.orig/src/SerialImp.c 2006-01-29 23:19:04.000000000 +0100
+++ rxtx-2.1-7r2/src/SerialImp.c 2013-02-06 19:39:01.875807791 +0100
@@ -287,13 +287,6 @@
LEAVE( "RXTXPort:Initialize" );
return;
}
- if(strcmp(name.release,UTS_RELEASE)!=0)
- {
- sprintf( message, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE,
- name.release );
- report( message );
- getchar();
- }
LEAVE( "RXTXPort:Initialize" );
#endif /* DEBUG && __linux__ */
}
diff -Nru rxtx-2.1-7r2.orig/src/SerialImp.cpp rxtx-2.1-7r2/src/SerialImp.cpp
--- rxtx-2.1-7r2.orig/src/SerialImp.cpp 2004-10-12 10:59:27.000000000 +0200
+++ rxtx-2.1-7r2/src/SerialImp.cpp 2013-02-06 19:38:42.823968196 +0100
@@ -108,12 +108,6 @@
report("RXTX WARNING: cannot get system name\n");
return;
}
- if(!strcmp(name.release,UTS_RELEASE))
- {
- fprintf(stderr, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE,
- name.release);
- getchar();
- }
#endif /* DEBUG */
#endif /* __BEOS__ */
#endif /* WIN32 */