net-misc/nxnode and net-misc/nxserver-freeedition install their etc and var data under /usr/NX/, preventing nxserver to run with /usr on a readonly filesystem. as a workaround it is possible to move and symlink /usr/NX/etc to /etc/NX and /usr/NX/var/* to /var/*/NX. Reproducible: Always
Created attachment 230565 [details, diff] nxnode-3.4.0.6.patch patch against nxnode-3.4.0.6 ebuild to move and symlink /usr/NX/etc in /etc/NX and /usr/NX/var/* in /var/*/NX
Created attachment 230567 [details, diff] nxserver-freeedition-3.4.0.8.patch patch against nxserver-freeedition-3.4.0.8 ebuild to move and symlink /usr/NX/etc in /etc/NX and /usr/NX/var/* in /var/*/NX
Thanks for submitting your fix; it is annoying to have apps writing into /usr.
Created attachment 231907 [details, diff] nxserver-freeedition-3.4.0.8.patch /etc/init.d/nxserver writes to /usr/NX/home, new patch to move /usr/NX/home in /var/lib/NX/home.
Created attachment 231961 [details, diff] nxserver-freeedition-3.4.0.8.patch working version
Created attachment 231963 [details, diff] nxnode-3.4.0.6.patch patch to move /usr/NX/home/nx in /var/lib/NX
Created attachment 235393 [details, diff] nxnode-3.4.0.13.patch patch against nxnode-3.4.0.13 to prevent NX from writing in /usr /usr/NX/var/db -> /var/db/NX /usr/NX/var/log -> /var/log/NX /usr/NX/var/run -> /var/run/NX /usr/NX/home/nx -> /var/lib/NX /usr/NX/etc -> /etc/NX
Created attachment 235397 [details, diff] nxserver-freeedition-3.4.0.12.patch patch against nxserver-freeedition-3.4.0.12 to prevent NX from writing in /usr this version uses symlinks created by nxnode
Created attachment 235401 [details, diff] nxserver-freeedition/files/nxserver-3.4-chown.patch /usr/NX/scripts/setup/nxserver fails to chown ~nx if /usr/NX/home/nx is a symlink
(In reply to comment #3) > Thanks for submitting your fix; it is annoying to have apps writing into /usr. > My patches are still not applied. Are there any issues with them?
Hi, thanks a lot for the patches, and sorry for the delay. The issue is just me lagging behind in my TODO list :/ Somehow this bug has fallen deeper under my radar than usual though, I'll test and add your patches this week
A quick test on a fresh install (without any /usr/NX already on the system) went ok, however upgrading an existing setup is problematic (file collisions everywhere, files created later on in /usr/NX that would need to be moved, ...) I need to fix this before adding the patches (block older versions may not be enough, as some manual cleaning would probably be needed)...
Created attachment 245616 [details, diff] nxserver-freeedition-3.4.0.14.patch version bump
Created attachment 245622 [details, diff] nxnode-3.4.0.14.patch version bump added a check in pkg_preinst to move in the correct location /usr/NX files
Created attachment 251233 [details, diff] nxserver-freeedition-3.4.0.14.patch It is mandatory to DEPEND on the patched version of nxnode.
Created attachment 251235 [details, diff] nxnode-3.4.0.14.patch to avoid collisions with older version is necessary to set COLLISION_IGNORE="/usr/NX/var /usr/NX/home" before emerging this one. Added a pkg_setup function that detects the older version and informs the user on how to emerge this one.
(In reply to comment #12) > A quick test on a fresh install (without any /usr/NX already on the system) > went ok, however upgrading an existing setup is problematic (file collisions > everywhere, files created later on in /usr/NX that would need to be moved, ...) > > I need to fix this before adding the patches (block older versions may not be > enough, as some manual cleaning would probably be needed)... > I performed a quick test upgrading an existing setup. Using the suggested COLLISION_IGNORE settings, the writable portion of /usr/NX gets automagically moved in the right place.
Created attachment 260347 [details, diff] nxnode/files/nxnode.cups_path.patch patch to add /usr/libexec to CUPS_PATH (wrt #341871)
Created attachment 260349 [details, diff] nxnode-3.4.0.14.patch improved pkg_setup() to ewarn user only if it is really needed. added patch to add /usr/libexec to CUPS_PATH in NX/scripts/setup/nxnode (wrt #341861)
Created attachment 260350 [details, diff] nxnode-3.4.0.14.patch fixed pkg_setup() to ewarn user only if it is really needed.
Created attachment 264581 [details, diff] nxserver-freeedition-3.4.0.17.patch version bump
Created attachment 264583 [details, diff] nxnode-3.4.0.16.patch version bump
Created attachment 265795 [details, diff] nxnode-3.4.0.16-r1.patch revision bump
Created attachment 274369 [details, diff] nxserver-freeedition-3.5.0.4.patch version bump
Created attachment 274371 [details, diff] nxnode-3.5.0.3.patch revision bump with improved upgrade from current stable version
Created attachment 284581 [details, diff] nxnode-3.5.0.6.patch revision bump
Created attachment 284583 [details, diff] nxserver-freeedition-3.5.0.8.patch revision bump
(In reply to comment #12) > A quick test on a fresh install (without any /usr/NX already on the system) > went ok, however upgrading an existing setup is problematic (file collisions > everywhere, files created later on in /usr/NX that would need to be moved, ...) > > I need to fix this before adding the patches (block older versions may not be > enough, as some manual cleaning would probably be needed)... Hi, can You retest my patches, please? Now there is a test for the presence of the old version, and eventually a message is displayed telling the user how to upgrade to the new one.
Last rites in progress in bug #537774