From sfalcon at fhcrc.org  Wed Jun 13 01:10:06 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue, 12 Jun 2007 16:10:06 -0700
Subject: [Rd] PATCH: install inst/ before doing lazyload on Windows
Message-ID: <m2y7iog46p.fsf@ziti.local>

Hi,

On Windows, package files in the inst/ subdir are installed after the
lazyload creation.  This differs from Linux where inst/ is installed
_before_ lazyload creation.

Since packages may need data in inst, I think the order on Windows
should be changed.  Perhaps like this:

diff --git a/src/gnuwin32/MakePkg b/src/gnuwin32/MakePkg
index 57af321..868e8f1 100644
--- a/src/gnuwin32/MakePkg
+++ b/src/gnuwin32/MakePkg
@@ -74,10 +74,10 @@ all:
 	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s nmspace
 	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg Dynlib 
 	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s R
+	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s $(DPKG)/demo $(DPKG)/exec $(DPKG)/inst $(DATA)
 ifeq ($(strip $(LAZY)),true)
 	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s lazyload
 endif
-	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s $(DPKG)/demo $(DPKG)/exec $(DPKG)/inst $(DATA)
 ifeq ($(strip $(LAZYDATA)),true)
 	@$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s lazydata
 endif

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] PATCH: install inst/ before doing lazyload on Windows
Seth Falcon