Browse Source

fix gcc 3.3 incompatibility

master
parent
commit
ebd89a6fea
  1. 18
      integrit/integrit.patch
  2. 4
      integrit/integrit.spec
  3. 14
      sdl/sdl.patch
  4. 4
      sdl/sdl.spec

18
integrit/integrit.patch

@ -1,6 +1,5 @@
diff -Naur integrit-3.02.orig/doc/Makefile.in integrit-3.02/doc/Makefile.in
--- integrit-3.02.orig/doc/Makefile.in Tue Aug 27 05:55:12 2002
+++ integrit-3.02/doc/Makefile.in Fri Sep 27 14:44:55 2002
--- doc/Makefile.in Tue Aug 27 05:55:12 2002
+++ doc/Makefile.in Fri Sep 27 14:44:55 2002
@@ -66,7 +66,8 @@
$(INSTALL) -m 644 $(srcdir)/$$f $(infodir); \
done
@ -11,3 +10,16 @@ diff -Naur integrit-3.02.orig/doc/Makefile.in integrit-3.02/doc/Makefile.in
iistatus=1; \
elif test ! -z "`$(INSTALL_INFO) --version 2>&1 | grep texinfo`"; then \
(set -xe; \
--- gnupg/md5.c.orig Sat Jan 5 18:53:31 2002
+++ gnupg/md5.c Fri Jun 13 13:00:46 2003
@@ -330,8 +330,8 @@
p = hd->buf;
#ifdef BIG_ENDIAN_HOST
- #define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
- *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
+ #define X(a) do { *p++ = hd->a ; *p++ = hd->a >> 8; \
+ *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while(0)
#else /* little endian */
/*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
/* Unixware's cpp doesn't like the above construct so we do it his way:

4
integrit/integrit.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [PLUS]
Group: System
License: GPL
Version: %{V_major}.%{V_minor}
Release: 20030117
Release: 20030613
# list of sources
Source0: http://osdn.dl.sourceforge.net/sourceforge/integrit/integrit-%{version}.tar.gz
@ -73,7 +73,7 @@ AutoReqProv: no
%prep
%setup -q -n integrit-%{V_major}
%patch -p1
%patch -p0
%build
CC="%{l_cc}" \

14
sdl/sdl.patch

@ -0,0 +1,14 @@
--- src/video/SDL_stretch.c.orig Wed Mar 6 12:23:03 2002
+++ src/video/SDL_stretch.c Fri Jun 13 13:08:28 2003
@@ -261,9 +261,8 @@
break;
default:
#ifdef __GNUC__
- __asm__ __volatile__ ("
- call _copy_row
- "
+ __asm__ __volatile__ (
+ " call _copy_row "
: "=&D" (u1), "=&S" (u2)
: "0" (dstp), "1" (srcp)
: "memory" );

4
sdl/sdl.spec

@ -33,10 +33,11 @@ Distribution: OpenPKG [PLUS]
Group: XWindow
License: LGPL
Version: 1.2.5
Release: 20030117
Release: 20030613
# list of sources
Source0: http://www.libsdl.org/release/SDL-%{version}.tar.gz
Patch0: sdl.patch
# build information
Prefix: %{l_prefix}
@ -54,6 +55,7 @@ AutoReqProv: no
%prep
%setup -q -n SDL-%{version}
%patch -p0
%build
CC="%{l_cc}" \

Loading…
Cancel
Save