I am trying to patch tigervnc with this: https://github.com/TigerVNC/tigervnc/issues/2 as it is incredibly useful for AwesomeWM. I am patching e.g. /tmp/portage/net-misc/tigervnc-1.3.1-r4/work/tigervnc-1.3.1/vncviewer/DesktopWindow.cxx but after src_prepare, the current working directory is set to /tmp/portage/net-misc/tigervnc-1.3.1-r4/work/tigervnc-1.3.1/unix/xserver and Portage does not allow me to use relative addressing in .patch files (../../vncviewer/DesktopWindow.cxx): if use server ; then cd unix/xserver epatch "${WORKDIR}"/patches/0999_server_xserver-1.14-rebased.patch eautoreconf fi perhaps it should use pushd/popd or some variation of that? Reproducible: Always
Created attachment 412084 [details, diff] =tigervnc-1.3.1-r4 replace change directory with pushd/popd Since this bug report is collecting bit dust and I am sure that there is never an appropriate spot for epatch_user, I am submitting this patch that makes my patches patch.
I just had a thought about doing pushd "$S" and popd in my /etc/portage/bashrc epatch_user hack ... and guess what? It works. Thus as far as I am concerned, this bug can be closed.