Date: Wed, 18 Dec 2002 23:53:41 +0100 (CET) From: Sebastien Gioria <gioria@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: cyrille.lefevre@laposte.net Subject: ports/46363: patch for building misc/sh-utils on 5.X and 4.7-STABLE Message-ID: <20021218225341.0E946B3DF@bushmills.intra.thorm.net>
next in thread | raw e-mail | index | archive | help
>Number: 46363 >Category: ports >Synopsis: patch for building misc/sh-utils on 5.X and 4.7-STABLE >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Dec 18 15:00:13 PST 2002 >Closed-Date: >Last-Modified: >Originator: Sebastien Gioria >Release: FreeBSD 5.0-RC i386 >Organization: FreeBSD.ORG >Environment: System: FreeBSD bushmills.intra.thorm.net 5.0-RC FreeBSD 5.0-RC #16: Mon Dec 9 18:34:49 CET 2002 eagle@bushmills.intra.thorm.net:/usr/obj/usr/src/sys/bushmills i386 >Description: Actually misc/sh-utils does not build because redefinition of eaccess. >How-To-Repeat: cd /usr/ports/misc/sh-utils ; make >Fix: Apply this patch to src/test.c and the ports will be build on a 5.X Box and on a 4.7-STABLE Box (according to the documentation of __FreeBSD_Version in the porter_handbook). --- src/test.c.orig Wed Dec 18 23:37:09 2002 +++ src/test.c Wed Dec 18 23:37:21 2002 @@ -153,6 +153,7 @@ return (stat (path, finfo)); } +#if (__FreeBSD_version <= 470100) /* Do the same thing access(2) does, but use the effective uid and gid, and don't make the mistake of telling root that any file is executable. But this loses when the containing filesystem is mounted e.g. read-only. */ @@ -190,6 +191,7 @@ return (-1); } +#endif /* Increment our position in the argument list. Check that we're not past the end of the argument list. This check is supressed if the >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021218225341.0E946B3DF>