Bug 139657 - net/asterisk-bristuff fails to install trying to execute bash script
Summary: net/asterisk-bristuff fails to install trying to execute bash script
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: Max Khon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 23:40 UTC by Pavel Gubin
Modified: 2009-10-18 16:00 UTC (History)
0 users

See Also:


Attachments
file.diff (928 bytes, patch)
2009-10-15 23:40 UTC, Pavel Gubin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Gubin 2009-10-15 23:40:01 UTC
net/asterisk-bristuff port fails to install properly without shells/bash installed, because Makefile trying to generate and install pkg-config spec file with bash script build_tools/mkpkgconfig (in asterisk's source directory).

Fix: Seems that build_tools/mkpkgconfig script not only uses bashisms, but also implicitly uses perl, and Makefile tries to install pkgconfig spec file intto /usr/lib/pkgconfig instead of /usr/local/libdata/pkgconfig.

Seems that this spec file is not very useful anyway, so simplest way is to comment out its generation and installation.



Patch attached with submission follows:
How-To-Repeat: 1) Ensure no bash can be found in your PATH
2) cd /usr/ports/net/asterisk-bristuff; make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-10-15 23:40:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->fjoe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Max Khon freebsd_committer freebsd_triage 2009-10-18 15:54:52 UTC
State Changed
From-To: open->closed

Fix committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-10-18 15:54:55 UTC
fjoe        2009-10-18 14:54:41 UTC

  FreeBSD ports repository

  Modified files:
    net/asterisk-bristuff Makefile 
  Added files:
    net/asterisk-bristuff/files patch-Makefile 
  Log:
  Do not install asterisk.pc:
  - generation script depends on bash and "sed -r" or perl
  
  PR:             139657
  Submitted by:   Pavel Gubin
  
  Revision  Changes    Path
  1.76      +1 -1      ports/net/asterisk-bristuff/Makefile
  1.19      +11 -0     ports/net/asterisk-bristuff/files/patch-Makefile (new)
_______________________________________________
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"