As per summary, here comes a patch to allow logrotate to be built on FreeBSD. The basic difference is that on FreeBSD alloca() is in stdlib.h so you don't need the alloca.h inclusion (no alloca.h on FreeBSD). The RPM_OPT_CFLAGS change is just so that the CFLAGS can be changed in src_compile rather than sedded in before, and -g is not always used so that no extra debug symbols are built when they won't be used. Thanks, Diego
Created attachment 96815 [details, diff] Ebuild patch
Created attachment 96816 [details, diff] logrotate-3.7.1-fbsd.patch
Fixed in 3.7.2.