Bug 223098 - [PATCH] biology/mummer: fix installing scripts and support binaries
Summary: [PATCH] biology/mummer: fix installing scripts and support binaries
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Wen Heping
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-10-18 17:27 UTC by Motomichi Matsuzaki
Modified: 2017-10-30 02:29 UTC (History)
2 users (show)

See Also:


Attachments
svn diff for biology/mummer (3.37 KB, patch)
2017-10-18 17:27 UTC, Motomichi Matsuzaki
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Motomichi Matsuzaki 2017-10-18 17:27:31 UTC
Created attachment 187287 [details]
svn diff for biology/mummer

Most scripts doesn't work due to incorrect installation.
For example,

% nucmer
Can't locate Foundation.pm in @INC (you may need to install the Foundation module) (@INC contains: /wrkdirs/usr/ports/biology/mummer/work/MUMmer3.23/scripts /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24 .) at /usr/local/bin/nucmer line 19.
BEGIN failed--compilation aborted at /usr/local/bin/nucmer line 19.

1) Foundation.pm, distributed within the tarball, is not installed at all.
2) @INC directs /wrkdirs/... i.e. $WRKSRC on the package building system.

The attached patch fixes this by
* configuring scripts via USES=shebangfix
* installing Foundation.pm, an awk script, and support binaries to ${PREFIX}/libexec/mummer

The port passed poudriere testport in my environment (10.3 amd64).
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-10-30 02:28:09 UTC
A commit references this bug:

Author: wen
Date: Mon Oct 30 02:27:23 UTC 2017
New revision: 453152
URL: https://svnweb.freebsd.org/changeset/ports/453152

Log:
  - Fix installing scripts and support binaries
  - Add LICENSE

  PR:		223098
  Submitted by:	mzaki@niid.go.jp

Changes:
  head/biology/mummer/Makefile
  head/biology/mummer/distinfo
  head/biology/mummer/files/patch-Makefile
  head/biology/mummer/pkg-plist