sysstat: add 12.4.5 and fix build failures (#30121)

This adds the newest stable version (and removes old development
versions), a few missing dependencies and workarounds for build
failures. Without the environment variables, sysstat will try creating
directories in `/var/log`, and without `--disable-file-attr`, sysstat
will try to change file ownership.
This commit is contained in:
Michael Kuhn 2022-05-02 08:24:11 +02:00 committed by GitHub
parent 9a028e3b15
commit 38e5b96431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,22 @@ class Sysstat(AutotoolsPackage):
homepage = "https://github.com/sysstat"
url = "https://github.com/sysstat/sysstat/archive/v12.1.6.tar.gz"
version('12.4.5', sha256='4e35abdd9eaf766ecdab55786f459093f3e1c350db23e57a15561afda417ff0d')
version('12.2.0', sha256='614ab9fe8e7937a3edb7b2b6760792a3764ea3a7310ac540292dd0e3dfac86a6')
version('12.1.7', sha256='293b31ca414915896c639a459f4d03a742b3a472953975394bef907b245b3a9f')
version('12.1.6', sha256='50f4cbf023f8b933ed6f1fee0e6d33e508d9dc20355a47f6927e0c6046c6acf6')
version('12.1.5', sha256='d0ea36f278fe10c7978be2a383cb8055c1277d60687ac9030ba694a08a80f6ff')
depends_on('pkgconfig', type='build')
depends_on('gettext')
depends_on('lm-sensors')
def setup_build_environment(self, env):
env.append_flags('rcdir', self.spec.prefix.etc)
env.append_flags('sa_dir', self.spec.prefix.log.sa)
env.append_flags('conf_dir', self.spec.prefix.etc.sysconfig)
def configure_args(self):
args = [
'--disable-pcp',
'--disable-file-attr',
]
return args