Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 01:18:16 GMT
From:      Jinsong Zhao <jszhao@yeah.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171932: wrong excutable program installed in ports/biology/mopac
Message-ID:  <201209250118.q8P1IG5D088778@red.freebsd.org>
Resent-Message-ID: <201209250120.q8P1K63f076202@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209250118.q8P1IG5D088778>