Commit Graph

376 Commits

Author SHA1 Message Date
ngie
6d12e854a1 MFC r271401:
r271401 (by asomers):

Conditionalize build of etcupdate(8) on MK_RCS. Since etcupdate calls
merge(1), which is part of the RCS package, it must not be installed if
WITHOUT_RCS update is set. Otherwise, it will produce confusing errors.

CR:		https://reviews.freebsd.org/D691
Sponsored by:	Spectra Logic
2015-12-15 18:01:05 +00:00
bdrewery
a749338c26 MFC r290435:
Don't allow environment-set options to bleed into src.conf.5 generation.
2015-12-04 18:32:39 +00:00
ngie
90fda359a4 MFC r269902,r270101:
r269902:

Convert bin/sh/tests to ATF

The new code uses a "test discovery mechanism" to determine
what tests are available for execution

The test shell can be specified via:

  kyua test -v test_suites.FreeBSD.bin.sh.test_shell=/path/to/test/sh

Sponsored by: EMC / Isilon Storage Division
Approved by: jmmv (mentor)
Reviewed by: jilles (maintainer)

r270101 (by jilles):

sh: Don't hardcode relative paths in the tests stderr files.

These paths have had to be adjusted to changes in the testsuite runner
several times, so modify the tests to remove the need for such adjustment.

A cp in functional_test.sh is now unneeded, but this matters little in
performance.
2015-12-01 18:27:38 +00:00
ngie
5ff7d08c68 MFC r290659,r290660:
r290659:

- Move ng_bluetooth.4 under MK_BLUETOOTH != no
- Move all section 5 bluetooth manpages under MK_BLUETOOTH != no

PR: 193260
Reported by: Philippe Michel <philippe.michel7@sfr.fr>
Sponsored by: EMC / Isilon Storage Division

r290660:

Move the MK_BLUETOOTH block down below the architecture specific sections by the
other generic options

PR: 193260
Sponsored by: EMC / Isilon Storage Divisions
2015-11-15 20:23:09 +00:00
ngie
cc82888695 MFC r289903:
Add libvmmapi to OptionalObsoleteFiles.inc when MK_BHYVE == no

Sponsored by: EMC / Isilon Storage Division
2015-11-09 07:18:09 +00:00
ngie
9d8d32a23a MFC r288057:
Delete /etc/autofs/special_noauto when MK_AUTOFS == no
2015-10-25 22:50:33 +00:00
ngie
73ec89f18b MFC r286822:
Reap MK_SYSINSTALL

It's no longer in use in the tree (most likely missed when sade/sysinstall
were removed)
2015-10-25 22:41:26 +00:00
avg
6087342130 MFC r288339: remove unused sgsmsg utility (originally imported from opensolaris) 2015-10-23 08:35:17 +00:00
bdrewery
8808238003 MFC r287935:
Optimize makeman slightly by removing uneeded cat and extra test -s.
2015-09-29 21:45:23 +00:00
garga
00312c6557 MFC 256710:
Add lot of missed files and dirs

Approved by:	loos
Sponsored by:	Netgate
2015-08-11 15:53:11 +00:00
garga
2f35582a54 MFC r286451:
Add missing files to sendmail obsolete files list

Approved by:	gshapiro
Sponsored by:	Netgate
Differential Revision:	https://reviews.freebsd.org/D3302
2015-08-11 15:25:08 +00:00
bdrewery
42e5eca96d MFC r281053:
Remove specific reference to g++(1) for WITH_CXX as it may be clang.
2015-04-23 15:15:45 +00:00
ngie
487f2aaa14 MFC r271893,r271895,r272043,r278249,r278282,r278466:
r271893:

Don't install /etc/rc.d/rwho unless MK_RCMDS == yes

Sponsored by: EMC / Isilon Storage Division

r271895:

Don't install /etc/rc.d/ftp-proxy unless MK_PF == yes

Sponsored by: EMC / Isilon Storage Division

r272043:

Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division

r278249:

Honor the following flags with the following rc.d scripts for services that can
be easily decoupled from the boot process without disrupting other services

- MK_APM && MK_ACPI: powerd
- MK_BOOTPARAMD: bootparams
- MK_FTP: ftpd
- MK_INETD: inetd
- MK_LEGACY_CONSOLE: moused, syscons
- MK_MAIL: othermta
- MK_NS_CACHING: nscd
- MK_NTP: ntpd (ntpdate is required by other services and can't be easily
                conditionalized -- yet..)
- MK_ROUTED: routed
- MK_SENDMAIL: sendmail
- MK_TIMED: timed
- MK_VI: virecover

Sponsored by: EMC / Isilon Storage Division

r278282:

Use FILES+= idiom instead of _inetd when referencing inetd rc.d script

This was a discrepancy between ^/projects/building-blocks and ^/head that I
didn't resolve before committing the change to ^/head

Pointyhat to: me
Reported by: jhb
Sponsored by: EMC / Isilon Storage Division

r278466:

Remove explicit routing/sendmail rc.d inclusion in FILES

Reported by: Guy Yur <guyyur@gmail.com>
Sponsored by: EMC / Isilon Storage Division
2015-03-24 07:43:58 +00:00
ngie
c363eff24f MFC r278135,r278202:
r278135 (by amdmi3):

- Remove more files when MK_USB == no

Reviewed by:	ngie
Approved by:	ngie
Differential Revision:	D1600

r278202:

Clean up more usb related files when MK_USB == no when dealing with
manpages, libraries, and binaries

Sponsored by: EMC / Isilon Storage Division
2015-03-24 06:55:08 +00:00
ngie
0625beb8de MFC r278193:
Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

Sponsored by: EMC / Isilon Storage Division
2015-03-01 22:07:54 +00:00
ngie
de8fb43ec9 MFC r278192:
Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division
2015-03-01 22:03:52 +00:00
ngie
63d67d50be MFC r277678:
r277678:

  Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:32:05 +00:00
ngie
3bd87ad25c MFC r277677:
r277677:

  Add MK_BSDINSTALL knob for building and installing bsdinstall

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:24:32 +00:00
ngie
9ed52cebd8 MFC r277676:
r277676:

  Add MK_TALK knob for building the talk and talkd

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:19:54 +00:00
ngie
8d9631da62 MFC r277736:
r277736:

  Honor MK_ACCT with etc/rc.d/accounting

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 09:16:17 +00:00
ngie
f5a4512544 MFC r277741:
r277741:

  Respect MK_KERBEROS with etc/rc.d/ipropd_master and etc/rc.d/ipropd_slave

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 09:00:22 +00:00
ngie
ffd518acc5 MFC r278182:
r278182:

  Conditionalize building radius support into libpam, ppp, etc via
  MK_RADIUS_SUPPORT

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 08:52:29 +00:00
ngie
4b091326f3 MFC r264515:
r264515 (by imp):

  Document WITHOUT_GPL_DTC too.
2015-02-11 07:38:07 +00:00
ngie
22f4a9ff52 MFC r277728:
r277728:

  Add MK_AUTOFS knob for building and installing autofs(4), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:30:20 +00:00
ngie
a01a4bc555 MFC r277727:
r277727:

  Add MK_BHYVE knob for building and installing bhyve(4), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:21:16 +00:00
ngie
e146e39f9f MFC r277725:
r277725:

  Add MK_HAST knob for building and installing hastd(8), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:12:00 +00:00
ngie
bf4551aa32 MFC r277675,r277726,r278070:
r277675:

  Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
  modules, etc

  Sponsored by: EMC / Isilon Storage Division

r277726:

  Build sbin/iscontrol again if MK_ISCSI != no

  Pointyhat to: me

r278070:

  Remove duplicate MK_ISCSI block and sort the conditional blocks so this error
  won't crop up again in the future

  Reported by: gjb
2015-02-11 07:08:32 +00:00
ngie
b7391dae4a MFC r277663:
r277663:

  Add MK_EE knob to control installing edit, ee, etc

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 06:57:20 +00:00
ngie
a5b12ae122 MFC r277730:
r277730:

  Honor MK_ACPI in etc/devd and etc/rc.d

  Sponsored by: EMC / Isilon Storage Division
2015-02-05 10:36:38 +00:00
ngie
cf206fc8f2 MFC r270028:
r270028:

  Make the USB and ZFS devd configuration files optional depending on the
  values of MK_USB/MK_ZFS

  Making zfs.conf optional resolves PR # 186971

  PR: 186971
  Phabric: D606
  Approved by: jmmv (mentor)
  Sponsored by: EMC / Isilon Storage Division
2015-02-05 10:21:21 +00:00
ngie
4b0ec0fcb8 MFC r277740,r278053:
r277740:

  Honor MK_WIRELESS with etc/rc.d/hostapd and etc/rc.d/wpa_supplicant

  Sponsored by: EMC / Isilon Storage Division

r278053:

  Remove hostapd and wpa_supplicant from FILES so they're installed conditionally
  if MK_WIRELESS != no
2015-02-05 09:59:18 +00:00
ngie
6cbea0fc89 MFC r277733:
r277733:

  Honor MK_AMD with etc/rc.d/amd

  Sponsored by: EMC / Isilon Storage Division
2015-02-04 09:33:42 +00:00
ngie
152cd06f53 MFC r277732:
r277732:

  Honor MK_API in etc/rc.d

  Sponsored by: EMC / Isilon Storage Division
2015-02-04 09:31:10 +00:00
ngie
5f6c6cdef0 MFC r277731,r277734:
r277731:

  Honor MK_LPR with etc/rc.d/lpd

  Sponsored by: EMC / Isilon Storage Division

r277734:

  Remove explicit inclusion of lpd from FILES

  Sponsored by: EMC / Isilon Storage Division
2015-02-04 09:21:07 +00:00
ngie
4387ccbff5 MFC r277738:
r277738:

  Honor MK_BLUETOOTH with etc/defaults/bluetooth.device.conf

  Sponsored by: EMC / Isilon Storage Division
2015-02-04 09:14:07 +00:00
ngie
50ffbe800b MFC r277739:
r277739:

  Honor MK_JAIL with etc/rc.d/jail

  Sponsored by: EMC / Isilon Storage Division
2015-02-04 09:10:46 +00:00
ngie
22af0668e8 MFC r277686,r277687:
r277686:

  Install bsnmp rc.d script if MK_BSNMP != no

  Sponsored by: EMC / Isilon Storage Division

r277687:

  Fill in entries for MK_BSNMP == no

  Sponsored by: EMC / Isilon Storage Division
2015-02-02 09:56:57 +00:00
ngie
91a6a3651f MFC r277685:
r277685:

  Fill in some dtrace entries when MK_CDDL == no

  Sponsored by: EMC / Isilon Storage Division
2015-02-02 08:53:45 +00:00
ngie
259bd5c13f MFC r275907:
r275907 (by ngie):

  Fix building/installing tests when TESTSBASE != /usr/tests

  The work in r258233 hardcoded the assumption that tests was the last component
  of the tests tree by pushing tests as an explicit prefix for the paths in
  BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
  of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
  provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

  One thing that r258233 did properly though was remove "/usr/tests" creation
  from BSD.usr.dist -- that should have not been there in the first place. That
  was an "oops" on my part for the work that was originally committed in r241823

  Phabric: D1301
  Reviewed by: imp
  Sponsored by: EMC / Isilon Storage Division
2015-01-20 23:39:08 +00:00
ian
fe75b90da9 MFC r270190: Don't kill parallel jobs on (expected) failure of make_check. 2014-12-26 21:40:45 +00:00
ngie
dc3ad5131f MFC r273929:
r273929 (by jmmv):

  MFV: Import atf-0.21.
2014-12-21 08:30:18 +00:00
ngie
2ceba1b134 MFC r272057,r272083,r272084,r272087,r274016:
r272057:

  Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

  - Remove tools/regression/pjdfstest
  - Add upgrade directions for contrib/pjdfstest
  - Add a note to UPDATING for the move (the reachover Makefiles are coming
    soon)

  Functional differences:
  - ftruncate testcases are added from upstream (github)

  Non-functional differences:
  - The copyright for the project has been updated to 2012
  - pjd's contact information has been updated

  Discussed with: -testing, jmmv, pjd
  Sponsored by: EMC / Isilon Storage Division

r272083:

  Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
  symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
  etc)

  Sponsored by: EMC / Isilon Storage Division

r272084:

  Fix the executed testplan count

  Sponsored by: EMC / Isilon Storage Division

r272087:

  Increase the memory disk size in the following testcases to avoid mount
  failures, which would cause cascade failures in the rest of the test
  run:

  link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

  Fail quickly in all of the testcases if mdconfig, mount, umount, etc
  fails to avoid issues similar to this in the future

  Submitted by: Casey Peel <cpeel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274016:

  Integrate pjdfstest test suite execution into kyua

  pjdfstest execution is opt-in and must be done as root due to some of the
  assumptions made by the test suite and lack of error checking in the non-root
  case

  A description of how to execute pjdfstest with kyua is provided in
  share/pjdfstest/README

  Phabric: D824 (an earlier prototype patch)
  Relnotes: yes
  Sponsored by: EMC / Isilon Storage Division
2014-12-05 11:44:18 +00:00
delphij
b671144801 MFV r273747:
Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by:	jmg [1]
Reviewed by:	jmg
2014-11-11 05:55:37 +00:00
rodrigc
538d05fbcc Merge: r269884
Complete the usr.bin/yacc kyua integration work I originally
submitted via r268811

- Install the Kyuafile by adding FILES to FILESGROUPS
- Run the testcases with an unprivileged user

  Some of the testcases depend upon behavior that's broken when
  run as root on FreeBSD because of how permissions are treated
  with access(2) vs eaccess(2), open(2), etc

- Simplify the test driver to just inspect the exit code from
  run_test because it now exits with 0 if successful and exits
  with !0 if unsuccessful
- Don't do ad hoc temporary directory creation/deletion; let Kyua
  handle that
- Add entries for files removed in r268811 to
  OptionalObsoleteFiles.inc

PR: 191020
X-MFC with: r268811
Approved by: jmmv (mentor)
Reviewed by: bapt
Sponsored by: EMC / Isilon Storage Division
2014-10-11 23:31:44 +00:00
delphij
ee5d204051 MFC r271493,271688-271689,271696,271854,272139-272143:
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by:	re (gjb)
2014-09-30 17:54:57 +00:00
gjb
91dd3107b1 Properly revert r272128.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-26 03:03:58 +00:00
gjb
d7f7435644 Revert r272149, which introduces obscure vestiges from the
r272128 reversal.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-26 02:30:47 +00:00
gjb
9ffa63da8b Revert r272128:
Though this passes the buildworld test, this fails during
  installworld with:

  make[3]: "/releng/scripts-release/chroots/10/i386/release/etc/devd/Makefile"
  line 13: Malformed conditional (${MK_HYPERV} != "no")

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-26 01:08:31 +00:00
delphij
8e573ba7c9 MFC r271493,271688,271689,271696,271854:
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by:	re (gjb)
2014-09-25 20:34:13 +00:00
ngie
e55bc1f0d7 MFC r267176, r267181, r268445 (ATF-related commits):
Phabric: https://reviews.freebsd.org/D706
Approved by: rpaulo (mentor)
Approved by: re (gjb)
Reviewed by: jmmv
Sponsored by: EMC / Isilon Storage Division

r267176:

 Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

 This exists already in plain.test.mk and tap.test.mk and should have been
 added to atf.test.mk too when the feature was first introduced.

 (It is probably time to address the related TODOs but I will do that
 separately.)

r267181:

 Move atf-sh from /usr/bin/ to /usr/libexec/

 In r266650, we made libatf-c and libatf-c++ private libraries so that no
 components outside of the source tree could unintendedly depend on them.

 This change does the same for the "atf-sh library" by moving the atf-sh
 interpreter from its public location in /usr/bin/ to the private location
 in /usr/libexec/.  Our build system will ensure that our own test programs
 use the right binary, but users won't be able to depend on atf-sh by
 "mistake".

 Committing this now to ride the UPDATING notice added with r267172 today.

r268445:

 Fix atf-sh's integration_test

 With the move of atf-sh into /usr/libexec in r267181, some of the
 tests in the integration_test program broke because they could not
 execute atf-sh from the path any longer.

 This slipped through because I do have a local atf installation in
 my home directory that appears in my path, hence the tests could
 still execute my own version.

 Fix this by forcing /usr/libexec to appear at the beginning of the
 path when attempting to execute atf-sh.

 To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
 make integration_test depend on the Makefile so that a rebuild of the
 shell script is triggered.  This requires a hack in the *.test.mk files
 to ensure the Makefile is not treated as a source to the generated
 program.  Ugly, I know, but I don't have a better way of doing this at
 the moment.  Will think of one once I address the TODO in the *.test.mk
 files that suggests generalizing the file generation functionality.

 PR:		191052
 Reviewed by:	Garrett Cooper
2014-09-09 04:00:30 +00:00