Bug 127015 - [patch] Impossible to fetch devel/valgrind from the jail
Summary: [patch] Impossible to fetch devel/valgrind from the jail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Simon Barner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-31 22:40 UTC by Alexander Churanov
Modified: 2008-09-23 08:10 UTC (History)
0 users

See Also:


Attachments
file.diff (497 bytes, patch)
2008-08-31 22:40 UTC, Alexander Churanov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Churanov 2008-08-31 22:40:01 UTC
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.

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:
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-31 22:40:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->barner

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-09-23 08:02:22 UTC
barner      2008-09-23 07:02:14 UTC

  FreeBSD ports repository

  Modified files:
    devel/valgrind       Makefile 
    devel/valgrind-snapshot Makefile 
  Log:
  - Fix build from within jails
  
  PR:             ports/127015
  Submitted by:   Alexander Churanov
  Approved by:    portmgr (erwin)
  
  Revision  Changes    Path
  1.29      +1 -1      ports/devel/valgrind-snapshot/Makefile
  1.31      +1 -1      ports/devel/valgrind/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Simon Barner freebsd_committer freebsd_triage 2008-09-23 08:03:20 UTC
State Changed
From-To: open->closed

Committed. Thanks!