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

regextester: 0.1.7 -> 1.0.1 #49431

Closed
wants to merge 2 commits into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Oct 30, 2018

  • uses meson now
  • crashes on start complaining schema not installed,
    so I added a postInstall that compiles the schema?
    Fixes the problem but I'm not particularly familiar
    with these bits so review appreciated.
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

* uses meson now
* crashes on start complaining schema not installed,
  so I added a postInstall that compiles the schema?
  Fixes the problem but I'm not particularly familiar
  with these bits so review appreciated.
@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: regextester

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: regextester

Partial log (click to expand)

glibPreFixupPhase
hicolorPreFixupPhase
post-installation fixup
Wrapping program /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1/bin/com.github.artemanufrij.regextester
shrinking RPATHs of ELF executables and libraries in /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1
shrinking /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1/bin/.com.github.artemanufrij.regextester-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1/bin
patching script interpreter paths in /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1
checking for references to /build in /nix/store/izjpmsd4mn1nhkqr8aica10kzl4mz6k0-regextester-1.0.1...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: regextester

Partial log (click to expand)

glibPreFixupPhase
hicolorPreFixupPhase
post-installation fixup
Wrapping program /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1/bin/com.github.artemanufrij.regextester
shrinking RPATHs of ELF executables and libraries in /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1
shrinking /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1/bin/.com.github.artemanufrij.regextester-wrapped
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1/bin
patching script interpreter paths in /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1
checking for references to /build in /nix/store/m49hkynamc5bcmxcr5h2bm0ijrb0dpys-regextester-1.0.1...

];
buildInputs = [
gtk3
granite
gnome3.defaultIconTheme
gnome3.glib
Copy link
Contributor

Choose a reason for hiding this comment

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

Just use top-level glib.

];
buildInputs = [
gtk3
glib
Copy link
Contributor

Choose a reason for hiding this comment

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

gtk3 propagates glib and gsettings-desktop-schemas so adding is redundant

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to be explicit and include every library that the project links with – the project can stop using gtk or gtk can stop propagating glib any time. (Well in the case of gtk – glib relationship, it pretty unlikely but I do not like making exceptions.)

Copy link
Contributor

Choose a reason for hiding this comment

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

I will keep that in mind in the future as well.

Copy link
Contributor

@jtojnar jtojnar Oct 30, 2018

Choose a reason for hiding this comment

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

To be clear, I meant listing in buildInputs all the libraries declared as dependency in meson.build, not those dependencies that are only non-direct dependencies of the project. (Though projects sometimes forget to list some dependencies, relying on transitivity, which leads to breakages like #36468)

Copy link
Contributor

Choose a reason for hiding this comment

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

So just gtk3 would be appropriate because meson.build?

Copy link
Contributor

Choose a reason for hiding this comment

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

They definitely use glib so I would pin them to the second category.

libxml2
elementary-cmake-modules
vala
Copy link
Contributor

Choose a reason for hiding this comment

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

These apps should really use vala_0_40.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe with a comment that it is supposed to be changed to elementary.vala once the elementary attribute set is merged.

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: regextester

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


];

postInstall = ''
${gnome3.glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
Copy link
Contributor

Choose a reason for hiding this comment

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

gnome3.glib.dev -> glib.dev

Also usually a post install script like this does this.

Copy link
Contributor

@jtojnar jtojnar Oct 30, 2018

Choose a reason for hiding this comment

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

That is something that is still not resolved in meson. Some projects prefer to leave this to downstream distro hooks, see Arch, for example.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: regextester

Partial log (click to expand)

glibPreFixupPhase
hicolorPreFixupPhase
post-installation fixup
Wrapping program /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1/bin/com.github.artemanufrij.regextester
shrinking RPATHs of ELF executables and libraries in /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1
shrinking /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1/bin/.com.github.artemanufrij.regextester-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1/bin
patching script interpreter paths in /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1
checking for references to /build in /nix/store/08lnkn8r25m7xgf7j4m96cmrhpll4i7h-regextester-1.0.1...

@dtzWill
Copy link
Member Author

dtzWill commented Oct 30, 2018 via email

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: regextester

Partial log (click to expand)

glibPreFixupPhase
hicolorPreFixupPhase
post-installation fixup
Wrapping program /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1/bin/com.github.artemanufrij.regextester
shrinking RPATHs of ELF executables and libraries in /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1
shrinking /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1/bin/.com.github.artemanufrij.regextester-wrapped
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1/bin
patching script interpreter paths in /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1
checking for references to /build in /nix/store/3valwys16njylxhav63ga293cdzlh7w9-regextester-1.0.1...

@worldofpeace
Copy link
Contributor

@dtzWill Finished this up for you in #49560 🎆

@dtzWill
Copy link
Member Author

dtzWill commented Nov 2, 2018 via email

@jtojnar jtojnar closed this Nov 3, 2018
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

4 participants