[Pkg-voip-commits] r1652 - in asterisk/trunk/debian: . patches

Kilian Krause kilian at costa.debian.org
Sun Apr 30 15:01:12 UTC 2006


Author: kilian
Date: 2006-04-30 15:01:10 +0000 (Sun, 30 Apr 2006)
New Revision: 1652

Removed:
   asterisk/trunk/debian/patches/100_nonroot.dpatch
   asterisk/trunk/debian/patches/20_Makefile.dpatch
   asterisk/trunk/debian/patches/25_subdirs_Makefiles.dpatch
   asterisk/trunk/debian/patches/correct_pid_display.dpatch
Modified:
   asterisk/trunk/debian/changelog
   asterisk/trunk/debian/patches/00list
   asterisk/trunk/debian/patches/30_ast-data-dir.dpatch
   asterisk/trunk/debian/patches/40_initgroups.dpatch
   asterisk/trunk/debian/patches/arm.dpatch
   asterisk/trunk/debian/patches/chanzap_disable_r2.dpatch
   asterisk/trunk/debian/patches/nomarch.dpatch
   asterisk/trunk/debian/patches/nooptimize.dpatch
   asterisk/trunk/debian/patches/option_detach.dpatch
   asterisk/trunk/debian/patches/zap_restart.dpatch
   asterisk/trunk/debian/rules
Log:
update patch comments regarding what's merged upstream and remove those patches which no longer get used anyway


Modified: asterisk/trunk/debian/changelog
===================================================================
--- asterisk/trunk/debian/changelog	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/changelog	2006-04-30 15:01:10 UTC (rev 1652)
@@ -1,8 +1,15 @@
 asterisk (1:1.2.7.1.dfsg-3) UNRELEASED; urgency=low
 
+  [ Mark Purcell ]
   * NOT RELEASED YET
 
- -- Mark Purcell <msp at debian.org>  Sun, 23 Apr 2006 15:47:42 +0100
+  [ Kilian Krause ]
+  * Remove unused correct_pid.dpatch (has apparently been fixed with 1.2
+    upstream)
+  * debian/patches/100_nonroot.dpatch, debian/patches/20_Makefile.dpatch,
+    debian/patches/25_subdirs_Makefiles.dpatch: Remove unused patches
+  * 
+ -- Kilian Krause <kilian at debian.org>  Sun, 30 Apr 2006 16:38:40 +0200
 
 asterisk (1:1.2.7.1.dfsg-2) unstable; urgency=high
 

Modified: asterisk/trunk/debian/patches/00list
===================================================================
--- asterisk/trunk/debian/patches/00list	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/00list	2006-04-30 15:01:10 UTC (rev 1652)
@@ -11,6 +11,5 @@
 nooptimize
 chanzap_disable_r2.dpatch
 arm
-correct_pid_display
 zap_restart
 backport_playdtmf

Deleted: asterisk/trunk/debian/patches/100_nonroot.dpatch
===================================================================
--- asterisk/trunk/debian/patches/100_nonroot.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/100_nonroot.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -1,42 +0,0 @@
-#! /bin/sh -e
-## nonroot.dpatch by Mark Purcell <msp at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Patch asterisk to run as non root (only required for VoFR)
-
-if [ $# -lt 1 ]; then
-    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-    exit 1
-fi
-
-[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
-patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
-
-case "$1" in
-    -patch) patch -p1 ${patch_opts} < $0;;
-    -unpatch) patch -R -p1 ${patch_opts} < $0;;
-    *)
-        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-        exit 1;;
-esac
-
-exit 0
-
- at DPATCH@
-
---- asterisk-0.9.1+1.0RC2.orig/asterisk.c
-+++ asterisk-0.9.1+1.0RC2/asterisk.c
-@@ -1520,13 +1522,6 @@
- 	tdd_init();
- 	if (getenv("HOME")) 
- 		snprintf(filename, sizeof(filename), "%s/.asterisk_history", getenv("HOME"));
--	/* Check if we're root */
--	/*
--	if (geteuid()) {
--		ast_log(LOG_ERROR, "Must be run as root\n");
--		exit(1);
--	}
--	*/
- 	/* Check for options */
- 	while((c=getopt(argc, argv, "hfdvqprRgcinx:C:")) != -1) {
- 		switch(c) {

Deleted: asterisk/trunk/debian/patches/20_Makefile.dpatch
===================================================================
--- asterisk/trunk/debian/patches/20_Makefile.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/20_Makefile.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -1,105 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## Makefile.dpatch by Jose Carlos Garcia Sogo <jsogo at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Patch Makefile to build under Debian GNU/Linux
-
- at DPATCH@
-diff -urNad --exclude=CVS --exclude=.svn ./contrib/scripts/autosupport /tmp/dpep-work.Bh75kd/asterisk-1.0.9.dfsg/contrib/scripts/autosupport
---- ./contrib/scripts/autosupport	2005-03-11 17:15:22.000000000 +0000
-+++ /tmp/dpep-work.Bh75kd/asterisk-1.0.9.dfsg/contrib/scripts/autosupport	2005-08-09 21:56:26.000000000 +0100
-@@ -1,3 +1,4 @@
-+#!/bin/bash
- #
- # Collect support information
- #
-@@ -8,7 +9,6 @@
- # Distributed under the terms of the GNU General Public
- # License
- #
--#!/bin/bash
- 
- OUTPUT=$HOME/digiuminfo
- 
-diff -urNad --exclude=CVS --exclude=.svn ./Makefile /tmp/dpep-work.Bh75kd/asterisk-1.0.9.dfsg/Makefile
---- ./Makefile	2005-08-09 21:56:06.000000000 +0100
-+++ /tmp/dpep-work.Bh75kd/asterisk-1.0.9.dfsg/Makefile	2005-08-09 21:56:07.000000000 +0100
-@@ -18,42 +18,6 @@
- 
- OSARCH=$(shell uname -s)
- 
--ifeq (${OSARCH},Linux)
--PROC=$(shell uname -m)
--ifeq ($(PROC),x86_64)
--# You must have GCC 3.4 to use k8, otherwise use athlon
--PROC=k8
--#PROC=athlon
--OPTIONS+=-m64
--endif
--ifeq ($(PROC),sparc64)
--#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
--#This works for even old (2.96) versions of gcc and provides a small boost either way.
--#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it.
--#So we go lowest common available by gcc and go a step down, still a step up from
--#the default as we now have a better instruction set to work with. - Belgarath
--PROC=ultrasparc
--OPTIONS+=$(shell if $(CC) -mtune=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mtune=$(PROC)"; fi)
--OPTIONS+=$(shell if $(CC) -mcpu=v8 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mcpu=v8"; fi)
--OPTIONS+=-fomit-frame-pointer
--endif
--
--MPG123TARG=linux
--endif
--
--ifeq ($(findstring BSD,${OSARCH}),BSD)
--PROC=$(shell uname -m)
--endif
--
--# Pentium Pro Optimize
--#PROC=i686
--
--# Pentium & VIA processors optimize
--#PROC=i586
--
--#PROC=k6
--#PROC=ppc
--
- PWD=$(shell pwd)
- 
- ######### More GSM codec optimization
-@@ -63,7 +27,7 @@
- #K6OPT  = -DK6OPT
- 
- #Tell gcc to optimize the asterisk's code
--OPTIMIZE+=-O6
-+OPTIMIZE+=-O2
- 
- #Include debug symbols in the executables (-g) and profiling info (-pg)
- DEBUG=-g #-pg
-@@ -134,7 +98,7 @@
- CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
- endif
- 
--CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
-+CFLAGS+=$(shell if uname -m | grep -q "ppc\|arm\|s390\|s390x"; then echo "-fsigned-char"; fi)
- CFLAGS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "-DOSP_SUPPORT -I/usr/include/osp" ; fi)
- 
- ifeq (${OSARCH},FreeBSD)
-@@ -162,7 +126,7 @@
- CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
- CFLAGS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi)
- 
--LIBEDIT=editline/libedit.a
-+LIBEDIT=-Leditline -ledit
- 
- ASTERISKVERSION=$(shell if [ -f .version ]; then cat .version; else if [ -d CVS ]; then if [ -f CVS/Tag ] ; then echo "CVS-`sed 's/^T//g' CVS/Tag`-`date +"%D-%T"`"; else echo "CVS-HEAD-`date +"%D-%T"`"; fi; fi; fi)
- HTTPDIR=$(shell if [ -d /var/www ]; then echo "/var/www"; else echo "/home/httpd"; fi)
-@@ -548,7 +512,7 @@
- 	fi 
- 
- dont-optimize:
--	$(MAKE) OPTIMIZE= K6OPT= install
-+	$(MAKE) OPTFLAGS= install
- 
- valgrind: dont-optimize
- 

Deleted: asterisk/trunk/debian/patches/25_subdirs_Makefiles.dpatch
===================================================================
--- asterisk/trunk/debian/patches/25_subdirs_Makefiles.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/25_subdirs_Makefiles.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -1,40 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## apps_Makefile.dpatch by Jose Carlos Garcia Sogo <jsogo at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Cleanup other subdirs Makefiles
-
- at DPATCH@
-diff -urNad asterisk-1.0.3/apps/Makefile /tmp/dpep.FJ3Q8L/asterisk-1.0.3/apps/Makefile
---- asterisk-1.0.3/apps/Makefile	2005-01-15 18:28:29.000000000 +0100
-+++ /tmp/dpep.FJ3Q8L/asterisk-1.0.3/apps/Makefile	2005-01-15 18:28:29.000000000 +0100
-@@ -90,7 +90,7 @@
- 	$(CC) $(SOLINK) -o $@ $< -lodbc
- 
- look:	look.c
--	$(CC) -pipe -O6 -g look.c -o look -lncurses
-+	$(CC) -pipe -g look.c -o look -lncurses
- 
- ifneq ($(wildcard .depend),)
- include .depend
-diff -urNad asterisk-1.0.3/codecs/lpc10/Makefile /tmp/dpep.FJ3Q8L/asterisk-1.0.3/codecs/lpc10/Makefile
---- asterisk-1.0.3/codecs/lpc10/Makefile	2005-01-15 18:28:29.000000000 +0100
-+++ /tmp/dpep.FJ3Q8L/asterisk-1.0.3/codecs/lpc10/Makefile	2005-01-15 18:28:29.000000000 +0100
-@@ -39,7 +39,7 @@
- ifeq ($(PROC),ultrasparc)
-         CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer
- else
--        CFLAGS+= -march=$(PROC)
-+	CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
- endif
- endif
- endif
-@@ -47,7 +47,7 @@
- endif
- endif
- 
--LIB = $(LIB_TARGET_DIR)/liblpc10.a
-+LIB = ./liblpc10.a
- 
- .PHONY: all clean
- 

Modified: asterisk/trunk/debian/patches/30_ast-data-dir.dpatch
===================================================================
--- asterisk/trunk/debian/patches/30_ast-data-dir.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/30_ast-data-dir.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -5,6 +5,7 @@
 ## DP: Patch to make Asterisk conform with the Linux File System Hierarchy Standard (FHS)
 ## DP: Places read-only architecture-independent data under /usr/share/asterisk (autoconf --datadir)
 ## DP: not /var/lib/asterisk
+## -- is applied upstream for 1.2
 
 @DPATCH@
 diff -urNad asterisk-1.2.1.dfsg~/asterisk.c asterisk-1.2.1.dfsg/asterisk.c

Modified: asterisk/trunk/debian/patches/40_initgroups.dpatch
===================================================================
--- asterisk/trunk/debian/patches/40_initgroups.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/40_initgroups.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -3,6 +3,7 @@
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: does initialize groups of asterisk user if no -G is given.
+## -- applied upstream for 1.2
 
 @DPATCH@
 diff -urN asterisk-1.0.5.orig/asterisk.c asterisk-1.0.5/asterisk.c

Modified: asterisk/trunk/debian/patches/arm.dpatch
===================================================================
--- asterisk/trunk/debian/patches/arm.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/arm.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -3,6 +3,7 @@
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: No description.
+## -- applied upstream in 1.2 branch
 
 @DPATCH@
 diff -urNad asterisk-1.2.1.dfsg~/Makefile asterisk-1.2.1.dfsg/Makefile

Modified: asterisk/trunk/debian/patches/chanzap_disable_r2.dpatch
===================================================================
--- asterisk/trunk/debian/patches/chanzap_disable_r2.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/chanzap_disable_r2.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -3,6 +3,7 @@
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: disable the nunfunctional support for R2 in chan_zap
+## -- applied upstream for trunk (1.4.x)
 
 @DPATCH@
 diff -urNad asterisk-1.2.0.dfsg/channels/Makefile /tmp/dpep.54ZD6D/asterisk-1.2.0.dfsg/channels/Makefile

Deleted: asterisk/trunk/debian/patches/correct_pid_display.dpatch
===================================================================
--- asterisk/trunk/debian/patches/correct_pid_display.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/correct_pid_display.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -1,23 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## correct_ps_display.dpatch by Kilian Krause <kilian at debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Display the correct pid in the asterisk console. Closes: 338646
- at DPATCH@
-diff -Naur asterisk-1.2.1.dfsg.1/asterisk.c asterisk-1.2.1.dfsg.1.patched/asterisk.c
---- asterisk-1.2.1.dfsg.1/asterisk.c	2005-11-16 13:36:55.308985128 -0600
-+++ asterisk-1.2.1.dfsg.1.patched/asterisk.c	2005-11-16 13:37:10.426686888 -0600
-@@ -2170,11 +2170,12 @@
- 
- 	if (!option_verbose && !option_debug && !option_nofork && !option_console) {
- 		daemon(0,0);
-+		ast_mainpid = getpid();
- 		/* Blindly re-write pid file since we are forking */
- 		unlink((char *)ast_config_AST_PID);
- 		f = fopen((char *)ast_config_AST_PID, "w");
- 		if (f) {
--			fprintf(f, "%d\n", (int)getpid());
-+			fprintf(f, "%d\n", ast_mainpid);
- 			fclose(f);
- 		} else
- 			ast_log(LOG_WARNING, "Unable to open pid file '%s': %s\n", (char *)ast_config_AST_PID, strerror(errno));

Modified: asterisk/trunk/debian/patches/nomarch.dpatch
===================================================================
--- asterisk/trunk/debian/patches/nomarch.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/nomarch.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -3,6 +3,7 @@
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: Don't optimize for i686 anywhere
+## -- upstream will move to configure with 1.4
 
 @DPATCH@
 diff -urNad asterisk-1.2.0.dfsg~/Makefile asterisk-1.2.0.dfsg/Makefile

Modified: asterisk/trunk/debian/patches/nooptimize.dpatch
===================================================================
--- asterisk/trunk/debian/patches/nooptimize.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/nooptimize.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -2,7 +2,8 @@
 ## nooptimize.dpatch by Kilian Krause <kilian at debian.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
+## DP: Make sure we respect Debian Policy and only compile -O2
+## -- fixed upstream in 1.2 branch
 
 @DPATCH@
 diff -urNad asterisk-1.2.0.dfsg~/Makefile asterisk-1.2.0.dfsg/Makefile

Modified: asterisk/trunk/debian/patches/option_detach.dpatch
===================================================================
--- asterisk/trunk/debian/patches/option_detach.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/option_detach.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -3,6 +3,8 @@
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: when running asterisk -D: detach, even if -v or -d was given
+## -- applied upstream as -F option to *force* forking
+## -- in trunk (will be 1.4.x)
 
 @DPATCH@
 diff -urNad asterisk/asterisk.c /tmp/dpep.ahsnFR/asterisk/asterisk.c

Modified: asterisk/trunk/debian/patches/zap_restart.dpatch
===================================================================
--- asterisk/trunk/debian/patches/zap_restart.dpatch	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/patches/zap_restart.dpatch	2006-04-30 15:01:10 UTC (rev 1652)
@@ -5,6 +5,7 @@
 ## DP: Adds a CLI command "zap restart" that destroys all zaptel channels and
 ## DP: re-loads zaptel configuration from scratch. 
 ## DP: Thus we have a "reload" for zaptel
+## -- applied upstream in trunk (1.4.x)
 
 @DPATCH@
 --- asterisk-1.2.6/channels/chan_zap.c	2006-04-09 02:40:48.000000000 +0300

Modified: asterisk/trunk/debian/rules
===================================================================
--- asterisk/trunk/debian/rules	2006-04-30 12:15:32 UTC (rev 1651)
+++ asterisk/trunk/debian/rules	2006-04-30 15:01:10 UTC (rev 1652)
@@ -19,14 +19,8 @@
 
 export PROC := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
-OPTFLAGS= -O2
+MAKEFLAGS = OPTIMIZE=-O2
 
-ifeq ($(DEB_HOST_ARCH),amd64)
-OPTFLAGS+= -m64
-endif
-
-export OPTFLAGS
-
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -g
 endif
@@ -45,7 +39,7 @@
 
 FILENAME := asterisk_$(UPVERSION).dfsg.orig.tar.gz
 UPFILENAME := asterisk_$(UPVERSION).orig.tar.gz
-URL := http://ftp2.digium.com/pub/asterisk/asterisk-$(UPVERSION).tar.gz
+URL := http://ftp2.digium.com/pub/asterisk/releases/asterisk-$(UPVERSION).tar.gz
 
 
 check-sounds:
@@ -96,9 +90,9 @@
 	dh_testdir
 
 	# Add here command to compile/build the package.
-	$(MAKE)
-	$(MAKE) -C channels/h323 opt
-	$(MAKE) -C $(BRISTUFF_DIR)
+	$(MAKE) $(MAKEFLAGS)
+	$(MAKE) $(MAKEFLAGS) -C channels/h323 opt
+	$(MAKE) $(MAKEFLAGS) -C $(BRISTUFF_DIR)
 
 	touch $@
 




More information about the Pkg-voip-commits mailing list