Bug 187304

Summary: multimedia/libvpx: allow building with zsh
Product: Ports & Packages Reporter: Christian Elmerot <christian>
Component: Individual Port(s)Assignee: Ashish SHUKLA <ashish>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: miwi
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Christian Elmerot 2014-03-05 21:30:00 UTC
Changes to libvpx have rendered it unable to be built by default using zsh. By making the port detect if zsh is installed and have the user disable EXAMPLES will enable proper building using zsh instead of bash which removes additional dependencies when zsh is already installed.

There are several bash-isms in examples/gen_example_code.sh & examples/gen_example_text.sh such as short if statements, tests and printf that fails for zsh making EXAMPLES currently a no-go. ANy fixes for those files should likely be upstreamed

Fix: $ cd /usr/ports/shells/zsh; make install

Apply attached patch to Makefile for libvpx, Deselect EXAMPLES
  $ cd /usr/ports/multimedia/libvpx; make config; make install



Patch attached with submission follows:
How-To-Repeat: $ cd /usr/ports/shells/zsh; make install
$ cd /usr/ports/multimedia/libvpx; make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-05 21:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ashish

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Ashish SHUKLA freebsd_committer freebsd_triage 2014-03-06 12:09:47 UTC
Hi,

Thanks for your diff. I'm not sure, if this is a good idea. Since it's more
like your convenience, you can do something like:

#v+
λ ls -la $(which bash)
lrwxr-xr-x  1 abbe  abbe  18 Mar  6 17:22 /home/abbe/bin/bash -> /usr/local/bin/zsh
λ pkg info zsh |head -1
zsh-5.0.5
λ pkg info bash |head -1
pkg: No package(s) matching bash
#v-

For me the port builds/installs fine with `bash` setup as above. Let me know
if this doesn't work for you.

HTH
-- 
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
Sent from my Emacs