Skip to contentSkip to conversation

rteval: Makefile: More rpm cleanups

PATCH New John Kacur 1 participant 2 messages Dec 20, 2023 Kbuild

lore
Share & tools
lore

John Kacur

author
#0 lore raw

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

---
 Makefile | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
Makefile +3 -8
index ee4cca555b95..b8bed643f760 100644
@@ -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
author
#1 lore raw

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.

---
 README                | 6 ------
 doc/installing.txt    | 9 ---------
 rteval/sysinfo/dmi.py | 4 ++--
 3 files changed, 2 insertions(+), 17 deletions(-)
README +0 -6
index a5cf98344a46..b352d7f66ad2 100644
@@ -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
index ff2d43cb9481..227249bbc9ed 100644
@@ -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
index e8285d263fe6..c01a0eef1435 100644
@@ -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