From owner-freebsd-ports@FreeBSD.ORG Tue Apr 30 17:32:18 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6A978586 for ; Tue, 30 Apr 2013 17:32:18 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pb0-x230.google.com (mail-pb0-x230.google.com [IPv6:2607:f8b0:400e:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 47AAA1FED for ; Tue, 30 Apr 2013 17:32:18 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id wy7so365255pbc.21 for ; Tue, 30 Apr 2013 10:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=7+UbbvIcL/XRF7EcF3tyoh/ecXGh2UoZy4JBHA7bWS0=; b=jbRfb3AifJfT6Zvgf9H9fBBqt2Y212tV3JaNgxuq8q4I8xe5soVZ0YtJvNnHQpqvde JuJF6fWSSSwNbMSBhZK6VIkFEdrTdxPatyl6eHLBF7eVvFTF0v9BOLWXCdZ7FJmr8opx ixWxUyZLF5TJZmKc4mxQQR+M3XM4zBqwmlV+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=7+UbbvIcL/XRF7EcF3tyoh/ecXGh2UoZy4JBHA7bWS0=; b=VzzmbFQ1GJY0Z6fQxkfNFwgTM8yvLmAhMj/+ebOumIe+ZG6joF3nyNq58HvmowXFyM 4Xk0BFKehXvAn9mK2+MdC3ZaoicZ2fFTPcX4RIbVPNXqZclOzi4Eczb6FjTWCNcsBA3c A/E+DgL94y3/0QDUpqv8yP260rMlHipKMFKiZGBChAn2f+gXTvln+fo5TFNck9a+Tvxl O92JYYl5ir2NG69rYJILF8ckYwhpvxycsan+4HT/msfgaXfly72cBxKJjGg4TtU2pUes PpY8nCjI/Oyf5XLOyXrbmL0stVBlM3yFIOXL728nZkwqYTIGfQmWXKNo3hwO9brRD7ww 9oDA== X-Received: by 10.66.144.170 with SMTP id sn10mr49354219pab.42.1367343138049; Tue, 30 Apr 2013 10:32:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.159.97 with HTTP; Tue, 30 Apr 2013 10:31:47 -0700 (PDT) In-Reply-To: <20130430103821.GJ3577@ithaqua.etoilebsd.net> References: <20130430103821.GJ3577@ithaqua.etoilebsd.net> From: Eitan Adler Date: Tue, 30 Apr 2013 13:31:47 -0400 Message-ID: Subject: Re: [BRAINSTORM] shebang fixing framework To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkfIvZyEHyTyHA+zz+Q0SvWDsiXmwhECDk9Y1PGg/PoGWKCS0ih5qa+mx5tGap5GEjLHFAF Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 17:32:18 -0000 On 30 April 2013 06:38, Baptiste Daroussin wrote: > So far what has been proposed already is: > - replace ${lang}_FILES by FIX_${lang} > - nuke SHEBANG_LANG in favor of USES= shebangfix:perl:python > - nuke SHEBANG_LANG in favor of USES= shebangfix:"perl python" > - nuke SHEBANG_LANG in favor of USES= shebangfix:perl+python I would rather see a general solution rather than including a per language fix. Ideally we can do something to the effect of 's,/usr/bin,${PREFIX}' If a general solution is not possible I'd prefer USES=shebangfix imply all of USES=shebangfix:perl:python:php etc. I'm also not sure about the lang_FILES=. Applying the sed (assuming it can be made specific enough) to the entire tree would be nice, but may take too long, especially on large work directories. I guess it isn't too bad. -- Eitan Adler