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

openresty: 1.9.3.1 -> 1.13.6.1 #36289

Merged
merged 3 commits into from Mar 4, 2018
Merged

openresty: 1.9.3.1 -> 1.13.6.1 #36289

merged 3 commits into from Mar 4, 2018

Conversation

lblasc
Copy link
Contributor

@lblasc lblasc commented Mar 4, 2018

Motivation for this change

Bump, cc @thoughtpolice

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.

@Mic92
Copy link
Member

Mic92 commented Mar 4, 2018

@GrahamcOfBorg build openresty

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

error: while evaluating 'callPackageWith' at /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/lib/customisation.nix:113:35, called from /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/top-level/all-packages.nix:12334:15:
while evaluating 'makeOverridable' at /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/lib/customisation.nix:72:24, called from /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/lib/customisation.nix:117:8:
while evaluating anonymous function at /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/servers/http/openresty/default.nix:1:1, called from /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/lib/customisation.nix:74:12:
assertion failed at /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/servers/http/openresty/default.nix:4:1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/luajit/lib/libluajit-5.1.so.2.1.0
shrinking /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/nginx/sbin/nginx
shrinking /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/lualib/cjson.so
shrinking /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/lualib/redis/parser.so
shrinking /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/lualib/rds/parser.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1/bin 
patching script interpreter paths in /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1
checking for references to /tmp/nix-build-openresty-1.13.6.1.drv-0 in /nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1...
/nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/lualib/rds/parser.so
shrinking /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/lualib/redis/parser.so
shrinking /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/lualib/cjson.so
shrinking /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/luajit/lib/libluajit-5.1.so.2.1.0
shrinking /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/luajit/bin/luajit-2.1.0-beta3
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1/bin
patching script interpreter paths in /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1
checking for references to /build in /nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1...
/nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1

{ stdenv, fetchurl, fetchgit, openssl, zlib, pcre, libxml2, libxslt, gd, geoip
, perl }:
{ stdenv, fetchurl, fetchgit, openssl, zlib, pcre, postgresql, libxml2, libxslt,
gd, geoip, perl }:

assert stdenv.isLinux;
Copy link
Member

@Mic92 Mic92 Mar 4, 2018

Choose a reason for hiding this comment

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

This line can be removed. meta.platforms is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review. Removed.

@lblasc
Copy link
Contributor Author

lblasc commented Mar 4, 2018

Package should also build on darwin, I've removed linux restriction.

@fpletz
Copy link
Member

fpletz commented Mar 4, 2018

@GrahamcOfBorg build openresty

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/nvj4sbq4acm7w3mshsgvwkrqj5wlggjd-openresty-1.13.6.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

/nix/store/8w5mj445nac1r2bpvlrnj878vkz60r07-openresty-1.13.6.1

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

error: while evaluating the attribute 'preConfigure' of the derivation 'openresty-1.13.6.1' at /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating the attribute 'cc.libc.bin' at /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/build-support/cc-wrapper/default.nix:95:12:
attribute 'bin' missing, at /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/servers/http/openresty/default.nix:20:26

};

buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip perl ];
nativeBuildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip postgresql ];
buildInputs = [ perl ];
Copy link
Member

@Mic92 Mic92 Mar 4, 2018

Choose a reason for hiding this comment

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

Is it possible that you mixed up nativeBuildInputs and buildInputs? Libraries should be be in buildInputs and native tools (the architecture of the host compiling the package) should be in nativeBuildInputs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, nativeBuildInputs should be in buildInputs, they are needed also in runtime. Thanks for fixup.

@Mic92
Copy link
Member

Mic92 commented Mar 4, 2018

@GrahamcOfBorg build openresty

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/lualib/redis/parser.so
shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/lualib/rds/parser.so
shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/lualib/cjson.so
shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/luajit/bin/luajit-2.1.0-beta3
shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/luajit/lib/libluajit-5.1.so.2.1.0
shrinking /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/nginx/sbin/nginx
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1/bin 
patching script interpreter paths in /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1
checking for references to /tmp/nix-build-openresty-1.13.6.1.drv-0 in /nix/store/vfp6g4fh0ddjchj7xjbfdycza0aaq737-openresty-1.13.6.1...

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

test -d '/nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/nginx/logs' \
	|| mkdir -p '/nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/nginx/logs'
make[2]: Leaving directory '/private/tmp/nix-build-openresty-1.13.6.1.drv-0/openresty-1.13.6.1/build/nginx-1.13.6'
make[1]: Leaving directory '/private/tmp/nix-build-openresty-1.13.6.1.drv-0/openresty-1.13.6.1/build/nginx-1.13.6'
mkdir -p /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/site/lualib /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/site/pod /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/site/manifest
ln -sf /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/nginx/sbin/nginx /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/bin/openresty
post-installation fixup
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1/bin
patching script interpreter paths in /nix/store/3fj9my9ycw5580w9ci4nfh124p6qzv9v-openresty-1.13.6.1

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/lualib/rds/parser.so
shrinking /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/lualib/redis/parser.so
shrinking /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/lualib/cjson.so
shrinking /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/luajit/lib/libluajit-5.1.so.2.1.0
shrinking /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/luajit/bin/luajit-2.1.0-beta3
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1/bin
patching script interpreter paths in /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1
checking for references to /build in /nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1...
/nix/store/hywr4ffaxnxx7hrl1r5vrsk4f9fjcqmz-openresty-1.13.6.1

@Mic92
Copy link
Member

Mic92 commented Mar 4, 2018

Here we go!

@lblasc lblasc deleted the openresty branch March 5, 2018 08:43
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