@@ -910,7 +910,7 @@ install_prereq() {
910910 # wget should already be installed at this point, so it's not included here
911911 PREREQ_PACKAGES=" "
912912 RHEL_MAJOR_VERSION_8=0
913- printf " Installing prerequisites for %s..." " $OS_DIST_INFO "
913+ printf " Installing prerequisites for %s...\n " " $OS_DIST_INFO "
914914 # Even if we are just installing DAHDI (without Asterisk), $CHAN_DAHDI should be set to 1 at this point.
915915 # libnewt-dev is needed for newt, which dahdi_tool requires. If it's not available, it won't get built.
916916 # dwarves is needed for pahole, which DAHDI Linux install needs for BTF generation
@@ -1879,6 +1879,8 @@ install_dahdi() {
18791879 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/66.diff" # PR 66: Add braces around empty if body
18801880 git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/69.diff" # PR 69: DEFINE_SEMAPHORE for RHEL
18811881
1882+ git_custom_patch " https://raw.githubusercontent.com/InterLinked1/phreakscript/kernel-next/patches/vpmadt032.diff"
1883+
18821884 KERN_VER_MM=$( uname -r | cut -d. -f1-2 )
18831885 OS_DIST_2=$( printf " $OS_DIST_INFO " | cut -d' ' -f1-2)
18841886 if [ " $KERN_VER_MM " = " 4.18" ] && [ " $OS_DIST_2 " = " Rocky Linux" ]; then
@@ -1946,6 +1948,10 @@ install_dahdi() {
19461948 # if KSRC/KVERS env vars are set, they will automatically propagate to children
19471949 $AST_MAKE -j$( nproc) $DAHDI_CFLAGS
19481950 if [ $? -ne 0 ]; then
1951+ if [ " $KSRC " != " " ]; then
1952+ # With debug, and not parallelized
1953+ $AST_MAKE -n $DAHDI_CFLAGS
1954+ fi
19491955 die " DAHDI Linux compilation failed, aborting install"
19501956 fi
19511957 $AST_MAKE install $DAHDI_CFLAGS
0 commit comments