Package: libaio Version: 0.3.109-1 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch oneiric
https://bugs.launchpad.net/ubuntu/+source/libaio/+bug/829465 reports a build failure with GCC 4.6, which adds a new -Wunused-but-set-variable warning category which is enabled by default by -Wall. Since libaio uses -Werror, the build fails. I haven't checked whether this also happens in Debian, but it seems quite possible. Patch follows (on top of the patch in #588112, but it's easy to adjust if you don't want to apply that first). * Fix unused variable causing build failure with GCC 4.6. diff -Nru libaio-0.3.109/debian/patches/92_unused_warnings.patch libaio-0.3.109/debian/patches/92_unused_warnings.patch --- libaio-0.3.109/debian/patches/92_unused_warnings.patch 1970-01-01 01:00:00.000000000 +0100 +++ libaio-0.3.109/debian/patches/92_unused_warnings.patch 2011-08-22 13:58:05.000000000 +0100 @@ -0,0 +1,50 @@ +Description: Fix -Wunused-but-set-variable warnings with GCC 4.6 +Author: Colin Watson <cjwat...@ubuntu.com> +Bug-Ubuntu: https://bugs.launchpad.net/bugs/829465 +Forwarded: no +Last-Update: 2011-08-22 + +Index: b/harness/cases/12.t +=================================================================== +--- a/harness/cases/12.t ++++ b/harness/cases/12.t +@@ -18,7 +18,7 @@ + + int test_main(void) + { +- int res, status; ++ int status; + pid_t pid; + sigset_t set; + +@@ -35,7 +35,7 @@ + if (pid == 0) + test_child(); + +- res = waitpid(pid, &status, 0); ++ waitpid(pid, &status, 0); + + if (WIFEXITED(status)) { + int failed = (WEXITSTATUS(status) != 0); +Index: b/harness/cases/14.t +=================================================================== +--- a/harness/cases/14.t ++++ b/harness/cases/14.t +@@ -59,7 +59,7 @@ + /* from 12.t */ + int test_main(void) + { +- int res, status; ++ int status; + pid_t pid; + sigset_t set; + +@@ -75,7 +75,7 @@ + if (pid == 0) + test_child(); + +- res = waitpid(pid, &status, 0); ++ waitpid(pid, &status, 0); + + if (WIFEXITED(status)) { + int failed = (WEXITSTATUS(status) != 0); diff -Nru libaio-0.3.109/debian/patches/series libaio-0.3.109/debian/patches/series --- libaio-0.3.109/debian/patches/series 2011-05-27 12:56:11.000000000 +0100 +++ libaio-0.3.109/debian/patches/series 2011-08-22 13:34:37.000000000 +0100 @@ -5,3 +5,4 @@ 03_man_errors.patch 90_ppc-name-clashing.patch 91_ubuntu_arches.patch +92_unused_warnings.patch Thanks, -- Colin Watson [cjwat...@ubuntu.com] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org