As BRIstuff was dropped with net-misc/asterisk-1.2.32 according to Changelog, here the ebuilds for asterisk and libpri using latest BRIstuff-0.3.0-PRE-1y-x. I wrote them based on net-libs/libpri-1.2.5 and net-misc/asterisk-1.2.33-r1 (copied BRIstuff lines from 1.2.31 which I luckily still had on a system). It uses modtly patches and files as 1.2.33-r1 so only attached addition to files dir is needed. I tested it with a zaphfc card and net-misc/zaptel-1.2.27-r1 without problems. It is not tested with all possible use flag combinations.
Created attachment 200986 [details] libpri/libpri-1.2.8.ebuild
Created attachment 200988 [details] asterisk/asterisk-1.2.33-r2.ebuild
Created attachment 200990 [details, diff] BRI fixup patch This patch is to be placed in files/1.2.0 directory
Thx Konstantin ;-), running fine here with 2xhfc-cards on hardened profile. I had to add "-Wno-format-security -U_FORTIFY_SOURCE" to CFLAGS, otherwise i got this error with gcc-4.3.4 while compiling asterisk: chan_zap.o: /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
Sorry to see that your report was never actioned. Perhaps it is some consolation that the faulty ebuilds have been removed from the portage tree now. Neither 1.6.2 nor 1.8 branch ebuilds are affected by BRI-related bugs as this has now been properly integrated upstream.