From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 10 15:30:01 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 D81D416A41A for ; Sun, 10 Feb 2008 15:30:01 +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 C825F13C467 for ; Sun, 10 Feb 2008 15:30:01 +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 m1AFU1L1018131 for ; Sun, 10 Feb 2008 15:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1AFU1Gx018130; Sun, 10 Feb 2008 15:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 10 Feb 2008 15:30:01 GMT Resent-Message-Id: <200802101530.m1AFU1Gx018130@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Björn König Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 217DC16A418 for ; Sun, 10 Feb 2008 15:20:19 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id EBCA413C457 for ; Sun, 10 Feb 2008 15:20:18 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mail.liberty-hosting.de (Postfix) with ESMTP id 07D593E8FA7 for ; Sun, 10 Feb 2008 16:19:06 +0100 (CET) Received: from muhkuh.lan (muhkuh.lan [192.168.1.2]) by home.alpha-tierchen.de (Postfix) with SMTP id B4FAB2842D for ; Sun, 10 Feb 2008 16:20:12 +0100 (CET) Received: by muhkuh.lan (sSMTP sendmail emulation); Sun, 10 Feb 2008 16:20:17 +0000 Message-Id: <20080210152012.B4FAB2842D@home.alpha-tierchen.de> Date: Sun, 10 Feb 2008 16:20:17 +0000 From: "Björn König" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/120504: [patch] Fix www/eaccelerator to use shm and sysvipc semaphores X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Björn König List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2008 15:30:01 -0000 >Number: 120504 >Category: ports >Synopsis: [patch] Fix www/eaccelerator to use shm and sysvipc semaphores >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 10 15:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: >Organization: >Environment: >Description: This patch fixes two issues. The first is that eaccelerator does not use shared memory at all. Shared memory is a prerequisite for some important eaccelerator_* functions: put, get, rm, rc, lock, unlock. Therefore I added the configure switch --with-eaccelerator-shared-memory. The second problem is that --with-eaccelerator-userid=www sets the user ID to the string "www", but eaccelerator expects a numerical value. For this reason eaccelerator do not use SystemV IPC semaphores currently. I changed the port that it will investigate the user ID of "www" from /etc/passwd and use 0 if the user does not exist. >How-To-Repeat: >Fix: --- ports-www-eaccelerator.diff begins here --- diff -ruN ports/www/eaccelerator.orig/Makefile ports/www/eaccelerator/Makefile --- ports/www/eaccelerator.orig/Makefile 2007-09-03 16:06:27.000000000 +0200 +++ ports/www/eaccelerator/Makefile 2008-02-10 15:59:56.000000000 +0100 @@ -18,8 +18,9 @@ USE_PHP_BUILD= yes CONFIGURE_ARGS= --enable-eaccelerator=shared \ + --with-eaccelerator-shared-memory \ --with-eaccelerator-sessions \ - --with-eaccelerator-userid=www + --with-eaccelerator-userid=${WWW_UID} USE_BZIP2= yes SUB_FILES= pkg-message @@ -29,6 +30,8 @@ .include +WWW_UID!= (${GREP} "^www:" /etc/passwd || ${ECHO} "::0") | ${CUT} -d: -f3 + .if ${PHP_VER} == 5 CONFIGURE_ARGS+= --without-eaccelerator-encoder PLIST_SUB+= ENCODER="@comment " --- ports-www-eaccelerator.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: