ports/187076: PREFIX!=/usr/local prevents package build for security/openssl, sysutils/monit

dinoex at FreeBSD.org dinoex at FreeBSD.org
Sun Mar 2 13:11:58 UTC 2014


Synopsis: PREFIX!=/usr/local prevents package build for security/openssl,sysutils/monit

State-Changed-From-To: feedback->closed
State-Changed-By: dinoex
State-Changed-When: Sun Mar 2 14:09:58 CET 2014
State-Changed-Why: 

builds fine with non default PREFIX

/usr/ports/current/openssl$ make package PREFIX=/usr/test


The builds fails only when PREFIX=/usr:

bsd.port.mk sets MANPREFIX
.if ${PREFIX} == /usr
MANPREFIX?=     /usr/share
.else
MANPREFIX?=     ${PREFIX}
.endif

With staging the manpages can not be found.
If the port would use PREFIX instead of MANPREFIX
the package wild build but the manpages wound not work.

Before staging, the MAN* macros did handle that well.

But PREFIX=/usr is not supported since FreeBSD 5.0
openssl in /usr will needs lots of changes to work.

Normal PREFIX:

/usr/lib/libssl.a
/usr/lib/libssl.so
/usr/lib/libssl.so.6
/usr/local/lib/libssl.a
/usr/local/lib/libssl.so
/usr/local/lib/libssl.so.8
/lib/libcrypto.so.6
/usr/lib/libcrypto.so
/usr/local/lib/libcrypto.so
/usr/local/lib/libcrypto.so.8

If you install with PREFIX=/usr,
you will have incompatible versions of the openssl libs your system.
as "/lib/libcrypto.so.6" is not updated.
This will cause applications to fail.


http://www.freebsd.org/cgi/query-pr.cgi?pr=187076


More information about the freebsd-ports-bugs mailing list