rteval: Makefile: More rpm cleanups
PATCH 1/2 rteval: Makefile: More rpm cleanups
Afer having removed the upstream specfile, there were still a few references to rpms in the Makefile. These are not necessary because any work with rpms can be done with modern rpm tools and are typically done by distributions
Also test whether directory 'run' exists since it may have been removed by make realclean, and create it if it does not
Signed-off-by John Kacur <[email protected]>
--- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
Makefile +3 -8
@@ -31,6 +31,7 @@ load: $(PYTHON) rteval-cmd --onlyload -D -L -v --workdir=./run --loaddir=$(HERE)/loadsource -f $(HERE)/rteval/rteval.conf -i $(HERE)/rteval sysreport: + [ -d $(HERE)/run ] || mkdir run $(PYTHON) rteval-cmd -D -v --workdir=$(HERE)/run --loaddir=$(HERE)/loadsource --duration=$(D) -i $(HERE)/rteval --sysreport clean:
@@ -39,7 +40,7 @@ clean: realclean: clean [ -f $(XMLRPCDIR)/Makefile ] && make -C $(XMLRPCDIR) maintainer-clean || echo -n - rm -rf run rpm + rm -rf run install: install_loads install_rteval
@@ -73,13 +74,6 @@ rteval-xmlrpc-$(XMLRPCVER).tar.gz : make distcheck cp $(XMLRPCDIR)/rteval-xmlrpc-$(XMLRPCVER).tar.gz $(HERE)/ -rpm_prep: - rm -rf rpm - mkdir -p rpm/{BUILD,RPMS,SRPMS,SOURCES,SPECS} - -rpms rpm: rpm_prep rtevalrpm loadrpm - - help: @echo "" @echo "rteval Makefile targets:"
@@ -88,6 +82,7 @@ help: @echo " tarfile: create the source tarball" @echo " install: install rteval locally" @echo " clean: cleanup generated files" + @echo " realclean: Same as clean plus directory run" @echo " sysreport: do a short testrun and generate sysreport data" @echo " tags: generate a ctags file" @echo " cleantags: remove the ctags file"
Signature · 1 line
2.42.0
PATCH 2/2 rteval: Disable use of python-dmidecode
python-dmidecode is not being maintained upstream.
For now just disable it's use in rteval since it is useful but not essential information for running rteval
In the future look at generating this info directly using dmidecode.
Signed-off-by John Kacur <[email protected]>
--- README | 6 ------ doc/installing.txt | 9 --------- rteval/sysinfo/dmi.py | 4 ++-- 3 files changed, 2 insertions(+), 17 deletions(-)
README +0 -6
@@ -19,15 +19,9 @@ Rteval requires the following packages to run: Python >= 3.0 http://www.python.org/download/ -python-ethtool - git://git.kernel.org/pub/scm/linux/kernel/git/acme/python-ethtool.git - python-lxml http://lxml.de/ -python-dmidecode - http://www.ohloh.net/p/python-dmidecode - libxml2-python http://xmlsoft.org/
doc/installing.txt +0 -9
@@ -1,18 +1,10 @@ The rteval utility requires some external software libraries to run properly. These are: -python-ethtool - A python library to query network interfaces - git://git.kernel.org/pub/scm/linux/kernel/git/acme/python-ethtool.git - python-lxml A python library to parse XML files and XSLT stylesheets http://lxml.de/ -python-dmidecode - A python library used to access DMI table information - http://www.autonomy.net.au/display/pydmi/Home - libxml2-python A python library to parse XML files http://xmlsoft.org/
@@ -22,7 +14,6 @@ rt-tests git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git -$ sudo yum install python-{dmidecode,ethtool) $ git clone \ git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git $ cd rt-tests && sudo make prefix=/usr install
rteval/sysinfo/dmi.py +2 -2
@@ -15,8 +15,8 @@ from rteval import xmlout from rteval import rtevalConfig try: - import dmidecode - dmidecode_avail = True + # import dmidecode + dmidecode_avail = False except ModuleNotFoundError: dmidecode_avail = False
Signature · 1 line
2.42.0