From root@schmalzbauer.de  Tue Nov 16 22:22:08 2004
Return-Path: <root@schmalzbauer.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0B70716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Nov 2004 22:22:08 +0000 (GMT)
Received: from flb.schmalzbauer.de (flb.schmalzbauer.de [62.245.232.135])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 089D943D39
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Nov 2004 22:22:07 +0000 (GMT)
	(envelope-from root@schmalzbauer.de)
Received: from korso.flintsbach.schmalzbauer.de ([172.21.2.3])
	by flb.schmalzbauer.de (8.13.1/8.13.1) with ESMTP id iAGMM5IT093322
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Nov 2004 23:22:05 +0100 (CET)
	(envelope-from root@test1.flintsbach.schmalzbauer.de)
Received: from test1.flintsbach.schmalzbauer.de (test1.flintsbach.schmalzbauer.de [172.21.3.1])
	by korso.flintsbach.schmalzbauer.de (Postfix) with ESMTP id 79B5313D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Nov 2004 23:22:05 +0100 (CET)
Received: from test1.flintsbach.schmalzbauer.de (localhost.flintsbach.schmalzbauer.de [127.0.0.1])
	by test1.flintsbach.schmalzbauer.de (8.13.1/8.13.1) with ESMTP id iAGMM5WS082069
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Nov 2004 23:22:05 +0100 (CET)
	(envelope-from root@test1.flintsbach.schmalzbauer.de)
Received: (from root@localhost)
	by test1.flintsbach.schmalzbauer.de (8.13.1/8.13.1/Submit) id iAGMM4eC082068;
	Tue, 16 Nov 2004 23:22:04 +0100 (CET)
	(envelope-from root)
Message-Id: <200411162222.iAGMM4eC082068@test1.flintsbach.schmalzbauer.de>
Date: Tue, 16 Nov 2004 23:22:04 +0100 (CET)
From: Charlie & <root@schmalzbauer.de>
Reply-To: Charlie & <root@schmalzbauer.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Not NOMAN requires NO_CXX in make.conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74019
>Category:       misc
>Synopsis:       Not NOMAN requires NO_CXX in make.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 22:30:31 GMT 2004
>Closed-Date:    Sat Oct 14 19:19:10 GMT 2006
>Last-Modified:  Sat Oct 14 19:19:10 GMT 2006
>Originator:     Harald Schmalzbauer
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD test1.flintsbach.schmalzbauer.de 5.3-STABLE FreeBSD 5.3-STABLE #23: Tue Nov 16 10:33:39 CET 2004 root@test1.flintsbach.schmalzbauer.de:/builder/obj/builder/src/sys/A7V8X-X i386


	
>Description:
	When I use a customized make.conf to install a customized base system (like with
	sysinstall) and define NO_CXX (because I don't need a compiler on a productive
	fileserver) I can't read man pages although I haven't defined NOMAN.
	It seems that groff is built together with the gnu compiler and should instead
	be built (and installed) depending on the NOMAN flag in make.conf.

>How-To-Repeat:
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@FreeBSD.org, root@schmalzbauer.de
Cc: obrien@freebsd.org
Subject: Re: misc/74019: Not NOMAN requires NO_CXX in make.conf
Date: Sun, 12 Jun 2005 19:30:05 +0200

 The problem (if it's a problem) resides in /usr/src/Makefile.inc1:770
 and was added by obrien@ (CC'ed) in revison 1.363 on 2003/05/31 .
 After the commit, obrien was asked the reason for this change, since
 gnu/usr.bin/groff/tmac doesn't depend on c++ . obrien answered:
 "[...] feel free to keep that part out of the logic.  But it will get
 hairier than just allowing the NO_CXX to over just a little bit too
 much." (See
 http://lists.freebsd.org/mailman/htdig/cvs-src/2003-June/004465.html )
 
 Because of this, I'm not sure whether this is a bug or a feature.
 My personal opinion is for it being a bug so I would suggest the
 following patch (can be found at
 http://www.riondabsd.net/diff/Makefile.inc1.diff ) :
 
 --- Makefile.inc1.old	Mon Jun  6 11:39:46 2005
 +++ Makefile.inc1	Sun Jun 12 19:23:05 2005
 @@ -769,11 +769,6 @@
  
  .if !defined(NO_CXX)
  _gperf=		gnu/usr.bin/gperf
 -.if ${BOOTSTRAPPING} < 500113
 -_groff=		gnu/usr.bin/groff
 -.else
 -_groff=		gnu/usr.bin/groff/tmac
 -.endif
  .endif
  
  .if ${BOOTSTRAPPING} < 600029
 
 
 Best Regards
 -- 
 Rionda aka Matteo Riondato
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Sat Oct 14 19:09:30 UTC 2006 
State-Changed-Why:  
Groff includes some C++ programs so it cannot be built/installed 
without a C++ (when NO_CXX is defined).  NO_MAN controls whether 
we build/install the manual pages.  Similarly the NO_GROFF option 
isn't directly related to NO_MAN.  I suggest that to achieve what 
you want you use the NO_TOOLCHAIN option, only with installworld. 
It will work correctly, and not cause Groff to not be installed. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Sat Oct 14 19:09:30 UTC 2006 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=74019 
>Unformatted:
 >HowTo-Repeat:
 	Use a make.conf with NO_CXX=true and call 'man procfs' on the target system
 	after installing.
 	You'll see the error:
 	/usr/bin/tbl not found
 	/usr/bin/groff not found
 
