Bug 214562 - installworld on 11.0-Stable WITHOUT_CAPSICUM should imply WITHOUT_CASPER
Summary: installworld on 11.0-Stable WITHOUT_CAPSICUM should imply WITHOUT_CASPER
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 05:53 UTC by dewayne
Modified: 2016-12-12 21:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2016-11-16 05:53:03 UTC
Unfortunately I'm trying to migrate from 10.3S to 11.0Stable, rather than install into the main system, I'm installing into a workarea DESTDIR=/usr/prod/110101/P/PRESCOTT/d.  

Using my existing, make.conf and src.conf, the latter contains WITHOUT_CAPSICUM=YES, the installworld fails with 

--- _FILESINS ---
install  -o root -g wheel  -m 444 system.dns system.grp system.pwd system.random system.sysctl /usr/prod/110101/P/PRESCOTT/d/etc/casper/
install: target directory `/usr/prod/110101/P/PRESCOTT/d/etc/casper/' does not exist
usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
...
bmake[3]: stopped in /usr/src/etc/casper
1 error

bmake[3]: stopped in /usr/src/etc/casper
*** [distribution] Error code 2

bmake[2]: stopped in /usr/src/etc
1 error

Adding WITHOUT_CASPER= seems to work. At at least arrive at 
install -C -o root -g wheel -m 644  /usr/src/libexec/dma/dmagent/dma.conf /usr/prod/110101/P/PRESCOTT/d/etc/dma/
install: /usr/prod/110101/P/PRESCOTT/d/etc/dma/: No such file or directory
*** [_CONFSINS] Error code 71

bmake[5]: stopped in /usr/src/libexec/dma/dmagent
1 error

Thankful that https://www.freebsd.org/cgi/man.cgi?query=src.conf&apropos=0&sektion=0&manpath=FreeBSD+11.0-stable&arch=default&format=html give me a clue
WITHOUT_DMAGENT=

On with the hunt...
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2016-11-18 19:32:36 UTC
Casper depends on capsicum so disabling capsicum should disable casper.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-12-10 13:29:57 UTC
A commit references this bug:

Author: bapt
Date: Sat Dec 10 13:29:51 UTC 2016
New revision: 309805
URL: https://svnweb.freebsd.org/changeset/base/309805

Log:
  Make WITHOUT_CAPSICUM implying WITHOUT_CASPER

  PR:		214562
  Reported by:	dewayne@heuristicsystems.com.au
  MFC after:	2 days

Changes:
  head/share/mk/src.opts.mk
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-12-12 21:46:11 UTC
A commit references this bug:

Author: bapt
Date: Mon Dec 12 21:45:26 UTC 2016
New revision: 309954
URL: https://svnweb.freebsd.org/changeset/base/309954

Log:
  MFC r309805:

  Make WITHOUT_CAPSICUM implying WITHOUT_CASPER

  PR:		214562
  Reported by:	dewayne@heuristicsystems.com.au

Changes:
_U  stable/11/
  stable/11/share/mk/src.opts.mk