GNU bug report logs -
#37991
[PATCH] gnu: Add redshift-wayland
Previous Next
Reported by: Josh Holland <josh <at> inv.alid.pw>
Date: Wed, 30 Oct 2019 13:09:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37991 in the body.
You can then email your comments to 37991 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Wed, 30 Oct 2019 13:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Josh Holland <josh <at> inv.alid.pw>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 30 Oct 2019 13:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/xdisorg.scm (redshift-wayland): New variable.
---
I am not sure if the package name and description are appropriate -
please change if they are not.
gnu/packages/xdisorg.scm | 43 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 17dc16b44c..010dd9d048 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1103,6 +1103,49 @@ night to daytime temperature to allow your eyes to slowly adapt. At night the
color temperature should be set to match the lamps in your room.")
(license license:gpl3+)))
+(define-public redshift-wayland
+ (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
+ (revision "1"))
+ (package
+ (name "redshift-wayland")
+ (version (string-append "1.12-"
+ revision "." (string-take commit 7)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/minus7/redshift.git")
+ (commit commit)))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("intltool" ,intltool)))
+ (inputs
+ `(("libdrm" ,libdrm)
+ ("libx11" ,libx11)
+ ("libxcb" ,libxcb)
+ ("libxxf86vm" ,libxxf86vm)
+ ("glib" ,glib) ; for Geoclue2 support
+ ("wayland" ,wayland)))
+ (home-page "https://github.com/minus7/redshift")
+ (synopsis "Adjust the color temperature of your screen (with Wayland support)")
+ (description
+ "Redshift adjusts the color temperature according to the position of the
+sun. A different color temperature is set during night and daytime. During
+twilight and early morning, the color temperature transitions smoothly from
+night to daytime temperature to allow your eyes to slowly adapt. At night the
+color temperature should be set to match the lamps in your room.
+
+This is a fork with added support for Wayland using the wlr-gamma-control
+protocol.")
+ (license license:gpl3+))))
+
(define-public xscreensaver
(package
(name "xscreensaver")
--
2.23.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Wed, 30 Oct 2019 13:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 37991 <at> debbugs.gnu.org (full text, mbox):
Alternatively, I suppose this package could replace the original
redshift altogether.
--
Josh Holland
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Mon, 04 Nov 2019 22:10:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 37991 <at> debbugs.gnu.org (full text, mbox):
Hello,
Josh Holland <josh <at> inv.alid.pw> skribis:
> Alternatively, I suppose this package could replace the original
> redshift altogether.
Yeah, if it works for both X11 and Wayland, we might simply keep this
one. Could you check ‘guix size redshift’ vs. ‘guix size
redshift-wayland’, to estimate the cost of supporting both X and
Wayland?
If the cost in size is too important, then we could keep separate
packages, but in that case one should inherit from the other to reduce
duplication.
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Wed, 06 Nov 2019 15:24:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 37991 <at> debbugs.gnu.org (full text, mbox):
Hi,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Could you check ‘guix size redshift’ vs. ‘guix size redshift-wayland’,
> to estimate the cost of supporting both X and Wayland?
$ ./pre-inst-env guix size redshift
store item total self
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29 37.4 35.8 28.3%
/gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib 70.0 32.6 25.8%
/gnu/store/b8pr2k0i2zd07zmb7kpffmcimqi337if-glib-2.60.6 111.3 14.4 11.3%
/gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34 91.4 14.3 11.3%
/gnu/store/gzp4ig4rdb1qf4i5dy1d9nl0zmj5q09y-ncurses-6.1-20190609 75.9 5.9 4.6%
/gnu/store/wlpk6qxv479njqbxanhk6c4ism0jb5qk-libxcb-1.13 76.4 5.6 4.4%
/gnu/store/06ybqkh3lb3g7c77b74izy32grglf45x-libx11-1.6.8 81.4 5.0 3.9%
/gnu/store/48z4wz0iv6c0h20b72g97b27alj48x9i-libsepol-2.7 72.4 2.4 1.9%
/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43 71.7 1.7 1.3%
/gnu/store/cp72ncw4prnsga65n3pzll07hpsg524f-bash-static-5.0.7 1.6 1.6 1.3%
/gnu/store/sb1hkmc4mk7xkiqih1d925jb9yvjgvrk-libselinux-2.7 75.4 1.3 1.0%
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7 38.4 1.0 0.8%
/gnu/store/s041h8lkjxr3r8kylbybxd6q5qq3qs3p-libdrm-2.4.99 74.2 1.0 0.8%
/gnu/store/lbip9isk25isymvnb159l115xnacb5j8-xz-5.2.4 72.0 0.9 0.7%
/gnu/store/y6q2myfry9zvk0y5df4hbj00dznr6v34-libbsd-0.9.1 70.7 0.7 0.5%
/gnu/store/qxfa4jljbd1dsx4q06izwd1jw1qilx99-pciutils-3.6.2 73.1 0.5 0.4%
/gnu/store/an6v469sfkhxsfb4vqkip1rz9p0sbjx7-redshift-1.12 126.6 0.5 0.4%
/gnu/store/j01p4wjas358cvayyjqpl449hmpanra8-libxext-1.3.4 81.9 0.4 0.4%
/gnu/store/d064bv2b1hrb07j2zj78i608db7qldx9-kmod-26 72.5 0.3 0.3%
/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11 70.2 0.2 0.2%
/gnu/store/6bnd1gwfd9a9gxm18vzdjpsr36paz47i-libxdmcp-1.1.3 70.8 0.2 0.1%
/gnu/store/ain96mrdwqd4s9shdd3s7m4syp5icdx5-libffi-3.2.1 70.1 0.1 0.1%
/gnu/store/2v3dzwjn80jdxywkylck1csjc0hwwdvl-libpciaccess-0.16 73.2 0.1 0.1%
/gnu/store/2kfywk72dfbwcz3zsc6fspjj5n39ridr-libxxf86vm-1.1.4 81.9 0.1 0.1%
/gnu/store/bwjxngk8vgzj99kw835qhd1qggs0mpcn-libxau-1.0.9 70.1 0.0 0.0%
total: 126.6 MiB
$ ./pre-inst-env guix size redshift-wayland
store item total self
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29 37.4 35.8 26.2%
/gnu/store/2plcy91lypnbbysb18ymnhaw3zwk8pg1-gcc-7.4.0-lib 70.0 32.6 23.9%
/gnu/store/b8pr2k0i2zd07zmb7kpffmcimqi337if-glib-2.60.6 111.3 14.4 10.5%
/gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34 91.4 14.3 10.4%
/gnu/store/cpv88zzh37l7gnsinbwxiz6mnv63s07x-libxml2-2.9.9 80.1 7.9 5.8%
/gnu/store/gzp4ig4rdb1qf4i5dy1d9nl0zmj5q09y-ncurses-6.1-20190609 75.9 5.9 4.3%
/gnu/store/wlpk6qxv479njqbxanhk6c4ism0jb5qk-libxcb-1.13 76.4 5.6 4.1%
/gnu/store/06ybqkh3lb3g7c77b74izy32grglf45x-libx11-1.6.8 81.4 5.0 3.6%
/gnu/store/48z4wz0iv6c0h20b72g97b27alj48x9i-libsepol-2.7 72.4 2.4 1.8%
/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43 71.7 1.7 1.2%
/gnu/store/cp72ncw4prnsga65n3pzll07hpsg524f-bash-static-5.0.7 1.6 1.6 1.2%
/gnu/store/m7lpzgn381a7kjcjd3k9yn99q2kybzgk-wayland-1.17.0 82.4 1.4 1.0%
/gnu/store/sb1hkmc4mk7xkiqih1d925jb9yvjgvrk-libselinux-2.7 75.4 1.3 0.9%
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7 38.4 1.0 0.8%
/gnu/store/s041h8lkjxr3r8kylbybxd6q5qq3qs3p-libdrm-2.4.99 74.2 1.0 0.7%
/gnu/store/lbip9isk25isymvnb159l115xnacb5j8-xz-5.2.4 72.0 0.9 0.7%
/gnu/store/h3w04l83yrx9rxcc62k0plgxr5hpc1xg-expat-2.2.7 70.7 0.7 0.5%
/gnu/store/y6q2myfry9zvk0y5df4hbj00dznr6v34-libbsd-0.9.1 70.7 0.7 0.5%
/gnu/store/ywcm36ikjspp3616lvzs5sazy2d40r9s-redshift-wayland-1.12-1.7da875d 136.7 0.5 0.4%
/gnu/store/qxfa4jljbd1dsx4q06izwd1jw1qilx99-pciutils-3.6.2 73.1 0.5 0.4%
/gnu/store/j01p4wjas358cvayyjqpl449hmpanra8-libxext-1.3.4 81.9 0.4 0.3%
/gnu/store/d064bv2b1hrb07j2zj78i608db7qldx9-kmod-26 72.5 0.3 0.2%
/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11 70.2 0.2 0.2%
/gnu/store/6bnd1gwfd9a9gxm18vzdjpsr36paz47i-libxdmcp-1.1.3 70.8 0.2 0.1%
/gnu/store/ain96mrdwqd4s9shdd3s7m4syp5icdx5-libffi-3.2.1 70.1 0.1 0.1%
/gnu/store/2v3dzwjn80jdxywkylck1csjc0hwwdvl-libpciaccess-0.16 73.2 0.1 0.1%
/gnu/store/2kfywk72dfbwcz3zsc6fspjj5n39ridr-libxxf86vm-1.1.4 81.9 0.1 0.1%
/gnu/store/bwjxngk8vgzj99kw835qhd1qggs0mpcn-libxau-1.0.9 70.1 0.0 0.0%
total: 136.7 MiB
> If the cost in size is too important, then we could keep separate
> packages, but in that case one should inherit from the other to reduce
> duplication.
I agree, but IMO 10 MiB is fairly insignificant. My only reservation is
that this isn't a formally released package, but I've been using it for
a week or so without any issues (though I haven't tested it on an X11
system).
--
Josh Holland
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Thu, 07 Nov 2019 20:11:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 37991 <at> debbugs.gnu.org (full text, mbox):
Hi Josh,
Josh Holland <josh <at> inv.alid.pw> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>> Could you check ‘guix size redshift’ vs. ‘guix size redshift-wayland’,
>> to estimate the cost of supporting both X and Wayland?
> $ ./pre-inst-env guix size redshift
[...]
> total: 126.6 MiB
>
> $ ./pre-inst-env guix size redshift-wayland
[...]
> total: 136.7 MiB
>
>
>> If the cost in size is too important, then we could keep separate
>> packages, but in that case one should inherit from the other to reduce
>> duplication.
>
> I agree, but IMO 10 MiB is fairly insignificant. My only reservation is
> that this isn't a formally released package, but I've been using it for
> a week or so without any issues (though I haven't tested it on an X11
> system).
I agree.
So, could you send a patch that updates ‘redshift’ to this snapshot and
adds Wayland support? Just add a comment stating why we’re using this
snapshot instead of the latest release.
Thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Fri, 08 Nov 2019 10:15:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 37991 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/xdisorg.scm (redshift): Change source to fork adding Wayland
support.
---
gnu/packages/xdisorg.scm | 113 +++++++++++++++++++++++++++++----------
1 file changed, 84 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 17dc16b44c..05b17d0be5 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1070,38 +1070,93 @@ the X.Org X Server version 1.7 and later (X11R7.5 or later).")
(license license:x11)))
(define-public redshift
- (package
- (name "redshift")
- (version "1.12")
- (source
- (origin
- (method url-fetch)
- (uri
- (string-append "https://github.com/jonls/redshift/"
- "releases/download/v" version
- "/redshift-" version ".tar.xz"))
- (sha256
- (base32
- "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
- (build-system gnu-build-system)
- (native-inputs
- `(("pkg-config" ,pkg-config)
- ("intltool" ,intltool)))
- (inputs
- `(("libdrm" ,libdrm)
- ("libx11" ,libx11)
- ("libxcb" ,libxcb)
- ("libxxf86vm" ,libxxf86vm)
- ("glib" ,glib))) ; for Geoclue2 support
- (home-page "https://github.com/jonls/redshift")
- (synopsis "Adjust the color temperature of your screen")
- (description
- "Redshift adjusts the color temperature according to the position of the
+ (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
+ (revision "1"))
+ (package
+ (name "redshift")
+ (version (string-append "1.12-"
+ revision "." (string-take commit 7)))
+ ;; This is not the original upstream source (that is
+ ;; https://github.com/jonls/redshift.git). This snapshot adds Wayland
+ ;; support via the wlr_gamma_control_unstable_v1 protocol.
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/minus7/redshift.git")
+ (commit commit)))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("intltool" ,intltool)))
+ (inputs
+ `(("libdrm" ,libdrm)
+ ("libx11" ,libx11)
+ ("libxcb" ,libxcb)
+ ("libxxf86vm" ,libxxf86vm)
+ ("glib" ,glib) ; for Geoclue2 support
+ ("wayland" ,wayland)))
+ (home-page "https://github.com/minus7/redshift")
+ (synopsis "Adjust the color temperature of your screen")
+ (description
+ "Redshift adjusts the color temperature according to the position of the
sun. A different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly from
night to daytime temperature to allow your eyes to slowly adapt. At night the
-color temperature should be set to match the lamps in your room.")
- (license license:gpl3+)))
+color temperature should be set to match the lamps in your room.
+
+This is a fork with added support for Wayland using the wlr-gamma-control
+protocol.")
+ (license license:gpl3+))))
+
+(define-public redshift-wayland
+ (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
+ (revision "1"))
+ (package
+ (name "redshift-wayland")
+ (version (string-append "1.12-"
+ revision "." (string-take commit 7)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/minus7/redshift.git")
+ (commit commit)))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)
+ ("intltool" ,intltool)))
+ (inputs
+ `(("libdrm" ,libdrm)
+ ("libx11" ,libx11)
+ ("libxcb" ,libxcb)
+ ("libxxf86vm" ,libxxf86vm)
+ ("glib" ,glib) ; for Geoclue2 support
+ ("wayland" ,wayland)))
+ (home-page "https://github.com/minus7/redshift")
+ (synopsis "Adjust the color temperature of your screen (with Wayland support)")
+ (description
+ "Redshift adjusts the color temperature according to the position of the
+sun. A different color temperature is set during night and daytime. During
+twilight and early morning, the color temperature transitions smoothly from
+night to daytime temperature to allow your eyes to slowly adapt. At night the
+color temperature should be set to match the lamps in your room.
+
+This is a fork with added support for Wayland using the wlr-gamma-control
+protocol.")
+ (license license:gpl3+))))
(define-public xscreensaver
(package
--
2.24.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37991
; Package
guix-patches
.
(Sat, 09 Nov 2019 23:15:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 37991 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi Josh,
>
> Josh Holland <josh <at> inv.alid.pw> skribis:
>
>> Ludovic Courtès <ludo <at> gnu.org> writes:
>>> Could you check ‘guix size redshift’ vs. ‘guix size redshift-wayland’,
>>> to estimate the cost of supporting both X and Wayland?
>> $ ./pre-inst-env guix size redshift
>
> [...]
>
>> total: 126.6 MiB
>>
>> $ ./pre-inst-env guix size redshift-wayland
>
> [...]
>
>> total: 136.7 MiB
>>
>>
>>> If the cost in size is too important, then we could keep separate
>>> packages, but in that case one should inherit from the other to reduce
>>> duplication.
>>
>> I agree, but IMO 10 MiB is fairly insignificant. My only reservation is
>> that this isn't a formally released package, but I've been using it for
>> a week or so without any issues (though I haven't tested it on an X11
>> system).
>
> I agree.
>
> So, could you send a patch that updates ‘redshift’ to this snapshot and
> adds Wayland support? Just add a comment stating why we’re using this
> snapshot instead of the latest release.
Since this Wayland variant is a fork of Redshift, I think it is better
to keep it as a separate package for now.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Sat, 16 Nov 2019 16:43:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Josh Holland <josh <at> inv.alid.pw>
:
bug acknowledged by developer.
(Sat, 16 Nov 2019 16:43:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 37991-done <at> debbugs.gnu.org (full text, mbox):
Hello Marius & Josh,
Marius Bakke <mbakke <at> fastmail.com> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
[...]
>> So, could you send a patch that updates ‘redshift’ to this snapshot and
>> adds Wayland support? Just add a comment stating why we’re using this
>> snapshot instead of the latest release.
>
> Since this Wayland variant is a fork of Redshift, I think it is better
> to keep it as a separate package for now.
Oh I stand correct; I thought this was the upcoming version of Redshift.
Then yes, I agree with you Marius. I’ve applied the patch Josh
initially submitted.
Thanks again Josh, and apologies for the unnecessary back-and-forth!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 15 Dec 2019 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 131 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.