Date: Wed, 7 Apr 2004 13:25:43 +0300 From: "Doncho N. Gunchev" <mr700 globalnet bg>
On Wednesday 07 April 2004 04:56, Jamethiel Knorth wrote:
> Date: Mon, 5 Apr 2004 16:39:18 +0300
> From: "Doncho N. Gunchev" <mr700 globalnet bg>
> >
> >On Sunday 28 March 2004 00:34, Gary L Greene Jr wrote:
> >>
....
> > Let's say we have program foo from package foo-1.0-1.sparc.rpm which has
> >a .desktop file in ~/.<distribution>/share/applications/foo.desktop.
> >--- cut ---
> >+------------------------+---------------------------------------------------+
> >| ~/.<distribution>/share/ | Architecture independent files used by programs |
> >| | in ~/.<distribution>/<architecture>/bin/ |
> >+--------------------------+-------------------------------------------------+
> >--- cut ---
> > In this case if a user uses his home from a nfs share on ix86 mahine
> >he/she will see this application in his/her kde/gnome start menu, but will
> >not be able to run it (it is the sparc version, not the ix86). Another
> >problem could be shared files that are little-endian/big-endian dependent.
> >The space could be saved by hardlinking identical files which are not
> >suposed change without being removed first (/usr/share/doc/*/*).
>
> There will likely need to be separate menu entries in each <distro>/<arch>/
> directory, but that's really up to the desktop's to introduce. I don't think
> this standard in any way prevents that from being added. Or, they might be
> able to add some extensions to the XDG standard (or whatever the new menu
> standard is) to allow different entries according to distro and
> architecture.
Could work with extra tags in the .desktop entries or with some sort of
tag, extension, etc. I'm still not sure what happends with programs that
use architecture dependant data ordering (big-endian and little-endian).
Probably the programs must be fixed, but to me it looks much more simple
having only a BASEDIR and all bin,etc,lib,... dirs there. Installation
programs (rpm,dpkg...) or the user can still hardlink/symlink files.
>
> > What about uafhs being configurable via /etc/uafhs? It could be
> >something
> >like 'UAFHSBASE="$HOME/uafhs/$ARCH/$DIST-$DIST_VER"'. This way only a
> >script
> >will be needed to setup this variable at login time and the install tools
> >should be made UAFHS-aware (or at least I hope so). The main idea is to
> >allow
> >a user to login from same/different distribution(s) and architecture(s)
> >simultaneously. I have RH9 + FC1 with shared /home partition and this leads
> >to many problems with all .dot(files|dirs) in my home dir (kde for example)
> >even without logging in simultaneously.
>
> I had been considering this problem a little, but was unsure how large of a
> problem it was, as I have never had parallel distribution installs. I
> considered having '.<distro>/<arch>/config/' instead of '.config' to avoid
> this, but my concern was that this would mean the directory had a totally
> non-constant location, and many programs wouldn't use it. Of course,
> distribution builds could use it well enough, but something installed from a
> tarball might be hard to convince. If this were the case, the '.config/'
> directory wouldn't actually clean up the dotfiles in the home directory, as
> it was intended to do.
If something compiled from tarball uses BASEDIR=UAFHSBASE I think there
is no problem except for all dotfiles in the home dir. If such a program is
UAFHS-aware there should be no problem at all I hope...