NetBSD Problem Report #45506

From www@NetBSD.org  Fri Oct 21 13:04:59 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id C6DA963D62F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Oct 2011 13:04:59 +0000 (UTC)
Message-Id: <20111021130457.7F9BB63D5AD@www.NetBSD.org>
Date: Fri, 21 Oct 2011 13:04:57 +0000 (UTC)
From: lifanov@mail.lifanov.com
Reply-To: lifanov@mail.lifanov.com
To: gnats-bugs@NetBSD.org
Subject: nginx patching is broken
X-Send-Pr-Version: www-1.0

>Number:         45506
>Category:       pkg
>Synopsis:       nginx patching is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 21 13:05:01 +0000 2011
>Last-Modified:  Sun Dec 04 14:45:03 +0000 2011
>Originator:     Nikolai Lifanov
>Release:        CentOS 5.7
>Organization:
>Environment:
>Description:
When trying to compile nginx 1.0.4 from either 2011Q3 or current pkgsrc, patches fail to apply.

I have updated the patch-aa file to work with new nginx.conf it's patching. The solution contains a working port.

Here is what I was seeing.

===> Patching for nginx-1.0.4
=> Applying pkgsrc patches for nginx-1.0.4
1 out of 7 hunks FAILED -- saving rejects to file conf/nginx.conf.rej
Patch /usr/pkgsrc/www/nginx/patches/patch-aa failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR:  /usr/pkgsrc/www/nginx/patches/patch-aa
ERROR: ==========================================================================
ERROR:
ERROR: Some of the selected build options and/or local patches may be incompatible.
ERROR: Please try building with fewer options or patches.
ERROR:
ERROR: ==========================================================================
*** Error code 1

>How-To-Repeat:
Try to compile nginx with any options or none at all.

>Fix:
begin 644 nginx.tar.gz
M'XL(`,-LH4X``^T]:W?:2++Y:OV*7@<?Q]<&])8AQV=-;.(P8QL6[,GLO;E'
M*Z0&M!82*PD[GJS_^U9U2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IY8S?Z\G\R=^DG4<;AXE0A:9&_BG
M`Z%UV_F`,UKF_4S&&R8DG!7%DEZ1I\ND?':&>9Z2:PL%MA):FGUYDJYJ(BE.
MJ11YEAVS!4XG>/#Q'K2H/*]%+,<I\BPG8/T)762#M\\R<?-&F97+M^ZXMK"%
0+6QA"_\G^`\Y*]49`'@`````
`
end

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 21 Oct 2011 14:05:40 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "Sergey Svishchev" <shattered@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45506 CVS commit: pkgsrc/www/nginx
Date: Sun, 4 Dec 2011 14:41:01 +0000

 Module Name:	pkgsrc
 Committed By:	shattered
 Date:		Sun Dec  4 14:41:01 UTC 2011

 Modified Files:
 	pkgsrc/www/nginx: Makefile distinfo
 	pkgsrc/www/nginx/patches: patch-aa

 Log Message:
 Update to 1.0.10 and delint.  Partially resolves PR/45317, PR/45612 and
 PR/45506.  No new options added.  Notable changes:

     *) Bugfix: a segmentation fault might occur in a worker process if
        resolver got a big DNS response.

     *) Feature: accept filters are now supported on NetBSD.

     *) Bugfix: a segmentation fault occurred on start or while
        reconfiguration if the "ssl" directive was used at http level and
        there was no "ssl_certificate" defined.

     *) Bugfix: nginx hogged CPU if all servers in an upstream were marked as
        "down".

     *) Bugfix: a segmentation fault might occur during reconfiguration if
        ssl_session_cache was defined but not used in previous configuration.

     *) Bugfix: a segmentation fault might occur in a worker process if many
        backup servers were used in an upstream.

     *) Feature: now nginx supports ECDHE key exchange ciphers.

     *) Change: now default SSL ciphers are "HIGH:!aNULL:!MD5".

     *) Bugfix: a segmentation fault might occur in a worker process, if a
        caching was used.

     *) Bugfix: worker processes may got caught in an endless loop during
        reconfiguration, if a caching was used; the bug had appeared in 0.8.48.


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/www/nginx/Makefile
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/nginx/distinfo
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/nginx/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.