From owner-freebsd-ports@FreeBSD.ORG Thu Apr 26 10:04:03 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3280516A408 for ; Thu, 26 Apr 2007 10:04:03 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by mx1.freebsd.org (Postfix) with ESMTP id E7F9F13C45E for ; Thu, 26 Apr 2007 10:04:02 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so699756nza for ; Thu, 26 Apr 2007 03:04:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=twAyZ0OF71LSX+HBM+S4VamX+prBqb6YHzoW/thkyquPYFhvxRsMIN8WJgz7oLjdFoIg3e7F8Cwurocd06/5c5WmYGbxGIV1z+2q7jZ34dehNyd0eAFlUxyuKteZCfrrohbHCjFDTJj7gc6s92zQt6TH4nyuw6M7ZUScaGptkJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EcFHx2NjdLQiOPL8tIaglRW2T3o9e7BTFHu9nUiL0ZWCuVtZs3UDZ9hbchpjy8AxyhqcJCvbiigx5jYkrCLFt6TOyjSwobiC70FuisKrZwerfyr2qus9EYC5nxEqzKFRNuWZ6y0CSq5pp8rZOWWOP3iAZcN/SKaM8g+NMgLrnBw= Received: by 10.65.114.11 with SMTP id r11mr3686766qbm.1177581842212; Thu, 26 Apr 2007 03:04:02 -0700 (PDT) Received: by 10.64.185.12 with HTTP; Thu, 26 Apr 2007 03:04:02 -0700 (PDT) Message-ID: <6eb82e0704260304g66cc60bdt564afe711929ff03@mail.gmail.com> Date: Thu, 26 Apr 2007 18:04:02 +0800 From: "Rong-en Fan" To: ports@freebsd.org, ale@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: /usr/ports symlink and portconf X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 10:04:03 -0000 When /usr/ports is a symbolic links, ports-mgmt/portconf does not because .CURDIR contains the real path. I filed a PR 104838 last year which contains a patch that detects the real path of ${PORTSDIR} at runtime. The patch is at http://people.freebsd.org/~rafan/portconf.diff If you look at the patch, you will find that I invoke shell (via !=) whenever make is used. It impacts buildworld speed. On a P4 3.4G SMP i386 box, building RELENG_6 : before / after: 49m24.906s / 52m17.299s If most of you don't think this is acceptable, then it can be done at installation time. I would like to get this committed into portconf. Some boxes of mine has symlink on /usr/ports. Regards, Rong-En Fan