Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246021 - emerging nfs-utils does not register /etc/exports as belonging to it if it already exists.
Summary: emerging nfs-utils does not register /etc/exports as belonging to it if it al...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-08 01:03 UTC by Ian Kelling
Modified: 2008-11-09 07:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Kelling 2008-11-08 01:03:21 UTC
emerging nfs-utils with no /etc/exports, a default exports file is made and
$ qfile /etc/exports
shows nfs-utils.
Now emerge nfs-utils again when there already exists an /etc/exports, qfile /etc/exports commands show nothing (an orphaned file).
This is wrong. 
One obvious reason is that it inconsistent with how other packages work.

I tested this with 2 versions: 1.1.3 and the latest 1.1.4.



Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2008-11-09 05:36:58 UTC
The nfs-utils ebuild does purposefully leave /etc/exports alone if it exists, instead of using the normal mechanism of updating protected configs. However, it is not obvious _why_ it has this behavior; I'll leave it up to the maintainers to explain it... perhaps there was a historical reason that no longer applies?
Comment 2 SpanKY gentoo-dev 2008-11-09 07:19:03 UTC
the /etc/exports that always gets installed is an empty file, so it didnt make sense in the past to always bug people about "upgrading" their existing file to an empty one.  it still doesnt make any sense, but portage nowadays should bug you a lot less often, so i'll just drop it.

http://sources.gentoo.org/net-fs/nfs-utils/nfs-utils-1.1.4.ebuild?r1=1.3&r2=1.4