Opened 22 months ago

Last modified 22 months ago

#2441 accepted defect

pkg-oss - build error

Reported by: Alexander Kubyshkin Owned by:
Priority: minor Milestone:
Component: nginx-package Version:
Keywords: pkg-oss, docker Cc:
uname -a: docker, rockylinux:8
nginx -V: any

Description

Hi guys,

Trying to build a module for nginx, but build error arises:

===> Building nginx-module-rtmp package
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dK9eXn
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf nginx-plus-module-rtmp-1.17.6
+ /usr/bin/mkdir -p nginx-plus-module-rtmp-1.17.6
+ cd nginx-plus-module-rtmp-1.17.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ tar --strip-components=1 -zxf /root/rpmbuild/SOURCES/nginx-1.17.6.tar.gz
tar (child): /root/rpmbuild/SOURCES/nginx-1.17.6.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
error: Bad exit status from /var/tmp/rpm-tmp.dK9eXn (%prep)
    Bad exit status from /var/tmp/rpm-tmp.dK9eXn (%prep)

How to reproduce:

docker run --rm rockylinux:8 bash -c 'yum install -y wget && wget https://hg.nginx.org/pkg-oss/raw-file/default/build_module.sh && bash build_module.sh -y -r 20 https://github.com/arut/nginx-rtmp-module.git'

Same error on different platforms - aarch64 and amd64.
Full output is attached(aarch64).

Attachments (1)

docker-run-output.txt (61.4 KB ) - added by Alexander Kubyshkin 22 months ago.
Docker run full output

Download all attachments as: .zip

Change History (2)

by Alexander Kubyshkin, 22 months ago

Attachment: docker-run-output.txt added

Docker run full output

comment:1 by thresh, 22 months ago

Component: documentationnginx-package
Priority: majorminor
Status: newaccepted

build_module.sh from tip does not support older builder system as used in R20. For R20, please use https://hg.nginx.org/pkg-oss/file/target-plus-r20/build_module.sh ( build_module.sh from R20 branch).

Some discussion around it can be found on https://mailman.nginx.org/pipermail/nginx-ru/2023-January/4KNTIHSFQHXPOHPSMPU46HMDBKMWBLCZ.html (and later mails on this thread).

This can be fixed, but it's definitely not a high priority at this moment.

Note: See TracTickets for help on using tickets.