tag 667144 patch
thanks

Matthias Klose <d...@debian.org> (03/04/2012):
> Package: crtmpserver
> Version: 1.0~dfsg-2
> Severity: important
> Tags: sid wheezy
> User: debian-...@lists.debian.org
> Usertags: ftbfs-gcc-4.7

Here's a patch to fix this FTBFS. No intent to NMU.

Mraw,
KiBi.
diff -Nru crtmpserver-1.0~dfsg/debian/changelog crtmpserver-1.0~dfsg/debian/changelog
--- crtmpserver-1.0~dfsg/debian/changelog	2012-03-23 02:29:07.000000000 +0000
+++ crtmpserver-1.0~dfsg/debian/changelog	2012-04-05 00:37:11.000000000 +0000
@@ -1,3 +1,11 @@
+crtmpserver (1.0~dfsg-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> includes
+    (Closes: #667144).
+
+ -- Cyril Brulebois <k...@debian.org>  Thu, 05 Apr 2012 00:36:52 +0000
+
 crtmpserver (1.0~dfsg-2) unstable; urgency=low
 
   * Enable hardened CPPFLAGS. (Closes: #665323)
diff -Nru crtmpserver-1.0~dfsg/debian/patches/20_fix_ftbfs_with_gcc_4.7.patch crtmpserver-1.0~dfsg/debian/patches/20_fix_ftbfs_with_gcc_4.7.patch
--- crtmpserver-1.0~dfsg/debian/patches/20_fix_ftbfs_with_gcc_4.7.patch	1970-01-01 00:00:00.000000000 +0000
+++ crtmpserver-1.0~dfsg/debian/patches/20_fix_ftbfs_with_gcc_4.7.patch	2012-04-05 00:35:52.000000000 +0000
@@ -0,0 +1,89 @@
+--- a/common/src/platform/linux/linuxplatform.cpp
++++ b/common/src/platform/linux/linuxplatform.cpp
+@@ -19,6 +19,8 @@
+ 
+ #ifdef LINUX
+ 
++#include <unistd.h>
++
+ #include "platform/linux/linuxplatform.h"
+ #include "common.h"
+ 
+--- a/common/src/utils/buffering/iobuffer.cpp
++++ b/common/src/utils/buffering/iobuffer.cpp
+@@ -17,6 +17,7 @@
+  *  along with crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#include <unistd.h>
+ 
+ #include "utils/buffering/iobuffer.h"
+ #include "utils/logging/logging.h"
+--- a/common/src/utils/logging/fileloglocation.cpp
++++ b/common/src/utils/logging/fileloglocation.cpp
+@@ -17,6 +17,7 @@
+  *  along with crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#include <unistd.h>
+ 
+ #include "utils/logging/fileloglocation.h"
+ #include "utils/lua/luautils.h"
+--- a/common/src/utils/misc/mmapfile.cpp
++++ b/common/src/utils/misc/mmapfile.cpp
+@@ -17,6 +17,8 @@
+  *  along with crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#include <unistd.h>
++
+ #include "utils/misc/mmapfile.h"
+ #include "utils/logging/logging.h"
+ 
+--- a/thelib/include/netio/epoll/tcpconnector.h
++++ b/thelib/include/netio/epoll/tcpconnector.h
+@@ -21,6 +21,8 @@
+ #ifndef _TCPCONNECTOR_H
+ #define	_TCPCONNECTOR_H
+ 
++#include <unistd.h>
++
+ #include "netio/epoll/iohandler.h"
+ #include "protocols/baseprotocol.h"
+ #include "netio/epoll/iohandlermanager.h"
+--- a/thelib/src/netio/epoll/iohandlermanager.cpp
++++ b/thelib/src/netio/epoll/iohandlermanager.cpp
+@@ -18,6 +18,9 @@
+  */
+ 
+ #ifdef NET_EPOLL
++
++#include <unistd.h>
++
+ #include "netio/epoll/iohandlermanager.h"
+ #include "netio/epoll/iohandler.h"
+ 
+--- a/thelib/src/netio/epoll/tcpcarrier.cpp
++++ b/thelib/src/netio/epoll/tcpcarrier.cpp
+@@ -19,6 +19,9 @@
+ 
+ 
+ #ifdef NET_EPOLL
++
++#include <unistd.h>
++
+ #include "netio/epoll/tcpcarrier.h"
+ #include "netio/epoll/iohandlermanager.h"
+ #include "protocols/baseprotocol.h"
+--- a/thelib/src/netio/epoll/udpcarrier.cpp
++++ b/thelib/src/netio/epoll/udpcarrier.cpp
+@@ -19,6 +19,9 @@
+ 
+ 
+ #ifdef NET_EPOLL
++
++#include <unistd.h>
++
+ #include "netio/epoll/udpcarrier.h"
+ #include "netio/epoll/iohandlermanager.h"
+ #include "protocols/baseprotocol.h"
diff -Nru crtmpserver-1.0~dfsg/debian/patches/series crtmpserver-1.0~dfsg/debian/patches/series
--- crtmpserver-1.0~dfsg/debian/patches/series	2012-03-23 02:08:42.000000000 +0000
+++ crtmpserver-1.0~dfsg/debian/patches/series	2012-04-05 00:30:26.000000000 +0000
@@ -4,3 +4,4 @@
 15_use_system_lua.diff
 16_add_header_install.diff
 18_enable_cmake_find_default_paths.diff
+20_fix_ftbfs_with_gcc_4.7.patch

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to