Rebuilding asterisk16 doesn't work


(Roberto Fichera) #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 byresults/%{pkg_name}-16.13.0-1.sng7.x86_64.rpm’. Stop.


(Dan S) #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.


#3

did you ./configure before make’ing ?


(Roberto Fichera) #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


#5

you will need a usable Makefile in the directory you are trying to ‘make’ in


(Roberto Fichera) #6

If you have read the “link” I’ve posted above the Makefile is provided by Sangoma


(Roberto Fichera) #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.


(system) closed #8

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.