Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Eric Sandall (55cefcaa3d12d729f33e6ccdf603922153e20d03)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Eric Sandall (55cefcaa3d12d729f33e6ccdf603922153e20d03)
  • Date: Sat, 1 Dec 2007 12:55:37 -0600

GIT changes to master grimoire by Eric Sandall <sandalle AT sourcemage.org>:

x11/xosview/HISTORY | 4 +
x11/xosview/PRE_BUILD | 3 +
x11/xosview/glibc-2.6.patch | 101
++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 108 insertions(+)

New commits:
commit 55cefcaa3d12d729f33e6ccdf603922153e20d03
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

xosview: Remove custom snprintf, breaks with glibc 2.6 (Bug #14141)

diff --git a/x11/xosview/HISTORY b/x11/xosview/HISTORY
index 4f7e579..935cfaf 100644
--- a/x11/xosview/HISTORY
+++ b/x11/xosview/HISTORY
@@ -1,3 +1,7 @@
+2007-12-01 Eric Sandall <sandalle AT sourcemage.org>
+ * glibc-2.6.patch: Added to remove custom snprintf (Bug #14141)
+ * PRE_BUILD: Apply glibc-2.6.patch
+
2006-06-28 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Removed BUILD_API=2, set grimoire-wide

diff --git a/x11/xosview/PRE_BUILD b/x11/xosview/PRE_BUILD
new file mode 100755
index 0000000..7fa05e2
--- /dev/null
+++ b/x11/xosview/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+patch -p1 < $SCRIPT_DIRECTORY/glibc-2.6.patch
diff --git a/x11/xosview/glibc-2.6.patch b/x11/xosview/glibc-2.6.patch
new file mode 100644
index 0000000..8f705ba
--- /dev/null
+++ b/x11/xosview/glibc-2.6.patch
@@ -0,0 +1,101 @@
+diff -Naur xosview-1.8.3.orig/Xrm.cc xosview-1.8.3/Xrm.cc
+--- xosview-1.8.3.orig/Xrm.cc 2007-12-01 10:37:19.247343664 -0800
++++ xosview-1.8.3/Xrm.cc 2007-12-01 10:43:33.736684594 -0800
+@@ -17,7 +17,6 @@
+ #include <iostream.h>
+ #endif
+ #include <unistd.h> // for access(), etc. BCG
+-#include "snprintf.h"
+ #include "general.h"
+ #ifndef NULL
+ #define NULL 0
+diff -Naur xosview-1.8.3.orig/bitfieldmeter.cc xosview-1.8.3/bitfieldmeter.cc
+--- xosview-1.8.3.orig/bitfieldmeter.cc 2007-12-01 10:37:19.247343664
-0800
++++ xosview-1.8.3/bitfieldmeter.cc 2007-12-01 10:43:36.752856477 -0800
+@@ -11,7 +11,6 @@
+ #include <fstream.h>
+ #endif
+ #include <stdlib.h>
+-#include "snprintf.h"
+ #include "general.h"
+ #include "bitfieldmeter.h"
+ #include "xosview.h"
+diff -Naur xosview-1.8.3.orig/config/Makefile.top.in
xosview-1.8.3/config/Makefile.top.in
+--- xosview-1.8.3.orig/config/Makefile.top.in 2007-12-01 10:37:19.247343664
-0800
++++ xosview-1.8.3/config/Makefile.top.in 2007-12-01 10:46:37.839175999
-0800
+@@ -19,7 +19,6 @@
+ bitfieldmeter.o \
+ bitmeter.o \
+ xosview.o \
+-snprintf.o \
+ main.o
+
+ CFILES := $(OBJS:.o=.cc)
+diff -Naur xosview-1.8.3.orig/fieldmeter.cc xosview-1.8.3/fieldmeter.cc
+--- xosview-1.8.3.orig/fieldmeter.cc 2007-12-01 10:37:19.243343436 -0800
++++ xosview-1.8.3/fieldmeter.cc 2007-12-01 10:43:39.521014224 -0800
+@@ -17,7 +17,6 @@
+ #include <fstream.h>
+ #endif
+ #include <stdlib.h>
+-#include "snprintf.h"
+ #include "general.h"
+ #include "fieldmeter.h"
+ #include "xosview.h"
+diff -Naur xosview-1.8.3.orig/snprintf.cc xosview-1.8.3/snprintf.cc
+--- xosview-1.8.3.orig/snprintf.cc 2007-12-01 10:37:19.243343436 -0800
++++ xosview-1.8.3/snprintf.cc 1969-12-31 16:00:00.000000000 -0800
+@@ -1,17 +0,0 @@
+-#ifndef HAVE_SNPRINTF
+-
+-#include <stdarg.h>
+-#include <stdio.h>
+-
+-extern "C" int snprintf ( char *str, int n, const char *format, ...)
+- {
+- /* punt the warning */
+- n++;
+- va_list ap;
+- va_start(ap, format);
+- int rval = vsprintf(str, format, ap);
+- va_end(ap);
+- return rval;
+- }
+-
+-#endif
+diff -Naur xosview-1.8.3.orig/snprintf.h xosview-1.8.3/snprintf.h
+--- xosview-1.8.3.orig/snprintf.h 2007-12-01 10:37:19.243343436 -0800
++++ xosview-1.8.3/snprintf.h 1969-12-31 16:00:00.000000000 -0800
+@@ -1,10 +0,0 @@
+-#ifndef snprintf_h
+-#define snprintf_h
+-
+-#ifndef HAVE_SNPRINTF
+-extern "C" int snprintf ( char *str, int n, const char *format, ...);
+-#else
+-#include <stdio.h>
+-#endif
+-
+-#endif
+diff -Naur xosview-1.8.3.orig/xosview.cc xosview-1.8.3/xosview.cc
+--- xosview-1.8.3.orig/xosview.cc 2007-12-01 10:37:19.239343207 -0800
++++ xosview-1.8.3/xosview.cc 2007-12-01 10:43:42.205167189 -0800
+@@ -9,7 +9,6 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <sys/time.h>
+-#include "snprintf.h"
+ #include "general.h"
+ #include "xosview.h"
+ #include "meter.h"
+diff -Naur xosview-1.8.3.orig/xwin.cc xosview-1.8.3/xwin.cc
+--- xosview-1.8.3.orig/xwin.cc 2007-12-01 10:37:19.239343207 -0800
++++ xosview-1.8.3/xwin.cc 2007-12-01 10:43:44.781313993 -0800
+@@ -5,7 +5,6 @@
+ #include <X11/Xatom.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+-#include "snprintf.h"
+ #include "general.h"
+ #include "xwin.h"
+ #include "Xrm.h"



  • [SM-Commit] GIT changes to master grimoire by Eric Sandall (55cefcaa3d12d729f33e6ccdf603922153e20d03), Eric Sandall, 12/01/2007

Archive powered by MHonArc 2.6.24.

Top of Page