Created attachment 314222 [details] Fix for app-office/ledger-2.6.3-r1 app-office/ledger-2.6.3-r1 fails to install on my ~amd64-linux prefix with USE=emacs because it installs files outside the prefix. I get the normal error message for this kind of thing (something about a QA concern). I believe the problem is that configure is being passed ${SITELISP}/${PN} instead of ${ROOT}${EPREFIX}${SITELISP}/${PN} (I got the longer string from the elisp-common eclass, so I think that's OK). With the change it seems that ledger installs its elisp files in the correct place. I've attached a patch. It builds for me on ~amd64-linux.
Also, worth noting that ROOT/EPREFIX == EROOT
Created attachment 314367 [details] Updated app-office/ledger-2.6.3-r1 ebuild (In reply to comment #1) > Also, worth noting that ROOT/EPREFIX == EROOT OK, I've added an updated ebuild.
(In reply to comment #2) > OK, I've added an updated ebuild. Attaching a patch like you did the first time is the preferred way of doing things. :) @prefix: Feel free to commit whatever is necessary for ledger to build and install properly in a prefix environment.
Actually went with this: - $(use_with emacs lispdir "${SITELISP}/${PN}") \ + $(use_with emacs lispdir "${EPREFIX}/${SITELISP}/${PN}") \