Bug 138355 - net/freeradius2 can't install from package when /usr/ports mounted RO
Summary: net/freeradius2 can't install from package when /usr/ports mounted RO
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-30 19:40 UTC by Dan Lukes
Modified: 2009-09-18 12:20 UTC (History)
0 users

See Also:


Attachments
patch-FREERADIUS2 (632 bytes, text/plain)
2009-08-30 19:40 UTC, Dan Lukes
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Lukes 2009-08-30 19:40:02 UTC
	net/freeradius2 can't be instaled from package when /usr/ports tree
present && net/freeradius2/work/radiusd.conf exist && /usr/ports tree mouted
read-only

	It's not artifical scenario. Imagine central distribution point where all
required ports are compiled with apropriate options and packages are created 

	the /usr/ports tree from repository is read-only mounted 
to other machine. Here the packages are installed from /usr/ports/packages/All

Fix: Patch writable files only:
How-To-Repeat:    Prolog:
	create package of net/freeradius2 port
	working directory of the port MUST NOT be deleted
         (e.g. /usr/ports/net/freeradius2/work/radiusd.conf still exist)
	deinstall net/freeradius2
	
   Now you:
	mount /usr/ports tree as read-only
	install net/freeradis2 from package

	the installation will fail because install script will fail because the
/usr/ports/net/freeradius2/work/radiusd.conf exists, but not writable
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-30 19:40:14 UTC
Maintainer of net/freeradius2,

Please note that PR ports/138355 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/138355

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-30 19:40:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 David Wood 2009-09-09 20:39:27 UTC
Patch approved. Thank you.



David
(maintainer net/freeradius2)
-- 
David Wood
david@wood2.org.uk
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2009-09-18 12:11:59 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-09-18 12:18:19 UTC
pav         2009-09-18 11:18:09 UTC

  FreeBSD ports repository

  Modified files:
    net/freeradius2/files pkg-install.in 
  Log:
  - Allow the installation to proceed with read-only workdir
  
  PR:             ports/138355
  Submitted by:   Dan Lukes <dan@obluda.cz>
  Approved by:    David Wood <david@wood2.org.uk> (maintainer)
  Feature safe:   yes
  
  Revision  Changes    Path
  1.5       +2 -2      ports/net/freeradius2/files/pkg-install.in
_______________________________________________
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"