Solved How can I change package's dependency?

Hi all.

I want to install php5_pgsql with PostgreSQL 9.3 but php5_pgsql requires PostgreSQL 9.2 only. I want to change this to PostgreSQL 9.3 or PostgreSQL 9. Is it possible? Or should I build my own package?

Thanks for reading.
 
  • Thanks
Reactions: Oko
Or should I build my own package?
That's the only way to deviate from the default. Set this in /etc/make.conf:
Code:
DEFAULT_VERSIONS= pgsql=9.3 apache=2.2 php=5.4
The others aren't necessary, they're examples. You can find more applications in /usr/ports/Mk/bsd.default-version.mk.
 
There is pkg set command that in theory can be used for changing dependencies after the packages are already installed. However, there are no guarantees that new dependency is API/ABI compatible in the way the dependee (dependent?) expects it to be. The only sure way is what SirDice is referring to above.
 
Back
Top