[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#867118: stretch-pu: package 3dchess/0.8.1-19+b1



Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian.org@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 Stretch.

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	2015-11-01 01:09:14.000000000 +0100
+++ 3dchess-0.8.1/debian/changelog	2017-07-04 00:28:18.000000000 +0200
@@ -1,3 +1,11 @@
+3dchess (0.8.1-19+deb9u1) stretch; 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 <apo@debian.org>  Tue, 04 Jul 2017 00:28:18 +0200
+
 3dchess (0.8.1-19) 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	2015-11-01 01:09:14.000000000 +0100
+++ 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 <fabian@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;

Reply to: