robyf
(Roberto Fichera)
September 23, 2020, 8:06pm
1
Hi,
I’m following the instruction at Applying+patches+to+Asterisk+in+distro+SNG7 (sorry cannot post links yet) which was working up to v16.9 or 16.10, but today traying to rebuild v16.13 it seems to not work anymore.
Any idea how solve it?
[root@tse0021 asterisk-srpm]# ll
total 54280
-rw-r–r-- 1 root root 27735450 Sep 23 20:00 asterisk-16.13.0.tar.gz
-rw-r–r-- 1 root root 27758916 Sep 10 03:57 asterisk16-16.13.0-1.sng7.src.rpm
-rw-r–r-- 1 root root 42140 Sep 23 20:00 asterisk16.spec
-rw-r–r-- 1 root root 606 Sep 23 20:00 asterisk.logrotate
-rw-r–r-- 1 root root 10716 Sep 23 20:00 lazymembers-17.6.0.patch
-rw-r–r-- 1 root root 552 Jan 14 2019 Makefile
-rw-r–r-- 1 root root 1362 Sep 23 20:00 voicemail-splitopts-imapstorage.patch
-rw-r–r-- 1 root root 1298 Sep 23 20:00 voicemail-splitopts-odbcstorage.patch
-rw-r–r-- 1 root root 2669 Sep 23 20:00 voicemail-splitopts.patch
[root@tse0021 asterisk-srpm]# make
make: *** No rule to make target results/%{pkg_name}-16.13.0-1.sng7.src.rpm', needed by
results/%{pkg_name}-16.13.0-1.sng7.x86_64.rpm’. Stop.
dwsiemens
(Dan S)
September 24, 2020, 2:02pm
2
Is the path right for the file. The error suggests hat the results/ path needs to be there Its like the make file has a path that isn’t on the file system.
dicko
(dicko)
September 24, 2020, 8:52pm
3
did you ./configure before make’ing ?
robyf
(Roberto Fichera)
September 24, 2020, 8:59pm
4
If you look at the url wiki. freepbx. org/display/PPS/Applying+patches+to+Asterisk+in+distro+SNG7 FreePBX comes with a mock system to rebuild asterisk. I’m following this process which was working up to v16.9.0 for sure since I’ve used it multiple times
dicko
(dicko)
September 24, 2020, 9:37pm
5
you will need a usable Makefile in the directory you are trying to ‘make’ in
robyf
(Roberto Fichera)
September 25, 2020, 7:59am
6
If you have read the “link” I’ve posted above the Makefile is provided by Sangoma
robyf
(Roberto Fichera)
September 25, 2020, 8:39am
7
I’ve just found the solution, after following the instruction at the above like and before make
make sure that your asterisk16.spec
contains
%define astapi 16
#%%define docdir /usr/share/doc/asterisk
%define logdir /var/log
Summary: Asterisk, The Open Source PBX
#Name: %{pkg_name}
Name: asterisk16
And then the build process goes as usual.
1 Like
system
(system)
Closed
October 26, 2020, 8:39am
8
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.