[PATCH] lspcmcia symlink target is wrong if building with DESTDIR
Colin Watson
cjwatson at debian.org
Mon Mar 27 05:55:14 EST 2006
The lspcmcia symlink is created to $(DESTDIR)$(sbindir)/$(PCCARDCTL); if
you're building with DESTDIR set to a temporary directory in order to
build a binary package for a distribution (which is basically what
DESTDIR is meant for), the symlink in the package ends up pointing into
your build tree. Since lspcmcia and pccardctl are installed to the same
directory anyway, this patch just makes the symlink be relative.
=== modified file 'Makefile'
--- Makefile
+++ Makefile
@@ -281,7 +281,7 @@
$(INSTALL) -d $(DESTDIR)$(sbindir)
$(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL)
$(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(sbindir)/$(PCMCIA_CHECK_BROKEN_CIS)
- $(SYMLINK) $(DESTDIR)$(sbindir)/$(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA)
+ $(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA)
uninstall-tools:
- rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL)
Thanks,
--
Colin Watson [cjwatson at debian.org]
More information about the linux-pcmcia
mailing list