From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 25 01:20:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD9871065673 for ; Tue, 25 Sep 2012 01:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AEC418FC0C for ; Tue, 25 Sep 2012 01:20:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8P1K6Gj076203 for ; Tue, 25 Sep 2012 01:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8P1K63f076202; Tue, 25 Sep 2012 01:20:06 GMT (envelope-from gnats) Resent-Date: Tue, 25 Sep 2012 01:20:06 GMT Resent-Message-Id: <201209250120.q8P1K63f076202@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jinsong Zhao Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D38A3106566B for ; Tue, 25 Sep 2012 01:18:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BD8E38FC08 for ; Tue, 25 Sep 2012 01:18:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8P1IGTE088779 for ; Tue, 25 Sep 2012 01:18:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8P1IG5D088778; Tue, 25 Sep 2012 01:18:16 GMT (envelope-from nobody) Message-Id: <201209250118.q8P1IG5D088778@red.freebsd.org> Date: Tue, 25 Sep 2012 01:18:16 GMT From: Jinsong Zhao To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/171932: wrong excutable program installed in ports/biology/mopac X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 01:20:07 -0000 >Number: 171932 >Category: ports >Synopsis: wrong excutable program installed in ports/biology/mopac >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 Sep 25 01:20:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jinsong Zhao >Release: FreeBSD 9.0-RELEASE >Organization: Huazhong Agricultural University >Environment: FreeBSD see.hzau.edu.cn 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: when ran the following command, no correct ouput... %cp /usr/local/share/examples/mopac/test/1scf.dat . %mopac7 1scf it output: starting mopac7 job 1scf /usr/local/bin/mopac7: ./src/mopac7: not found mopac7 job 1scf finished In fact, ``./src/mopac7'' is not installed. The port just install the script file ``run_mopac7'', and rename it to ``mopac7''. >How-To-Repeat: cd /usr/ports/biology/mopac make -DBATCH install clean cd ~ cp /usr/local/share/examples/mopac/test/1scf.dat . mopac7 1scf >Fix: I don't know how to patch the Makefile in order to install correct file. I just try the following way manually, and it works. cd /usr/ports/biology/mopac make -DBATCH install cd /usr/local/bin ## the mopac7 in /usr/local/bin is actually a script file, ## which call the real mopac7 program ## At the same time, line 22 of script file ``mopac7'' contains path ``./src'', ## which I think should be remove. So line 22 may be changed to ``mopac7'', ## and then change the script file to ``runmopac7'' mv mopac7 runmopac7 ## the following ``mopac7'' is the real one that should be installed. ## However it is not be installed in the current ports. cp /usr/ports/biology/mopac/work/mopac7-1.11/src/.libs/mopac7 . cd /usr/ports/biology/mopac make clean ## Test... cd ~ cp /usr/local/share/examples/mopac/test/1scf.dat . runmopac7 1scf Now, it give the correct output. >Release-Note: >Audit-Trail: >Unformatted: