In attempting to install mcrypt on a prefixed Gentoo system, it failed due to malloc.h not being found. malloc.h is not included in OSX (and I believe other BSDs) and it should not be used (as it is not a POSIX header). Instead stdlib.h should be used. Attached is a patch to fix the package. Reproducible: Always Steps to Reproduce:
Created attachment 242191 [details, diff] Patch to correct malloc.h -> stdlib.h Added patch to fix src/rfc2440.c in mcrypt.
If work is being done here for Gentoo Prefix stuff.. then let's move libmcrypt to gx86 too :) for libmcrypt: s/elibtoolize/eautoreconf/ and add keywords: http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/dev-libs/libmcrypt/libmcrypt-2.5.8-r1.ebuild for mcrypt: No changes but this patch addition. add keywords Neither need EAPI bumps, unless desired for ebuild writing simplicity. I can do it if you would like, revbumps?
darkside: +1 on commit.
done, thx Mark