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

luaposix: 33.4.0 -> 34.0.4, add dependencies #35581

Closed
wants to merge 7 commits into from

Conversation

lblasc
Copy link
Contributor

@lblasc lblasc commented Feb 25, 2018

Motivation for this change

Refresh package and add new dependencies.

Thanks!

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.

@lblasc
Copy link
Contributor Author

lblasc commented Feb 28, 2018

@vyp please take a look, thanks!

@lblasc
Copy link
Contributor Author

lblasc commented Mar 9, 2018

@Mic92 maybe you can take a look? Thanks!

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build luajitPackages.bit32 lua52Packages.bit32 lua51Packages.bit32 lua51Packages.luaposix lua52Packages.luaposix luajitPackages.luaposix

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/v33zk3h4lz0s6s1rmhal8f4vp43766m8-lua5.1-posix-34.0.4/lib
patching script interpreter paths in /nix/store/v33zk3h4lz0s6s1rmhal8f4vp43766m8-lua5.1-posix-34.0.4
checking for references to /build in /nix/store/v33zk3h4lz0s6s1rmhal8f4vp43766m8-lua5.1-posix-34.0.4...
/nix/store/hgq5kimxl6n0v23h2amp2m499a0wa0da-lua5.1-bit32-5.3.0
/nix/store/jr7a9s9pp0gimw0i56lkybmjxybqk9dv-lua5.2-bit32-5.3.0
/nix/store/93as8783ycrc78lxvad61s5ihafhb7n9-lua5.1-bit32-5.3.0
/nix/store/v33zk3h4lz0s6s1rmhal8f4vp43766m8-lua5.1-posix-34.0.4
/nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4
/nix/store/pccjqy05p837ylnsb49zvxqv1lrv3jbj-lua5.1-posix-34.0.4

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

no configure script, doing nothing
patching script interpreter paths in /nix/store/n4l8yhmbhh25rbbnwsg4nap1g4zc2ajc-lua5.1-std.normalize-2.0.1
installing
post-installation fixup
cannot build derivation '/nix/store/nfg9zngjmhvggk60ssaqgccz7b9gl28x-lua5.1-posix-34.0.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bq7id3q6cdyj2dj059sn0vh76dc8c0ya-lua5.1-posix-34.0.4.drv': 1 dependencies couldn't be built
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/zm0fwawjzqxhw37w4syigwz2g687m8z8-lua5.2-std.normalize-2.0.1
cannot build derivation '/nix/store/92m51g0pp0zwml1i9vwj0bywmj9xapjy-lua5.2-posix-34.0.4.drv': 1 dependencies couldn't be built
error: build of '/nix/store/92m51g0pp0zwml1i9vwj0bywmj9xapjy-lua5.2-posix-34.0.4.drv', '/nix/store/axpf1ka4zygafmw26gwm8ml5xnbvlqcs-lua5.1-bit32-5.3.0.drv', '/nix/store/bq7id3q6cdyj2dj059sn0vh76dc8c0ya-lua5.1-posix-34.0.4.drv', '/nix/store/fzy8qwxi5p892na23f76ddz5l2l7l31s-lua5.2-bit32-5.3.0.drv', '/nix/store/h4bd8f637hmg8ckx5lxd6pczpvcdpfr8-lua5.1-bit32-5.3.0.drv', '/nix/store/nfg9zngjmhvggk60ssaqgccz7b9gl28x-lua5.1-posix-34.0.4.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/m5c1w5ad9c63gjzwaic872r9k21cvbpi-lua5.1-posix-34.0.4/lib
patching script interpreter paths in /nix/store/m5c1w5ad9c63gjzwaic872r9k21cvbpi-lua5.1-posix-34.0.4
checking for references to /build in /nix/store/m5c1w5ad9c63gjzwaic872r9k21cvbpi-lua5.1-posix-34.0.4...
/nix/store/449hlr2dvfx6w1h03sv7d3dh75cqyvvj-lua5.1-bit32-5.3.0
/nix/store/prm4cw20ws37lva552vdpyfg0vzy2csp-lua5.2-bit32-5.3.0
/nix/store/88cqwby314mk7ifwkr987f4c6s21ipap-lua5.1-bit32-5.3.0
/nix/store/m5c1w5ad9c63gjzwaic872r9k21cvbpi-lua5.1-posix-34.0.4
/nix/store/hvpfafbwx3kji8yrpsl8hn5p2fvh17vi-lua5.2-posix-34.0.4
/nix/store/4y2v13hs1918p1cpnahk9bdmsyl6zy14-lua5.1-posix-34.0.4

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

It looks like darwin mixes multiple lua versions.

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build lua52Packages.luaposix

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

      _b_or in lbitlib-58081f.o
      _b_xor in lbitlib-58081f.o
      _b_extract in lbitlib-58081f.o
      _b_lrot in lbitlib-58081f.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
builder for '/nix/store/fzy8qwxi5p892na23f76ddz5l2l7l31s-lua5.2-bit32-5.3.0.drv' failed with exit code 1
cannot build derivation '/nix/store/92m51g0pp0zwml1i9vwj0bywmj9xapjy-lua5.2-posix-34.0.4.drv': 1 dependencies couldn't be built
error: build of '/nix/store/92m51g0pp0zwml1i9vwj0bywmj9xapjy-lua5.2-posix-34.0.4.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/hvpfafbwx3kji8yrpsl8hn5p2fvh17vi-lua5.2-posix-34.0.4

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib/lua/5.2/posix/stdio.so
shrinking /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib/lua/5.2/posix/fcntl.so
shrinking /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib/lua/5.2/posix/pwd.so
shrinking /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib/lua/5.2/posix/dirent.so
shrinking /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib/lua/5.2/posix/grp.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4/lib 
patching script interpreter paths in /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4
checking for references to /tmp/nix-build-lua5.2-posix-34.0.4.drv-0 in /nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4...
/nix/store/1l4vhn1ac44mn4whgn3nfknd6ijxkc14-lua5.2-posix-34.0.4

};

buildPhase = ''
cc -shared -I${lua}/include -Ic-api lbitlib.c -o bit32.so
Copy link
Member

Choose a reason for hiding this comment

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

Can you try to add lua to buildInputs instead?

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build lua52Packages.bit32

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0
shrinking /nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0/lib/lua/5.2/bit32.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0/lib
patching script interpreter paths in /nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0
checking for references to /build in /nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0...
/nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

      _b_not in lbitlib-493e8d.o
      _b_or in lbitlib-493e8d.o
      _b_xor in lbitlib-493e8d.o
      _b_extract in lbitlib-493e8d.o
      _b_lrot in lbitlib-493e8d.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
builder for '/nix/store/x2hagznvi99dbcqf51hv1ma7z5i7ywq4-lua5.2-bit32-5.3.0.drv' failed with exit code 1
error: build of '/nix/store/x2hagznvi99dbcqf51hv1ma7z5i7ywq4-lua5.2-bit32-5.3.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0
shrinking /nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0/lib/lua/5.2/bit32.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0/lib
patching script interpreter paths in /nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0
checking for references to /build in /nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0...
/nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build lua51Packages.bit32

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0
shrinking /nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0/lib/lua/5.1/bit32.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0/lib 
patching script interpreter paths in /nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0
checking for references to /tmp/nix-build-lua5.1-bit32-5.3.0.drv-0 in /nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0...
/nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0
shrinking /nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0/lib/lua/5.1/bit32.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0/lib
patching script interpreter paths in /nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0
checking for references to /build in /nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0...
/nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

      _lua_len in lbitlib-758eaa.o
      _luaL_tolstring in lbitlib-758eaa.o
      ...
  "_lua_typename", referenced from:
      _lua_len in lbitlib-758eaa.o
      _luaL_tolstring in lbitlib-758eaa.o
ld: symbol(s) not found for architecture x86_64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
builder for '/nix/store/hi725lkrkymmbpss4k1sr7crv6cp0lkw-lua5.1-bit32-5.3.0.drv' failed with exit code 1
error: build of '/nix/store/hi725lkrkymmbpss4k1sr7crv6cp0lkw-lua5.1-bit32-5.3.0.drv' failed

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build lua52Packages.bit32

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

/nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

patching sources
configuring
no configure script, doing nothing
building
installing
post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/j7x8hlkwcm9grca40sx1nsws7am13hsk-lua5.2-bit32-5.3.0/lib
patching script interpreter paths in /nix/store/j7x8hlkwcm9grca40sx1nsws7am13hsk-lua5.2-bit32-5.3.0
/nix/store/j7x8hlkwcm9grca40sx1nsws7am13hsk-lua5.2-bit32-5.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build lua52Packages.luaposix

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

clang -O2 -fPIC -bundle -undefined dynamic_lookup -all_load   -D_POSIX_C_SOURCE=200809L -DPACKAGE='"luaposix"' -D_FORTIFY_SOURCE=2 -D_DARWIN_C_SOURCE -DNDEBUG -D_BSD_SOURCE -DVERSION='"34.0.4"' -D_XOPEN_SOURCE=700 -Iext/include -I-I/nix/store/7i6hk6ldz1fiil7j5k3mqb0lx9dwwwac-lua-5.2.3/include ext/posix/libgen.c -o macosx/posix/libgen.so
clang -O2 -fPIC -bundle -undefined dynamic_lookup -all_load   -DHAVE_CRYPT_H=0 -DNDEBUG -D_BSD_SOURCE -DVERSION='"34.0.4"' -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809L -DPACKAGE='"luaposix"' -DHAVE_GETHOSTID -DHAVE_DECL_FDATASYNC=0 -DHAVE_FDATASYNC -DHAVE_CRYPT -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=700 -Iext/include -I-I/nix/store/7i6hk6ldz1fiil7j5k3mqb0lx9dwwwac-lua-5.2.3/include ext/posix/unistd.c -o macosx/posix/unistd.so
clang -O2 -fPIC -bundle -undefined dynamic_lookup -all_load   -D_POSIX_C_SOURCE=200809L -DPACKAGE='"luaposix"' -D_FORTIFY_SOURCE=2 -D_DARWIN_C_SOURCE -DNDEBUG -D_BSD_SOURCE -DVERSION='"34.0.4"' -D_XOPEN_SOURCE=700 -Iext/include -I-I/nix/store/7i6hk6ldz1fiil7j5k3mqb0lx9dwwwac-lua-5.2.3/include ext/posix/sys/wait.c -o macosx/posix/sys/wait.so
true -c build-aux/config.ld .
installing
post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/zwai3fb7s4km8dwz4hyill16900yf8af-lua5.2-posix-34.0.4/lib
patching script interpreter paths in /nix/store/zwai3fb7s4km8dwz4hyill16900yf8af-lua5.2-posix-34.0.4
/nix/store/zwai3fb7s4km8dwz4hyill16900yf8af-lua5.2-posix-34.0.4

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib/lua/5.2/posix/ctype.so
shrinking /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib/lua/5.2/posix/unistd.so
shrinking /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib/lua/5.2/posix/stdio.so
shrinking /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib/lua/5.2/posix/libgen.so
shrinking /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib/lua/5.2/posix/poll.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4/lib
patching script interpreter paths in /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4
checking for references to /build in /nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4...
/nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib/lua/5.2/posix/time.so
shrinking /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib/lua/5.2/posix/signal.so
shrinking /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib/lua/5.2/posix/fnmatch.so
shrinking /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib/lua/5.2/posix/ctype.so
shrinking /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib/lua/5.2/posix/grp.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib 
patching script interpreter paths in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4
checking for references to /tmp/nix-build-lua5.2-posix-34.0.4.drv-0 in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4...
/nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build luajitPackages.bit32 lua52Packages.bit32 lua51Packages.bit32 lua51Packages.luaposix lua52Packages.luaposix luajitPackages.luaposix

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/4izqbbif1kxcx810rv7ykhpb956zib78-lua5.1-posix-34.0.4/lib
patching script interpreter paths in /nix/store/4izqbbif1kxcx810rv7ykhpb956zib78-lua5.1-posix-34.0.4
/nix/store/x2w429cr9hhph7sky4gc0nh1d8qv5fjm-lua5.1-bit32-5.3.0
/nix/store/j7x8hlkwcm9grca40sx1nsws7am13hsk-lua5.2-bit32-5.3.0
/nix/store/19cfz2n8bvcadln6yi62a0x4yvh1h0q0-lua5.1-bit32-5.3.0
/nix/store/4izqbbif1kxcx810rv7ykhpb956zib78-lua5.1-posix-34.0.4
/nix/store/zwai3fb7s4km8dwz4hyill16900yf8af-lua5.2-posix-34.0.4
/nix/store/9gl6hndj793dilafg4aphw5s3pliwmpc-lua5.1-posix-34.0.4

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4/lib 
patching script interpreter paths in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4
checking for references to /tmp/nix-build-lua5.2-posix-34.0.4.drv-0 in /nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4...
/nix/store/6akxhh5kajz0nhdl16cv7w2mrplpc40s-lua5.1-bit32-5.3.0
/nix/store/92lhv9638sd72syzmsl58zr8wbbnfpm8-lua5.2-bit32-5.3.0
/nix/store/fvji9jwhfyrfx06q8bzzgwkbqhjml2gw-lua5.1-bit32-5.3.0
/nix/store/nkk2wzc9r04ll9prxbi546v0ydyfshf3-lua5.1-posix-34.0.4
/nix/store/b8ivhsdzpfgamvg42q2mw6kjv8dk4f0m-lua5.2-posix-34.0.4
/nix/store/bm80drb2m6rr73jcqcvn3arg6rfkdhqb-lua5.1-posix-34.0.4

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/54n0a2r28q17j9qbybs6bllg6la04jhf-lua5.1-posix-34.0.4/lib
patching script interpreter paths in /nix/store/54n0a2r28q17j9qbybs6bllg6la04jhf-lua5.1-posix-34.0.4
checking for references to /build in /nix/store/54n0a2r28q17j9qbybs6bllg6la04jhf-lua5.1-posix-34.0.4...
/nix/store/vgkbahamvp5a8sgk47adck2qglm4m7ry-lua5.1-bit32-5.3.0
/nix/store/sbllmd75j6m6f5b102rgkvbqrclnz002-lua5.2-bit32-5.3.0
/nix/store/n9bsrlwxxqb288mhv81jffqa2vz2kd5v-lua5.1-bit32-5.3.0
/nix/store/54n0a2r28q17j9qbybs6bllg6la04jhf-lua5.1-posix-34.0.4
/nix/store/ram1y3jsw9nsgbifzpwpcikbf7mz8l72-lua5.2-posix-34.0.4
/nix/store/ijg0bsmwlvflar34fphk7mpy9x8l72dw-lua5.1-posix-34.0.4

LUA="${lua}/bin/lua" \
LUA_INCDIR="-I${lua}/include" \
INST_LIBDIR="$out/lib/lua/${lua.luaversion}" \
INST_LUADIR="$out/share/lua/${lua.luaversion}"
Copy link
Member

Choose a reason for hiding this comment

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

I was able to remove the last 4 lines here. Are they really necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got this options from rocks file https://github.com/luaposix/luaposix/blob/master/luaposix-git-1.rockspec#L33
It should work without it.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

nevermind it is still there.

};

buildInputs = [ perl ];
propagatedBuildInputs = [ std.normalize bit32 ];
Copy link
Member

Choose a reason for hiding this comment

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

Is bit32 needed for lua5.2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like luaposix library doesn't check if running under lua5.2, it loads bit32 lib every time. I would leave it.

Copy link
Member

Choose a reason for hiding this comment

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

ok.

Copy link
Contributor Author

@lblasc lblasc left a comment

Choose a reason for hiding this comment

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

removed those unneeded build options, it works.
Thanks for the review!

LUA="${lua}/bin/lua" \
LUA_INCDIR="-I${lua}/include" \
INST_LIBDIR="$out/lib/lua/${lua.luaversion}" \
INST_LUADIR="$out/share/lua/${lua.luaversion}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got this options from rocks file https://github.com/luaposix/luaposix/blob/master/luaposix-git-1.rockspec#L33
It should work without it.

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

I rebased everything in 13c8e01

@Mic92 Mic92 closed this in 13c8e01 Mar 9, 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

3 participants