From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 11 00:40:40 2012 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88DA106566B; Wed, 11 Jan 2012 00:40:39 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward14.mail.yandex.net (forward14.mail.yandex.net [IPv6:2a02:6b8:0:801::4]) by mx1.freebsd.org (Postfix) with ESMTP id 0AD868FC0C; Wed, 11 Jan 2012 00:40:39 +0000 (UTC) Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward14.mail.yandex.net (Yandex) with ESMTP id 193E019816CE; Wed, 11 Jan 2012 04:40:38 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1326242438; bh=IuBeWwtoEdTWtbgl63c5FZ4g4es6ZeXcA3UjJIXpN/s=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JbTFzw2ZOM9DhNUqQQ6Uj/oijlzDSCBPUr3/xSOofW0RATtYVbv1nX/FyROk5NNUz lCOlTv9SRFc4nN7jC7W9Cneoh1B76kz1mDraiKie5LJMfN7sw/qrpirjdX1psNxzrz QAJtseyJBu4YgUwVPWj4qojbguBklAXw9YhG96dY= Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id DC3D216A021C; Wed, 11 Jan 2012 04:40:37 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1326242437; bh=IuBeWwtoEdTWtbgl63c5FZ4g4es6ZeXcA3UjJIXpN/s=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mJLupenbY+V6LJi9K4IA5AvIzbdtr4tpTHv/9N4LamLF5KdKOM85MU6MbceO3P5vx MdLzVqQRKBqqNC8vyAi5l1x+CC1sDlKQhWJDx83gO/WZP2xvS/LuYX5/zA2QPLRTlv H/jH3lC8W8OnZ72ARdvdGPvUqichwjXeXWs2HDYQ= Received: from unknown (unknown [176.8.25.138]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ebmO80Ko-ebmOJBaf; Wed, 11 Jan 2012 04:40:37 +0400 X-Yandex-Spam: 1 Date: Wed, 11 Jan 2012 02:40:35 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <325867273.20120111024035@yandex.ru> To: Doug Barton In-Reply-To: <4F0CD408.20208@FreeBSD.org> References: <201201102343.q0ANhWJC010928@freefall.freebsd.org> <1788789642.20120111020717@yandex.ru> <4F0CD408.20208@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-bugs@FreeBSD.org, linimon@FreeBSD.org Subject: Re[2]: bin/163997: mergemaster(8): harcoded source tree path in 'mergemaster -p' X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 00:40:40 -0000 Здравствуйте, Doug. Вы писали 11 января 2012 г., 2:12:56: DB> On 01/10/2012 16:07, Коньков Евгений wrote: >> in other world: assume ./ as srouce directory instead of /usr/src DB> That's not going to happen. The solution is to use the -m option. DB> Various reasons why, the most important of which is that there is no way DB> to know for sure if . is the source directory you want to use. Why you are shure that the srouce directory I want to use is /usr/src? see the Makefile: # For individuals wanting to upgrade their sources (even if only a # delta of a few days): # # 1. `cd /usr/src' (or to the directory containing your source tree). NOTICE: (or to the directory containing your source tree) It says that I can use any directory I want with no limit and below is description of commands (standard commands? I think they are) I must to use: So 1. cd /usr/src.svn/head10 2. make buildworld .... 6. mergemaster -p may be: ---# 6. `mergemaster -p` +++# 6. `mergemaster -p' (use -m /path/to/sources in case of sources are not in /usr/src directory) DB> It's really important for you to understand that if you do non-standard DB> things you need to be prepared to deal with the consequences of that. DB> There are a LOT of places with various assumptions about how your file DB> systems are laid out. So you must get options from Makefile to get them all. When dowing 'make installworld' it donot do any assumtions about where files must be placed it EXACTLY know where they are must be placed. You can call `./make mergemaster` and use exact output instead of assumptions. Patch Makefile such a way 'make mergemaster' will output SYSCONFDIR=/etc SOURCETREE=/path/to/sources (e.g. current directory) ANOTHERVAR=some_var CONF=some_conf It will be handy in contrary to remember unnecessary things. or THE BEST choice: # 6. `make mergeprepare' # 7. `make installworld' # 8. `make delete-old' # 9. `make mergecomplete' (you may wish to use -i, along with -U or -F). In this case Makefile will instruct 'mergemaster' all thing it need =) Good luck, -- С уважением, Коньков mailto:kes-kes@yandex.ru