Date: Tue, 22 Oct 2013 11:54:03 GMT From: Kenji Rikitake <kenji@k2r.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/183200: japanese/a2ps-j fails to include Perl path at shebang Message-ID: <201310221154.r9MBs3Eh059708@oldred.freebsd.org> Resent-Message-ID: <201310221200.r9MC00t6076497@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 183200 >Category: ports >Synopsis: japanese/a2ps-j fails to include Perl path at shebang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 22 12:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kenji Rikitake >Release: 9.2-STABLE >Organization: >Environment: FreeBSD minimax.priv.k2r.org 9.2-STABLE FreeBSD 9.2-STABLE #13 r255959: Tue Oct 1 13:18:35 JST 2013 root@minimax.priv.k2r.org:/usr/obj/usr/src/sys/K2RKERNEL amd64 >Description: The first line of installed /usr/local/bin/a2ps-j does not contain the path to Perl binary. NOTE: I have been using Port lang/perl5.18 and in /etc/make.conf I specify "DEFAULT_VERSIONS= perl5=5.18". The following shows the result of the post-patch command of: /usr/bin/sed -i.bak -e 's,%%PERL%%,,' -e 's,%%LOCALBASE%%,/usr/local,' /usr/ports/japanese/a2ps/work/a2ps-j (NOTE: the %%PERL%% string is substituted by an empty string *** a2ps-j.bak Tue Oct 22 20:43:13 2013 --- a2ps-j Tue Oct 22 20:43:13 2013 *************** *** 1,2 **** ! #!%%PERL%% ;# --- 1,2 ---- ! #! ;# *************** *** 55,57 **** if ($LIBPAPER) { ! $default_paper = `%%LOCALBASE%%/bin/paperconf -n`; chomp($default_paper); --- 55,57 ---- if ($LIBPAPER) { ! $default_paper = `/usr/local/bin/paperconf -n`; chomp($default_paper); >How-To-Repeat: cd /usr/ports/japanese/a2ps make && make install >Fix: Defining "USES= perl5" in the Makefile solved the problem. A patch given. Patch attached with submission follows: Apply at /usr/ports/japanese/a2ps --- Makefile.FCS 2013-09-21 03:47:54.000000000 +0900 +++ Makefile 2013-10-22 20:50:04.000000000 +0900 @@ -13,6 +13,7 @@ MAINTAINER= hrs@FreeBSD.org COMMENT= Text file to postscript converter (with Japanese support) +USES= perl5 LICENSE= BSD RUN_DEPENDS= paperconf:${PORTSDIR}/print/libpaper >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310221154.r9MBs3Eh059708>