Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2015 17:43:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197764] bsd.dep.mk appears to missing a .ORDER: directive
Message-ID:  <bug-197764-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197764

            Bug ID: 197764
           Summary: bsd.dep.mk appears to missing a .ORDER: directive
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: cattelan@thebarn.com

While working with a beforedepends target we notices that in some cases the 
files generated by the beforedpends were not showing up in time for the
depends phase to find the generated files.

By adding a sleep to the beforedepends rule is was easy to see that the
actually depends phase was not waiting for the beforedepends to finish.

This look to be a simple omission of an .ORDER: 

iff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index cbbb4d6..db5ddd7 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -122,6 +122,7 @@ ${_YC:R}.o: ${_YC}
 .if !target(depend)
 .if defined(SRCS)
 depend: beforedepend ${DEPENDFILE} afterdepend
+.ORDER: beforedepend ${DEPENDFILE} afterdepend

 # Different types of sources are compiled with slightly different flags.
 # Split up the sources, and filter out headers and non-applicable flags.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197764-8>