Bug 189440 - www/nginx: lua-nginx-module-v0.9.4-0 size mismatch
Summary: www/nginx: lua-nginx-module-v0.9.4-0 size mismatch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 21:00 UTC by Marco Springer
Modified: 2015-04-27 22:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Springer 2014-05-07 21:00:00 UTC
I wanted to enable the 3d party lua module for nginx, build nginx then fails to build because of the size mismatch.

The output when running "postmaster www/nginx":

Attempting to fetch https://github.com/chaoslawful/lua-nginx-module/tarball/v0.9.4/chaoslawful-lua-nginx-module-v0.9.4-0-g6169a19.tar.gz
fetch: https://github.com/chaoslawful/lua-nginx-module/tarball/v0.9.4/chaoslawful-lua-nginx-module-v0.9.4-0-g6169a19.tar.gz: size mismatch: expected 470252, actual 470182
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/chaoslawful-lua-nginx-module-v0.9.4-0-g6169a19.tar.gz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/chaoslawful-lua-nginx-module-v0.9.4-0-g6169a19.tar.gz: File unavailable (e.g., file not found, no access)

When accessing the github URL directly, it will download it as "openresty-lua-nginx-module-v0.9.4-0-g6169a19.tar.gz", not sure if that matters?

I've tried to change the expected size in the "distinfo" file, but then the build process complains about a checksum mismatch.
I changed the checksum in the "distinfo" file to match that of the downloaded file.
This is turn gave me:
"sed: /usr/ports/www/nginx/work/chaoslawful-lua-nginx-module-6169a19/src/ngx_http_lua_socket_tcp.c: No such file or directory"

The extracted tar.gz was extracted to "openresty-lua-nginx-module-v0.9.4-0-g6169a19" instead of "chaoslawful-lua-nginx-module-6169a19".

I renamed the extracted folder, issued another make, resulting in another fail.

Patching for nginx-1.6.0,2
===>  Applying FreeBSD patches for nginx-1.6.0,2
2 out of 3 hunks failed--saving rejects to conf/nginx.conf.rej
=> Patch patch-conf-nginx.conf failed to apply cleanly.
*** Error code 1

And that's where I gave up.

How-To-Repeat: make config -> enable "3rd party lua module" -> make -> fail
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-13 05:42:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2015-04-27 22:14:23 UTC
Third-party lua module has been upgraded to 0.9.15 version.