From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 31 21:40:02 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 0094C1065676 for ; Sun, 31 Aug 2008 21:40:02 +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 CF40E8FC1C for ; Sun, 31 Aug 2008 21:40: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 m7VLe1LY062691 for ; Sun, 31 Aug 2008 21:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7VLe1YQ062690; Sun, 31 Aug 2008 21:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 31 Aug 2008 21:40:01 GMT Resent-Message-Id: <200808312140.m7VLe1YQ062690@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, Alexander Churanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D6771065682 for ; Sun, 31 Aug 2008 21:32:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 6A3458FC1E for ; Sun, 31 Aug 2008 21:32:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7VLWC3U053087 for ; Sun, 31 Aug 2008 21:32:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m7VLWCwR053086; Sun, 31 Aug 2008 21:32:12 GMT (envelope-from nobody) Message-Id: <200808312132.m7VLWCwR053086@www.freebsd.org> Date: Sun, 31 Aug 2008 21:32:12 GMT From: Alexander Churanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/127015: [patch] Impossible to fetch devel/valgrind from the jail X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 21:40:02 -0000 >Number: 127015 >Category: ports >Synopsis: [patch] Impossible to fetch devel/valgrind from the jail >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Aug 31 21:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Alexander Churanov >Release: 6.2-RELEASE >Organization: N/A >Environment: FreeBSD jail 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Mon Mar 24 09:45:45 MSK 2008 root@localhost:/usr/obj/usr/src/sys/HOMEBSD i386 >Description: The "make fetch" in devel/valgrind refuses to download distfiles if running inside a jail. It complains about missing procfs. The procfs, however, is correctly working and accessible. The issue was observed on FreeBSD 6.2 Release, using ports collection from August, 21 2008. Expected behavior: presence of procfs is not verified when running targets like "fetch". Acceptable behavior: actual presence of procfs is verified. >How-To-Repeat: 1) Setup a jail with access to internet. 2) Uncompress "ports" collection into /usr/ports directory inside a jail. 3) Mount the "procfs" filesystem to /proc directory inside a jail from the host OS. 3) Start shell in the jail, cd into "devel/valgrind", type make fetch. >Fix: Modify the Makefile to verify that procfs is running and accessible instead of examining output of "/sbin/mount". See the suggested patch. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/valgrind/Makefile,v retrieving revision 1.30 diff -U3 -r1.30 Makefile --- Makefile 21 Aug 2008 06:16:52 -0000 1.30 +++ Makefile 25 Aug 2008 23:02:29 -0000 @@ -44,7 +44,7 @@ PLIST_SUB+= RELENG_7="@comment " .endif -PROCFS!= /sbin/mount | ${GREP} '^procfs' | ${AWK} '{print $1}' +PROCFS!= if test -r /proc/curproc/status; then echo "procfs"; else echo ""; fi pre-everything:: >Release-Note: >Audit-Trail: >Unformatted: