SUSE / hanadb_exporter

Prometheus exporter for SAP HANA databases
Apache License 2.0
46 stars 27 forks source link

update spec file to python packaging best practices #101

Closed yeoldegrove closed 2 years ago

yeoldegrove commented 2 years ago

This should fix most of the build errors currently happening at https://build.opensuse.org/package/live_build_log/network:ha-clustering:sap-deployments:devel/prometheus-hanadb_exporter/SLE_15_SP2/x86_64.

e.g.

[   66s] copying build/scripts-3.6/hanadb_exporter -> /home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64/usr/bin
[   66s] changing mode of /home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64/usr/bin/hanadb_exporter to 755
[   67s] + _target=
[   67s] + _symlinks=0
[   67s] + read _file
[   67s] + fdupes -q -p -n -H -o name -r '/home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64%{python3_sitelib}'
[   67s]                                         
fdupes: could not chdir to /home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64%{python3_sitelib}
[   67s] + rm -r '/home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64%{python3_sitelib}/tests'
[   67s] rm: cannot remove '/home/abuild/rpmbuild/BUILDROOT/prometheus-hanadb_exporter-0.7.3+git.dev23.1638430135.5dc78fa-21.2.x86_64%{python3_sitelib}/tests': No such file or directory
[   67s] error: Bad exit status

Look at https://build.opensuse.org/package/show/home:waldt:branches:network:ha-clustering:sap-deployments:devel/prometheus-hanadb_exporter for an example build.