From nobody@FreeBSD.org  Mon Mar  2 15:39:08 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4FAA810656BE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 15:39:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3B9C78FC27
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 15:39:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n22Fd7ki065416
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 2 Mar 2009 15:39:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n22Fd732065409;
	Mon, 2 Mar 2009 15:39:07 GMT
	(envelope-from nobody)
Message-Id: <200903021539.n22Fd732065409@www.freebsd.org>
Date: Mon, 2 Mar 2009 15:39:07 GMT
From: bzeeb <bzeeb+freebsd@zabbadoz.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [regression] mergemaster no longer working outside FreeBSD src/ tree
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132259
>Category:       bin
>Synopsis:       [regression] mergemaster(8) no longer working outside FreeBSD src/ tree
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 02 15:40:01 UTC 2009
>Closed-Date:    Fri Mar 06 10:24:34 UTC 2009
>Last-Modified:  Fri Mar 06 10:24:34 UTC 2009
>Originator:     bzeeb
>Release:        7-STABLE
>Organization:
>Environment:
>Description:
While with old mergemaster version it was perfectly fine to have
an non-FreeBSD-src but equivalent tree and use mergemaster -m /path/to/that
and mergemaster files into an environment.

This now fails trying to call (internal) targets like:

make: don't know how to make _obj. Stop
or
make: don't know how to make everything. Stop

followed by:

  *** FATAL ERROR: Cannot 'cd' to /u1/server-skel/etc and install files to
      the temproot environment

sidenote: I think it should be "... or install..."

Adding the targets blank helps to still use it but
looking at the sources it seems to have hardcoded more constants like a
proper share/mk for make -m system makefiles now as well.
I wonder why those options need hardcoding into general installed file in
a way that they are not replaceable by the user?

If mergemaster is only used as a substitue for make distribution at install time to update merge from the freebsd src tree we should leave it as a src-tree update "dependency" and not install it to /usr/sbin at all.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 2 18:43:27 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132259 
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Mon Mar 2 19:11:10 UTC 2009 
State-Changed-Why:  

I think I'm missing something. Are you saying that you're trying 
to use mergemaster for source trees other than FreeBSD's? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132259 

From: bzeeb+freebsd@zabbadoz.net
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/132259: [regression] mergemaster(8) no longer working outside
 FreeBSD src/ tree
Date: Mon, 2 Mar 2009 19:17:55 +0000 (UTC)

 On Mon, 2 Mar 2009, dougb@FreeBSD.org wrote:
 
 > I think I'm missing something. Are you saying that you're trying
 > to use mergemaster for source trees other than FreeBSD's?
 
 Yes, done that for ages. It's a general tool installed to /usr .
 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: dougb 
State-Changed-When: Mon Mar 2 19:59:53 UTC 2009 
State-Changed-Why:  

There are lots of tools in the base (including /usr/sbin)that are 
FreeBSD-specific. That is not a bug. 

If you'd like to supply patches that will accomplish what you are 
looking for I'll take a look. 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132259 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Mar 6 10:24:07 UTC 2009 
State-Changed-Why:  

If you come up with patches please feel free to send them. 

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