From owner-freebsd-ports@FreeBSD.ORG Sat Jun 21 22:57:20 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 441C2106567D for ; Sat, 21 Jun 2008 22:57:20 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 299D88FC1A for ; Sat, 21 Jun 2008 22:57:20 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 24295 invoked from network); 21 Jun 2008 22:30:38 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 21 Jun 2008 22:30:38 -0000 Message-ID: <485D7E88.2000005@telenix.org> Date: Sat, 21 Jun 2008 18:19:52 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Ion-Mihai Tetcu References: <485D26E5.2070007@fuckner.net> <485D3183.1010602@FreeBSD.org> <20080621220956.243ebcc7@it.buh.tecnik93.com> <1575d605ce98cc7dc9aa90768c8cf69c.squirrel@galain.elvandar.org> <20080621230722.2356a86a@it.buh.tecnik93.com> In-Reply-To: <20080621230722.2356a86a@it.buh.tecnik93.com> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, tektonaut@fuckner.net, Remko Lodder , perl@FreeBSD.org, ports@christianserving.org Subject: Re: FreeBSD imapsync port 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: Sat, 21 Jun 2008 22:57:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ion-Mihai Tetcu wrote: > On Sat, 21 Jun 2008 21:55:18 +0200 (CEST) > "Remko Lodder" wrote: > >> On Sat, June 21, 2008 9:09 pm, Ion-Mihai Tetcu wrote: >>> On Sat, 21 Jun 2008 18:51:15 +0200 >>> Remko Lodder wrote: >>> >>>> tektonaut@fuckner.net wrote: >>>>> Hello, >>>>> >>>>> There are some trouble getting imapsync port running: >>>>> >>>>> First, it would be nice adding a patch to change the shebang to >>>>> /usr/local/bin/perl. I don't expect anybody having perl on FreeBSD >>>>> at /usr/bin/perl. >>>>> >>>>> Secondly imapsync will not run with Mail::IMAPClient from ports, >>>>> as said by imapsync itself: >>>>> >>>>> Subroutine Authuser redefined at /usr/local/bin/imapsync line 2557. >>>>> imapsync needs perl lib Mail::IMAPClient release 2.2.9 exactly, future >>>>> imapsync release may suppoort 3.0.x, but sorry not now. See file >>>>> BUG_IMAPClient_3.xx >>>>> # Looks like your test died before it could output anything. >>>>> >>>>> Mail::IMAPClient provided with imapsync src should be used instead. >>>>> >>>>> Regards, >>>>> Adam >>>>> >>>> #!/usr/bin/perl is installed as symlink for consistency. The line does >>>> not have to be changed in my eyes. I also do not see us removing the >>>> symlink anytime soon so lets just leave it like that :-). >>> Actually it should. >>> # PERL - Set to full path of perl5, either in the system >>> or >>> # installed from a port, but without the >>> version number. >>> # Use this if you need to replace "#!" >>> lines in scripts. >>> >> That does not say it SHOULD be set to /usr/local/bin/perl, all perl >> scripts I have seen so far are /usr/bin/perl, why break that without >> general concensus? :) > > I live with the impression that is the general consensus. I never seen > a port that doesn't do that patch. Since I'm not a perl guy I'm CC'ing > perl@ on this. I use python, where I picked up this little trick, which lets python find it's actual location and execute itself, based upon the reliable location of "env": #!/usr/bin/env python You could replace python with perl, for your needs. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIXX6Iz62J6PPcoOkRAulRAJ4pHng7y3KkKDwTXFr89qjYPCU3FACeNuZI NavNInhZO4viAHiVUa5gO1c= =28zV -----END PGP SIGNATURE-----