sci-mathematics/rstudio calls dosym with paths starting with ${ROOT} or ${EROOT} which is incorrect. Using ${ROOT} or ${EROOT} (in any way in src_* phases) results in broken binary packages when different values of ${ROOT} are used. dosym internally prepends ${ED%/} to second path (symbolic link itself) when calling ln. sci-mathematics/rstudio is the only package which prepends first path (target of symbolic link) with ${ROOT} or ${EROOT}: $ grep -E "dosym \"?\\\${?E?ROOT" */*/*.ebuild sci-mathematics/rstudio/rstudio-1.1.383-r1.ebuild: dosym "${ROOT}etc/conf.d/rstudio-server.conf" "${ROOT}etc/rstudio/rserver.conf" sci-mathematics/rstudio/rstudio-1.1.453.ebuild: dosym "${ROOT}etc/conf.d/rstudio-server.conf" "${ROOT}etc/rstudio/rserver.conf" sci-mathematics/rstudio/rstudio-1.1.463-r1.ebuild: dosym "${EROOT}/etc/conf.d/rstudio-server.conf" "/etc/rstudio/rserver.conf" sci-mathematics/rstudio/rstudio-1.1.463.ebuild: dosym "${ROOT}etc/conf.d/rstudio-server.conf" "${ROOT}etc/rstudio/rserver.conf" The following command would create a correct, relative symbolic link: dosym ../conf.d/rstudio-server.conf /etc/rstudio/rserver.conf
sci-mathematics/rstudio/rstudio-1.2.1335.ebuild: dosym "${ED}/etc/conf.d/rstudio-server.conf" "/etc/rstudio/rserver.conf" Problems with above dosym command: 1. Initial ${D} or ${ED} is unnecessary in first argument (target of symbolic link), and PMS-compliant package managers will issue QA notice. PMS (https://projects.gentoo.org/pms/7/pms.html#x1-14800013.4.1): """ 13.4.1 Rewriting Any absolute symlink whose link starts with D must be rewritten with the leading D removed. The package manager should issue a notice when doing this. """ 2. Target of symbolic link could be made relative, instead of absolute. Solution: dosym ../conf.d/rstudio-server.conf /etc/rstudio/rserver.conf
Thanks for reporting and for the fix. It was fixed by soap (thanks) in this commit: commit 67ed6069f634a03a21ce4c6f82b75827318756a5 Author: David Seifert <soap@gentoo.org> Date: Sat Dec 7 22:54:58 2019 +0100 sci-mathematics/rstudio: [QA] Fix AbsoluteSymlink Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org> diff --git a/sci-mathematics/rstudio/rstudio-1.1.463-r1.ebuild b/sci-mathematics/rstudio/rstudio-1.1.463-r1.ebuild index c26f7f5c3001..09f22605f334 100644 --- a/sci-mathematics/rstudio/rstudio-1.1.463-r1.ebuild +++ b/sci-mathematics/rstudio/rstudio-1.1.463-r1.ebuild @@ -225,7 +225,7 @@ src_install() { dodir /etc/rstudio insinto /etc/rstudio doins "${FILESDIR}"/rsession.conf - dosym "${EROOT}/etc/conf.d/rstudio-server.conf" "/etc/rstudio/rserver.conf" + dosym ../conf.d/rstudio-server.conf /etc/rstudio/rserver.conf if use dedicated || use server; then dopamd src/cpp/server/extras/pam/rstudio newinitd "${FILESDIR}"/rstudio-server.initd rstudio-server diff --git a/sci-mathematics/rstudio/rstudio-1.2.1335.ebuild b/sci-mathematics/rstudio/rstudio-1.2.1335.ebuild index 2e857a99a3a5..9d0dfd64d7d1 100644 --- a/sci-mathematics/rstudio/rstudio-1.2.1335.ebuild +++ b/sci-mathematics/rstudio/rstudio-1.2.1335.ebuild @@ -223,7 +223,7 @@ src_install() { dodir /etc/rstudio insinto /etc/rstudio doins "${FILESDIR}"/rsession.conf - dosym "${ED}/etc/conf.d/rstudio-server.conf" "/etc/rstudio/rserver.conf" + dosym ../conf.d/rstudio-server.conf /etc/rstudio/rserver.conf if use dedicated || use server; then dopamd src/cpp/server/extras/pam/rstudio newinitd "${FILESDIR}"/rstudio-server.initd rstudio-server