Bug 223892

Summary: Cannot build 11-STABLE from 12-CURRENT
Product: Base System Reporter: Shawn Webb <shawn.webb>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Works As Intended    
Severity: Affects Some People CC: ohartmann
Priority: --- Keywords: regression
Version: 11.1-STABLE   
Hardware: Any   
OS: Any   

Description Shawn Webb 2017-11-26 23:46:37 UTC
Since lint(1) was removed from 12-CURRENT, 11-STABLE cannot be built from a 12-CURRENT host. usr.sbin/xlint/llib requires lint(1) to exist in order to build.

Steps to reproduce:

1. Install FreeBSD 12-CURRENT on or after r325893
2. Download FreeBSD 11-STABLE src tree
3. Attempt to build FreeBSD 11-STABLE world, notice the build failure in usr.sbin/xlint/llib
Comment 1 Shawn Webb 2017-11-27 13:46:45 UTC
Hey Kostik,

Could you provide more details? Why is it intended that one cannot build previous versions of FreeBSD from 12-CURRENT?
Comment 2 O. Hartmann 2018-01-04 11:22:21 UTC
Me, too!

I'm supposed to build 11.1-RELENG-p6 for now on recent CURRENT and it doesn't build. Neither a release build nor the base system's packages.

I've also running poudriere (last update, latest version for now) on CURRENT, building ports for 11.1-RELNG. The jail performing this doesn't update from -p3 to -p6 anymore!

Please reopen! Or I'll file another PR.
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-01-11 17:52:00 UTC
A commit references this bug:

Author: ian
Date: Thu Jan 11 17:51:23 UTC 2018
New revision: 327837
URL: https://svnweb.freebsd.org/changeset/base/327837

Log:
  Do not build lint(1) by default on stable-11, add WITH_LINT to enable
  building it.

  lint(1) is required on the host build system to build lint(1) libraries, and
  it is no longer available on FreeBSD 12. This prevents using a 12 or later
  host to build an 11 or earlier system, which causes problems for building
  jails and using poudriere. The problem could be fixed by treating lint as a
  bootstrap tool when building on 12+, but that just adds complexity and build
  time to build a broken tool that virtually nobody uses anymore.

  This is a direct commit to 11-stable because lint no longer exists in later
  branches.

  PR:		223892
  Relnotes:	yes
  Differential Revision:	https://reviews.freebsd.org/D13799

Changes:
  stable/11/UPDATING
  stable/11/share/man/man5/src.conf.5
  stable/11/share/mk/src.opts.mk
  stable/11/usr.bin/Makefile
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-01-11 19:41:35 UTC
A commit references this bug:

Author: ian
Date: Thu Jan 11 19:41:00 UTC 2018
New revision: 327843
URL: https://svnweb.freebsd.org/changeset/base/327843

Log:
  Add description files for WITH/WITHOUT_LINT.  These should have been part
  of r327837.

  PR:		223892
  Differential Revision:	 https://reviews.freebsd.org/D13799

Changes:
  stable/11/tools/build/options/WITHOUT_LINT
  stable/11/tools/build/options/WITH_LINT