Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2014 19:50:51 GMT
From:      Marco Springer <marco@glitchbox.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/189440: lua-nginx-module-v0.9.4-0 size mismatch
Message-ID:  <201405071950.s47JopBg014113@cgiserv.freebsd.org>
Resent-Message-ID: <201405072000.s47K012X066014@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189440
>Category:       ports
>Synopsis:       lua-nginx-module-v0.9.4-0 size mismatch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 07 20:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Marco Springer
>Release:        FreeBSD 10.0-STABLE
>Organization:
>Environment:
FreeBSD donkey.fritz.box 10.0-STABLE FreeBSD 10.0-STABLE #4 r262950: Fri Mar 14 09:31:07 CET 2014     root@donkey:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
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
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405071950.s47JopBg014113>