Package: afpfs-ng Severity: minor Usertags: clang-ftbfs User: [email protected] Tag: patch
Hello, Using the rebuild infrastructure, your package fails to build with clang (instead of gcc). Thanks, Arthur
diff -Naur afpfs-ng.orig/afpfs-ng-0.8.1/debian/changelog afpfs-ng/afpfs-ng-0.8.1/debian/changelog --- afpfs-ng.orig/afpfs-ng-0.8.1/debian/changelog 2014-02-24 18:06:14.960058605 -0600 +++ afpfs-ng/afpfs-ng-0.8.1/debian/changelog 2014-02-24 18:14:05.408066798 -0600 @@ -1,3 +1,11 @@ +afpfs-ng (0.8.1-6) unstable; urgency=low + + * Fix the FTBFS with clang: + - Fixed the non-void function should return a value in + lib/loop.c + + -- Arthur Marble <[email protected]> Mon, 24 Feb 2014 18:14:05 -0600 + afpfs-ng (0.8.1-5) unstable; urgency=low * Allow dev package to be multiarch installable. diff -Naur afpfs-ng.orig/afpfs-ng-0.8.1/debian/patches/clang-ftbfs.diff afpfs-ng/afpfs-ng-0.8.1/debian/patches/clang-ftbfs.diff --- afpfs-ng.orig/afpfs-ng-0.8.1/debian/patches/clang-ftbfs.diff 1969-12-31 18:00:00.000000000 -0600 +++ afpfs-ng/afpfs-ng-0.8.1/debian/patches/clang-ftbfs.diff 2014-02-24 18:13:25.420066102 -0600 @@ -0,0 +1,11 @@ +--- a/lib/loop.c ++++ b/lib/loop.c +@@ -87,7 +87,7 @@ void signal_main_thread(void) + static int ending=0; + void * just_end_it_now(void * ignore) + { +- if (ending) return; ++ if (ending) return 0; + ending=1; + if (libafpclient->forced_ending_hook) + libafpclient->forced_ending_hook(); diff -Naur afpfs-ng.orig/afpfs-ng-0.8.1/debian/patches/series afpfs-ng/afpfs-ng-0.8.1/debian/patches/series --- afpfs-ng.orig/afpfs-ng-0.8.1/debian/patches/series 2014-02-24 18:06:14.960058605 -0600 +++ afpfs-ng/afpfs-ng-0.8.1/debian/patches/series 2014-02-24 18:06:39.020059024 -0600 @@ -1,3 +1,4 @@ build-error-fixes.patch mount_afp.1.patch header-path-fix.patch +clang-ftbfs.diff

