[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#553537: wdg-html-validator: dir-or-file-in-var-www /var/www/wdg-html-validator.html

Package: wdg-html-validator
Version: 1.6.2-6
Severity: serious
User: lintian-maint@debian.org
Usertags: dir-or-file-in-var-www

Debian packages should not install files under /var/www. This is not
one of the /var directories in the File Hierarchy Standard and is
under the control of the local administrator. Packages should not
assume that it is the document root for a web server; it is very
common for users to change the default document root and packages
should not assume that users will keep any particular setting. 

Packages that want to make files available via an installed web server
should instead put instructions for the local administrator in a
README.Debian file and ideally include configuration fragments for
common web servers such as Apache.

As an exception, packages are permitted to create the /var/www
directory due to its past history as the default document root, but
should at most copy over a default file in postinst for a new install.

Refer to Filesystem Hierarchy Standard (The /var Hierarchy) for

One solution that works is to put configuration files into
/etc/<package_name>, put static content, if any, into
/usr/{share,lib}/<package_name>, then create /var/lib/<package name>
as home for the package, and symlink the files from /etc and /usr/
into the /var/lib/<package_name>. Then create a simple set of
configuration snippets for popular web servers (for example, files one
may link into /etc/apache2/conf.d) and put them into
/etc/<package_name>. This way user modifiable files stil live in /etc,
and a simple operation can make the package go live.

Filed as serious, since this is a violation of the FHS (which is part
of policy), and also since a package with these files will currently
get this package rejected. See
for details. This means the package has been deemed too buggy to be in


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wdg-html-validator depends on:
ii  libhtml-parser-perl           3.62-1     collection of modules that parse H
ii  libi18n-charset-perl          1.394-1    Perl module for mapping character 
ii  libjconv-bin                  2.8-6+b1   charset conversion library - binar
ii  libunicode-map8-perl          0.12-3+b1  Perl module to map 8bit character 
ii  libunicode-string-perl        2.09-3+b1  Perl modules for Unicode strings
ii  libwww-perl                   5.833-1    Perl HTTP/WWW client/server librar
ii  opensp                        1.5.2-8    OpenJade group's SGML parsing tool
ii  perl                          5.10.1-6   Larry Wall's Practical Extraction 
ii  sgml-data                     2.0.3      common SGML and XML data
ii  w3c-dtd-xhtml                 1.1-5      W3C eXtensible HyperText Markup La

Versions of packages wdg-html-validator recommends:
ii  apache2-mpm-prefork [httpd]   2.2.14-1   Apache HTTP Server - traditional n

Versions of packages wdg-html-validator suggests:
pn  wdg-html-reference            <none>     (no description available)

-- no debconf information

Reply to: