Собрать RPM. nginx rpmbuild, error with client_temp

Oleg Ilyin on.ilyin at gmail.com
Sat Jun 15 06:15:51 UTC 2013


Подскажите пожалуйста, в чём я ошибаюсь.

Взял srpm
http://nginx.org/packages/centos/6/SRPMS/nginx-1.4.1-1.el6.ngx.src.rpm

установил.

 добавил в SPEC пока только +1 модуль, пытаюсь собрать

rpmbuild -bb   spec.file

 ругается


xecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.s9NxWH + umask 022 + cd
/root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf nginx-1.4.1 +
/bin/tar -xf - + /usr/bin/gzip -dc
/root/rpmbuild/SOURCES/nginx-1.4.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd
nginx-1.4.1 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build):
/bin/sh -e /var/tmp/rpm-tmp.4YzFE9 + umask 022 + cd /root/rpmbuild/BUILD +
cd nginx-1.4.1 + ./configure --prefix=/etc/nginx
--sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock
--add-module=/root/rpmbuild/MODULES/nginx-rtmp-module checking for OS +
Linux 2.6.32-358.el6.x86_64 x86_64 checking for C compiler ... found +
using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
.... тут проверяет зависимости установленные , кроп .. .... Configuration
summary + using system PCRE library + using system OpenSSL library + md5:
using OpenSSL library + sha1: using OpenSSL library + using system zlib
library

nginx path prefix: <</etc/nginx>> nginx binary file: <</usr/sbin/nginx>> nginx
configuration prefix: <</etc/nginx>> nginx configuration file:
<</etc/nginx/nginx.conf>> nginx pid file: <</var/run/nginx.pid>> nginx error
log file: <</var/log/nginx/error.log>> nginx http access log file:
<</var/log/nginx/access.log>> nginx http client request body temporary files:
<<client_body_temp>> nginx http proxy temporary files: <<proxy_temp>> nginx
http fastcgi temporary files: <<fastcgi_temp>> nginx http uwsgi temporary
files: <<uwsgi_temp>> nginx http scgi temporary files: <<scgi_temp>>

++ pcre-config --cflags +
--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_sub_module --with-http_dav_module
--with-http_flv_module --with-http_mp4_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_random_index_module
--with-http_secure_link_module --with-http_stub_status_module --with-mail
--with-mail_ssl_module --with-file-aio --with-ipv6 --with-debug
'--with-cc-opt=-O2 -g ' /var/tmp/rpm-tmp.4YzFE9: line 38:
--http-client-body-temp-path=/var/cache/nginx/client_temp: No such file or
directory error: Bad exit status from /var/tmp/rpm-tmp.4YzFE9 (%build)

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4YzFE9 (%build)




в системе такого каталога не было, добавил такой и файл и каталог, дал
права 777, всё равно такая же ошибка, если закоментить этот пункт
-http-client-body-temp-path=/var/cache/nginx/client_temp то ругается на
следующем : --http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp
\
и так далее.


пробовал переопределить _localstatedir через макросы в .rpmmacros , у
каталога который используется для rpmbuild. не помогло.

Как собрать rpm у nginx? как побороть описанную ошибку?


/var/tmp/rpm-tmp.g9Ofz0: line 38:
--http-client-body-temp-path=/var/cache/nginx/client_temp: No such file or
directory error: Bad exit status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20130615/3c1fa0c0/attachment.html>


Подробная информация о списке рассылки nginx-ru