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

Bug#820236: marked as done (qtwebkit: Make determineNumberOfCPUs work on kfreebsd)



Your message dated Sat, 7 Oct 2023 17:13:41 +0300
with message-id <ZSFnleqHbbycbpLC@localhost>
and subject line kFreeBSD has been removed from Debian ports
has caused the Debian Bug report #820236,
regarding qtwebkit: Make determineNumberOfCPUs work on kfreebsd
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
820236: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820236
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qtwebkit-opensource-src
Version: 5.5.1+dfsg-2
Severity: wishlist
Tags: patch

Hi

Please could you apply this tiny patch? It makes determineNumberOfCPUs work on kfreebsd.

Note1: This is more relevant than it seems. I recall seeing some build system (not sure if qtwebkit-opensource-src itself or something else) spawning an unlimited offspring of gcc processes (~50) when this routine fails.

Note2: This is the old version of the patch for qtwebkit-opensource-src 5.5.1+dfsg-2. A slightly different version has already been sent upstream.

Thanks!

-- 
Jon Boden

ubuntuBSD -- The power of FreeBSD kernel with familiarity of Ubuntu OS!

http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
Index: Tools/Scripts/webkitdirs.pm
===================================================================
--- Tools/Scripts/webkitdirs.pm	(revision 198974)
+++ Tools/Scripts/webkitdirs.pm	(working copy)
@@ -409,7 +409,7 @@
     } elsif (isAnyWindows()) {
         # Assumes cygwin
         $numberOfCPUs = `ls /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor | wc -w`;
-    } elsif (isDarwin() || isFreeBSD()) {
+    } elsif (isDarwin() || isFreeBSD() || isKernelFreeBSD()) {
         chomp($numberOfCPUs = `sysctl -n hw.ncpu`);
     }
 }
@@ -1216,6 +1216,11 @@
     return ($^O eq "freebsd") || ($^O eq "openbsd") || ($^O eq "netbsd") || 0;
 }
 
+sub isKernelFreeBSD()
+{
+    return isFreeBSD() || ($^O eq "gnukfreebsd") || 0;
+}
+
 sub isARM()
 {
     return ($Config{archname} =~ /^arm[v\-]/) || ($Config{archname} =~ /^aarch64[v\-]/);

--- End Message ---
--- Begin Message ---
kFreeBSD has been removed from Debian ports:
https://lists.debian.org/debian-bsd/2023/07/msg00003.html

cu
Adrian

--- End Message ---

Reply to: