Skip to content

Fixed meteor Future is not defined error #26127

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

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

gabesoft
Copy link
Contributor

@gabesoft gabesoft commented May 26, 2017

Motivation for this change

When starting meteor 1.4.2.3 or latest after installing the meteor package the error below occurs. This PR fixes this error.

/nix/store/lczw40pq0qgqz4knh1z6xs1qfa7gi7cr-meteor-1.4.2.3/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:190
throw error;
^

ReferenceError: Future is not defined
at spawnSync (/tools/cli/main.js:540:1)
at patchelf (/tools/cli/main.js:561:1)
at springboard (/tools/cli/main.js:569:3)
at /tools/cli/main.js:1166:3

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

Sorry, something went wrong.

@FRidh
Copy link
Member

FRidh commented Jun 6, 2017

cc maintainer @cstrahan

@joachifm
Copy link
Contributor

Is this an upstream problem or specific to Nixpkgs somehow? Looks okay to me but would like to understand whether the patch is appropriate.

@gabesoft
Copy link
Contributor Author

I think something changed upstream so that Future is not global any more. But, we have to make this change here since meteor needs to get patched during the install. @cstrahan could shed some more light on this.

@joachifm
Copy link
Contributor

@gabesoft do you happen to know how it works on other distros? Is future loaded implicitly there? I'm curious to know what about our packaging makes it necessary to import it explicitly?

@gabesoft
Copy link
Contributor Author

gabesoft commented Jun 15, 2017

I don't think it's loaded on other distros either because meteor likes to bring everything that it needs during installation. I'll try it on a Mac just to be sure

@gabesoft
Copy link
Contributor Author

Actually this package can't be installed on a Mac

@cstrahan
Copy link
Contributor

@gabesoft Thanks! This should be fine. (Ideally we'd package meteor "the right way", but its design makes that nearly impossible.)

@cstrahan cstrahan merged commit 47868cb into NixOS:master Jul 11, 2017
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

4 participants