All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 crda] crda: Do not run ldconfig if DESTDIR is set
@ 2014-08-23 19:27 Ben Hutchings
  0 siblings, 0 replies; only message in thread
From: Ben Hutchings @ 2014-08-23 19:27 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

ldconfig should only be run for a local installation, and will fail when
building as an unprivileged user.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
v2: Add 'crda:' prefix to subject

--- a/Makefile
+++ b/Makefile
@@ -132,7 +132,9 @@ install-libreg:
 	$(NQ) '  INSTALL  libreg'
 	$(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
 	$(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
+ifndef DESTDIR
 	$(Q)ldconfig
+endif
 
 %.o: %.c regdb.h $(LIBREG)
 	$(NQ) '  CC  ' $@


-- 
Ben Hutchings
One of the nice things about standards is that there are so many of them.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-23 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-23 19:27 [PATCH v2 crda] crda: Do not run ldconfig if DESTDIR is set Ben Hutchings

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.