| Summary: | [PATCH] net/mpd doesn't pass COPTS to make | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Oleg Sharoiko <os> | ||||
| Component: | Individual Port(s) | Assignee: | Archie Cobbs <archie> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | and | ||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->archie Over to maintainer. State Changed From-To: open->closed Patch applied, thanks. |
Makefile of net/mpd has a line: MAKE_ENV= COPTS+=-I${OPENSSLINC} LDADD+=-L${OPENSSLLIB} This creates environment variables 'COPTS+' and 'LDADD+', what is not what really needed, because ${MAKE} which builds mpd uses COPTS and LDADD, but not those with plus. This, in particular, breaks builds when openssl is installed from ports. I propose the following solution: MAKE_ENV= COPTS="${COPTS} -I${OPENSSLINC}" LDADD="${LDADD} -L${OPENSSLLIB}" Besides, bsd.port.mk doesn't allow auto detection of openssl when it's installed from ports, where combination of bsd.port.pre.mk and bsd.port.post.mk do. Fix: Please note that this patch shouldn't break current behavior as bsd.openssl.mk handles WITH_OPENSS_(BASE|PORT) and sets OPENSSLINC and OPENSSLLIB correctly. How-To-Repeat: build and install base system without openssl cd /usr/ports/net/mpd make