Received: by mail.netbsd.org (Postfix, from userid 605) id 7165A84E8C; Fri, 16 Jul 2021 04:24:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AD77F84E83 for ; Fri, 16 Jul 2021 04:24:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id RvPkQGOAy4MV for ; Fri, 16 Jul 2021 04:24:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id C185B84CFC for ; Fri, 16 Jul 2021 04:24:16 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id BAD93FA95; Fri, 16 Jul 2021 04:24:16 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1626409456268830" MIME-Version: 1.0 Date: Fri, 16 Jul 2021 04:24:16 +0000 From: "Santhosh Raju" Subject: CVS commit: pkgsrc/sysutils/py-Glances To: pkgsrc-changes@NetBSD.org Reply-To: fox@netbsd.org X-Mailer: log_accum Message-Id: <20210716042416.BAD93FA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1626409456268830 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: fox Date: Fri Jul 16 04:24:16 UTC 2021 Modified Files: pkgsrc/sysutils/py-Glances: Makefile PLIST distinfo Added Files: pkgsrc/sysutils/py-Glances/patches: patch-glances_plugins_glances__quicklook.py Log Message: sysutils/py-Glances: Update to 3.2.1 Changes since 3.1.7: =============== Version 3.2.1 =============== Bugs corrected: * Glances 3.2.0 and influxdb export - Missing network data bug #1893 Enhancement requests: * Security audit - B411 enhancement (Monkey patch XML RPC Lib) #1025 * Also search glances.conf file in /usr/share/doc/glances/glances.conf #1862 =============== Version 3.2.0 =============== This release is a major version (but minor number because the API did not change). It focus on *CPU consumption*. I use `Flame profiling https://github.com/nicolargo/glances/wiki/Glances-FlameGraph`_ and code optimization to *reduce CPU consumption from 20% to 50%* depending on your system. Enhancement and development requests: * Improve CPU consumption - Make the refresh rate configurable per plugin #1870 - Add caching for processing username and cmdline - Correct and improve refresh time method - Set refresh rate for global CPU percent - Set the dafault refresh rate of system stats to 60 seconds - Default refresh time for sensors is refresh rate * 2 - Improve history perf - Change main curses loop - Improve Docker client connection - Update Flame profiling * Get system sensors temperatures thresholds #1864 * Filter data exported from Docker plugin * Make the Docker API connection timeout configurable * Add --issue to Github issue template * Add release-note in the Makefile * Add some comments in cpu_percent * Add some comments to the processlist.py * Set minimal version for PSUtil to 5.3.0 * Add comment to default glances.conf file * Improve code quality #820 * Update WebUI for security vuln Bugs corrected: * Quit from help should return to main screen, not exit #1874 * AttributeError: 'NoneType' object has no attribute 'current' #1875 * Merge pull request #1873 from metayan/fix-history-add * Correct filter * Correct Flake8 issue in plugins * Pressing Q to get rid of irq not working #1792 * Spelling correction in docs #1886 * Starting an alias with a number causes a crash #1885 * Network interfaces not applying in web UI #1884 * Docker containers information missing with Docker 20.10.x #1878 * Get system sensors temperatures thresholds #1864 Contibutors for this version: * Nicolargo * Markus Pöschl * Clifford W. Hansen * Blake * Yan To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/sysutils/py-Glances/Makefile \ pkgsrc/sysutils/py-Glances/distinfo cvs rdiff -u -r1.6 -r1.7 pkgsrc/sysutils/py-Glances/PLIST cvs rdiff -u -r0 -r1.1 \ pkgsrc/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1626409456268830 Content-Disposition: inline Content-Length: 4907 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/sysutils/py-Glances/Makefile diff -u pkgsrc/sysutils/py-Glances/Makefile:1.9 pkgsrc/sysutils/py-Glances/Makefile:1.10 --- pkgsrc/sysutils/py-Glances/Makefile:1.9 Tue May 4 22:18:17 2021 +++ pkgsrc/sysutils/py-Glances/Makefile Fri Jul 16 04:24:16 2021 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.9 2021/05/04 22:18:17 fox Exp $ +# $NetBSD: Makefile,v 1.10 2021/07/16 04:24:16 fox Exp $ -DISTNAME= Glances-3.1.7 +DISTNAME= Glances-3.2.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= sysutils python MASTER_SITES= ${MASTER_SITE_PYPI:=G/Glances/} @@ -14,6 +14,7 @@ DEPENDS+= ${PYPKGPREFIX}-psutil>=5.3.0:. DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses DEPENDS+= ${PYPKGPREFIX}-cursespanel-[0-9]*:../../devel/py-cursespanel +DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml USE_LANGUAGES= # none Index: pkgsrc/sysutils/py-Glances/distinfo diff -u pkgsrc/sysutils/py-Glances/distinfo:1.9 pkgsrc/sysutils/py-Glances/distinfo:1.10 --- pkgsrc/sysutils/py-Glances/distinfo:1.9 Tue May 4 22:18:17 2021 +++ pkgsrc/sysutils/py-Glances/distinfo Fri Jul 16 04:24:16 2021 @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.9 2021/05/04 22:18:17 fox Exp $ +$NetBSD: distinfo,v 1.10 2021/07/16 04:24:16 fox Exp $ -SHA1 (Glances-3.1.7.tar.gz) = 1ce9bc61ecf49480c9a8342bab1454f3644e2fcd -RMD160 (Glances-3.1.7.tar.gz) = 10792b2666d3dad2f60f09e7d9f131f39069b582 -SHA512 (Glances-3.1.7.tar.gz) = 22454d2fa29f95ec202c862300688b3d622b71a54ca3361811ad8d6123d890b21d3e13c3b3051c7d7afea3240cbadc36bbeccb77967bf965984d5f24da762138 -Size (Glances-3.1.7.tar.gz) = 6789093 bytes +SHA1 (Glances-3.2.1.tar.gz) = d6b052f21729aee0c07baca89f0d14a28bf51739 +RMD160 (Glances-3.2.1.tar.gz) = 8d9d9ceeb172a67393cc4836464843fcf385ef2c +SHA512 (Glances-3.2.1.tar.gz) = 33a879b7931e4b69cb8dfd6b437750e0f27765e6603fa9734eb5ff7a1ccf3793de956cd4310cdee0b0ddff1f43df7acacae2480cf8c6c75cf86ae0b28ff737dd +Size (Glances-3.2.1.tar.gz) = 6828899 bytes +SHA1 (patch-glances_plugins_glances__quicklook.py) = 349a469bd11ad5aaafb264d2689b52d7404b4d62 Index: pkgsrc/sysutils/py-Glances/PLIST diff -u pkgsrc/sysutils/py-Glances/PLIST:1.6 pkgsrc/sysutils/py-Glances/PLIST:1.7 --- pkgsrc/sysutils/py-Glances/PLIST:1.6 Tue May 4 22:18:17 2021 +++ pkgsrc/sysutils/py-Glances/PLIST Fri Jul 16 04:24:16 2021 @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.6 2021/05/04 22:18:17 fox Exp $ +@comment $NetBSD: PLIST,v 1.7 2021/07/16 04:24:16 fox Exp $ bin/glances-${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt @@ -81,6 +81,9 @@ ${PYSITELIB}/glances/exports/glances_exp ${PYSITELIB}/glances/exports/glances_graph.py ${PYSITELIB}/glances/exports/glances_graph.pyc ${PYSITELIB}/glances/exports/glances_graph.pyo +${PYSITELIB}/glances/exports/glances_graphite.py +${PYSITELIB}/glances/exports/glances_graphite.pyc +${PYSITELIB}/glances/exports/glances_graphite.pyo ${PYSITELIB}/glances/exports/glances_influxdb.py ${PYSITELIB}/glances/exports/glances_influxdb.pyc ${PYSITELIB}/glances/exports/glances_influxdb.pyo Added files: Index: pkgsrc/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py diff -u /dev/null pkgsrc/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py:1.1 --- /dev/null Fri Jul 16 04:24:16 2021 +++ pkgsrc/sysutils/py-Glances/patches/patch-glances_plugins_glances__quicklook.py Fri Jul 16 04:24:16 2021 @@ -0,0 +1,26 @@ +$NetBSD: patch-glances_plugins_glances__quicklook.py,v 1.1 2021/07/16 04:24:16 fox Exp $ + +It seems cpu_hz_current and cpu_hz is not available in NetBSD, so add additional +check to see if the key exists. +--- glances/plugins/glances_quicklook.py.orig 2021-07-10 07:09:24.000000000 +0000 ++++ glances/plugins/glances_quicklook.py +@@ -82,8 +82,10 @@ class Plugin(GlancesPlugin): + # Get additional information + cpu_info = cpu_percent.get_info() + stats['cpu_name'] = cpu_info['cpu_name'] +- stats['cpu_hz_current'] = self._mhz_to_hz(cpu_info['cpu_hz_current']) if cpu_info['cpu_hz_current'] is not None else None +- stats['cpu_hz'] = self._mhz_to_hz(cpu_info['cpu_hz']) if cpu_info['cpu_hz'] is not None else None ++ if 'cpu_hz_current' in cpu_info: ++ stats['cpu_hz_current'] = self._mhz_to_hz(cpu_info['cpu_hz_current']) if cpu_info['cpu_hz_current'] is not None else None ++ if 'cpu_hz' in cpu_info: ++ stats['cpu_hz'] = self._mhz_to_hz(cpu_info['cpu_hz']) if cpu_info['cpu_hz'] is not None else None + + elif self.input_method == 'snmp': + # Not available +@@ -193,4 +195,4 @@ class Plugin(GlancesPlugin): + + def _mhz_to_hz(self, hz): + """Convert Mhz to Hz.""" +- return hz * 1000000.0 +\ No newline at end of file ++ return hz * 1000000.0 --_----------=_1626409456268830--