Package: konwert 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 konwert.orig/konwert-1.8/debian/changelog konwert/konwert-1.8/debian/changelog --- konwert.orig/konwert-1.8/debian/changelog 2014-05-19 22:55:35.329780191 -0500 +++ konwert/konwert-1.8/debian/changelog 2014-05-19 23:07:32.153764182 -0500 @@ -1,3 +1,14 @@ +konwert (1.8-11.3) unstable; urgency=low + + * Fix FTBFS with clang: + - Fixed the "wrong main declaration" error: + bin/512bold.cc + bin/512bold1.cc + bin/filterm.cc + bin/trs.cc + + -- Arthur Marble <art...@info9.net> Mon, 19 May 2014 23:07:32 -0500 + konwert (1.8-11.2) unstable; urgency=medium * Non-maintainer upload. diff -Naur konwert.orig/konwert-1.8/patches/clang-ftbfs.diff konwert/konwert-1.8/patches/clang-ftbfs.diff --- konwert.orig/konwert-1.8/patches/clang-ftbfs.diff 1969-12-31 18:00:00.000000000 -0600 +++ konwert/konwert-1.8/patches/clang-ftbfs.diff 2014-05-19 23:03:39.009769389 -0500 @@ -0,0 +1,72 @@ +--- a/bin/trs.cc ++++ b/bin/trs.cc +@@ -591,7 +591,7 @@ void trs () + + /******** PROGRAM G��WNY *****************************************************/ + +-main (int argc, char **argv) ++int main (int argc, char **argv) + { + /* + setlocale (LC_ALL, ""); +@@ -636,4 +636,6 @@ main (int argc, char **argv) + regulyzpliku (argv[optind]); + + trs (); ++ ++ return 0; + } +--- a/bin/filterm.cc ++++ b/bin/filterm.cc +@@ -148,7 +148,7 @@ void koniec (int) + exit (0); + } + +-main (int argc, char *argv[]) ++int main (int argc, char *argv[]) + { + nazwaprogramu = argv[0]; + shell = getenv ("SHELL"); +@@ -244,4 +244,6 @@ main (int argc, char *argv[]) + terminalsurowy(); + cat (0, input[1]); + koniec (0); ++ ++ return 0; + } +--- a/bin/512bold.cc ++++ b/bin/512bold.cc +@@ -379,7 +379,7 @@ void licz_odleglosci() + abs (normalny[i][2] - normalny[j][2]); + } + +-main() ++int main() + { + licz_odleglosci(); + reset_terminal(); +@@ -388,4 +388,6 @@ main() + int c; + while ((c = std::cin.get()) != -1) con_write (c); + std::cout << "\30\33]R\33[0m"; ++ ++ return 0; + } +--- a/bin/512bold1.cc ++++ b/bin/512bold1.cc +@@ -200,7 +200,7 @@ void con_write (unsigned char c) + std::cout << c; + } + +-main() ++int main() + { + reset_terminal(); + std::cout << "\33]P0000000\33]P1AA0000\33]P200AA00\33]P3FFFFFF" +@@ -212,4 +212,6 @@ main() + int c; + while ((c = std::cin.get()) != -1) con_write (c); + std::cout << "\33]R\33[0m"; ++ ++ return 0; + } diff -Naur konwert.orig/konwert-1.8/patches/series konwert/konwert-1.8/patches/series --- konwert.orig/konwert-1.8/patches/series 1969-12-31 18:00:00.000000000 -0600 +++ konwert/konwert-1.8/patches/series 2014-05-19 22:55:47.585779917 -0500 @@ -0,0 +1 @@ +clang-ftbfs.diff