Fix for multiprocessing is simple (attached, not tested) but not sure if
a "correct" one since it might  better be fixed in procps package
(included into To, please advise Craig):  sysctl is shipped under /sbin
on Linux-based installations but for some reason under /bin on kfreebsd.
That now requires every package relying on sysctl to become
kernel-aware.

procps's debian/rules seems to explicitly remove it from /sbin/:

ifneq ($(DEB_HOST_ARCH_OS), linux)
    rm -f \
        $(DEBROOT)/usr/bin/slabtop \
        $(DEBROOT)/usr/share/man/man1/slabtop.1 \
        $(DEBROOT)/sbin/sysctl \
        $(DEBROOT)/usr/share/man/man8/sysctl.8 \
        $(DEBROOT)/usr/share/man/man5/sysctl.conf.5 \
        $(NULL)
endif

is there any specific reason or could it be shipped under /sbin/ ?

-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        
From: Yaroslav Halchenko <deb...@onerussian.com>
Subject: Fix path to Debian/kFreeBSD specific path to sysctl

 Not sure yet if it should be fixed this way or procps should ship sysctl
 under /sbin/ as it does on other platforms

Origin: Debian
Bug-Debian: http://bugs.debian.org/648061
Last-Update: 2012-06-24

--- a/Lib/multiprocessing/__init__.py
+++ b/Lib/multiprocessing/__init__.py
@@ -116,7 +116,7 @@ def cpu_count():
         except (ValueError, KeyError):
             num = 0
     elif 'bsd' in sys.platform or sys.platform == 'darwin':
-        comm = '/sbin/sysctl -n hw.ncpu'
+        comm = '/bin/sysctl -n hw.ncpu'
         if sys.platform == 'darwin':
             comm = '/usr' + comm
         try:

Attachment: signature.asc
Description: Digital signature

Reply via email to