1. 26 Nov, 2015 20 commits
  2. 25 Nov, 2015 20 commits
    • George V. Neville-Neil's avatar
      Summary: A simple script to print the return value of any function, · 669f9224
      George V. Neville-Neil authored
      with or without wild cards.
      669f9224
    • Bryan Drewery's avatar
      Follow-up r291338 to handle .d, .y and .l files better as well. · 8ffe95d6
      Bryan Drewery authored
      X-MFC-With:	r291338
      MFC after:	2 weeks
      Sponsored by:	EMC / Isilon Storage Division
      8ffe95d6
    • Bryan Drewery's avatar
      Follow-up r291330: h_testbits.h is only needed by xdr_test. · c196e398
      Bryan Drewery authored
      X-MFC-With:	r291330
      MFC after:	1 week
      Sponsored by:	EMC / Isilon Storage Division
      c196e398
    • Bryan Drewery's avatar
      Fix the "common object" handling to not depend on ".o" if SRCS only contains · c3d4829e
      Bryan Drewery authored
      headers.
      
      This resulted in 'don't know how to make .o.' errors after the changes in
      r289286.
      
      MFC after:	2 weeks
      Sponsored by:	EMC / Isilon Storage Division
      c3d4829e
    • Enji Cooper's avatar
      Link fclose(3) to fdclose(3) · 45d1fa18
      Enji Cooper authored
      X-MFC with: r285140
      MFC after: 3 weeks (need to evaluate whether or not r285140 can be MFCed)
      Sponsored by: EMC / Isilon Storage Division
      45d1fa18
    • Enji Cooper's avatar
      Fix building sys/modules/if_enc by adding missing headers · 766b4e4b
      Enji Cooper authored
      X-MFC with: r291292, r291299 (if that ever happens)
      Pointyhat to: ae
      766b4e4b
    • Bryan Drewery's avatar
      Rename Makefile.inc1 to dtrace.test.mk to avoid clash with top-level Makefile.inc1. · b16fc49e
      Bryan Drewery authored
      Discussed with:	ngie, markj
      Sponsored by:	EMC / Isilon Storage Division
      b16fc49e
    • Bryan Drewery's avatar
      Avoid requiring 'make depend' here. · 95351216
      Bryan Drewery authored
      Really this should not be a DPSRCS.  The acct_test.c should not #include
      convert.c, but just link it in as a normal SRCS.
      
      MFC after:	1 week
      Sponsored by:	EMC / Isilon Storage Division
      95351216
    • Bryan Drewery's avatar
      Replace DPSRCS that work fine in SRCS. · 114350b9
      Bryan Drewery authored
      This is so that 'make depend' is not a required build step in these
      files.
      
      DPSRCS is overall unneeded.  DPSRCS already contains SRCS, so anything
      which can safely be in SRCS should be.  DPSRCS is mostly just a way to
      generate files that should not be linked into the final PROG/LIB.  For
      headers and grammars it is safe for them to be in SRCS since they will
      be excluded during linking and installation.
      
      The only remaining uses of DPSRCS are for generating .c or .o files that
      must be built before 'make depend' can run 'mkdep' on the SRCS c files
      list.  A semi-proper example is in tests/sys/kern/acct/Makefile where a
      checked-in .c file has an #include on a generated .c file.  The
      generated .c file should not be linked into the final PROG though since
      it is #include'd.  The more proper way here is just to build/link it in
      though without DPSRCS.  Another example is in sys/modules/linux/Makefile
      where a shell script runs to parse a DPSRCS .o file that should not be
      linked into the module.  Beyond those, the need for DPSRCS is largely
      unneeded, redundant, and forces 'make depend' to be ran.  Generally,
      these Makefiles should avoid the need for DPSRCS and define proper
      dependencies for their files as well.
      
      An example of an improper usage and why this matters is in usr.bin/netstat.
      nl_defs.h was only in DPSRCS and so was not generated during 'make all',
      but only during 'make depend'.  The files including it lacked proper
      depenencies on it, which forced running 'make depend' to workaround that
      bug.  The 'make depend' target should mostly be used for incremental build
      help, not to produce a working build.  This specific example was broken in
      the meta build until r287905 since it does not run 'make depend'.
      
      The gnu/lib/libreadline/readline case is fine since bsd.lib.mk has 'OBJS:
      SRCS:M*.h' when there is no .depend file.
      
      Sponsored by:	EMC / Isilon Storage Division
      MFC after:	1 week
      114350b9
    • Bryan Drewery's avatar
      Remove redundant DPSRCS which were already in SRCS. · 277fbb92
      Bryan Drewery authored
      DPSRCS already contains all of SRCS.
      
      MFC after:	1 week
      Sponsored by:	EMC / Isilon Storage Division
      277fbb92
    • Kurt Lidl's avatar
      Have syslogd honor 'mesg' status when logging to users. · 24702765
      Kurt Lidl authored
      PR:		bin/196742
      Submitted by:	jef at mail acme com
      Approved by:	rpaulo (mentor)
      Differential Revision:	https://reviews.freebsd.org/D4270
      24702765
    • Bryan Drewery's avatar
      Define a LIB<NAME>DIR for every library that LIBADD provides. · ebf076df
      Bryan Drewery authored
      This is going to be used to allow DIRDEPS to be bootstrapped off of
      LIBADD/DPADD.  It currently works for internal libraries which have a
      DIR defined for them but also use the .a library from a src-mapped obj
      directory.  It can also be useful for using -L without a --sysroot per
      LIBADD to use the OBJDIR version of the libraries.
      
      I didn't review every LIBADD, so it is possible this is missing some.
      
      Sponsored by:	EMC / Isilon Storage Division
      ebf076df
    • Bryan Drewery's avatar
      Fix spelling error. · f198d817
      Bryan Drewery authored
      f198d817
    • Bryan Drewery's avatar
      META MODE: Avoid dirdep dependency on lib/libmd. · c2a55def
      Bryan Drewery authored
      This avoids using the staged headers for sys/crypto/sha2/*.h, such as sha256.h,
      which added an unneeded pre-build dependency on libmd to libcrypt.  This
      header is an INCS in lib/libmd, but found via .PATH in sys/crypto/sha2.
      Since the libcrypt build was already using the in-src libmd headers
      directly, just teach it how to find the sha256.h header as well.
      
      Sponsored by:	EMC / Isilon Storage Division
      c2a55def
    • Bryan Drewery's avatar
      META MODE: Fix MACHINE=host builds. · 2802302e
      Bryan Drewery authored
      We need to not use -nostdinc since it breaks building of clang itself.  Use
      -isystem rather than -I/usr/include and -nostdinc which gets us using
      the stage include directory before searching the real host headers.
      This allows removing more of the -I hacks to get host headers since the
      headers are no longer excluded.  The -B seemed unneeded.
      
      This fixes building of secure/lib/libcrypto which was looking at the
      /usr/include/openssl/asn1.h header rather than the staged one.
      
      This fixes building of clang which wants to find its own internal
      headers in the STAGEDIR/usr/lib/clang/* path.
      
      Sponsored by:	EMC / Isilon Storage Division
      2802302e
    • Bryan Drewery's avatar
      Stop looking up the same id(1) results in sub-makes. · cf10dd45
      Bryan Drewery authored
      Sponsored by:	EMC / Isilon Storage Division
      cf10dd45
    • Bryan Drewery's avatar
      META MODE: Remove unneeded libmd.host dependency for xinstall.host. · 5a0d38b3
      Bryan Drewery authored
      This is chasing r291026.
      
      Sponsored by:	EMC / Isilon Storage Division
      5a0d38b3
    • Bryan Drewery's avatar
      META MODE: Fix 'make bootstrap-tools'. · 4aa63711
      Bryan Drewery authored
      The main problem was bitrot after elftoolchain being swapped in for the
      GNU toolchain.
      
      This also reworks how the list of 'host allowed' libraries is determined
      to only allow INTERNALLIBs, which is needed for libelftc to come in.
      
      For usr.bin/readelf use the same hack, as libelf and libdward, to bring in
      the needed sys/ headers for host builds.  This has not yet been a problem due
      to readelf not being built as a host tool in buildworld.  This is possible
      in the meta build though when building the toolchain.
      
      Sponsored by:	EMC / Isilon Storage Division
      4aa63711
    • Bryan Drewery's avatar
      META MODE: Don't create .meta files when symlinking sources into the obj directory. · b791fbe6
      Bryan Drewery authored
      Tracking these leads to situations where meta mode will consider the
      file to be out of date if /bin/sh or /bin/ln are newer than the source
      file.  There's no reason for meta mode to do this as make is already
      handling the rebuild dependency fine.
      
      Sponsored by:	EMC / Isilon Storage Division
      b791fbe6
    • Bryan Drewery's avatar
      META MODE: Add more hosttools needed pre-universe. · a2d333f3
      Bryan Drewery authored
      Sponsored by:	EMC / Isilon Storage Division
      a2d333f3