From owner-freebsd-ports@FreeBSD.ORG Fri Jun 5 20:06:10 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 306C0106566B for ; Fri, 5 Jun 2009 20:06:10 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-bw0-f217.google.com (mail-bw0-f217.google.com [209.85.218.217]) by mx1.freebsd.org (Postfix) with ESMTP id AD2DE8FC08 for ; Fri, 5 Jun 2009 20:06:09 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: by bwz17 with SMTP id 17so618889bwz.43 for ; Fri, 05 Jun 2009 13:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rzBf+fl+miKtMvl/kkQN/f4tkBI2JVIphzL03K+MbAE=; b=vJdiVQnwez5R9sJ8Si+fkqg2YaZo4qaL8PwS1dpXG87FHOJdinskUNCy9OKtZfkbf9 eQ5KWHybJvu6B3watD/X/3rd5yox1r1p43hdb/TeMPO1sUMENN9SJBxUh2Qr8pjZruBC PD5/GF2x/3lfc3YURgiKPpHlKdSnQoVrC5t8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RvkGJlI8T1hsxJC3GN3oOoDlNNFEpHtxyO6maSkOOjNRFtyLLKA5EiXJ0kKLtQ35mr +JRpMNdqOcNWrvCw39RMQyCPdDsW2rS/dPtnMliSwx19IpHjEZIJ989HOLndo65n2Twv mVunxl1BnUQchhUMF886Qood6IT846KLJpU6Q= MIME-Version: 1.0 Received: by 10.204.121.131 with SMTP id h3mr3512519bkr.172.1244232367775; Fri, 05 Jun 2009 13:06:07 -0700 (PDT) In-Reply-To: <4A29683C.3030301@gmail.com> References: <4A28590D.101@gmail.com> <4A2946F4.2010501@gmail.com> <4A29683C.3030301@gmail.com> Date: Fri, 5 Jun 2009 23:06:07 +0300 Message-ID: From: Vitaly Magerya To: Eitan Adler Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Automatically generate symlinks for virtual categories. 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: Fri, 05 Jun 2009 20:06:10 -0000 > No - you still have the issue of languages. For example japanese/xchat > and irc/xchat have the same name. This is the issue I was trying to avoid. When you do: $ auto-symlink-virtual -p /usr/ports -w /tmp/ports You will have this links: /tmp/ports/japanese/xchat-japanese /tmp/ports/irc/xchat-irc /tmp/ports/gnome/xchat-irc /tmp/ports/ipv6/xchat-irc So while the conflicts may require the latter two names to have "-irc", there's no need for irc/xchat-irc and japanese/xchat-japanese. In fact you would not have created those links, if you'd run $ auto-symlink-virtual -p /usr/ports -w /usr/ports Anyway, patch for yours [1] or mine [2] should make the issue obvious. There's also an issue with relative paths in -w option: after make -C is made, all relative paths are wrong, so currently you have to specify the full path. PS. In your latest file -n option is reversed because of the "if [ -z "dryrun" ];" tests in lines 45 and 51. [1] http://tx97.net/pub/patches/auto-symlink-virtual-r4-r5.diff [2] http://tx97.net/pub/patches/auto-symlink-virtual-2-fix.diff --- I forgot to CC ports@ when send this letter the first time. Sorry for the noise.