Skip to content
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

mate-desktop: some fixes, improvements, and new packages #33039

Merged
merged 27 commits into from Jan 9, 2018
Merged

mate-desktop: some fixes, improvements, and new packages #33039

merged 27 commits into from Jan 9, 2018

Conversation

romildo
Copy link
Contributor

@romildo romildo commented Dec 25, 2017

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@romildo romildo changed the title mate-session-manager: add debug option to mate service; revise dependencies; set localstatedir mate-session-manager: add debug option to mate service; revise dependencies Dec 25, 2017
@romildo romildo changed the title mate-session-manager: add debug option to mate service; revise dependencies mate-desktop: some fixes, improvements, and new packages Dec 31, 2017
There is a bug on the glib hooker that prevents running its pre fixup
phase if it is listed before hicolor_icon_theme in the dependencies of a
derivation.
pythonPackages.pygobject3
];

configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually eventualy get expanded correctly? Usually it's done like this:

preConfigure = ''
    configureFlagsArray+=("--with-cajadir=$$out/lib/caja/extensions-2.0")
'';

Copy link
Contributor Author

@romildo romildo Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is working here and in other packages too.

$ nix-build --option build-use-chroot true -K -A mate.python-caja 2>&1 | tee /var/tmp/nix-build.log
[...]
Libraries have been installed in:
   /nix/store/72q7hql2lwwmgqm5jd3lr896mqkv53fq-python-caja-1.18.1/lib/caja/extensions-2.0
[...]

$ find . -type f -exec grep --color -nH -e 'configureFlags.*\$\$' {} +
./pkgs/desktops/mate/python-caja/default.nix:27:  configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/python-caja/default.nix~:26:  configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-dropbox/default.nix:26:  configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-dropbox/default.nix~:34:  configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/engrampa/default.nix:29:  configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-extensions/default.nix:35:  configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/applications/editors/emacs-modes/maude/default.nix:12:  configureFlags = "--with-lispdir=$$out/share/emacs/site-lisp";
./pkgs/applications/editors/emacs-modes/bbdb/default.nix:15:  configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
./pkgs/development/libraries/libmtp/default.nix:17:  configureFlags = [ "--with-udev=$$bin/lib/udev" ];

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Searching for '$$' in nix files shows several other cases of using '$$' in configureFlags.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fair enough. But it really is a bad pattern to do, it's a completely unpredictable whether it's going to work or not, or even fail silently.

For example before commit 3d59a8e ncurses appeared to build fine, but the pkgconfig file was wrong, containing unexpanded $(out) / $$out etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the next updates I can abandon this bad pattern and follow your suggestion.

@dezgeg dezgeg merged commit 0880ec7 into NixOS:master Jan 9, 2018
@dezgeg
Copy link
Contributor

dezgeg commented Jan 9, 2018

Nice work!

@romildo romildo deleted the upd.mate branch January 10, 2018 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants