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

factor-lang: Init at 0.97 #16059

Merged
merged 1 commit into from
Jun 9, 2016
Merged

factor-lang: Init at 0.97 #16059

merged 1 commit into from
Jun 9, 2016

Conversation

vrthra
Copy link
Member

@vrthra vrthra commented Jun 8, 2016

Motivation for this change

New package Factor

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
    • OS X
    • 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.

Factor is a concatenative, stack-based programming language.

@@ -6914,6 +6914,11 @@ in

faad2 = callPackage ../development/libraries/faad2 { };

factor-lang = callPackage ../development/compilers/factor-lang {
inherit (pkgs.gnome) gtkglext;
glib = glib;
Copy link
Contributor

Choose a reason for hiding this comment

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

this line is unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

@the-kenny Removed the redundant assignment.

@vrthra vrthra changed the title factor-lang: Init at 0.98 factor-lang: Init at 0.98 (work in progress) Jun 8, 2016
@rushmorem rushmorem added the 2.status: work-in-progress This PR isn't done label Jun 8, 2016
@vrthra vrthra changed the title factor-lang: Init at 0.98 (work in progress) factor-lang: Init at 0.98 Jun 8, 2016
@vrthra
Copy link
Member Author

vrthra commented Jun 8, 2016

@rushmorem Ready for review.

@rushmorem rushmorem changed the title factor-lang: Init at 0.98 factor-lang: Init at 0.97 Jun 8, 2016
mv factor/factor.image bin/.factor-wrapped.image &&
rm -rf factor )

cp -r basis core extra unmaintained $out/bin
Copy link
Contributor

Choose a reason for hiding this comment

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

Are all these required at run-time? If they are, can't they be moved outside the bin directory?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, factor looks for the libraries and runtime image in the directory where the binary was found.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to use the lib/factor directory instead.

@rushmorem
Copy link
Contributor

This failed to build for me locally. I'm getting the following error:-

error: Package ‘factor-lang-0.97’ in ‘/tmp/nixpkgs/pkgs/development/compilers/factor-lang/default.nix:98’ is not supported on ‘x86_64-linux’, refusing to evaluate.

@vrthra
Copy link
Member Author

vrthra commented Jun 9, 2016

@rushmorem "refusing to evaluate." Is this message coming from the Nix? Any idea? I don't see that message in factor libraries.

cp -r basis core extra unmaintained $out/bin

# Factor uses the home directory for cache during compilation.
# We cant have that. So set it to $out/.home
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment is still mentioning $out...

Copy link
Member Author

Choose a reason for hiding this comment

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

@rushmorem Fixed.

@rushmorem
Copy link
Contributor

@vrthra yes that message comes from Nix.

@rushmorem
Copy link
Contributor

Your branch is now outdated. Please kindly rebase against master.

description = "A concatenative, stack-based programming language";

maintainers = [ maintainers.vrthra ];
platforms = [ platforms.linux ];
Copy link
Contributor

Choose a reason for hiding this comment

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

This is where nix-build is choking (see comment) which is odd because I'm running NixOS. Unless I'm missing something it should continue to build for me. The relevant if condition looks suspicious to me (I have not configured to allow broken builds and here platforms is set). If I remove this line the build does continue. @the-kenny any thoughts on this? /cc @edolstra

Copy link
Contributor

@rushmorem rushmorem Jun 9, 2016

Choose a reason for hiding this comment

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

Never mind my previous comment. platforms = [ platforms.linux ]; should be platforms = platforms.linux; instead. @vrthra once you make this change and rebase against master we should finally be ready to merge.

@vrthra
Copy link
Member Author

vrthra commented Jun 9, 2016

@rushmorem Rebased and pushed.

@rushmorem
Copy link
Contributor

@vrthra thanks. We are almost there... Once you correct the platforms we will be ready to merge :)

Factor is a concatenative, stack-based programming language.
@vrthra
Copy link
Member Author

vrthra commented Jun 9, 2016

@rushmorem updated the platforms

@rushmorem
Copy link
Contributor

Thank you. It's building now. I will merge it if it finishes successfully.

@rushmorem rushmorem added 8.has: package (new) This PR adds a new package and removed 2.status: work-in-progress This PR isn't done labels Jun 9, 2016
@rushmorem rushmorem merged commit 3871831 into NixOS:master Jun 9, 2016
@rushmorem
Copy link
Contributor

Local build finished successfully. Thanks!

@vrthra vrthra deleted the factor branch June 9, 2016 10:04
@vrthra
Copy link
Member Author

vrthra commented Jun 9, 2016

@rushmorem this seems to have failed the nightly build with

fatal_error: Bad image: version number check failed: 0
105/...-stdenv/setup: line 915:  2153 Aborted                 ./factor -script -e='"unix-x86.64" USING: system bootstrap.image memory ; make-image save 0 exit'

Any idea what I should do now?

@vrthra
Copy link
Member Author

vrthra commented Jun 9, 2016

@rushmorem Disabling i686 builds at PR:#16089

@rushmorem
Copy link
Contributor

OK, thanks. I will take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants