On 05/04/2017 07:48 PM, William Hubbs wrote: > All, > > here is meson.eclass after the changes from the first posting. > > Mgorny, I don't quite understand your question about the install command: > > DESTDIR="${ED}" eninja -v -c install > > I think it is ok, I don't think DESTDIR= has any bearing on EPREFIX. > > Here's the attachment. > > William >
You need to set DESTDIR="${D}" when you pass --prefix="${EPREFIX}"/usr (or equivalent), otherwise, you will install files to ${EPREFIX}/${EPREFIX}/usr. As Prefix expects files in ${EPREFIX}/usr, etc., this will cause issues on all Prefix systems (specifically, Portage will error out if it detects any file installed into $D that is outside of $ED or the directory $ED/$EPREFIX existing at all (when $EPREFIX != "")). The only time that it is generally appropriate to set DESTDIR="${ED}" is when dealing with broken build systems that force a prefix of exactly "/usr" and don't allow the user to change it (or even force files into "/bin", "/etc", etc.). -- Jonathan Callen
signature.asc
Description: OpenPGP digital signature