Package: release.debian.org Severity: normal Tags: jessie User: release.debian....@packages.debian.org Usertags: pu
Hi I would like to fix the 100 % CPU consumption bug in 3dchess. [1] Please find attached the debdiff for Jessie. Regards, Markus [1] https://bugs.debian.org/866378
diff -Nru 3dchess-0.8.1/debian/changelog 3dchess-0.8.1/debian/changelog --- 3dchess-0.8.1/debian/changelog 2014-04-25 21:51:58.000000000 +0200 +++ 3dchess-0.8.1/debian/changelog 2017-07-04 00:28:18.000000000 +0200 @@ -1,3 +1,11 @@ +3dchess (0.8.1-18+deb8u1) jessie; urgency=medium + + * Team upload. + * Add wasteful-CPU-consumption.patch. The game always consumed 100 % CPU + resources due to a missing sleep call in its main loop. (Closes: #866378) + + -- Markus Koschany <a...@debian.org> Tue, 04 Jul 2017 00:28:18 +0200 + 3dchess (0.8.1-18) unstable; urgency=medium * Team upload. diff -Nru 3dchess-0.8.1/debian/patches/series 3dchess-0.8.1/debian/patches/series --- 3dchess-0.8.1/debian/patches/series 2014-04-25 21:51:58.000000000 +0200 +++ 3dchess-0.8.1/debian/patches/series 2017-07-04 00:28:18.000000000 +0200 @@ -3,3 +3,4 @@ 12_3Dc-rules.html.patch 13_machine.h.patch hardening.patch +wasteful-CPU-consumption.patch diff -Nru 3dchess-0.8.1/debian/patches/wasteful-CPU-consumption.patch 3dchess-0.8.1/debian/patches/wasteful-CPU-consumption.patch --- 3dchess-0.8.1/debian/patches/wasteful-CPU-consumption.patch 1970-01-01 01:00:00.000000000 +0100 +++ 3dchess-0.8.1/debian/patches/wasteful-CPU-consumption.patch 2017-07-04 00:28:18.000000000 +0200 @@ -0,0 +1,26 @@ +From: Fabian Greffrath <fab...@debian.org> +Date: Fri, 30 Jun 2017 01:04:52 +0200 +Subject: wasteful CPU consumption + +The game always consumed 100 % CPU resources due to a missing sleep call in its +main loop. + +Bug-Debian: https://bugs.debian.org/866378 +Forwarded: no +--- + src/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main.c b/src/main.c +index 84979ca..d1db23a 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -200,7 +200,7 @@ DoMain3DcLoop(void) + &event); + XtDispatchEvent(&event); + } +- ++ usleep(10); + } /* End game loop */ + + return;