debian/0000755000000000000000000000000012177221524007171 5ustar debian/changelog0000644000000000000000000000121612177221042011036 0ustar cpuset (1.5.6-3) unstable; urgency=low * Include updated watch file. * Update Standards-Version to 3.9.4 (no changes) * Add Homepage field to debian/control * Patch cset.py to account for filesystem prefixes (LP: #1028933, #1075997) -- Roberto C. Sanchez Sat, 03 Aug 2013 11:28:50 -0400 cpuset (1.5.6-2) unstable; urgency=low * Rebuilt to compensate for poor timing of upload. -- Roberto C. Sanchez Sat, 01 Oct 2011 17:08:21 -0400 cpuset (1.5.6-1) unstable; urgency=low * Initial release (Closes: 639495) -- Roberto C. Sanchez Sat, 27 Aug 2011 13:37:24 -0400 debian/control0000644000000000000000000000141712175607365010610 0ustar Source: cpuset Maintainer: Roberto C. Sanchez Section: python Priority: optional Build-Depends: debhelper (>= 7), python-support (>= 0.8.4), quilt Standards-Version: 3.9.4 XS-Python-Version: current Homepage: http://code.google.com/p/cpuset/ Package: cpuset Architecture: all Depends: ${misc:Depends}, ${python:Depends} XB-Python-Version: ${python:Versions} Provides: ${python:Provides} Description: Allows manipluation of cpusets and provides higher level fun Cpuset is a Python application to make using the cpusets facilities in the Linux kernel easier. The actual included command is called cset and it allows manipulation of cpusets on the system and provides higher level functions such as implementation and control of a basic CPU shielding setup. debian/source/0000755000000000000000000000000012175607365010502 5ustar debian/source/format0000644000000000000000000000001412175607365011710 0ustar 3.0 (quilt) debian/cpuset.manpages0000644000000000000000000000001012175607365012211 0ustar doc/*.1 debian/cpuset.doc-base0000644000000000000000000000057612175607365012114 0ustar Document: cpuset Title: Cpuset management utility tutorial Author: Alex Tsariounov Abstract: Documentation on the cpuset management utility Section: System/Administration Format: HTML Index: /usr/share/doc/cpuset/tutorial.html Files: /usr/share/doc/cpuset/*.html Format: Text Index: /usr/share/doc/cpuset/tutorial.txt.gz Files: /usr/share/doc/cpuset/*.txt.gz debian/cpuset.preinst0000644000000000000000000000064512175607365012120 0ustar #! /bin/sh set -e # This was added by stdeb to workaround Debian #479852. In a nutshell, # pycentral does not remove normally remove its symlinks on an # upgrade. Since we're using python-support, however, those symlinks # will be broken. This tells python-central to clean up any symlinks. if [ -e /var/lib/dpkg/info/cpuset.list ] && which pycentral >/dev/null 2>&1 then pycentral pkgremove cpuset fi #DEBHELPER# debian/watch0000644000000000000000000000054112175607365010233 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,\ downloadurlmangle=s%.*/([^/]*)/downloads/detail\?name=([^=&]*).*%http://$1.googlecode.com/files/$2%,filenamemangle=s/.*name=([^&]+).*/$1/ \ http://code.google.com/p/cpuset/downloads/list?can=1 .*=cpuset-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)|zip).* debian/compat0000644000000000000000000000000212175607365010400 0ustar 7 debian/rules0000755000000000000000000000101612175607365010260 0ustar #!/usr/bin/make -f # This file was automatically generated by stdeb 0.6.0 at # Sat, 27 Aug 2011 13:17:13 -0400 # Unset the environment variables set by dpkg-buildpackage. (This is # necessary because distutils is brittle with compiler/linker flags # set. Specifically, packages using f2py will break without this.) unexport CPPFLAGS unexport CFLAGS unexport CXXFLAGS unexport FFLAGS unexport LDFLAGS #exports specified using stdeb Setup-Env-Vars: export DH_OPTIONS=--buildsystem=python_distutils %: dh $@ --with quilt debian/README.source0000644000000000000000000000036312175607365011363 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/copyright0000644000000000000000000000123112175607365011132 0ustar Upstream source location: http://code.google.com/p/cpuset/downloads/list Files: * Copyright: (c) 2007-2011, Novell Inc. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. Files: debian/* Copyright: (c) 2011, Roberto C. Sanchez License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/patches/0000755000000000000000000000000012177221202010611 5ustar debian/patches/series0000644000000000000000000000014112177220527012033 0ustar 01_fix_documentation_installation.patch 02_prefix_in_case_filesystem_has_its_own_namespace.patch debian/patches/01_fix_documentation_installation.patch0000644000000000000000000000152412175607365020454 0ustar Author: Roberto C. Sanchez Description: Fix the location of installed documentation and keep duplicate license file from being installed. diff -uNr cpuset-1.5.6.orig//setup.py cpuset-1.5.6/setup.py --- cpuset-1.5.6.orig//setup.py 2010-02-11 15:23:58.000000000 -0500 +++ cpuset-1.5.6/setup.py 2011-08-27 14:42:50.000000000 -0400 @@ -20,8 +20,8 @@ scripts = ['cset'], packages = ['cpuset', 'cpuset.commands'], data_files = [ - ('share/doc/packages/cpuset', ['README', 'COPYING', 'AUTHORS', 'NEWS', 'INSTALL']), - ('share/doc/packages/cpuset', glob.glob('doc/*.html')), - ('share/doc/packages/cpuset', glob.glob('doc/*.txt')), + ('share/doc/cpuset', ['README', 'AUTHORS', 'NEWS']), + ('share/doc/cpuset', glob.glob('doc/*.html')), + ('share/doc/cpuset', glob.glob('doc/*.txt')), ] ) debian/patches/02_prefix_in_case_filesystem_has_its_own_namespace.patch0000644000000000000000000001206312177221202023770 0ustar Author: Roberto C. Sanchez Description: Account for filesystem namespace having its own prefix. The updated file was downloaded from here: http://code.google.com/p/cpuset/issues/detail?id=10 --- cpuset.hg.orig/cpuset/cset.py +++ cpuset.hg/cpuset/cset.py @@ -32,10 +32,13 @@ class CpuSet(object): # sets is a class variable dict that keeps track of all # cpusets discovered such that we can link them in properly. - # The basepath is it's base path, the sets are indexed via + # The basepath is its base path, the sets are indexed via # a relative path from this basepath. + # prefix can be empty or 'cpuset.' in case the filesystem + # has its own namespace sets = {} basepath = '' + prefix = '' def __init__(self, path=None): log.debug("initializing CpuSet") @@ -104,12 +107,18 @@ log.debug("the cpuset %s already exists, skipping", path) self = CpuSet.sets[path] # questionable.... return - cpus = CpuSet.basepath + path + "/cpus" + cpus = CpuSet.basepath + path + '/' + CpuSet.prefix + "cpus" if not os.access(cpus, os.F_OK): - # not a cpuset directory - str = '%s is not a cpuset directory' % (CpuSet.basepath + path) - log.error(str) - raise CpusetException(str) + log.debug(cpus + " doesn't exist, trying to add the cpuset. prefix") + CpuSet.prefix = 'cpuset.' + cpus = CpuSet.basepath + path + '/' + CpuSet.prefix + "cpus" + if not os.access(cpus, os.F_OK): + # definitely not a cpuset directory + str = '%s is not a cpuset directory' % (CpuSet.basepath + path) + log.error(str) + raise CpusetException(str) + else: + log.debug(cpus + " successfully found") self.__root = False self.read_cpuset(path) CpuSet.sets[path] = self @@ -158,36 +167,36 @@ raise AttributeError, "deletion of properties not allowed" def getcpus(self): - f = file(CpuSet.basepath+self.path+"/cpus") + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"cpus") return f.readline()[:-1] def setcpus(self, newval): cpuspec_check(newval) - f = file(CpuSet.basepath+self.path+"/cpus",'w') + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"cpus",'w') f.write(str(newval)) f.close() log.debug("-> prop_set %s.cpus = %s", self.path, newval) cpus = property(fget=getcpus, fset=setcpus, fdel=delprop, doc="CPU specifier") def getmems(self): - f = file(CpuSet.basepath+self.path+"/mems") + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"mems") return f.readline()[:-1] def setmems(self, newval): # FIXME: check format for correctness - f = file(CpuSet.basepath+self.path+"/mems",'w') + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"mems",'w') f.write(str(newval)) f.close() log.debug("-> prop_set %s.mems = %s", self.path, newval) mems = property(getmems, setmems, delprop, "Mem node specifier") def getcpuxlsv(self): - f = file(CpuSet.basepath+self.path+"/cpu_exclusive") + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"cpu_exclusive") if f.readline()[:-1] == '1': return True else: return False def setcpuxlsv(self, newval): log.debug("-> prop_set %s.cpu_exclusive = %s", self.path, newval) - f = file(CpuSet.basepath+self.path+"/cpu_exclusive",'w') + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"cpu_exclusive",'w') if newval: f.write('1') else: @@ -197,14 +206,14 @@ "CPU exclusive flag") def getmemxlsv(self): - f = file(CpuSet.basepath+self.path+"/mem_exclusive") + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"mem_exclusive") if f.readline()[:-1] == '1': return True else: return False def setmemxlsv(self, newval): log.debug("-> prop_set %s.mem_exclusive = %s", self.path, newval) - f = file(CpuSet.basepath+self.path+"/mem_exclusive",'w') + f = file(CpuSet.basepath+self.path+'/'+CpuSet.prefix+"mem_exclusive",'w') if newval: f.write('1') else: @@ -214,6 +223,7 @@ "Memory exclusive flag") def gettasks(self): + # 'tasks' never seem to have a possible 'cpusets.' prefix f = file(CpuSet.basepath+self.path+"/tasks") lst = [] for task in f: lst.append(task[:-1]) @@ -229,6 +239,7 @@ prog = False for task in tasklist: try: + # 'tasks' never seem to have a possible 'cpusets.' prefix f = file(CpuSet.basepath+self.path+"/tasks",'w') f.write(task) f.close()