VirtualBox

Changeset 2094 in kBuild


Ignore:
Timestamp:
Nov 20, 2008 1:53:09 AM (16 years ago)
Author:
bird
Message:

footer.kmk: Fixed refetch problem on windows. The problem was that the directory cache had an open reference to the INST directory that were being refetched. The solution is to avoid using $(wildcard ) to check if files exist and use 'kmk_test -f file -- kmk_echo exists' instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2084 r2094  
    16861686$(out) + $($(target)_$(srcname)_UNPACK_OUTPUT_) +| $($(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_) : \
    16871687                $($(target)_$(srcname)_UNPACK_DEPEND_) \
    1688                 | $($(target)_$(srcname)_UNPACK_DEPORD_) $(archive).checked_$(md5)_$(size)
     1688                | $($(target)_$(srcname)_UNPACK_DEPORD_) \
     1689                $(archive).checked_$(md5)_$(size) \
     1690                $(dir $(out))
    16891691        %$$(call MSG_FETCH_UP,$(target),$(archive),$(inst))
    16901692        $$(QUIET)$$(RM) -f -- $(out)
    1691         @# if the source archive doesn't exist fetch it (can have been deleted to save space).
     1693        $$(QUIET)$$(MKDIR) -p -- $(dir $(out))
     1694        @# if the source archive doesn't exist fetch it (may have been deleted to save space).
    16921695        $$(QUIET)test -f $(archive) \
    16931696                 || (   $$(RM_EXT) -f $(archive).checked_$(md5)_$(size) \
     
    19141917$(out): $(comp-vars _TARGET_$(target)_DIGEST_PREV,_TARGET_$(target)_DIGEST,FORCE) | $(call DIRDEP,$(inst))
    19151918        $$(QUIET)$$(RM) -f -- $$@
    1916         %$$(if $$(_TARGET_$(target)_DIGEST),$$(if $$(wildcard $(out).lst)\
     1919        %$$(if $$(_TARGET_$(target)_DIGEST),$$(if $$(shell $$(TEST_EXT) -f $(out).lst -- $$(ECHO_EXT) file-exist)\
    19171920                ,$$(call MSG_REFETCH,$(target)),$$(call MSG_FETCH,$(target))),$$(call MSG_UNFETCH,$(target)))
    1918         $$(QUIET)$$(if $$(wildcard $(out).lst      ),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out)_unfetched)
     1921        $$(QUIET)$(TEST_EXT) -f $(out).lst -- $$(MAKE) -f $(MAKEFILE) --no-print-directory $(out)_unfetched
    19191922        $$(QUIET)$$(if  $$(_TARGET_$(target)_DIGEST),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out).lst,$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- $$(dir $$@))
    19201923        $$(QUIET2)$$(if $$(_TARGET_$(target)_DIGEST),$$(APPEND) $$@ "_TARGET_$(target)_DIGEST_PREV := $(_TARGET_$(target)_DIGEST)")
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette