Opened 2 years ago

Closed 2 years ago

#2390 closed defect (invalid)

Debian bug nginx build_module Cannot specify nginx version

Reported by: nicolas.roggli Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.18.x
Keywords: debian module Cc:
uname -a: Linux lslsphdweb1 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.18.0
built with OpenSSL 1.1.1n 15 Mar 2022
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -ffile-prefix-map=/build/nginx-QeqwpL/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --with-http_random_index_module --with-http_secure_link_module --with-http_sub_module --with-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-stream=dynamic --with-stream_geoip_module=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-headers-more-filter --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-auth-pam --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-cache-purge --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-dav-ext --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-ndk --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-echo --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-fancyindex --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-geoip2 --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/nchan --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-lua --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/rtmp --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-uploadprogress --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-upstream-fair --add-dynamic-module=/build/nginx-QeqwpL/nginx-1.18.0/debian/modules/http-subs-filter

Description (last modified by nicolas.roggli)

It seems there is a same or similar problem as ticket #2067 but on Debian

./build_module.sh -v 1.18.0 https://github.com/nginx-shib/nginx-http-shibboleth.git

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 nginx-module-shibboleth : Depends: nginx-r1.18.0 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
build_module.sh: INPUT: Enter module nickname [shibboleth]:

and then

sudo dpkg -i build-module-artifacts/nginx-module-shibboleth_1.18.0+1.0-1~bullseye_amd64.deb
(Reading database ... 96595 files and directories currently installed.)
Preparing to unpack .../nginx-module-shibboleth_1.18.0+1.0-1~bullseye_amd64.deb ...
Unpacking nginx-module-shibboleth (1.18.0+1.0-1~bullseye) over (1.18.0+1.0-1~bullseye) ...
dpkg: dependency problems prevent configuration of nginx-module-shibboleth:
 nginx-module-shibboleth depends on nginx-r1.18.0; however:
  Package nginx-r1.18.0 is not installed.

dpkg: error processing package nginx-module-shibboleth (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-module-shibboleth

Change History (6)

comment:1 by nicolas.roggli, 2 years ago

Description: modified (diff)

comment:2 by nicolas.roggli, 2 years ago

Description: modified (diff)

comment:3 by thresh, 2 years ago

Hi!

build_module.sh produces debian packages that are only compatible with the binaries shipped from https://nginx.org/en/linux_packages.html. I suggest you install an up-to-date nginx debian package from the provided link and try installing the module again.

Version 0, edited 2 years ago by thresh (next)

comment:4 by nicolas.roggli, 2 years ago

Thanks!
I'll try that

comment:5 by nicolas.roggli, 2 years ago

Indeed, that was the problem.
Thank you

comment:6 by thresh, 2 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.