mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
python-psutil: update to 3.2.1
Adopted.
This commit is contained in:
parent
62ceb1caf9
commit
0a2f298299
2 changed files with 10 additions and 30 deletions
|
@ -1,24 +0,0 @@
|
||||||
--- psutil/_psutil_linux.c
|
|
||||||
+++ psutil/_psutil_linux.c
|
|
||||||
@@ -517,7 +517,7 @@ psutil_net_if_stats(PyObject* self, PyObject* args)
|
|
||||||
// duplex and speed
|
|
||||||
memset(ðcmd, 0, sizeof ethcmd);
|
|
||||||
ethcmd.cmd = ETHTOOL_GSET;
|
|
||||||
- ifr.ifr_data = (caddr_t)ðcmd;
|
|
||||||
+ ifr.ifr_data = (void *)ðcmd;
|
|
||||||
ret = ioctl(sock, SIOCETHTOOL, &ifr);
|
|
||||||
|
|
||||||
if (ret != -1) {
|
|
||||||
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c
|
|
||||||
index 183dab0e12ee..4ff410601e85 100644
|
|
||||||
--- psutil/_psutil_posix.c
|
|
||||||
+++ psutil/_psutil_posix.c
|
|
||||||
@@ -418,7 +418,7 @@ psutil_net_if_stats(PyObject *self, PyObject *args)
|
|
||||||
// speed / duplex
|
|
||||||
memset(&ifmed, 0, sizeof(struct ifmediareq));
|
|
||||||
strlcpy(ifmed.ifm_name, nic_name, sizeof(ifmed.ifm_name));
|
|
||||||
- ret = ioctl(sock, SIOCGIFMEDIA, (caddr_t)&ifmed);
|
|
||||||
+ ret = ioctl(sock, SIOCGIFMEDIA, (void *)&ifmed);
|
|
||||||
if (ret == -1) {
|
|
||||||
speed = 0;
|
|
||||||
duplex = 0;
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'python-psutil'
|
# Template file for 'python-psutil'
|
||||||
pkgname=python-psutil
|
pkgname=python-psutil
|
||||||
version=3.1.1
|
version=3.2.1
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="psutil-${version}"
|
wrksrc="psutil-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -8,16 +8,19 @@ python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3.4-devel"
|
makedepends="python-devel python3.4-devel"
|
||||||
pycompile_module="psutil"
|
pycompile_module="psutil"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
||||||
homepage="https://github.com/giampaolo/psutil"
|
|
||||||
license="BSD"
|
|
||||||
short_desc="Cross-platform process and system utilities module for Python2"
|
short_desc="Cross-platform process and system utilities module for Python2"
|
||||||
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
homepage="https://github.com/giampaolo/psutil"
|
||||||
|
license="3-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
|
||||||
checksum=d3290bd4a027fa0b3a2e2ee87728056fe49d4112640e2b8c2ea4dd94ba0cf057
|
checksum=7f6bea8bfe2e5cfffd0f411aa316e837daadced1893b44254bb9a38a654340f7
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# remove shebangs
|
# remove shebangs
|
||||||
sed -i '/^#!/d' psutil/*.py
|
sed -i '1d' psutil/*.py
|
||||||
|
}
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-psutil_package() {
|
python3.4-psutil_package() {
|
||||||
|
@ -26,5 +29,6 @@ python3.4-psutil_package() {
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue