As you may know, Wayland compositors can control and change the screen gamma curve but currently there's no third-party application which can do it; this means, at least in wayland, no redshift or flux. Yesterday I've found this article explaining that some user has patched gnome settings daemon to make redshift work in Gnome on Wayland but this particular version can work on Fedora or Arch. I've tried it in Arch and it works but Arch is my test machine, I'm not so much used to Arch, yet.

So, my question is: Since in the git repo of the patched gst for Arch there's only the PKGBUILD file, while in the repo of the gnome-shell extension there is the patch to apply, is there a way to reproduce all this stuff on debian? That is, is there a way to make a .deb package out of the pkgbuild or can somebody explain me how to patch gst?

I hope I made myself as clear as possible.

Useful link:

aur package of gnome-shell-extension-redshift-native

  • FYI Gnome v3.24 now has this feature built-in.
    – rugk
    May 30, 2017 at 17:43
  • @rugk still waiting gnome 3.24 on Debian -.-
    – Pablohoney
    Aug 24, 2017 at 10:09

1 Answer 1


You can download the sources of gnome-settings-daemon whith apt-get source command.

You can then add the patches to the debian/patches directory (and add the file name of the patch to debian/patches/series)

You need to bump the version in the debian/changelog file (ie. dch -llocal).

And then rebuild the package with dpkg-buildpackage -b

That should produce .deb files

  • Just this? On my way!
    – Pablohoney
    Dec 12, 2016 at 13:37
  • I have installed all the needed dependencies and did all you said but I got this error three times dpkg-deb: error: unable to parse timestamp '': Success dpkg-deb: error: unable to parse timestamp '': Success dh_builddeb: dpkg-deb --build debian/gnome-settings-daemon-dev .. returned exit code 2 dh_builddeb: dpkg-deb -z1 -Zxz -Sextreme --build debian/.debhelper/gnome-settings-daemon/dbgsym-root .. returned exit code 2 debian/rules:8: recipe for target 'binary' failed make: *** [binary] Error 1 dpkg-buildpackage: error: debian/rules binary gave error exit status 2
    – Pablohoney
    Dec 12, 2016 at 14:25
  • the debian/changelog is properly formatted?
    – Bigon
    Dec 12, 2016 at 15:23
  • yes, I believe so. I just copied the last entry and modified the version number and the date/time like this Mon, 12 Dec 2016 14:39:33 +0200
    – Pablohoney
    Dec 12, 2016 at 15:27
  • Ok, now I have this dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/gsd-master-color-Add-ability-to-change-the-color-temperature-of.patch/ --reject-file=- < gnome-settings-daemon-3.22.1.orig.oBqZLh/debian/patches/gsd-master-color-Add-ability-to-change-the-color-temperature-of.patch gave error exit status 1 dpkg-buildpackage: error: dpkg-source -b gnome-settings-daemon-3.22.1 gave error exit status 2 Is there somthing wrong with the patch files maybe?
    – Pablohoney
    Dec 12, 2016 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.