From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 15 21:10:06 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FDF21065673 for ; Tue, 15 Jul 2008 21:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DE178FC16 for ; Tue, 15 Jul 2008 21:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6FLA507029747 for ; Tue, 15 Jul 2008 21:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6FLA5Rk029746; Tue, 15 Jul 2008 21:10:05 GMT (envelope-from gnats) Date: Tue, 15 Jul 2008 21:10:05 GMT Message-Id: <200807152110.m6FLA5Rk029746@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Douglas Thrift" Cc: Subject: Re: ports/125628: [patch] www/mod_wsgi: add support for display-name X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Douglas Thrift List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 21:10:06 -0000 The following reply was made to PR ports/125628; it has been noted by GNATS. From: "Douglas Thrift" To: Cc: Subject: Re: ports/125628: [patch] www/mod_wsgi: add support for display-name Date: Tue, 15 Jul 2008 13:35:49 -0700 This is a multi-part message in MIME format. ------=_NextPart_000_034D_01C8E67F.B1E63BB0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit Hello, I've cleaned up the fix and put it into a patch that can be used to patch the port. _______________________________________________________________________ Douglas William Thrift ----- Original Message ----- From: "Edwin Groothuis" To: Cc: Sent: Tuesday, July 15, 2008 2:30 AM Subject: Re: ports/125628: [patch] www/mod_wsgi: add support for display-name > Maintainer of www/mod_wsgi, > > Please note that PR ports/125628 has just been submitted. > > If it contains a patch for an upgrade, an enhancement or a bug fix > you agree on, reply to this email stating that you approve the patch > and a committer will take care of it. > > The full text of the PR can be found at: > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/125628 > > -- > Edwin Groothuis via the GNATS Auto Assign Tool > edwin@FreeBSD.org > > ------=_NextPart_000_034D_01C8E67F.B1E63BB0 Content-Type: application/octet-stream; name="mod_wsgi.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mod_wsgi.patch" diff -Nrux .svn -x work /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c = mod_wsgi/files/patch-mod_wsgi.c=0A= --- /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c Wed Dec 31 16:00:00 = 1969=0A= +++ mod_wsgi/files/patch-mod_wsgi.c Tue Jul 15 13:12:53 2008=0A= @@ -0,0 +1,33 @@=0A= +--- mod_wsgi.c.orig Tue Jul 15 13:01:00 2008=0A= ++++ mod_wsgi.c Tue Jul 15 13:07:19 2008=0A= +@@ -7749,10 +7749,12 @@=0A= + {=0A= + const char *display_name =3D NULL;=0A= + =0A= ++#ifndef __FreeBSD__=0A= + int slen =3D 0;=0A= + int dlen =3D 0;=0A= + =0A= + char *argv0 =3D NULL;=0A= ++#endif=0A= + =0A= + display_name =3D daemon->group->display_name;=0A= + =0A= +@@ -7771,6 +7773,9 @@=0A= + * is restricted, need to truncate display name if too long.=0A= + */=0A= + =0A= ++#ifdef __FreeBSD__=0A= ++ setproctitle("%s", display_name);=0A= ++#else=0A= + argv0 =3D (char*)wsgi_server->process->argv[0];=0A= + =0A= + dlen =3D strlen(argv0);=0A= +@@ -7782,6 +7787,7 @@=0A= + memcpy(argv0, display_name, slen);=0A= + else=0A= + memcpy(argv0, display_name, dlen);=0A= ++#endif=0A= + }=0A= + =0A= + static void wsgi_setup_access(WSGIDaemonProcess *daemon)=0A= ------=_NextPart_000_034D_01C8E67F.B1E63BB0--