Package: emacs22
Version: 22.2+2-4
Severity: normal

As can be seen on http://packages.debian.org/sid/emacs22, the emacs22
package depends on libasound2 on i386, but not on other architectures.
The reason is that Emacs will be built with ALSA support if the
configure script finds that on the system, but there is no
build-dependency on libasound2-dev.

The following patch fixes that by adding that dependency (except for
non-Linux architectures, where libasound2 is not available).  To keep
the dependencies of emacs22-nox at a minimum, I've added --without-sound
to its confflags.

--8<---------------cut here---------------start------------->8---
diff -u emacs22-22.2+2/debian/control emacs22-22.2+2/debian/control
--- emacs22-22.2+2/debian/control
+++ emacs22-22.2+2/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Rob Browning <[EMAIL PROTECTED]>
 Uploaders: Jerome Marant <[EMAIL PROTECTED]>
-Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev
+Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
 Standards-Version: 3.7.2
 
 Package: emacs
diff -u emacs22-22.2+2/debian/rules emacs22-22.2+2/debian/rules
--- emacs22-22.2+2/debian/rules
+++ emacs22-22.2+2/debian/rules
@@ -583,6 +583,7 @@
 # nox configure flags
 confflags_nox := $(confflags) 
 confflags_nox += --with-x=no
+confflags_nox += --without-sound
 
 # gtk configure flags
 confflags_gtk := $(confflags) 
diff -u emacs22-22.2+2/debian/control.in emacs22-22.2+2/debian/control.in
--- emacs22-22.2+2/debian/control.in
+++ emacs22-22.2+2/debian/control.in
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Rob Browning <[EMAIL PROTECTED]>
 Uploaders: Jerome Marant <[EMAIL PROTECTED]>
-Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev
+Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libgif-dev | 
libungif4-dev, libtiff4-dev | libtiff-dev, xaw3dg-dev, libpng12-dev, 
libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), quilt (>= 0.42-1), 
debhelper (>= 4), libxaw7-dev, sharutils, imagemagick, libgtk2.0-dev, 
libasound2-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
 Standards-Version: 3.7.2
 
 Package: emacs
--8<---------------cut here---------------end--------------->8---

A test build in pbuilder gave the desired results: emacs22 and
emacs22-gtk depend on libasound2, emacs22-nox does not.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to