Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
nginx
nginx-1.4.2-passenger-4.0.18.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx-1.4.2-passenger-4.0.18.patch of Package nginx
Index: passenger/build/common_library.rb =================================================================== --- passenger.orig/build/common_library.rb +++ passenger/build/common_library.rb @@ -34,7 +34,7 @@ require 'phusion_passenger/common_librar # 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} #{PlatformInfo.portability_cflags} #{EXTRA_CXXFLAGS}" + flags = "-Iext #{extra_compiler_flags} #{PlatformInfo.portability_cflags} #{EXTRA_CXXFLAGS} -fPIC #{ENV['RPM_OPT_FLAGS']} " if false && boolean_option('RELEASE') # Disable RELEASE support. Passenger Standalone wants to link to the @@ -126,7 +126,7 @@ if USE_VENDORED_LIBEV ] file LIBEV_OUTPUT_DIR + "Makefile" => dependencies do # Disable all warnings: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#COMPILER_WARNINGS - cflags = "#{EXTRA_CXXFLAGS} -w" + cflags = "#{EXTRA_CXXFLAGS} #{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 CFLAGS='#{cflags}' orig_CFLAGS=1" @@ -174,7 +174,7 @@ if USE_VENDORED_LIBEIO file LIBEIO_OUTPUT_DIR + "Makefile" => dependencies do # 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_CXXFLAGS} -w" + cflags = "#{EXTRA_CXXFLAGS} #{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 CFLAGS='#{cflags}'" @@ -183,6 +183,7 @@ if USE_VENDORED_LIBEIO 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 Index: passenger/ext/boost/libs/thread/src/pthread/thread.cpp =================================================================== --- passenger.orig/ext/boost/libs/thread/src/pthread/thread.cpp +++ passenger/ext/boost/libs/thread/src/pthread/thread.cpp @@ -376,6 +376,7 @@ namespace boost boost::throw_exception(thread_resource_error(system::errc::invalid_argument, "boost thread: thread not joinable")); #endif } + return false; } bool thread::joinable() const BOOST_NOEXCEPT Index: passenger/ext/nginx/StaticContentHandler.c =================================================================== --- passenger.orig/ext/nginx/StaticContentHandler.c +++ passenger/ext/nginx/StaticContentHandler.c @@ -67,13 +67,6 @@ passenger_static_content_handler(ngx_htt return NGX_DECLINED; } - #if (PASSENGER_NGINX_MINOR_VERSION == 8 && PASSENGER_NGINX_MICRO_VERSION < 38) || \ - (PASSENGER_NGINX_MINOR_VERSION == 7 && PASSENGER_NGINX_MICRO_VERSION < 66) - if (r->zero_in_uri) { - return NGX_DECLINED; - } - #endif - log = r->connection->log; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, Index: passenger/lib/phusion_passenger/common_library.rb =================================================================== --- passenger.orig/lib/phusion_passenger/common_library.rb +++ passenger/lib/phusion_passenger/common_library.rb @@ -101,7 +101,7 @@ class CommonLibraryBuilder 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 << "#{PlatformInfo.portability_cflags} #{EXTRA_CXXFLAGS}" flags.strip!
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor