I have added "-I/usr/local/include -L/usr/local/lib" to CFLAGS in make.conf. There is a line (currently line no. 68) in the openssl-0.9.7e-ebuild that runs sed on the contents of the $CFLAGS variable. sed gives the above error if CFLAGS contains a forward slash ("/"). This is actually what I would expect it to do. As a workaround I added the following line before the sed call on line no. 68: NEW_CFLAGS="$( echo $NEW_CFLAGS | sed -e s/'\/'/'\\\/'/g )" (See attached patch) I don't know if this is specific to openssl, all other ebuilds seem to run correctly Reproducible: Always Steps to Reproduce: 1. Add -I/usr/local/include -L/usr/local/lib" to CFLAGS in make.conf 2. run "emerge openssl" 3. Actual Results: emerge stops with error "sed: -e expression #1, char 114: unknown option to `s'" Expected Results: clean install I've created a patch for the ebuild that I'll attach.
Created attachment 49303 [details, diff] Patch for checking forward slashes in CFLAGS in openssl-0.9.7e.ebuild
changed the delimiter to ':' instead in 0.9.7e