From owner-freebsd-ports@FreeBSD.ORG Mon Aug 25 23:53:06 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50227106567D for ; Mon, 25 Aug 2008 23:53:06 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id BE5A28FC14 for ; Mon, 25 Aug 2008 23:53:05 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so958774nfh.33 for ; Mon, 25 Aug 2008 16:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=Fzkp3E7Dx0ozMgatckB0Mgb0MGrcPKlmHxEGCaOzDQs=; b=cXDYYqXJr/puHEYf1Z2l/FKYaXZMlbU3EyVXgqV/wooZYLtzPHFh4ZvKmpiM0AJxOt cgs/2tysia8Mul/tTsnvG8p9ZS7/87T7W7yhPxiH+Rg55XNKy2HA3F+7IzWKU4E8QWiy RDAmidHlhLhbEdcUPenAKKsDEgFNRAn0GQgUI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=oFeYdlrH64A4UW9LXCdO07TjgFhuEfYvy8gspAvg6XFyf65ijSyEuKIGCc/U186I9R /y1YuQm30uaUUlukky5MNXMil4cKIb4bh34x1IQKzQkjA5Jplc81XmaTfhHRUzR2cBiH 9dXttafLaXecvn+uukxleBdcDM2T+8tKdU9Jo= Received: by 10.210.87.19 with SMTP id k19mr7359237ebb.176.1219706853269; Mon, 25 Aug 2008 16:27:33 -0700 (PDT) Received: by 10.210.130.15 with HTTP; Mon, 25 Aug 2008 16:27:33 -0700 (PDT) Message-ID: <3cb459ed0808251627j1437dff5sf3f611c64f5d771a@mail.gmail.com> Date: Tue, 26 Aug 2008 03:27:33 +0400 From: "Alexander Churanov" To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_34712_25670548.1219706853284" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Suggest a patch to devel/valgrind/Makefile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 23:53:06 -0000 ------=_Part_34712_25670548.1219706853284 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi folks! Recently I started downloading distfiles for my ports collection in a jail and got following issue: the "devel/valgrind" port failed to fetch with a message like "procfs is not mounted". However, the /proc was mounted and accessible. Additionally, I do not understand why port does not allow me to fetch sources and how that relates to /proc. I've examined the Makefile and found the soultion to the first problem: it uses /sbin/mount to determine whether procfs is mounted. However, in a jail /sbin/mount does not show /proc. The solution is not to query /sbin/mount, but instead use "stat" to examine the actual status of the filesystem. The attached patch does exactly that. Alexander Churanov ------=_Part_34712_25670548.1219706853284 Content-Type: application/octet-stream; name=valgrind.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkbpvfir0 Content-Disposition: attachment; filename=valgrind.diff SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvcG9ydHMvZGV2 ZWwvdmFsZ3JpbmQvTWFrZWZpbGUsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzAKZGlmZiAtVTMg LXIxLjMwIE1ha2VmaWxlCi0tLSBNYWtlZmlsZQkyMSBBdWcgMjAwOCAwNjoxNjo1MiAtMDAwMAkx LjMwCisrKyBNYWtlZmlsZQkyNSBBdWcgMjAwOCAyMzowMjoyOSAtMDAwMApAQCAtNDQsNyArNDQs NyBAQAogUExJU1RfU1VCKz0JUkVMRU5HXzc9IkBjb21tZW50ICIKIC5lbmRpZgogCi1QUk9DRlMh PQkvc2Jpbi9tb3VudCB8ICR7R1JFUH0gJ15wcm9jZnMnIHwgJHtBV0t9ICd7cHJpbnQgJDF9Jwor UFJPQ0ZTIT0JaWYgdGVzdCAtciAvcHJvYy9jdXJwcm9jL3N0YXR1czsgdGhlbiBlY2hvICJwcm9j ZnMiOyBlbHNlIGVjaG8gIiI7IGZpCiAKIHByZS1ldmVyeXRoaW5nOjoKIAo= ------=_Part_34712_25670548.1219706853284--