unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* gnu-build-system should set DESTDIR
@ 2014-02-10  8:19 John Darrington
  2014-02-10 12:56 ` Ludovic Courtès
  2014-02-10 12:58 ` Sree Harsha Totakura
  0 siblings, 2 replies; 7+ messages in thread
From: John Darrington @ 2014-02-10  8:19 UTC (permalink / raw)
  To: guix-devel

Per recent discussions:

I think the make install target in gnu-build-system should set DESTDIR to "/" (or "/.")
Rationale:

Many upstream makefiles (eg: 

https://git.gnome.org/browse/gnome-themes-standard/tree/themes/HighContrast/icons/Makefile.am) 

assume that when DESTDIR is unset (or is "") then the package is being installed in a "live" system:

if test -z "$(DESTDIR)"; then \
		echo "Updating Gtk icon cache."; \
		$(gtk_update_icon_cache); \
else \
		echo "*** Icon cache not updated.  After (un)install, run this:"; \
		echo "***   $(gtk_update_icon_cache)"; \
fi

I have noticed that a number of packages in /nix/store/ have their own version 
of icon-theme.cache leading to warnings when doing guix package --install

So we need to set DESTDIR to *something* and to arrange for some kind of post-install hook to update
the cache.  The same goes for top level info nodes.

J'



-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-10 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10  8:19 gnu-build-system should set DESTDIR John Darrington
2014-02-10 12:56 ` Ludovic Courtès
2014-02-10 14:42   ` John Darrington
2014-02-10 16:09     ` Ludovic Courtès
2014-02-10 16:53       ` John Darrington
2014-02-10 12:58 ` Sree Harsha Totakura
2014-02-10 13:57   ` John Darrington

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).