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

guile-gnome: fix build by building gwrap with guile-2.0 #29836

Merged
merged 7 commits into from Sep 28, 2017

Conversation

vyp
Copy link
Member

@vyp vyp commented Sep 27, 2017

Motivation for this change

Fixes the build for guile-gnome, which currently does not work: #29732 (comment)

@taktoa I also went ahead and removed you from maintainers for gwrap since it seems to only be a guile related package. (There's nothing to 'maintain' anyway since if you look at the commit messages in this PR, you'll see that it seems as though it's not being developed anymore, but wanted to ping you just in case.)

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
    • Linux
  • 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.

@vyp
Copy link
Member Author

vyp commented Sep 27, 2017

Wait do not merge, I just discovered that you can set the guile version directly in pkgs/top-level/all-packages.nix, so I'll update this PR to do that instead some time.

Apparently gwrap will not compile with guile-2.2 [1], even though the
news for version 1.9.15 says it "allows" Guile 2.2 [2]:

> it will _not_ compile using 2.2

Furthermore, it seems like it isn't being developed anymore either [1]:

> Also note that g-wrap itself is not being further developed anymore,
> it is recommended for new projects to use Guile's dynamic FFI.

Also, guile-gnome-2.16.5 is apparently compatible with guile-2.2 [3],
but I'm not sure how they built it with guile-2.2 because gwrap 1.9.15
(latest release) apparently doesn't build with guile-2.2. (And certainly
when I try to build gwrap 1.9.15 with guile-2.2 it doesn't work. Maybe
it can be made to work with certain compile flags, but I haven't pursued
that further due to [1] anyway.) This is why guile-gnome is still on
2.16.4 here. Because, although 2.16.5 can still (apparently) build with
guile-2.0.14, guile_2_0 is only at guile-2.0.13.

So to update guile-gnome to 2.16.5, guile_2_0 would first have to be
updated to 2.0.14.

[1]: http://lists.nongnu.org/archive/html/g-wrap-dev/2016-08/msg00001.html
[2]: http://www.nongnu.org/g-wrap/news.html
[3]: https://www.gnu.org/software/guile-gnome/news.html
@vyp
Copy link
Member Author

vyp commented Sep 27, 2017

👆 Done


src = fetchurl {
url = "http://ftp.gnu.org/pub/gnu/guile-gnome/guile-gnome-platform/${name}.tar.gz";
url = "http://ftp.gnu.org/pub/gnu/guile-gnome/${pname}/${name}.tar.gz";
Copy link
Contributor

Choose a reason for hiding this comment

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

Use mirror://gnu/.

preConfigure = ''
./autogen.sh
'';
preConfigure = "./autogen.sh";
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Multiline strings are preferred for scripts, even for single line ones.
  2. autoreconfHook is generally preferred to ./autogen.sh.
  3. This package builds even without autoreconf.

Could you also add GUILE_AUTO_COMPILE = 0; to silence warnings?

@globin
Copy link
Member

globin commented Sep 28, 2017

Fixed the nitpicks myself, thanks for your work on the guile stuff! If you are still at it guile-xcb is the last one needing to be fixed ;)

@globin globin merged commit b3dab5b into NixOS:master Sep 28, 2017
@vyp
Copy link
Member Author

vyp commented Sep 29, 2017

Thanks @globin and thanks for reviewing @orivej! I think for guile-xcb, it just hasn't been updated to work with guile 2.2, so I made a PR for fixing that: #29916. But I'm not 100% sure because this line mentions 2.2: https://github.com/mwitmer/guile-xcb/blob/db7d5a393cc37a56f66541b3f33938b40c6f35b3/configure.ac#L12

@vyp vyp deleted the fix/guile-gnome branch September 29, 2017 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants