<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>14819</bug_id>
          
          <creation_ts>2008-03-08 22:48:28 +0300</creation_ts>
          <short_desc>sisyphus_check rejects FHS 2.3 compliant applications</short_desc>
          <delta_ts>2011-04-25 18:10:32 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sisyphus_check</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="viy">viy</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65324</commentid>
    <comment_count>0</comment_count>
    <who name="viy">viy</who>
    <bug_when>2008-03-08 22:48:28 +0300</bug_when>
    <thetext>собирая tomcat6, получил
hsh-rebuild: tomcat6-6.0.16-alt1_1jpp5.0.src.rpm: sisyphus_check failed.
ERROR: you have problems with standards
/.out/tomcat6-webapps-6.0.16-alt1_1jpp5.0.noarch.rpm: FHS-2.2 violations:
/srv/tomcat6/webapps/ROOT /srv/tomcat6/...

при этом в спеке утверждается, что это на самом деле FHS 2.3:
...
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/           
%define appdir /srv/%{name}/webapps 
...
стоит ли ждать изменений в sisyphus_check ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65326</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-03-08 23:00:29 +0300</bug_when>
    <thetext>Читаем /usr/share/doc/fhs-2.3/fhs.txt.bz2

/srv : Data for services provided by this system

Purpose

/srv contains site-specific data which is served by this system.

    Rationale: This main purpose of specifying this is so that users may find
    the location of the data files for particular service, and so that services
    which require a single tree for readonly data, writable data and scripts
    (such as cgi scripts) can be reasonably placed. Data that is only of
    interest to a specific user should go in that users&apos; home directory.

    The methodology used to name subdirectories of /srv is unspecified as there
    is currently no consensus on how this should be done. One method for
    structuring data under /srv is by protocol, eg. ftp, rsync, www, and cvs.
    On large systems it can be useful to structure /srv by administrative
    context, such as /srv/physics/www, /srv/compsci/cvs, etc. This setup will
    differ from host to host. Therefore, no program should rely on a specific
    subdirectory structure of /srv existing or data necessarily being stored in
    /srv. However /srv should always exist on FHS compliant systems and should
    be used as the default location for such data.

Другими словами, в fhs-2.3 были добавлены некоторые каталоги с такой
регламентацией, что мне непонятно, как это отразить в sisyphus_check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65327</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2008-03-08 23:20:13 +0300</bug_when>
    <thetext>можно, например, добавить проверку
что если используется /srv/%name/, то пропускать :)
или же выдавать в случае /srv/ warning.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87349</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2009-03-16 10:57:45 +0300</bug_when>
    <thetext>пошла мода...
/srv/%name/

# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/
%define appdir /srv/jetty6/webapps
%define ctxdir /srv/jetty6/contexts</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112782</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-09-28 12:39:30 +0400</bug_when>
    <thetext>Сейчас /srv содержится в пакете filesystem -- этого достаточно?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112786</commentid>
    <comment_count>5</comment_count>
    <who name="viy">viy</who>
    <bug_when>2010-09-28 12:54:42 +0400</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; Сейчас /srv содержится в пакете filesystem -- этого достаточно?

не достаточно. в ./sisyphus_check.d/130-check-fhs srv не прописан.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112792</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-09-28 13:39:37 +0400</bug_when>
    <thetext>2 ldv: тривиально оформить префикс аналогично /var/{lib,www} -- приемлемо?

http://git.altlinux.org/people/mike/packages/?p=sisyphus_check.git;a=commitdiff;h=61aaf112aaeea1daaeac1688c0f52c9300cc0540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120766</commentid>
    <comment_count>7</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2011-04-25 18:10:32 +0400</bug_when>
    <thetext>Я вот не уверен, что пакет должен что-то создавать в /srv. Если уж кому-то нужно, пусть бы делал это при инициализации/запуске.
А так у нас традиционно /var/lib всегда был для такого.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>