Package Base Details: tuned

Git Clone URL: https://aur.archlinux.org/tuned.git (read-only, click to copy)
Keywords: daemon monitoring python system tuning
Submitter: irtimmer
Maintainer: SunRed
Last Packager: SunRed
Votes: 21
Popularity: 0.62
First Submitted: 2016-01-26 12:09 (UTC)
Last Updated: 2024-04-27 19:00 (UTC)

Packages (2)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

SunRed commented on 2022-07-04 15:25 (UTC)

The package was missing compiled python modules prior to version 2.18.0-2. Thanks goes to @ChrisTX for the hint. If you encounter errors like these

tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/__init__.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/consts.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/exceptions.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/logs.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/patterns.cpython-310.pyc exists in filesystem
tuned: /usr/lib/python3.10/site-packages/tuned/__pycache__/version.cpython-310.pyc exists in filesystem

when updating, append

--overwrite /usr/lib/python3.10/site-packages/tuned/__pycache__\* --overwrite /usr/lib/python3.10/site-packages/tuned/\*/__pycache__\*

to your pacman or AUR helper command when installing/updating.

SunRed commented on 2022-07-04 15:20 (UTC)

@ChrisTX Thanks for the contribution. I didn't know about this.

ChrisTX commented on 2022-07-01 09:01 (UTC)

The package is creating __pycache__ orphans: Any package containing Python modules needs to precompile them, otherwise running them will create orphaned files in the __pycache__ folder.

Not only will the files not be properly refreshed, but they also remain after upgrading python versions, causing a lot of orphaned files.

This can be easily fixed by adding

python -m compileall -d /usr/lib "$pkgdir/usr/lib"
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"

in the package() step. Compare what was done in libxml2 by the Arch devs, PKGCONFIG and the related announcement.

yochananmarqos commented on 2021-01-08 05:05 (UTC)

@SunRed: Instead of farting around in the package() function, do this in a prepare() function instead:

prepare() {
    cd "${pkgname}-${pkgver}"
    mv libexec lib

    sed -i 's/libexec/lib/g' Makefile
    sed -i 's/sbin/bin/g' Makefile
}

SunRed commented on 2020-12-25 06:48 (UTC)

@STiNG Yes, I had that error as well and the issue was a python-configobj version (5.0.6-10) where downgrading to the previous version (5.0.6-9) helped fix it temporarily. There is a new version out now that fixes the issue. In addition to that I updated the tuned package to the latest version. :)

STiNG commented on 2020-12-22 18:51 (UTC)

Getting this error: tuned-adm active Traceback (most recent call last): File "/usr/bin/tuned-adm", line 29, in <module> from tuned.utils.global_config import GlobalConfig File "/usr/lib/python3.9/site-packages/tuned/utils/global_config.py", line 3, in <module> from validate import Validator ModuleNotFoundError: No module named 'validate'

egrupled commented on 2019-01-20 20:53 (UTC)

@aorth please take a look at https://aur.archlinux.org/packages/tuned-git/ and discussion there for a proper list of dependencies needed (aside of python version).

aorth commented on 2019-01-20 07:58 (UTC) (edited on 2019-01-20 09:47 (UTC) by aorth)

Needs updating for 2.10.0, where the upstream project has since switched to Python 3. At the very least, this means updating dependencies in the PKGBUILD to their python versions (instead of python2) and removing the sed command from the PKGBUILD.

Edit: Using Python 3 is problematic because Fedora is currently using Python 3.6 and Arch is on 3.7. I updated the PKGBUILD 2.10.0, corrected the use of Python 2, and re-organized the list of Python dependencies according to the tuned.spec provided by the upstream package. See PKGBUILD here.

https://gist.github.com/alanorth/8bd848424387120fbebc22ec9c0b37e9

jboyens commented on 2018-10-12 07:39 (UTC)

Updated to the newest version @ https://gitlab.com/jboyens/tuned/tree/update-version

Megaton commented on 2017-07-25 17:28 (UTC)

Hello, Could you add "desktop-file-utils" to makedepends? regards, Megaton