From andrew@ugh.net.au  Sun Sep  1 19:46:38 2002
Return-Path: <andrew@ugh.net.au>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2EF0937B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Sep 2002 19:46:38 -0700 (PDT)
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9DB5E43E3B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Sep 2002 19:46:37 -0700 (PDT)
	(envelope-from andrew@ugh.net.au)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id CC1D5A809; Mon,  2 Sep 2002 12:46:32 +1000 (EST)
Message-Id: <20020902024632.CC1D5A809@starbug.ugh.net.au>
Date: Mon,  2 Sep 2002 12:46:32 +1000 (EST)
From: Andrew <andrew@ugh.net.au>
Reply-To: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make release broken without full ports
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42312
>Category:       docs
>Synopsis:       make release broken without full ports
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 01 19:50:09 PDT 2002
>Closed-Date:    Thu Feb 20 16:13:54 PST 2003
>Last-Modified:  Thu Feb 20 16:13:54 PST 2003
>Originator:     Andrew
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
UgH!
>Environment:

FreeBSD polonium.syd.ntt.net.au 4.6.1-RELEASE-p10 FreeBSD 4.6.1-RELEASE-p10 #0: Tue Aug 13 15:46:09 EST 2002     andrews@polonium.syd.ntt.net.au:/usr/obj/usr/src/sys/POLONIUM  i386

>Description:

Trying to make release of 4.6.2 with the command:

${MAKE} release CHROOTDIR=${CHROOTDIR} BUILDNAME=${RELEASE} \
				CVSROOT=${CVSROOT} RELEASETAG=${CVSBRANCH} \
				NOPORTS=YES DOMINIMALDOCPORTS=YES ALLLANG=no \
				WORLD_FLAGS=-j4 KERNEL_FLAGS=-j4

Unfortunately when it comes to installing ghostscript to build the
documentation I get:

===>    Verifying install for /usr/local/bin/sed_inplace in /usr/ports/textproc/
sed_inplace
     >> No directory for /usr/local/bin/sed_inplace.  Skipping..

and the build dies later with:

===>  Applying FreeBSD patches for ghostscript-gnu-nox11-7.05_3
/usr/local/bin/sed_inplace: not found
*** Error code 127

Stop in /usr/ports/print/ghostscript-gnu.
*** Error code 1

>How-To-Repeat:

Try to make release of 4.6.2. It probably only happens on boxes in the
critical OSVERSION range (< 460101 or between 500000 and 500036).

>Fix:

Don't know if this is the "correct" patch but it will hopefully help.
I'm in the process of testing it but it takes a while - I'll follow up
when I know one way or the other. Sending the report now in the hope that
someone who knows more about the release process will read it and suggest
a better solution.

--- /usr/src/release/Makefile.inc.docports	Sun May 19 02:52:09 2002
+++ Makefile.inc.docports	Mon Sep  2 12:26:16 2002
@@ -52,3 +52,6 @@
 .else
 MINIMALDOCPORTS+=	ports/textproc/jade
 .endif
+.if ${OSVERSION} < 460101 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500036 )
+MINIMALDOCPORTS+=	ports/textproc/sed_inplace
+.endif

>Release-Note:
>Audit-Trail:

From: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@FreeBSD.org, <freebsd-doc@FreeBSD.org>
Cc:  
Subject: Re: docs/42312: make release broken without full ports
Date: Mon, 2 Sep 2002 15:57:27 +1000 (EST)

 Looks like ports/www/links needs adding also.
 
 Andrew
 

From: bmah@freebsd.org (Bruce A. Mah)
To: freebsd-gnats-submit@freebsd.org
Cc: bmah@freebsd.org
Subject: Re: docs/42312: make release broken without full ports
Date: Mon, 23 Sep 2002 18:25:40 -0700

 --==_Exmh_-429680864P
 Content-Type: text/plain; charset=us-ascii
 
 Thanks for your PR.  I was staring at this for a few minutes.  A few
 thoughts:
 
 You might be trying to build with a current (HEAD) ports tree, rather 
 than the ports tree that was tagged as RELEASE_4_6_2.
 
 Your patch has the right idea, but a problem is that OSVERSION is
 defined for the version of FreeBSD running on the building host.  For
 your patch to work it needs to be able to figure out OSVERSION for the
 chroot area used to build the release, which is not necessarily the
 same.
 
 For a -STABLE and -CURRENT ports tree, www/links isn't required for
 docs, but www/links1 is (and it's listed as such in
 Makefile.inc.docports).
 
 I'm not sure what's the right thing to do here; it'd be nice if we could
 go and fix this, but I'm somewhat opposed to committing a fix to a
 non-critical, fairly-easily-worked-around problem on a security-fix
 branch.  Hmmm...
 
 Bruce.
 
 
 
 --==_Exmh_-429680864P
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.7 (FreeBSD)
 Comment: Exmh version 2.5+ 20020506
 
 iD8DBQE9j78T2MoxcVugUsMRAhpzAJ4xt55KiMjosnojSLGC+5B6AQU9eQCgxL2F
 7Ls9uWZvOcT3n2gGSiSIhyA=
 =zZ+v
 -----END PGP SIGNATURE-----
 
 --==_Exmh_-429680864P--
State-Changed-From-To: open->feedback 
State-Changed-By: bmah 
State-Changed-When: Wed Feb 19 21:04:47 PST 2003 
State-Changed-Why:  
Is it OK if I close this?  I think it's something that can (should) 
be worked around by making sure that a release gets built with a 
ports tree with a tag that's consistent with the release being built 
(as described in my first followup). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42312 
State-Changed-From-To: feedback->closed 
State-Changed-By: bmah 
State-Changed-When: Thu Feb 20 16:12:51 PST 2003 
State-Changed-Why:  
Closed by consent of originator.  For the audit trail: 

> Sorry I missed your original follow up. The machine has been happily 
> building 4.7 releases with ports from HEAD so I'm happy for the problem to 
> be closed. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=42312 
>Unformatted:
