Solved OpenSLL and make.conf: why?

This is make.conf

Code:
DEFAULT_VERSIONS+=ssl=openssl
DEFAULT_VERSIONS+=linux=f10.
DEFAULT_VERSIONS+=bdb=5
DEFAULT_VERSIONS=python3=3.5
DEFAULT_VERSIONS=python2=2.7
What happen when I compile ports:
Code:
/!\ WARNING /!\
You have security/openssl installed but do not have DEFAULT_VERSIONS+=ssl=openssl set in your make.conf
Why?
 
Because DEFAULT_VERSIONS is set to python2=2.7 only. The last line overwrites all previous ones. You're missing a bunch of +:
Code:
DEFAULT_VERSIONS+=ssl=openssl
DEFAULT_VERSIONS+=linux=f10.
DEFAULT_VERSIONS+=bdb=5
DEFAULT_VERSIONS[b]+[/b]=python3=3.5
DEFAULT_VERSIONS[b]+[/b]=python2=2.7
 
Yep, that's the issue. To prevent this you can put everything on one line:
Code:
DEFAULT_VERSIONS= ssl=openssl linux=f10 bdb=5 python2=2.7 python3=3.5
This is the same as:
Code:
DEFAULT_VERSIONS= ssl=openssl
DEFAULT_VERSIONS+=linux=f10
DEFAULT_VERSIONS+=bdb=5
DEFAULT_VERSIONS+=python3=3.5
DEFAULT_VERSIONS+=python2=2.7

I tend to use the single line version, unless it gets longer than about 75 characters, then I split it up. To prevent editors from wrapping the line.
 
Back
Top