<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>64974</bug_id>
          
          <creation_ts>2004-09-22 07:38 0000</creation_ts>
          <short_desc>app-admin/skey-1.1.5-r3: /etc/skey/skeykeys is not a configuration file</short_desc>
          <delta_ts>2004-09-23 06:06:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulm@gentoo.org</reporter>
          <assigned_to>taviso@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2004-09-22 07:38:12 0000</bug_when>
            <thetext>/etc/skey/skeykeys is not a configuration file and therefore does not belong into /etc. &quot;etc-update&quot; should not ask for replacement of this file (by an empty one).

According to the FHS, /var/lib/skey seems to be the canonical place.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2004-09-23 02:55:12 0000</bug_when>
            <thetext>why do you say it is not a configuration file? 

I just checked the fhs, and they have the description &quot;A &apos;configuration file&apos; is a local file used to control the operation of a program; it must be static and cannot be an executable binary.&quot;

skeykeys seems to qualify, it contains configuration data and controls the operation of a program...and is not entirely dissimilar to the passwd and shadow files.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2004-09-23 02:57:31 0000</bug_when>
            <thetext>regarding etc-update, i will fix this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2004-09-23 03:26:03 0000</bug_when>
            <thetext>skey-1.1.5-r4 does not include /etc/skey/skeykeys in the package, which fixes the etc-update issue.

please post more information regarding the FHS issue :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2004-09-23 05:44:34 0000</bug_when>
            <thetext>Regarding comment #1:
I think the key phrase is &quot;it must be static&quot;. skeykeys is not static, but it is changed dynamically by users (via skeyinit) and at every login (e.g., via sshd).

The FHS says about /var/lib:
&quot;This hierarchy holds state information pertaining to an application or the system. State information is data that programs modify while they run, and that pertains to one specific host. Users must never need to modify files in /var/lib to configure a package&apos;s operation.
State information is generally used to preserve the condition of an application (or a group of inter-related applications) between invocations and between different instances of the same application.&quot;
... which seems to fit perfectly for skeykeys.

However, my main point was the etc-update issue and I do not want to open Pandora&apos;s box by starting an FHS discussion. ;-)

Regarding comment #3:
As far as I remember, skeyinit requires the skeykeys file to be present, so the ebuild should create it if it does not yet exist.

Another minor problem: skeyinfo still has the wrong pathname in an error message: &quot;skeyinfo: must be root to read /etc/skeykeys&quot;. This should be corrected, too.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>taviso@gentoo.org</who>
            <bug_when>2004-09-23 06:06:36 0000</bug_when>
            <thetext>I don&apos;t agree that skeykeys isn&apos;t an configuration file, I think that if passwd and shadow qualify as static, skeykeys certainly does (think chfn, chsh, passwd, etc).

the package does create /etc/skey/skeykeys, but doesnt include it in the package.

I&apos;ve updated skeyinfo to use SKEYKEYS instead of /etc/skey/skeykeys :)

Thanks for the bug reports!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>