Tried to install x2goserver but encountered the following error with net-misc/nx-3.5.99.17 during the install phase. Suggestions from xdej #gentoo-prefix channel: * replacing "emake DESTDIR="${D}" PREFIX="/usr" NXLIBDIR="/usr/$(get_libdir)/${PN}" SHLIBDIR="/usr/$(get_libdir)" USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" install" by emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" NXLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" USRLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/X11" install" might let things work. * replacing "emake -j1 -C nx-X11 World USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" SHLIBDIR="/usr/$(get_libdir)"" by "emake -j1 -C nx-X11 World USRLIBDIR="$EPREFIX/usr/$(get_libdir)/${PN}/X11" SHLIBDIR="$EPREFIX/usr/$(get_libdir)"" might be necessary also
Created attachment 572220 [details] build.log
After I made the suggested changes as follow: --- emake -C nx-X11 BuildDependsOnly # Parallel make issue resurfaced, upstream working on autotools switch emake -j1 -C nx-X11 World \ USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ SHLIBDIR="/usr/$(get_libdir)" emake -C nxproxy } src_install() { emake \ DESTDIR="${D}" \ PREFIX="${EPREFIX}/usr" \ NXLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \ SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/X11" \ install # Already provided by mesa & related packages rm -r "${ED}"/usr/include/GL || die # Get rid of libtool files and static libs. find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die } --- The ebuild failed again due to : QA Notice: the following files are outside of the prefix: /etc /etc/nxagent /etc/nxagent/keystrokes.cfg
Created attachment 572228 [details] build.log
Then xdej suggested the following editing: ``` emake -j1 -C nx-X11 World \ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/X11" \ SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \ ETCDIR_NX="${EPREFIX}/etc/nxagent" emake -C nxproxy } src_install() { emake \ DESTDIR="${D}" \ PREFIX="${EPREFIX}/usr" \ NXLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}" \ SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)/${PN}/X11" \ ETCDIR_NX="${EPREFIX}/etc/nxagent" \ install # Already provided by mesa & related packages rm -r "${ED}"/usr/include/GL || die # Get rid of libtool files and static libs. find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die } ``` But I am now receving a emake fail error
Created attachment 572230 [details] build.log
The bug is reproducible. After I ran the edited ebuild file as in comment 4 for another time, the emerge command was successful.
@voyageur: see comment #4, would you be ok with incorporating those changes to the ebuild?
The change is mostly prepending ${EPREFIX} to paths starting directly with /usr so it looks safe enough to go in (at least for non-prefix systems)
well, it is setting extra paths, that's the risky business from my point of view :)
Oh right there is ETCDIR_NX now which is new ("diff in my head" technique did not spot it): let me test this one
OK so ETCDIR_NX default is indeed /etc/nxagent and adding these ${EPREFIX} does not change installed result (tested working with x2go). So good to go in for me! Build error looks strange though, almost parallel make issue but there already is a -j1 (it has been around in the ebuild for some ime, old buggy build system)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f508cf33b67c0443d35679e0953e7007dda66f commit 80f508cf33b67c0443d35679e0953e7007dda66f Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2021-01-20 07:41:57 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2021-01-20 07:42:40 +0000 net-misc/nx: fix install for Prefix, by Firas, bug #682864 Closes: https://bugs.gentoo.org/682864 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org> net-misc/nx/nx-3.5.99.25.ebuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)