From owner-freebsd-ports@FreeBSD.ORG Mon Mar 3 20:25:06 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7BC63736 for ; Mon, 3 Mar 2014 20:25:06 +0000 (UTC) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 52F9F987 for ; Mon, 3 Mar 2014 20:25:06 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id w10so4161761pde.38 for ; Mon, 03 Mar 2014 12:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=DB7b74/n8p1PdFXfTjo+BCFpTOnzbL8CK8EOKxUJKvA=; b=1CqO/bmIf1Hivqv8egqXWUgFkc49ZDX5fD5wOJ79beR794vpllZmCbPZXIExI8HbZJ 3bFS+TxoDiRaC2LzCYhEj7nM/ZAK/TPHXsbEs8+RQ1Z08ZItunGtcnjLxZKi1BQ0XycJ 6QOu+DVg50UIkkfPmVa10JjIGnWHvrdSqUWi+Y9anGGeBNBTpGhPdIGoZ+qEZrrBaxSF IiiOulUyjeiu97OZMXhTDw+vOdH2ILh+Px+gHKoNL/JUoe8+Gpur0mWVEo/K+KxLRhiD qxAxkIN9+vigYauCSAlpxMh85+kMoP7S5yzulVVbD86uO8xiilCw5BXD0mNqvit9ZfQy 3oKA== MIME-Version: 1.0 X-Received: by 10.69.31.97 with SMTP id kl1mr21899112pbd.62.1393878305947; Mon, 03 Mar 2014 12:25:05 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.66.0.164 with HTTP; Mon, 3 Mar 2014 12:25:05 -0800 (PST) In-Reply-To: <4238376.5ExdFi7rnP@alex.super> References: <4238376.5ExdFi7rnP@alex.super> Date: Mon, 3 Mar 2014 12:25:05 -0800 X-Google-Sender-Auth: Vj8tO6Aok_9fPFUcWTG6Gs7cP8M Message-ID: Subject: Re: graphics/imageindex - 1.1_5 From: Kevin Oberman To: "Alex V. Petrov" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2014 20:25:06 -0000 On Mon, Mar 3, 2014 at 9:54 AM, Alex V. Petrov wrote: > I installed subj on 10-stable. > Result: > > $ imageindex > defined(@array) is deprecated at /usr/local/bin/imageindex line 2301. > (Maybe you should just omit the defined()?) > defined(@array) is deprecated at /usr/local/bin/imageindex line 2314. > (Maybe you should just omit the defined()?) > defined(@array) is deprecated at /usr/local/bin/imageindex line 2478. > (Maybe you should just omit the defined()?) > defined(@array) is deprecated at /usr/local/bin/imageindex line 2502. > (Maybe you should just omit the defined()?) > Yes, recent versions of perl don't allow this use of "defined". > Can't locate flush.pl in @INC (@INC contains: > /usr/local/lib/perl5/5.16/BSDPAN > /usr/local/lib/perl5/site_perl/5.16/mach > /usr/local/lib/perl5/site_perl/5.16 > /usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.16 .) at > /usr/local/bin/imageindex line 328. > > > Whats wrong? > > flush.pl was one of several old perl4 include files that were deprecated back when perl5 came out and was removed in Perl 5.16. It probably should be replaced by IO::Handle. >From the ancient Perl syntax, I'd say that this port or the upstream needs to be updated to modern syntax. To fix these is trivial, but the maintainer/author should probably check for other things that are obsolete. The last version is seven years old. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com