From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment. Date: Wed, 30 Nov 2016 06:36:01 +0100 Message-ID: <20161130053601.GA10359@jocasta.intra> References: <1480100924-23868-1-git-send-email-jmd@gnu.org> <87zikkk485.fsf@gnu.org> <20161128131926.GA6466@jocasta.intra> <878ts273to.fsf@gnu.org> <20161129181559.GA30970@jocasta.intra> <87mvginesm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBxYw-0000Cj-I6 for guix-devel@gnu.org; Wed, 30 Nov 2016 00:36:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBxYv-0004jh-Fb for guix-devel@gnu.org; Wed, 30 Nov 2016 00:36:10 -0500 Content-Disposition: inline In-Reply-To: <87mvginesm.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic Court??s Cc: guix-devel@gnu.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 29, 2016 at 10:42:49PM +0100, Ludovic Court??s wrote: John Darrington skribis: =20 > > * Hack the hard coded defaults in the libXt source to use the= profile > > settings instead of /usr > =20 > Maybe we should just do that, no? It???d be a local change, it= would > achieve the same effect, and it would provide a good default. > =20 > > It sounds unreliable to me. What would we set it to? > $GUIX_PROFILE/... $HOME/.guix-profile/... /run/current-system/profi= le/... > There's no guarantee that the current profile is any of those. =20 Maybe, but that would have the same effect as setting the environment variable to that value, wouldn???t it? Except that the environment variable solution is easier for users to overri= de.=20 =20 > Something similar to the first solution seems prefereable to me. Ma= ybe: > > Set XFILESEARCHPATH to "$HOME/.guix-profile/lib/X11/%T/%N%S:/run/cu= rrent-system/profile/lib/X11/%T/%N%S" > (we can substitute "share" for "lib" if we want to keep the FHS pe= ople happy). =20 How did you manage to shorten it that much? =20 Simply by assuming that nobody ever installs resource files outside these l= ocations. If anybody ever does - then things will break. =20 > Then we audit all users of libxt to make sure they put their resour= ce files in lib/X11/app-defaults. > Most packages have a --with-app-defaults configure option (which cu= rrently we are in many cases > either not using or misusing). > > We could also consider adding a build stage to make sure that packa= ges which depend on libXt put > their resource files in the "right" place. =20 Sounds reasonable. All in all, it sounds like a lot of work in the short time - but it might b= e worth it. I'll see what I can do (and if it has a chance of working). J' =20 --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlg+ZUEACgkQimdxnC3oJ7OBZACfctuFXIiGQ7aXMSUuybky+KNf AQoAnRoY9qL8eln4ioAyXOen+Fu3X3r0 =N0PP -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--