-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.patch
165 lines (156 loc) · 5.13 KB
/
debug.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
diff --git a/Jenkinsfile b/Jenkinsfile
index 300f0ad..0213318 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,7 +12,7 @@ pipeline {
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
throttleJobProperty(
- categories: ['asterisk'],
+ categories: ['asterisk-debug'],
throttleEnabled: true,
throttleOption: 'category'
)
@@ -35,22 +35,8 @@ pipeline {
]
}
}
- stage('Docker build') {
- steps {
- sh "docker build --no-cache -t wazoplatform/${JOB_NAME}:latest ."
- }
- }
- stage('Docker publish') {
- steps {
- sh "docker push wazoplatform/${JOB_NAME}:latest"
- }
- }
}
post {
- success {
- build wait: false, job: 'asterisk-to-asterisk-vanilla'
- build wait: false, job: 'asterisk-to-asterisk-debug'
- }
failure {
emailext to: "${MAIL_RECIPIENTS}", subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}'
}
diff --git a/debian/control b/debian/control
index 7541e44..a988a37 100644
--- a/debian/control
+++ b/debian/control
@@ -1,4 +1,4 @@
-Source: asterisk
+Source: asterisk-debug
Priority: optional
Section: comm
Maintainer: Wazo Maintainers <[email protected]>
@@ -49,8 +49,11 @@ Build-Depends:
Standards-Version: 3.9.6
Homepage: http://www.asterisk.org/
-Package: asterisk
+Package: asterisk-debug
Architecture: any
+Replaces: asterisk
+Conflicts: asterisk
+Provides: asterisk-virtual
Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, libtcmalloc-minimal4, mpg123, wazo-asterisk-config
Breaks:
wazo-res-amqp (<< 17.14~),
@@ -83,31 +86,40 @@ Description: Open Source Private Branch Exchange (PBX) - Wazo version
.
This software was heavily patched by Debian and Wazo.
-Package: asterisk-dev
+Package: asterisk-debug-dev
Architecture: all
Section: devel
+Replaces: asterisk-dev
+Conflicts: asterisk-dev
+Provides: asterisk-virtual-dev
Depends: ${misc:Depends}
-Recommends: asterisk
+Recommends: asterisk-debug
Description: Development files for Asterisk
Asterisk is an Open Source PBX and telephony toolkit.
.
This package contains the include files used if you wish to compile a
package which requires Asterisk's source file headers.
-Package: asterisk-doc
+Package: asterisk-debug-doc
Architecture: all
Section: doc
+Replaces: asterisk-doc
+Conflicts: asterisk-doc
+Provides: asterisk-virtual-doc
Depends: ${misc:Depends}
-Recommends: asterisk
+Recommends: asterisk-debug
Description: Source code documentation for Asterisk
Asterisk is an Open Source PBX and telephony toolkit.
.
This package contains the documentation for configuring an Asterisk system.
-Package: asterisk-sounds-main
+Package: asterisk-debug-sounds-main
Architecture: all
-Enhances: asterisk
+Enhances: asterisk-debug
Section: comm
+Replaces: asterisk-sounds-main
+Conflicts: asterisk-sounds-main
+Provides: asterisk-virtual-sounds-main
Depends: ${misc:Depends}
Description: Sound files for Asterisk
Asterisk is an Open Source PBX and telephony toolkit.
diff --git a/debian/rules b/debian/rules
index 6224da3..87f3a5f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,9 +11,9 @@
# The "all" option enables "PIE" and "BINDNOW" and future hardening flags
# uncomment the next line to create a "MALLOC_DEBUG" version of asterisk
-#MENUSELECT_EXTRA_ARGS := --enable MALLOC_DEBUG
+MENUSELECT_EXTRA_ARGS := --enable MALLOC_DEBUG
# uncomment the next 2 lines to create a "debug" version of asterisk
-#MENUSELECT_EXTRA_ARGS := --enable DONT_OPTIMIZE
+MENUSELECT_EXTRA_ARGS += --enable DONT_OPTIMIZE
#MENUSELECT_EXTRA_ARGS += --enable DEBUG_THREADS
# ...and the next line to be able to use the asterisk test framework
#MENUSELECT_EXTRA_ARGS += --enable TEST_FRAMEWORK
@@ -126,7 +126,13 @@ override_dh_auto_install:
$(RM) -f $(CURDIR)/debian/tmp/usr/sbin/refcounter
override_dh_strip:
- dh_strip -a --dbgsym-migration='asterisk-dbg (<< 8:20.1.0-1~wazo2.deb10)'
+ dh_strip -a --dbgsym-migration='asterisk-debug-dbg (<< 8:20.1.0-1~wazo2.deb10)'
+
+override_dh_systemd_enable:
+ dh_systemd_enable --name=asterisk
+
+override_dh_installinit:
+ dh_installinit --name=asterisk
.PHONY: get-orig-source
diff --git a/debian/source/options b/debian/source/options
index 08c063e..8c27863 100644
--- a/debian/source/options
+++ b/debian/source/options
@@ -1 +1 @@
-extend-diff-ignore = "(^|/)(\.dockerignore|AUTHORS|Dockerfile|README.md|CHANGELOG.md|LICENSE|integration_tests.*|contribs.*|zuul.yaml|tox.ini|Jenkinsfile|.lastclean)$"
+extend-diff-ignore = "(^|/)(\.dockerignore|AUTHORS|Dockerfile|README.md|CHANGELOG.md|LICENSE|integration_tests.*|contribs.*|zuul.yaml|tox.ini|Jenkinsfile|.lastclean|debug.patch)$"
diff --git a/zuul.yaml b/zuul.yaml
index 205e50c..6f7afe4 100644
--- a/zuul.yaml
+++ b/zuul.yaml
@@ -3,13 +3,13 @@
- debian-packaging-bullseye
wazo-check:
jobs:
- - asterisk-tox-integration
+ - asterisk-debug-tox-integration
wazo-gate:
jobs:
- - asterisk-tox-integration
+ - asterisk-debug-tox-integration
- job:
- name: asterisk-tox-integration
+ name: asterisk-debug-tox-integration
description: Run asterisk integration tests
parent: wazo-tox-integration-py39
vars: