cdr_mysql, res_config_mysql and app_mysql modules are now included in asterisk 1.8, There is no asterisk-addons-1.8. However, this modules is not compiling while emerge. configure --with-mysqlclient don't enable this modules.. Reproducible: Always Steps to Reproduce: 1. USE="mysql" emerge net-misc/asterisk 2. # ls /usr/lib/asterisk/modules | grep -c mysql 0 Actual Results: asterisk don't have app_mysql.so and cdr_mysql.so
to enable the modules: menuselect/menuselect --enable app_mysql menuselect.makeopts menuselect/menuselect --enable cdr_mysql menuselect.makeopts menuselect/menuselect --enable res_config_mysql menuselect.makeopts
Created attachment 256765 [details] ebuild for asterisk 1.8.1 ebuild for asterisk 1.8.1 which enables cdr_mysql, res_config_mysql and app_mysql modules when USE=mysql.
I'm sorry to have taken so long to provide you with feedback. Please submit your changes as a unified diff and not as a complete ebuild; this makes it easier to review. You seem to be making configuration changes in src_compile; as the name suggests this is strictly for compilation only. Your changes should be in src_configure instead. Note how everything else uses the use_with construct; are you sure your changes can not be applied this way? Please supply any diffs against 1.8.1.1 which will be in the portage tree shortly.
> You seem to be making configuration changes in src_compile; as the name > suggests this is strictly for compilation only. Your changes should be in > src_configure instead. Note how everything else uses the use_with construct; > are you sure your changes can not be applied this way? You're right, changes should be in src_configure. I put menuselect in src_compile because my first attempt in src_configure was unsuccessful. > Please supply any diffs against 1.8.1.1 which will be in the portage tree > shortly. > ok, I'll wait
Created attachment 258459 [details, diff] unified diff "make menuselect.makeopts" build menuselect binary
Created attachment 258545 [details] menuselect.patch This is what I plan to commit as Asterisk 1.8.1.1; you will see your changes among two other changesets. I added comments & removed the unnecessary cd "${S}" (in this ebuild stage, you will start out in ${S} and none of the commands change that location). Please let me know if you see any problems with these changes.
No problems, all good. thanks
+*asterisk-1.8.1.1-r1 (04 Jan 2011) + + 04 Jan 2011; Tony Vroon <chainsaw@gentoo.org> -asterisk-1.8.0.ebuild, + -asterisk-1.8.1.1.ebuild, +asterisk-1.8.1.1-r1.ebuild: + As pointed out by Ivan L. Isaev in bug #344533, MySQL was not fully enabled. + Together with Michael Lesniewski I have redone all conditional statements + through menuselect instead of through use_with. Pre-creating directories in + the installation image allows parallel install with MAKEOPTS above -j1, + closes bug #350339 by rad0xicated@gmail.com. Kill USE=logrotate which snuck + back in. Kill USE=keepsrc as I do not believe it is used. Petition me through + a bug report if you disagree and present a clear use case. Nuke older 1.8 + branch ebuilds, they are useless now because of a gtalk protocol change.