Skip to content
Snippets Groups Projects
  1. Jan 10, 2007
  2. Nov 02, 2006
  3. Oct 25, 2006
    • Leigh B. Stoller's avatar
      6fab4476
    • Leigh B. Stoller's avatar
      Makefile Whacking! Try to deal with the problem caused by the delay · 7590f9c5
      Leigh B. Stoller authored
      between when something is installed and when post-install runs. Short
      of a global lock (which we probably need anyway someday), my solution
      is this. In your makefiles, add these variables before the line that
      has the include of $(TESTBED_SRCDIR)/GNUmakerules:
      
      	SETUID_BIN_SCRIPTS   =
      	SETUID_SBIN_SCRIPTS  =
      
      I have added three new rules to GNUmakerules that look like this:
      
      	$(addprefix $(SBINDIR)/, $(SETUID_SBIN_SCRIPTS)): $(SBINDIR)/%: %
      		echo "Installing (setuid) $<"
      		-mkdir -p $(INSTALL_SBINDIR)
      		$(SUDO) $(INSTALL) -o root -m 4755 $< $@
      
      Yep, your eyes ain't lying to you; use sudo to run the target so that
      install does the right thing (which is that the old file is not
      replaced until the new one has the proper attributes on it).
      
      Note that post-install is still needed for the initial install, but
      should no longer be needed for day to day installs since all that other
      stuff post-install does is mkdir/chmod on directories.
      7590f9c5
    • Leigh B. Stoller's avatar
      Allow reply to "changed" messages · 73fb8f1e
      Leigh B. Stoller authored
      73fb8f1e
  4. Oct 24, 2006
  5. Oct 16, 2006
  6. Oct 14, 2006
  7. Oct 13, 2006
  8. Mar 15, 2006
  9. Mar 03, 2006
  10. Mar 02, 2006
  11. Mar 01, 2006
  12. Nov 21, 2005
  13. Sep 13, 2005
  14. Aug 03, 2005
  15. Jul 21, 2005
  16. Jul 20, 2005
Loading