This bug has been around for awhile and I think it is still present in 5.8.8. It would be nice to get it fixed for the move to 5.10.1. I created a patch from information gathered from other bug reports and it does get past the sandbox violation but then generates a bunch of QA notices. I can not test if it really works as expected but it does install fine. Reproducible: Always
Created attachment 207146 [details] emerge --info
Created attachment 207148 [details, diff] sandbox.patch
Created attachment 207149 [details] build.log
Created attachment 207150 [details] eclass-debug
Created attachment 207152 [details] sandbox.log
Created attachment 207154 [details] environment
Created attachment 207157 [details] OA-errors
Created attachment 207861 [details, diff] Fixes the problem for me Backport of upstream revisions 789978 and 801099. Works for me. Please confirm if it works for you.
*** Bug 230991 has been marked as a duplicate of this bug. ***
Comment on attachment 207148 [details, diff] sandbox.patch The reason dabbot's patch isn't correct is that in some cases it will work (for those who encounter this bug), but in all other cases, it will install into ${D}/usr/share/spamassassin and ${D}/etc INSIDE $D. This is a bug with how spamassassin (ab)uses makemaker.
Created attachment 207863 [details, diff] ebuild.patch Peter very nice, works fine here. I renamed the patch 3.2.5-DESTDIR.patch
Created attachment 207865 [details, diff] ebuild.patch Forgot the ""
Created attachment 207866 [details, diff] ebuild.patch
Just add: PATCHES=( "${FILESDIR}/${PN}-3.2.5-DESTDIR.patch" ) Just before src_compile. That should take care of it. (perl-modules uses autopatch from base.eclass)
Created attachment 207869 [details, diff] spamassassin-3.2.5.ebuild.patch Thank you Peter for taking the time to teach :) Used your patch as is, I did not rename it this time.
Created attachment 208215 [details] updated ebuild with correct doc files
Created attachment 208217 [details] removed src_prepare tested on 5.8.8 and 5.10.1
Created attachment 208218 [details] spamassassin-3.2.5-r1.ebuild removed the quotes from EAPI
+*spamassassin-3.2.5-r1 (27 Oct 2009) + + 27 Oct 2009; Peter Alfredsen <loki_val@gentoo.org> + +spamassassin-3.2.5-r1.ebuild, +files/spamassassin-3.2.5-DESTDIR.patch: + Fix bug 289113. Thanks to David Abbott for ebuild fixups. +
*** Bug 300699 has been marked as a duplicate of this bug. ***