Package: alsa-lib
Version: 1.0.25-4
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch



In Ubuntu, the attached patch was applied to achieve the following:

  * sys_types_include.patch: Explicitly include <sys/types.h> (LP: #1109298)

A little background: in glibc 2.17, fcntl.h stopped depending on
sys/types.h, but some software was using types from types.h while
only transitively pulling it in via fcntl.h, alsa is one such piece
of software.  This fixes it to explicitly include the header (as
it always should have done, since it references it directly), and
should probably also be pushed upstream, if it isn't already there.

... Adam

-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-5-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru alsa-lib-1.0.25/debian/changelog alsa-lib-1.0.25/debian/changelog
diff -Nru alsa-lib-1.0.25/debian/control alsa-lib-1.0.25/debian/control
--- alsa-lib-1.0.25/debian/control	2012-12-01 06:00:41.000000000 -0700
+++ alsa-lib-1.0.25/debian/control	2013-02-10 02:26:21.000000000 -0700
@@ -1,8 +1,7 @@
 Source: alsa-lib
 Section: libs
 Priority: optional
-Maintainer: Ubuntu Developers <[email protected]>
-XSBC-Original-Maintainer: Debian ALSA Maintainers <[email protected]>
+Maintainer: Debian ALSA Maintainers <[email protected]>
 Uploaders: Jordi Mallach <[email protected]>,
            Elimar Riesebieter <[email protected]>
 Build-Depends: autotools-dev,
diff -Nru alsa-lib-1.0.25/debian/patches/series alsa-lib-1.0.25/debian/patches/series
--- alsa-lib-1.0.25/debian/patches/series	2012-12-01 06:00:41.000000000 -0700
+++ alsa-lib-1.0.25/debian/patches/series	2013-02-09 20:07:46.000000000 -0700
@@ -7,3 +7,4 @@
 0001-USB-Audio-Blacklist-iec958-for-some-USB-devices.patch
 fix-broken-cross-compiler-detection.patch
 htcl_remove_useless_assert.patch
+sys_types_include.patch
diff -Nru alsa-lib-1.0.25/debian/patches/sys_types_include.patch alsa-lib-1.0.25/debian/patches/sys_types_include.patch
--- alsa-lib-1.0.25/debian/patches/sys_types_include.patch	1969-12-31 17:00:00.000000000 -0700
+++ alsa-lib-1.0.25/debian/patches/sys_types_include.patch	2013-02-09 20:09:52.000000000 -0700
@@ -0,0 +1,15 @@
+Description: Explicitly include <sys/types.h>
+Author: Adam Conrad <[email protected]>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1109298
+Forwarded: no
+
+--- alsa-lib-1.0.25.orig/include/asoundlib.h
++++ alsa-lib-1.0.25/include/asoundlib.h
+@@ -31,6 +31,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/types.h>
+ #include <string.h>
+ #include <fcntl.h>
+ #include <assert.h>

Reply via email to