From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 10 20:10:27 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41F8C16A4CE for ; Fri, 10 Sep 2004 20:10:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 247FF43D3F for ; Fri, 10 Sep 2004 20:10:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8AKARLv022258 for ; Fri, 10 Sep 2004 20:10:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8AKARFH022257; Fri, 10 Sep 2004 20:10:27 GMT (envelope-from gnats) Resent-Date: Fri, 10 Sep 2004 20:10:27 GMT Resent-Message-Id: <200409102010.i8AKARFH022257@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, Rong-En Fan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43BB016A4CE; Fri, 10 Sep 2004 20:08:53 +0000 (GMT) Received: from muse.csie.ntu.edu.tw (muse.csie.ntu.edu.tw [140.112.28.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0257543D48; Fri, 10 Sep 2004 20:08:53 +0000 (GMT) (envelope-from rafan@infor.org) Received: from localhost (localhost.csie.ntu.edu.tw [127.0.0.1]) by muse.csie.ntu.edu.tw (Postfix) with ESMTP id 2E45B523D9; Sat, 11 Sep 2004 04:08:52 +0800 (CST) Received: from muse.csie.ntu.edu.tw ([127.0.0.1]) by localhost (muse.csie.ntu.edu.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67169-28; Sat, 11 Sep 2004 04:08:50 +0800 (CST) Received: from woodstock.csie.org (220-135-116-9.HINET-IP.hinet.net [220.135.116.9]) by muse.csie.ntu.edu.tw (Postfix) with ESMTP id 8514D52399; Sat, 11 Sep 2004 04:08:50 +0800 (CST) Received: (from rafan@localhost) by woodstock.csie.org (8.13.1/8.13.1/Submit) id i8AK8lbj030608; Sat, 11 Sep 2004 04:08:47 +0800 (CST) (envelope-from rafan) Message-Id: <200409102008.i8AK8lbj030608@woodstock.csie.org> Date: Sat, 11 Sep 2004 04:08:47 +0800 (CST) From: Rong-En Fan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: ports@FreeBSD.org Subject: ports/71572: [PATCH] devel/PPerl: take maintainership & add multiuser support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 20:10:27 -0000 >Number: 71572 >Category: ports >Synopsis: [PATCH] devel/PPerl: take maintainership & add multiuser support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 10 20:10:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.0-CURRENT i386 >Organization: NTU CSIE >Environment: System: FreeBSD woodstock.csie.org 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Sun Sep 5 23:59:56 CST >Description: - Take maintainership - add multiuser support from http://rt.cpan.org/NoAuth/Bug.html?id=5485 With this patch, we can allow multiuser run devel/svk on a shared box. Added file(s): - files/patch-main.c Port maintainer (ports@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- p5-PPerl-0.25_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/p5-PPerl/Makefile /home/rafan/tmp/ports/p5-PPerl/Makefile --- /usr/ports/devel/p5-PPerl/Makefile Sat Sep 11 04:07:19 2004 +++ /home/rafan/tmp/ports/p5-PPerl/Makefile Sat Sep 11 04:04:51 2004 @@ -8,12 +8,13 @@ PORTNAME= PPerl PORTVERSION= 0.25 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= ../../authors/id/M/MS/MSERGEANT PKGNAMEPREFIX= p5- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= rafan@infor.org COMMENT= Make perl scripts persistent in memory USE_PERL5= yes diff -ruN --exclude=CVS /usr/ports/devel/p5-PPerl/files/patch-main.c /home/rafan/tmp/ports/p5-PPerl/files/patch-main.c --- /usr/ports/devel/p5-PPerl/files/patch-main.c Thu Jan 1 08:00:00 1970 +++ /home/rafan/tmp/ports/p5-PPerl/files/patch-main.c Sat Sep 11 03:55:39 2004 @@ -0,0 +1,29 @@ +--- main.c.orig Sat Sep 11 03:54:05 2004 ++++ main.c Sat Sep 11 03:55:32 2004 +@@ -224,13 +224,16 @@ + char *fullpath = my_malloc(path_max); + int i = 0; + ++ char euid[sizeof(uid_t)+2]; ++ sprintf(euid, "_%d", geteuid()); ++ + if (realpath(scriptname, fullpath) == NULL) { + perror("pperl: resolving full pathname to script failed"); + exit(1); + } + Dx(Debug("realpath returned: %s\n", fullpath)); + /* Ugh. I am a terrible C programmer! */ +- sockname = my_malloc(strlen(P_tmpdir) + strlen(fullpath) + 3); ++ sockname = my_malloc(strlen(P_tmpdir) + strlen(fullpath) + 3 + strlen(euid)); + save = sockname; + sprintf(sockname, "%s/", P_tmpdir); + sockname += strlen(P_tmpdir) + 1; +@@ -246,7 +249,7 @@ + } + sockname++; i++; + } +- *sockname = '\0'; ++ strcat(sockname, euid); + free(fullpath); + return save; + } --- p5-PPerl-0.25_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: