Control: reopen -1

On Tue, Jul 09, 2013 at 10:21:11PM +0000, Debian Bug Tracking System wrote:
>  mod-mono (2.11+git20130708.6b73e85-1) unstable; urgency=low
>  .
>    * [b41e546] Imported Upstream version 2.11+git20130708.6b73e85 (Closes:
>      #666836)
>    * [aa892a9] Fix up package dependencies for Apache 2.4

I'm afraid this isn't quite right, as britney detects:

mod-mono (2.10-3.2 to 2.11+git20130708.6b73e85-1)
    Maintainer: Debian Mono Group
    Too young, only 0 of 10 days old
    libapache2-mod-mono/i386 unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/amd64 unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/armel unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/ia64 unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/kfreebsd-amd64 unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/kfreebsd-i386 unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/powerpc unsatisfiable Depends: apache2.4-common
    libapache2-mod-mono/s390x unsatisfiable Depends: apache2.4-common
    Not considered

You mustn't depend on the nonexistent apache2.4-common, but rather the
appropriate apache2-api-* package.  The binary package also doesn't
comply with the latest Apache module packaging rules for handling things
like enabling and disabling modules.  I suggest using dh_apache2
(Build-Depends: dh-apache2), which can help you with this.

I think this patch should work - it looks right after build-testing -
but of course check the changes to the (generated) maintainer scripts.

diff -Nru mod-mono-2.11+git20130708.6b73e85/debian/changelog 
mod-mono-2.11+git20130708.6b73e85/debian/changelog
--- mod-mono-2.11+git20130708.6b73e85/debian/changelog  2013-07-09 
23:03:09.000000000 +0100
+++ mod-mono-2.11+git20130708.6b73e85/debian/changelog  2013-07-10 
11:16:50.000000000 +0100
@@ -1,3 +1,10 @@
+mod-mono (2.11+git20130708.6b73e85-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Use dh_apache2 and drop apache2.4-common dependency (closes: #666836).
+
+ -- Colin Watson <cjwat...@debian.org>  Wed, 10 Jul 2013 11:14:53 +0100
+
 mod-mono (2.11+git20130708.6b73e85-1) unstable; urgency=low
 
   * [b41e546] Imported Upstream version 2.11+git20130708.6b73e85 (Closes:
diff -Nru mod-mono-2.11+git20130708.6b73e85/debian/control 
mod-mono-2.11+git20130708.6b73e85/debian/control
--- mod-mono-2.11+git20130708.6b73e85/debian/control    2013-07-09 
23:03:06.000000000 +0100
+++ mod-mono-2.11+git20130708.6b73e85/debian/control    2013-07-10 
11:16:42.000000000 +0100
@@ -6,13 +6,13 @@
 Vcs-Svn: svn://svn.debian.org/pkg-mono/mod-mono/trunk
 Maintainer: Debian Mono Group <pkg-mono-gr...@lists.alioth.debian.org>
 Uploaders: Dylan R. E. Moonfire <deb...@mfgames.com>, Mirco Bauer 
<mee...@debian.org>, Jo Shields <direct...@apebox.org>
-Build-Depends: debhelper (>= 7.0.50~), apache2-dev (>= 2.4), po-debconf, 
pkg-config, mono-runtime
+Build-Depends: debhelper (>= 7.0.50~), dh-apache2, apache2-dev (>= 2.4), 
po-debconf, pkg-config, mono-runtime
 Standards-Version: 3.9.1
 
 Package: libapache2-mod-mono
 Architecture: any
 Section: web
-Depends: ${misc:Depends}, ${shlibs:Depends}, debconf (>= 1.2.0), 
apache2.4-common, mono-runtime (>= 2.10), mono-apache-server (>= 
${current-version}) | mono-apache-server4 (>= ${current-version}) | 
mono-apache-server2 (>= ${current-version}), mono-apache-server (<< 
${next-version}) | mono-apache-server4 (<< ${next-version}) | 
mono-apache-server2 (<< ${next-version})
+Depends: ${misc:Depends}, ${shlibs:Depends}, debconf (>= 1.2.0), mono-runtime 
(>= 2.10), mono-apache-server (>= ${current-version}) | mono-apache-server4 (>= 
${current-version}) | mono-apache-server2 (>= ${current-version}), 
mono-apache-server (<< ${next-version}) | mono-apache-server4 (<< 
${next-version}) | mono-apache-server2 (<< ${next-version})
 Description: Apache module for running ASP.NET applications on Mono
  The mod_mono module for Apache allows ASP.NET web applications to be
  run with the Mono .NET implementation.
diff -Nru mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.postinst 
mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.postinst
--- mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.postinst       
2013-07-09 22:58:11.000000000 +0100
+++ mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.postinst       
2013-07-10 11:25:26.000000000 +0100
@@ -8,18 +8,4 @@
 
 #DEBHELPER#
 
-# If we aren't configuring, we don't do anything
-if [ "$1" != "configure" ]; then
-    exit 0
-fi
-
-# We're upgrading, don't ask again
-if [ -n "$2" ]; then
-    exit 0
-fi
-
-if [ -e /etc/apache2/apache2.conf ]; then
-    /usr/sbin/a2enmod mod_mono || true
-fi
-
 exit 0
diff -Nru mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.prerm 
mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.prerm
--- mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.prerm  
2013-07-09 22:58:11.000000000 +0100
+++ mod-mono-2.11+git20130708.6b73e85/debian/libapache2-mod-mono.prerm  
1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-set -e
-
-#DEBHELPER#
-
-if [ "$1" != "remove" -a "$1" != "purge" ]; then
-       exit 0
-fi
-
-if [ -e /etc/apache2/apache2.conf ]; then
-       /usr/sbin/a2dismod mod_mono || true
-       /usr/sbin/a2dismod mod_mono_auto || true
-fi
-
-exit 0
diff -Nru mod-mono-2.11+git20130708.6b73e85/debian/rules 
mod-mono-2.11+git20130708.6b73e85/debian/rules
--- mod-mono-2.11+git20130708.6b73e85/debian/rules      2013-07-09 
22:58:11.000000000 +0100
+++ mod-mono-2.11+git20130708.6b73e85/debian/rules      2013-07-10 
11:14:49.000000000 +0100
@@ -44,5 +44,5 @@
                --rename
 
 %:
-       dh $@
+       dh $@ --with apache2
 

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to