[Pkg-voip-commits] [asterisk] 01/02: hurd_osarch.patch: set osarch to support HURD

tzafrir at debian.org tzafrir at debian.org
Wed Mar 30 13:12:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository asterisk.

commit 3fdfaf2b930820d0fa3c37194f742cca4ae7f2b6
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Wed Mar 30 15:40:40 2016 +0300

    hurd_osarch.patch: set osarch to support HURD
---
 debian/patches/hurd_osarch.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/hurd_osarch.patch b/debian/patches/hurd_osarch.patch
new file mode 100644
index 0000000..9ada32e
--- /dev/null
+++ b/debian/patches/hurd_osarch.patch
@@ -0,0 +1,28 @@
+From: Gabriele Giacone <1o5g4r8o at gmail.com>
+Subject: Makefile, netsock: support HURD as well
+Bug-Debian: https://bugs.debian.org/784551
+
+HURD is also GNU and should be considered as such.
+
+--- a/main/netsock.c
++++ b/main/netsock.c
+@@ -33,7 +33,7 @@
+ 
+ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+ 
+-#ifndef __linux__
++#if !defined (__linux__) && !defined (__GNU__)
+ #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__) || defined(__GLIBC__)
+ #include <net/if_dl.h>
+ #endif
+--- a/Makefile
++++ b/Makefile
+@@ -819,7 +819,7 @@ install-logrotate:
+ 	rm -f contrib/scripts/asterisk.logrotate.tmp
+ 
+ config:
+-	@if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu" ]; then \
++	@if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu" -o "${OSARCH}" = "gnu" ]; then \
+ 		$(INSTALL) -d $(DESTDIR)/lib/systemd/system; \
+ 		./build_tools/install_subst -d contrib/asterisk.service $(DESTDIR)/lib/systemd/system/asterisk.service; \
+ 		if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \
diff --git a/debian/patches/series b/debian/patches/series
index 9f588bb..3b0a15c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,6 +25,7 @@ systemd.patch
 #test_framework.patch
 
 configure-osarch
+hurd_osarch.patch
 
 opus.patch
 vp8.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list