On 2017-01-06 23:37, pit wrote:
Carlos E. R. wrote:
Hi,
This is an old problem that I had on 13.1 and remains on Leap.
....
It is trying to link /usr/share/flightgear/Fonts/LiberationFonts/COPYING to /usr/share/doc/packages/FlightGear-data/COPYING or the other way round, and it happens that /usr/share/flightgear is a diferent filesystem here⁽¹⁾:
TBH, I'd report this as an bug to the packager. Hardlinks across devices/partitions is never possible, and an RPM package should never run into trouble because of this, which means, one should at most use them within the same subdirectory.
But I did. It is bug 987206, closed WONTFIX So I need some hack that allows me to install that package. I can install the contents of the rpm, no problem, but the main flightgear package depends on this one, and if I can't install it YaST complains every time I start it. I can not make YaST ignore the conflict for ever and shut up.
And in the case of the COPYING file I cannot even see any benefit from using hardlinks over softlinks...
Perhaps I should instead make /usr/share/doc/packages/FlightGear-data/ a symlink or bind mount to somewhere in /usr/gamedata.
Ideas? I need another view...
I don't think that having /usr/share/doc/packages/FlightGear-data a symlink would work, rpm would rather recreate the directory on installation. But maybe I'm wrong, so give it a try.
I'd probably move the doc directory away temporarily (rname) and symlink doc to a directory on the flightgear partition, then install the rpm and move it back to the real doc after changing hardlinks to symlinks. But that would cause issues again with any later update. So I'd at least report it to the packager...
I have created these directories in /usr/gamedata: flightgear flightgear.FlightGear-data-doc They are in the same partition. Then I created these two symlinks: /usr/share/doc/packages/FlightGear-data --> /usr/gamedata/flightgear.FlightGear-data-doc /usr/share/flightgear --> /usr/gamedata/flightgear So files created in both will be in the same partition, and hardlinks could be created. [...] Huh, this did work, finally! Telcontar:~ # strace -ff -o rpmtrace2 rpm --install --verbose /var/cache/zypp/packages/OBS_Games/noarch/FlightGear-data-2016.2.1-2.1.noarch.rpm Preparing packages... FlightGear-data-2016.2.1-2.1.noarch Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)