Date: Tue, 26 Aug 2008 03:27:33 +0400 From: "Alexander Churanov" <alexanderchuranov@gmail.com> To: freebsd-ports@freebsd.org Subject: Suggest a patch to devel/valgrind/Makefile Message-ID: <3cb459ed0808251627j1437dff5sf3f611c64f5d771a@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3cb459ed0808251627j1437dff5sf3f611c64f5d771a>