New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnome.gnome-desktop: make deterministic #151356
Conversation
makes it so the date wont be added to gnome-version.xml <date>2021-12-18</date>
arch sets this to "Arch Linux" openSUSE to "openSUSE"
|
i also set the - <distributor>GNOME.Org</distributor>
- <date>2021-11-23</date>
+ <distributor>NixOS</distributor>
+ <!--<date></date>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
|
Thanks. |
| @@ -75,6 +75,8 @@ stdenv.mkDerivation rec { | |||
| mesonFlags = [ | |||
| "-Dgtk_doc=true" | |||
| "-Ddesktop_docs=false" | |||
| "-Ddate_in_gnome_version=false" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Is it possible to set the date somehow? I'd prefer if it embedded SOURCE_DATE_EPOCH.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no option for that https://gitlab.gnome.org/GNOME/gnome-desktop/-/blob/master/meson_options.txt
i do not think it is worth the effort to manually sed it
| @@ -75,6 +75,8 @@ stdenv.mkDerivation rec { | |||
| mesonFlags = [ | |||
| "-Dgtk_doc=true" | |||
| "-Ddesktop_docs=false" | |||
| "-Ddate_in_gnome_version=false" | |||
| "-Dgnome_distributor=NixOS" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this option apply to other packages too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grepping through the openSUSE packages only gnome-desktop has it https://github.com/bmwiedemann/openSUSE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used for XML file serving as a data source to About panel of GNOME Control Center, displaying info about system. That is only relevant for gnome-desktop which contains the file.
makes it so the date wont be added to gnome-version.xml
<date>2021-12-18</date>Motivation for this change
https://r13y.com/iso_gnome/diff/812e597aa95cff2b09d1fe5eb25bd681b699e8603cc4927b39cd8b656d3626e4-db893410d32a3c5e1d9d3bcbc2876fe3cecbde88c1dc675e4e8d7b8ac75be826.html
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes