[Debian-med-packaging] Bug#779700: dcmtk-www: /etc/dcmtk/apache.conf is not recognized by a2enconf

HAYASHI Kentaro kenhys at gmail.com
Wed Mar 4 09:10:04 UTC 2015


Package: dcmtk-www
Version: 3.6.0-15+b1
Severity: important

Dear Maintainer,

   * What led up to the situation?
     There is /etc/apache2/conf-available/dcmtk, but
     it seems that it is not recognized by a2enconf.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     1. Install dcmtk-www
        sudo apt-get install dcmtk dcmtk-www
     2. Enable dcmtk by a2enconf
        sudo a2enconf dcmtk

   * What was the outcome of this action?
     % sudo a2enconf dcmtk
     ERROR: Conf dcmtk does not exist!

   * What outcome did you expect instead?
     % sudo a2enconf dcmtk
     Enabling conf dcmtk.
     To activate the new configuration, you need to run:
       service apache2 reload

It seems that the problem is derived from symlink of apache.conf.

  % ls -la /etc/apache2/conf-available/dcmtk
  lrwxrwxrwx 1 root root 23  3月  4 12:41 /etc/apache2/conf-available/dcmtk ->
.../../dcmtk/apache.conf (This point to /etc/dcmtk/apache.conf)

But, it must be /etc/apache2/conf-available/dcmtk.conf, not dcmtk.

  % ls -1 /etc/apache2/conf-available
  charset.conf
  dcmtk
  javascript-common.conf
  localized-error-pages.conf
  other-vhosts-access-log.conf
  security.conf
  serve-cgi-bin.conf

After linking properly (use dcmtk.conf instead), a2enconf accepts it.

  % sudo a2enconf dcmtk
  Enabling conf dcmtk.
  To activate the new configuration, you need to run:
    service apache2 reload

This bug affects not only dcmtk_3.6.0-15.dsc, but also dcmtk_3.6.1~20140617-3.

Here is the patch that it may fix this issue.

  % diff -u dcmtk-www.postinst.orig dcmtk-www.postinst
  --- dcmtk-www.postinst.orig     2015-03-04 17:35:25.890987085 +0900
  +++ dcmtk-www.postinst  2015-03-04 17:36:12.558987207 +0900
  @@ -5,8 +5,8 @@

   apache_install() {
           webserver=apache2
  -        if [ -d /etc/$webserver/conf-available ] && [ ! -e /etc/$webserver
/conf-available/${pkg} ]; then
  -                ln -s ../../${pkg}/apache.conf /etc/$webserver/conf-
available/${pkg}
  +        if [ -d /etc/$webserver/conf-available ] && [ ! -e /etc/$webserver
/conf-available/${pkg}.conf ]; then
  +                ln -s ../../${pkg}/apache.conf /etc/$webserver/conf-
available/${pkg}.conf
                  # Restart webserver to register configuration for dcmtk if
config is considered to be OK
                  if ${webserver}ctl configtest 2>/dev/null; then
                      if [ -x /usr/sbin/invoke-rc.d ]; then
  % diff -u dcmtk-www.postrm.orig dcmtk-www.postrm
  --- dcmtk-www.postrm.orig       2015-03-04 17:35:51.598987152 +0900
  +++ dcmtk-www.postrm    2015-03-04 17:36:25.886987242 +0900
  @@ -5,8 +5,8 @@

   case "$1" in
       purge|remove)
  -      if [ -h /etc/apache2/conf-available/dcmtk ]; then
  -        unlink /etc/apache2/conf-available/dcmtk
  +      if [ -h /etc/apache2/conf-available/dcmtk.conf ]; then
  +        unlink /etc/apache2/conf-available/dcmtk.conf
         fi
       ;;
       upgrade)



-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dcmtk-www depends on:
ii  dcmtk       3.6.0-15+b1
ii  libc6       2.19-15
ii  libdcmtk2   3.6.0-15+b1
ii  libgcc1     1:4.9.2-10
ii  libstdc++6  4.9.2-10
ii  perl        5.20.2-2

Versions of packages dcmtk-www recommends:
ii  apache2 [httpd]              2.4.10-9
ii  apache2-mpm-prefork [httpd]  2.4.10-9

dcmtk-www suggests no packages.

-- no debconf information



More information about the Debian-med-packaging mailing list