vnc-nobuildtime.patch revision 981
244N/ARemove buildtime from binaries to avoid unnecessary change in ELF data.
244N/A
244N/Adiff -urp -x '*~' -x '*.orig' unix/vncconfig/buildtime.c unix/vncconfig/buildtime.c
244N/A--- unix/vncconfig/buildtime.c 2009-08-20 02:46:42.000000000 -0700
244N/A+++ unix/vncconfig/buildtime.c 2009-11-05 09:51:42.545225775 -0800
244N/A@@ -15,4 +15,3 @@
244N/A * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
244N/A * USA.
244N/A */
244N/A-char buildtime[] = __DATE__ " " __TIME__;
244N/Adiff -urp -x '*~' -x '*.orig' unix/vncviewer/AboutDialog.h unix/vncviewer/AboutDialog.h
244N/A--- unix/vncviewer/AboutDialog.h 2009-08-20 02:46:42.000000000 -0700
244N/A+++ unix/vncviewer/AboutDialog.h 2009-11-05 09:51:42.545775723 -0800
244N/A@@ -30,7 +30,6 @@
244N/A #define gettext_noop(String) String
244N/A #define N_(String) gettext_noop (String)
244N/A
244N/A-extern char buildtime[];
244N/A
244N/A class AboutDialog : public TXMsgBox {
1380N/A public:
244N/Adiff -urp -x '*~' -x '*.orig' unix/vncviewer/buildtime.c unix/vncviewer/buildtime.c
244N/A--- unix/vncviewer/buildtime.c 2009-08-20 02:46:42.000000000 -0700
244N/A+++ unix/vncviewer/buildtime.c 2009-11-05 09:51:42.545497578 -0800
392N/A@@ -15,4 +15,3 @@
392N/A * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
392N/A * USA.
953N/A */
392N/A-char buildtime[] = __DATE__ " " __TIME__;
392N/Adiff -urp -x '*~' -x '*.orig' unix/vncviewer/InfoDialog.h unix/vncviewer/InfoDialog.h
392N/A--- unix/vncviewer/InfoDialog.h 2009-08-20 02:46:42.000000000 -0700
1127N/A+++ unix/vncviewer/InfoDialog.h 2009-11-05 09:51:42.545637493 -0800
392N/A@@ -26,7 +26,6 @@
1384N/A #include "TXLabel.h"
392N/A #include "TXButton.h"
271N/A
244N/A-extern char buildtime[];
244N/A
1380N/A class InfoDialog : public TXDialog, public TXButtonCallback {
1380N/A public:
1380N/Adiff -urp -x '*~' -x '*.orig' unix/vncviewer/vncviewer.cxx unix/vncviewer/vncviewer.cxx
1380N/A--- unix/vncviewer/vncviewer.cxx 2009-08-20 02:46:42.000000000 -0700
244N/A+++ unix/vncviewer/vncviewer.cxx 2009-11-05 20:24:22.966736321 -0800
244N/A@@ -129,7 +129,6 @@
244N/A
244N/A char aboutText[1024];
244N/A char* programName;
244N/A-extern char buildtime[];
244N/A
244N/A static void CleanupSignalHandler(int sig)
244N/A {
244N/A@@ -271,7 +270,7 @@
244N/A bindtextdomain(PACKAGE_NAME, LOCALEDIR);
244N/A textdomain(PACKAGE_NAME);
957N/A
957N/A- const char englishAbout[] = N_("TigerVNC Viewer for X version %s - built %s\n"
244N/A+ const char englishAbout[] = N_("TigerVNC Viewer for X version %s\n"
244N/A "Copyright (C) 2002-2005 RealVNC Ltd.\n"
244N/A "Copyright (C) 2000-2006 TightVNC Group\n"
244N/A "Copyright (C) 2004-2009 Peter Astrand for Cendio AB\n"
1380N/A@@ -279,7 +278,7 @@
1380N/A
244N/A // Write about text to console, still using normal locale codeset
244N/A snprintf(aboutText, sizeof(aboutText),
244N/A- gettext(englishAbout), PACKAGE_VERSION, buildtime);
244N/A+ gettext(englishAbout), PACKAGE_VERSION);
1380N/A fprintf(stderr,"\n%s\n", aboutText);
244N/A
244N/A // Set gettext codeset to what our GUI toolkit uses. Since we are
244N/A@@ -290,7 +289,7 @@
244N/A
244N/A // Re-create the aboutText for the GUI, now using GUI codeset
244N/A snprintf(aboutText, sizeof(aboutText),
1380N/A- gettext(englishAbout), PACKAGE_VERSION, buildtime);
1384N/A+ gettext(englishAbout), PACKAGE_VERSION);
244N/A
271N/A rfb::initStdIOLoggers();
244N/A rfb::LogWriter::setLogParams("*:stderr:30");
244N/Adiff -urp -x '*~' -x '*.orig' unix/x0vncserver/buildtime.c unix/x0vncserver/buildtime.c
244N/A--- unix/x0vncserver/buildtime.c 2009-08-20 02:46:42.000000000 -0700
244N/A+++ unix/x0vncserver/buildtime.c 2009-11-05 09:51:42.545912551 -0800
244N/A@@ -15,4 +15,3 @@
244N/A * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
244N/A * USA.
244N/A */
1127N/A-char buildtime[] = __DATE__ " " __TIME__;
244N/Adiff -urp -x '*~' -x '*.orig' unix/x0vncserver/x0vncserver.cxx unix/x0vncserver/x0vncserver.cxx
244N/A--- unix/x0vncserver/x0vncserver.cxx 2009-08-20 02:46:42.000000000 -0700
1384N/A+++ unix/x0vncserver/x0vncserver.cxx 2009-11-05 20:19:59.935847191 -0800
244N/A@@ -54,8 +54,6 @@
244N/A #include <sys/proto.h>
271N/A #endif
1127N/A
244N/A-extern char buildtime[];
244N/A-
244N/A using namespace rfb;
using namespace network;
@@ -370,8 +368,7 @@
static void printVersion(FILE *fp)
{
- fprintf(fp, "TigerVNC Server version %s, built %s\n",
- PACKAGE_VERSION, buildtime);
+ fprintf(fp, "TigerVNC Server version %s\n", PACKAGE_VERSION);
}
static void usage()
diff -urp -x '*~' -x '*.orig' unix/xserver/hw/vnc/buildtime.c unix/xserver/hw/vnc/buildtime.c
--- unix/xserver/hw/vnc/buildtime.c 2009-08-20 02:46:42.000000000 -0700
+++ unix/xserver/hw/vnc/buildtime.c 2009-11-05 09:51:42.545361930 -0800
@@ -15,4 +15,3 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
-char buildtime[] = __DATE__ " " __TIME__;
diff -urp -x '*~' -x '*.orig' unix/xserver/hw/vnc/xvnc.cc unix/xserver/hw/vnc/xvnc.cc
--- unix/xserver/hw/vnc/xvnc.cc 2009-08-20 02:46:42.000000000 -0700
+++ unix/xserver/hw/vnc/xvnc.cc 2009-11-05 09:51:42.545083912 -0800
@@ -80,7 +80,6 @@ extern "C" {
#include "randrstr.h"
#endif /* RANDR */
#include <X11/keysym.h>
- extern char buildtime[];
#if XORG >= 17
#undef VENDOR_RELEASE
#undef VENDOR_STRING
@@ -263,7 +262,7 @@ void ddxBeforeReset(void)
void
ddxUseMsg()
{
- ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT);
+ ErrorF("\nXvnc %s\n%s", XVNCVERSION, XVNCCOPYRIGHT);
ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE,
VENDOR_STRING);
ErrorF("-screen scrn WxHxD set screen's width, height, depth\n");
@@ -1232,7 +1231,7 @@ static void vfbClientStateChange(Callbac
void
InitOutput(ScreenInfo *screenInfo, int argc, char **argv)
{
- ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT);
+ ErrorF("\nXvnc %s\n%s", XVNCVERSION, XVNCCOPYRIGHT);
ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE,
VENDOR_STRING);
int i;