Skip to content

Commit 779a5c7

Browse files
authored
DAHDI Tools: Fix truncation warning. (#59)
* dahdi_cfg: Apply slipstreamed patch to fix compiler warning. DAHTOOL-2 #close
1 parent 0ee20ab commit 779a5c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

phreaknet.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ install_dahdi() {
18861886
git_custom_patch "https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/69.diff" # PR 69: DEFINE_SEMAPHORE for RHEL
18871887

18881888
# Not yet merged
1889-
git_custom_patch "https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/32.patch" # PR 32, not yet merged
1889+
git_custom_patch "https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/32.patch" # PR 32: xpp: Fix 32-bit builds
18901890

18911891
# Fix or skip compilation of the XPP driver for 32-bit
18921892
OS_ARCH=$( uname -m )
@@ -2003,6 +2003,9 @@ install_dahdi() {
20032003
# fix static inline function get_ver (GitHub dahdi-tools #11)
20042004
phreak_fuzzy_patch "dahdi_tools_inline_get_ver.diff"
20052005

2006+
# Not yet merged
2007+
git_custom_patch "https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-tools/pull/22.diff" # PR 22 (dahdi_cfg: fix truncation warning)
2008+
20062009
# hearpulsing
20072010
if [ "$EXTRA_FEATURES" = "1" ]; then
20082011
if [ "$HEARPULSING" = "1" ]; then
@@ -2011,7 +2014,7 @@ install_dahdi() {
20112014
fi
20122015

20132016
autoreconf -i && [ -f config.status ] || ./configure --with-dahdi=../linux # https://issues.asterisk.org/jira/browse/DAHTOOL-84
2014-
./configure
2017+
./configure # Both configures are needed!
20152018
$AST_MAKE -j$(nproc) $DAHDI_CFLAGS
20162019
if [ $? -ne 0 ]; then
20172020
die "DAHDI Tools compilation failed, aborting install"

0 commit comments

Comments
 (0)