]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1468] 'make install' broken for root on default NFS mount.
authorDave Hart <hart@ntp.org>
Fri, 29 Jan 2010 20:11:52 +0000 (20:11 +0000)
committerDave Hart <hart@ntp.org>
Fri, 29 Jan 2010 20:11:52 +0000 (20:11 +0000)
bk: 4b63410814Egz1PnhlrR4IJAYcbQRw

ChangeLog
libparse/Makefile.am

index 6c2db05cbaa1ef39107598cd1db6c385928e7657..728ca0a7656bedd183310a4dd006b17f0f2cfb70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
+* [Bug 1468] 'make install' broken for root on default NFS mount.
 (4.2.7p11) 2010/01/28 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 47] Debugging and logging do not work after a fork.
 * [Bug 1010] getaddrinfo() could block and thus should not be called by
   the main thread/process.
+* New async DNS resolver in ntpd allows nonblocking queries anytime,
+  instead of only once at startup.
 (4.2.7p10) 2010/01/24 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1140] Clean up debug.html, decode.html, and ntpq.html.
 * Include (4.2.6p1-RC3) - Use TZ=UTC instead of TZ= when calling date in
index b50e6051b7735048d25fe7270ac998a53b6b75e5..3c68697ef64c2b7edb158b29a02467a661f35d94 100644 (file)
@@ -1,36 +1,28 @@
 NULL=
 AUTOMAKE_OPTIONS =
-BUILT_SOURCES = info_trimble.c
+BUILT_SOURCES = stale_itc_gone
 noinst_LIBRARIES = @MAKE_LIBPARSE@ @MAKE_LIBPARSE_KERNEL@
 EXTRA_LIBRARIES = libparse.a libparse_kernel.a
 EXTRA_PROGRAMS = parsestreams parsesolaris
 noinst_PROGRAMS = @MAKE_PARSEKMODULE@
-CLEANFILES = 
+CLEANFILES = stale_itc_gone
 
 K_CFLAGS = -DPARSESTREAM -DNTP_NEED_BOPS
 
 # info_trimble.c was mistakenly created in the build directory
-# previously.  Without special steps, building an updated tree from
-# outside the source directory (a VPATH build) would break trying to
-# update info_trimble.c in the build dir using the default SCCS get
-# action.
-# As a transitional measure, info_trimble.c is listed in
-# libparse_a_SOURCES prefixed by "$(srcdir)/".
-# This prevents attempting to update or use an old leftover
-# info_trimble.c in the build directory, when building outside
-# the source directory.  At the same time, the rule to generate
-# info_trimble.c (now in the source directory) has been updated
-# to delete any leftover info_trimble.c in the build directory.  To
-# ensure that fires in all build trees sharing a common source tree,
-# $(srcdir)/info_trimble.c now depends on Makefile, and has been added
-# temporarily to BUILT_SOURCES.  This causes builds of updated trees to
-# get rid of the troublesome leftover info_trimble.c files in the build
-# directories.
-# After a month or so, this comment block should be removed, the
-# reference to info_trimble.c in libparse_a_SOURCES simplified to
-# filename only again, info_trimble.c be removed from BUILT_SOURCES,
-# and the commented-out $(srcdir)/info_trimble.c rule should replace
-# the info_trimble.c rule.
+# previously.  It is located in $(srcdir) and any updates must
+# end up there.
+# As a transitional measure, a new target stale_itc_gone has been added
+# which removes the stale $(builddir)/info_trimble.c which will be in
+# the build directory of those tracking the source changes over time
+# while re-using the existing build directory which is not the source
+# directory.  To ensure that rule fires in each of the commonly several
+# build trees sharing a single source tree, stale_itc_gone has been
+# added temporarily to BUILT_SOURCES.  After a month or so, this
+# comment block can be removed, and stale_itc_gone with it.  It should
+# come out of CLEANFILES (which still needs to be explicitly set, don't
+# simply remove the line) and BUILT_SOURCES at the same time the rule
+# is removed.
 
 libparse_a_SOURCES = parse.c \
                     parse_conf.c \
@@ -46,7 +38,7 @@ libparse_a_SOURCES = parse.c \
                     clk_wharton.c \
                     clk_varitext.c \
                     data_mbg.c \
-                    $(srcdir)/info_trimble.c \
+                    info_trimble.c \
                     trim_info.c \
                     binio.c \
                     ieee754io.c \
@@ -84,22 +76,14 @@ ETAGS_ARGS = Makefile.am
 
 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c
 
-info_trimble.c: Makefile $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed
+stale_itc_gone:
        -[ "$(srcdir)" != "." ] && rm -f info_trimble.c # rid ourselves of leftover from old way
+       @echo "at most one info_trimble.c in source and build dirs" > $@
+
+$(srcdir)/info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed
        sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h  > info_trimble.new
        sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new
-       cmp info_trimble.new $(srcdir)/info_trimble.c || mv -f info_trimble.new $(srcdir)/info_trimble.c
-       rm -f info_trimble.new
-       
-# the workaround form above fires too much, such as during
-# "make install", due to the incorrect info_trimble.c target
-# rather than $(srcdir)/info_trimble.c.  That's why it verifies
-# the file contents have changed before modifying it.
-# post-workaround version:
-# $(srcdir)/info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed
-#      sed -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h  > info_trimble.new
-#      sed -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new
-#      mv -f info_trimble.new $@
+       mv -f info_trimble.new $@
 
 kieee754io.o: $(srcdir)/ieee754io.c
         $(COMPILE) $(K_CFLAGS) -c $(srcdir)/ieee754io.c -o $@