Quick and dirty Dockerfile that will build a patched binary and source package for PowerTOP on Debian 12. They still ship 2.14 on this Debian version which does not include the necessary fixes.
You only need Docker and this command:
docker build --rm --output type=local,dest=output/ https://gist.github.com/icedream/ee7780b87706f2693c75a116759f0fbb/raw/Dockerfile
This will automatically fetch the Dockerfile, run it, and output the files to a output/
subdirectory. You can install the packages from there with dpkg -i <path-to-deb>
.
If you are on Debian 13 or newer, the fixes are already included with the updated 2.15 they ship, so you won't need this.