Package: re Severity: minor Usertags: clang-ftbfs User: pkg-llvm-t...@lists.alioth.debian.org Tag: patch
Hello, Using the rebuild infrastructure, your package fails to build with clang (instead of gcc). Thanks, Arthur
diff -Naur re.orig/re-0.1/debian/changelog re/re-0.1/debian/changelog --- re.orig/re-0.1/debian/changelog 2014-05-16 19:23:02.257458498 -0500 +++ re/re-0.1/debian/changelog 2014-05-16 19:31:03.181447757 -0500 @@ -1,3 +1,11 @@ +re (0.1-6) unstable; urgency=low + + * Fix FTBFS with clang: + - Fixed the "wrong main declaration" in + src/re_cmd.c + + -- Arthur Marble <art...@info9.net> Fri, 16 May 2014 19:31:03 -0500 + re (0.1-5) unstable; urgency=low * Recompile with -fsigned-char to override default on some arch @@ -33,6 +41,4 @@ -- Aigars Mahinovs <aigar...@mail.lv> Tue, 21 Mar 2000 23:16:10 +0000 -Local variables: -mode: debian-changelog -End: + diff -Naur re.orig/re-0.1/patches/clang-ftbfs.diff re/re-0.1/patches/clang-ftbfs.diff --- re.orig/re-0.1/patches/clang-ftbfs.diff 1969-12-31 18:00:00.000000000 -0600 +++ re/re-0.1/patches/clang-ftbfs.diff 2014-05-16 19:29:25.669449935 -0500 @@ -0,0 +1,19 @@ +--- a/src/re_cmd.c ++++ b/src/re_cmd.c +@@ -9,7 +9,7 @@ + #include "ru32un.h" + #include "ru32call.h" + +-main(int argc, char* argv[]) ++int main(int argc, char* argv[]) + { + // usage: + // re_cmd [opts] <filename-from> <filename_to> <cp-from> <cp_to> <s/f/d> <u/l/s> +@@ -85,5 +85,7 @@ if (isopt==1) + } + remove ("_$tmpspc.tmp"); + // End of changes ++ ++ return 0; + } + diff -Naur re.orig/re-0.1/patches/series re/re-0.1/patches/series --- re.orig/re-0.1/patches/series 1969-12-31 18:00:00.000000000 -0600 +++ re/re-0.1/patches/series 2014-05-16 19:24:15.197456869 -0500 @@ -0,0 +1 @@ +clang-ftbfs.diff