Accepting request 226713 from home:aeneas_jaissle:branches:server:http
Update to 1.4.7 OBS-URL: https://build.opensuse.org/request/show/226713 OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=44
This commit is contained in:
parent
6b0ead7dbc
commit
2712b3de7e
@ -1,173 +0,0 @@
|
||||
--- passenger/build/common_library.rb
|
||||
+++ passenger/build/common_library.rb
|
||||
@@ -34,19 +34,19 @@
|
||||
# Defines tasks for compiling a static library containing Boost and OXT.
|
||||
def define_libboost_oxt_task(namespace, output_dir, extra_compiler_flags = nil)
|
||||
output_file = "#{output_dir}.a"
|
||||
- flags = "-Iext #{extra_compiler_flags} #{EXTRA_CXXFLAGS}"
|
||||
-
|
||||
+ flags = "-Iext #{extra_compiler_flags} #{EXTRA_CXXFLAGS} -fPIC #{ENV['RPM_OPT_FLAGS']} "
|
||||
+
|
||||
if false && boolean_option('RELEASE')
|
||||
# Disable RELEASE support. Passenger Standalone wants to link to the
|
||||
# common library but does not know whether it was compiled with RELEASE
|
||||
# or not. See http://code.google.com/p/phusion-passenger/issues/detail?id=808
|
||||
sources = Dir['ext/boost/libs/**/*.cpp'] + Dir['ext/oxt/*.cpp']
|
||||
sources.sort!
|
||||
-
|
||||
+
|
||||
aggregate_source = "#{output_dir}/aggregate.cpp"
|
||||
aggregate_object = "#{output_dir}/aggregate.o"
|
||||
object_files = [aggregate_object]
|
||||
-
|
||||
+
|
||||
file(aggregate_object => sources) do
|
||||
sh "mkdir -p #{output_dir}" if !File.directory?(output_dir)
|
||||
aggregate_content = %Q{
|
||||
@@ -71,13 +71,13 @@
|
||||
boost_output_dir = "#{output_dir}/boost"
|
||||
object_file = "#{boost_output_dir}/#{object_name}"
|
||||
boost_object_files << object_file
|
||||
-
|
||||
+
|
||||
file object_file => source_file do
|
||||
sh "mkdir -p #{boost_output_dir}" if !File.directory?(boost_output_dir)
|
||||
compile_cxx(source_file, "#{flags} -o #{object_file}")
|
||||
end
|
||||
end
|
||||
-
|
||||
+
|
||||
# Define compilation targets for .cpp files in ext/oxt.
|
||||
oxt_object_files = []
|
||||
oxt_dependency_files = Dir["ext/oxt/*.hpp"] + Dir["ext/oxt/detail/*.hpp"]
|
||||
@@ -92,19 +92,19 @@
|
||||
compile_cxx(source_file, "#{flags} -o #{object_file}")
|
||||
end
|
||||
end
|
||||
-
|
||||
+
|
||||
object_files = boost_object_files + oxt_object_files
|
||||
end
|
||||
-
|
||||
+
|
||||
file(output_file => object_files) do
|
||||
sh "mkdir -p #{output_dir}"
|
||||
create_static_library(output_file, object_files.join(' '))
|
||||
end
|
||||
-
|
||||
+
|
||||
task "#{namespace}:clean" do
|
||||
sh "rm -rf #{output_file} #{output_dir}"
|
||||
end
|
||||
-
|
||||
+
|
||||
return output_file
|
||||
end
|
||||
|
||||
@@ -116,9 +116,9 @@
|
||||
LIBEV_CFLAGS = "-Iext/libev"
|
||||
LIBEV_LIBS = LIBEV_OUTPUT_DIR + ".libs/libev.a"
|
||||
LIBEV_TARGET = LIBEV_LIBS
|
||||
-
|
||||
+
|
||||
task :libev => LIBEV_TARGET
|
||||
-
|
||||
+
|
||||
dependencies = [
|
||||
"ext/libev/configure",
|
||||
"ext/libev/config.h.in",
|
||||
@@ -128,7 +128,7 @@
|
||||
cc = PlatformInfo.cc
|
||||
cxx = PlatformInfo.cxx
|
||||
# Disable all warnings: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#COMPILER_WARNINGS
|
||||
- cflags = "#{EXTRA_CFLAGS} -w"
|
||||
+ cflags = "#{EXTRA_CFLAGS} #{ENV['RPM_OPT_FLAGS']} -w"
|
||||
sh "mkdir -p #{LIBEV_OUTPUT_DIR}" if !File.directory?(LIBEV_OUTPUT_DIR)
|
||||
sh "cd #{LIBEV_OUTPUT_DIR} && sh #{LIBEV_SOURCE_DIR}configure " +
|
||||
"--disable-shared --enable-static " +
|
||||
@@ -136,7 +136,7 @@
|
||||
# do, so we force our compiler choice.
|
||||
"CC='#{cc}' CXX='#{cxx}' CFLAGS='#{cflags}' orig_CFLAGS=1"
|
||||
end
|
||||
-
|
||||
+
|
||||
libev_sources = Dir["ext/libev/{*.c,*.h}"]
|
||||
file LIBEV_OUTPUT_DIR + ".libs/libev.a" => [LIBEV_OUTPUT_DIR + "Makefile"] + libev_sources do
|
||||
sh "rm -f #{LIBEV_OUTPUT_DIR}/libev.la"
|
||||
@@ -148,7 +148,7 @@
|
||||
sh "cd #{LIBEV_OUTPUT_DIR} && make maintainer-clean"
|
||||
end
|
||||
end
|
||||
-
|
||||
+
|
||||
task :clean => 'libev:clean'
|
||||
else
|
||||
LIBEV_CFLAGS = string_option('LIBEV_CFLAGS', '-I/usr/include/libev')
|
||||
@@ -168,9 +168,9 @@
|
||||
LIBEIO_CFLAGS = "-Iext/libeio"
|
||||
LIBEIO_LIBS = LIBEIO_OUTPUT_DIR + ".libs/libeio.a"
|
||||
LIBEIO_TARGET = LIBEIO_LIBS
|
||||
-
|
||||
+
|
||||
task :libeio => LIBEIO_TARGET
|
||||
-
|
||||
+
|
||||
dependencies = [
|
||||
"ext/libeio/configure",
|
||||
"ext/libeio/config.h.in",
|
||||
@@ -181,7 +181,7 @@
|
||||
cxx = PlatformInfo.cxx
|
||||
# Disable all warnings. The author has a clear standpoint on that:
|
||||
# http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#COMPILER_WARNINGS
|
||||
- cflags = "#{EXTRA_CFLAGS} -w"
|
||||
+ cflags = "#{EXTRA_CFLAGS} #{ENV['RPM_OPT_FLAGS']} -w"
|
||||
sh "mkdir -p #{LIBEIO_OUTPUT_DIR}" if !File.directory?(LIBEIO_OUTPUT_DIR)
|
||||
sh "cd #{LIBEIO_OUTPUT_DIR} && sh #{LIBEIO_SOURCE_DIR}configure " +
|
||||
"--disable-shared --enable-static " +
|
||||
@@ -189,13 +189,14 @@
|
||||
# do, so we force our compiler choice.
|
||||
"CC='#{cc}' CXX='#{cxx}' CFLAGS='#{cflags}'"
|
||||
end
|
||||
-
|
||||
+
|
||||
libeio_sources = Dir["ext/libeio/{*.c,*.h}"]
|
||||
file LIBEIO_OUTPUT_DIR + ".libs/libeio.a" => [LIBEIO_OUTPUT_DIR + "Makefile"] + libeio_sources do
|
||||
sh "rm -f #{LIBEIO_OUTPUT_DIR}/libeio.la"
|
||||
+ sh "cd #{LIBEIO_OUTPUT_DIR} && make eio.o"
|
||||
sh "cd #{LIBEIO_OUTPUT_DIR} && make libeio.la"
|
||||
end
|
||||
-
|
||||
+
|
||||
task :clean do
|
||||
if File.exist?(LIBEIO_OUTPUT_DIR + "Makefile")
|
||||
sh "cd #{LIBEIO_OUTPUT_DIR} && make maintainer-clean"
|
||||
--- passenger/ext/boost/libs/thread/src/pthread/thread.cpp
|
||||
+++ passenger/ext/boost/libs/thread/src/pthread/thread.cpp
|
||||
@@ -390,6 +390,7 @@
|
||||
{
|
||||
return false;
|
||||
}
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool thread::joinable() const BOOST_NOEXCEPT
|
||||
--- passenger/lib/phusion_passenger/common_library.rb
|
||||
+++ passenger/lib/phusion_passenger/common_library.rb
|
||||
@@ -101,7 +101,7 @@
|
||||
end
|
||||
|
||||
def define_tasks(extra_compiler_flags = nil)
|
||||
- flags = "-Iext -Iext/common #{LIBEV_CFLAGS} #{extra_compiler_flags} "
|
||||
+ flags = "-Iext -Iext/common #{LIBEV_CFLAGS} #{extra_compiler_flags} -fPIC #{ENV['RPM_OPT_FLAGS']} "
|
||||
flags << EXTRA_CXXFLAGS
|
||||
flags.strip!
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
# packaging the runtime ('passenger package-runtime') so we
|
||||
# never generate static libraries.
|
||||
library = "#{@output_dir}/#{category}.a"
|
||||
-
|
||||
+
|
||||
file(library => object_filenames) do
|
||||
create_static_library(library, object_filenames.join(' '))
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c989a58e5408c9593da0bebcd0e4ffc3d892d1316ba5042ddb0be5b0b4102b9
|
||||
size 768217
|
3
nginx-1.4.7.tar.gz
Normal file
3
nginx-1.4.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:23b8ff4a76817090678f91b0efbfcef59a93492f6612dc8370c44c1f1ce1b626
|
||||
size 769153
|
@ -1,3 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 19 10:04:14 UTC 2014 - aj@ajaissle.de
|
||||
|
||||
- Update to nginx 1.4.7
|
||||
- Changelog nginx 1.4.7
|
||||
*) Security: a heap memory buffer overflow might occur in a worker
|
||||
process while handling a specially crafted request by
|
||||
ngx_http_spdy_module, potentially resulting in arbitrary code
|
||||
execution (CVE-2014-0133).
|
||||
Thanks to Lucas Molas, researcher at Programa STIC, Fundación Dr.
|
||||
Manuel Sadosky, Buenos Aires, Argentina.
|
||||
*) Bugfix: in the "fastcgi_next_upstream" directive.
|
||||
Thanks to Lucas Molas.
|
||||
|
||||
- Changelog nginx 1.4.6
|
||||
*) Bugfix: the "client_max_body_size" directive might not work when
|
||||
reading a request body using chunked transfer encoding; the bug had
|
||||
appeared in 1.3.9.
|
||||
Thanks to Lucas Molas.
|
||||
*) Bugfix: a segmentation fault might occur in a worker process when
|
||||
proxying WebSocket connections.
|
||||
|
||||
- Changelog nginx 1.4.5
|
||||
*) Bugfix: the $ssl_session_id variable contained full session
|
||||
serialized instead of just a session id.
|
||||
Thanks to Ivan Ristić.
|
||||
*) Bugfix: client connections might be immediately closed if deferred
|
||||
accept was used; the bug had appeared in 1.3.15.
|
||||
*) Bugfix: alerts "zero size buf in output" might appear in logs while
|
||||
proxying; the bug had appeared in 1.3.9.
|
||||
*) Bugfix: a segmentation fault might occur in a worker process if the
|
||||
ngx_http_spdy_module was used.
|
||||
*) Bugfix: proxied WebSocket connections might hang right after
|
||||
handshake if the select, poll, or /dev/poll methods were used.
|
||||
*) Bugfix: a timeout might occur while reading client request body in an
|
||||
SSL connection using chunked transfer encoding.
|
||||
*) Bugfix: memory leak in nginx/Windows.
|
||||
|
||||
- Updated Url (nginx.org instead of www.nginx.net)
|
||||
- Added nginx.rpmlintrc as Source100
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 11:03:29 UTC 2014 - aj@ajaissle.de
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: nginx
|
||||
Version: 1.4.4
|
||||
Version: 1.4.7
|
||||
Release: 0
|
||||
#
|
||||
%define pkg_name nginx
|
||||
@ -48,7 +48,7 @@ Release: 0
|
||||
%define with_passenger 1
|
||||
%endif
|
||||
#
|
||||
#
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: GeoIP-devel
|
||||
BuildRequires: gcc-c++
|
||||
@ -84,11 +84,12 @@ PreReq: pwdutils
|
||||
Conflicts: nginx-0.5 nginx-0.6 nginx-0.7 nginx-0.8 nginx-0.9 nginx-1.0 nginx-1.2 nginx-1.3
|
||||
%requires_eq perl
|
||||
#
|
||||
Url: http://nginx.net/
|
||||
Source: http://www.nginx.org/download/nginx-%{version}.tar.gz
|
||||
Url: http://nginx.org/
|
||||
Source: http://nginx.org/download/nginx-%{version}.tar.gz
|
||||
Source1: nginx.init
|
||||
Source2: nginx.logrotate
|
||||
Source3: nginx.service
|
||||
Source100: nginx.rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM nginx-0.4.0-no_Werror.patch
|
||||
Patch: nginx-0.4.0-no_Werror.patch
|
||||
# PATCH-FIX-UPSTREAM nginx-0.6.38-html.patch
|
||||
|
Loading…
Reference in New Issue
Block a user