Patch: diff -Naur libast-0.6.bak/debian/changelog libast-0.6/debian/changelog --- libast-0.6.bak/debian/changelog 2003-11-02 04:00:06.000000000 +0100 +++ libast-0.6/debian/changelog 2005-09-04 00:20:55.000000000 +0200 @@ -1,3 +1,11 @@ +libast (0.6-0pre2003010606.1) unstable; urgency=low + + * Non-maintainer upload. + * Apply patch by Andreas Jochens to fix FTBFS with gcc 4.0 + (Closes: #287376) + + -- Frank Lichtenheld <[EMAIL PROTECTED]> Sat, 3 Sep 2005 23:54:25 +0200 + libast (0.6-0pre2003010606) unstable; urgency=low * converted to CDBS diff -Naur libast-0.6.bak/debian/control libast-0.6/debian/control --- libast-0.6.bak/debian/control 2003-11-01 23:32:00.000000000 +0100 +++ libast-0.6/debian/control 2005-09-04 00:16:59.000000000 +0200 @@ -2,7 +2,7 @@ Section: libs Priority: optional Maintainer: Laurence J. Lane <[EMAIL PROTECTED]> -Build-Depends: libimlib2-dev, xlibs-dev, cdbs, debhelper (>>4.1.0) +Build-Depends: debhelper (>> 4.1.0), cdbs, libimlib2-dev, xlibs-dev Standards-Version: 3.6.1.0 Package: libast2 @@ -24,7 +24,6 @@ Package: libast2-dev Architecture: any Section: libdevel -Architecture: any Depends: libimlib2-dev, libc6-dev, libast2 (= ${Source-Version}) Provides: libast1-dev, libast-dev Conflicts: libast1-dev, libast-dev diff -Naur libast-0.6.bak/include/libast.h libast-0.6/include/libast.h --- libast-0.6.bak/include/libast.h 2003-01-07 10:03:33.000000000 +0100 +++ libast-0.6/include/libast.h 2005-09-03 23:56:47.000000000 +0200 @@ -380,7 +380,7 @@ #else # define SWAP(a, b) do {void *tmp = ((void *)(a)); (a) = (b); (b) = tmp;} while (0) #endif -#define BINSWAP(a, b) (((long) (a)) ^= ((long) (b)) ^= ((long) (a)) ^= ((long) (b))) +#define BINSWAP(a, b) a = (long)a^(long)b; b = (long)b^(long)a; a = (long)a^(long)b #define CONST_STRLEN(x) (sizeof(x) - 1) #define BEG_STRCASECMP(s, constr) (strncasecmp(s, constr, CONST_STRLEN(constr))) diff -Naur libast-0.6.bak/src/obj.c libast-0.6/src/obj.c --- libast-0.6.bak/src/obj.c 2002-07-26 06:17:17.000000000 +0200 +++ libast-0.6/src/obj.c 2005-09-03 23:56:47.000000000 +0200 @@ -120,7 +120,7 @@ if (SPIF_OBJ_ISNULL(self)) { return FALSE; } - SPIF_OBJ_CLASS(self) = cls; + self->cls = cls; return TRUE; } diff -Naur libast-0.6.bak/src/str.c libast-0.6/src/str.c --- libast-0.6.bak/src/str.c 2002-07-31 23:56:55.000000000 +0200 +++ libast-0.6/src/str.c 2005-09-03 23:56:47.000000000 +0200 @@ -378,7 +378,7 @@ self->mem++; self->s = SPIF_CAST(charptr) REALLOC(self->s, self->mem); } - SPIF_CAST(char) (self->s[self->len - 1]) = c; + self->s[self->len - 1] = c; self->s[self->len] = 0; return TRUE; } diff -Naur libast-0.6.bak/src/url.c libast-0.6/src/url.c --- libast-0.6.bak/src/url.c 2002-07-31 23:56:55.000000000 +0200 +++ libast-0.6/src/url.c 2005-09-03 23:56:47.000000000 +0200 @@ -500,6 +500,6 @@ spif_str_append(tmp_str, self->query); } - SPIF_STR(self) = tmp_str; + self = tmp_str; return TRUE; }
-- Frank Lichtenheld <[EMAIL PROTECTED]> www: http://www.djpig.de/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]