Bug 158732 - sysutils/byobu has shbang line "/usr/bin/python"
Summary: sysutils/byobu has shbang line "/usr/bin/python"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stephen Montgomery-Smith
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 13:20 UTC by Thomas Schweikle
Modified: 2011-07-19 03:10 UTC (History)
0 users

See Also:


Attachments
byobu.diff (1.10 KB, patch)
2011-07-16 21:28 UTC, gslin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2011-07-08 13:20:03 UTC
INstall byobu, try running byobu. You'll receive error "unknown command". Looking into "/usr/local/bin/byobu" you'll find "#!/usr/bin/python".

Change it to "#!/usr/local/bin/python"

After the change byobu will work (but prints other errors, since some python moduldes are missing).

Fix: 

change all shbang-lines to read "#!/usr/local/bin/python" where "#!/usr/bin/python"

or

add a link from /usr/local/bin/python to /usr/bin/python.
How-To-Repeat: Install byobu, call any of the installed scripts or programs
Comment 1 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-12 19:31:13 UTC
State Changed
From-To: open->feedback

Notify maintainer of sysutils/byobu.
Comment 2 Stephen Montgomery-Smith 2011-07-12 19:38:59 UTC
Dear maintainer of sysutils/byobu,

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/158732 has been filed, 
and it references your port.

My suggestion is to put USE_PYTHON=yes into the Makefile, and then use 
the ${REINPLACE_CMD} to change "#!/usr/bin/python" to ${PYTHON_CMD}. 
Right now, I don't think sysutils/byobu is PREFIX friendly.

Thanks, Stephen
Comment 3 gslin 2011-07-16 21:28:54 UTC
Hello,

I've attached a patch to fix this issue.  Please check it and try again.

On Tue, Jul 12, 2011 at 01:38:59PM -0500, Stephen Montgomery-Smith wrote:
> Dear maintainer of sysutils/byobu,
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/158732 has been filed, 
> and it references your port.
> 
> My suggestion is to put USE_PYTHON=yes into the Makefile, and then use 
> the ${REINPLACE_CMD} to change "#!/usr/bin/python" to ${PYTHON_CMD}. 
> Right now, I don't think sysutils/byobu is PREFIX friendly.
> 
> Thanks, Stephen

-- 
* Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
* If you cannot convince them, confuse them.           -- Harry S Truman
Comment 4 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-16 21:45:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stephen

Maintainer sent me a patch, so I'll take it.
Comment 5 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2011-07-19 03:01:09 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2011-07-19 03:02:18 UTC
stephen     2011-07-19 02:02:04 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/byobu       Makefile pkg-plist 
  Log:
  - Make PREFIX compliant, and add dependency to bash.
  - Make PORTDOCS compliant.
  - Bump portrevision.
  
  PR:             ports/158732
  Submitted by:   Thomas Schweikle <tps@vr-web.de> and
                  Gea-Suan Lin <gslin@gslin.org>
  Approved by:    maho (mentor) and gslin@gslin.org (maintainer)
  
  Revision  Changes    Path
  1.2       +17 -2     ports/sysutils/byobu/Makefile
  1.2       +11 -11    ports/sysutils/byobu/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"