FreeBSD Bugzilla – Attachment 173494 Details for
Bug 211592
bsd.ssl.mk migration to USES exposed conflict between ncurses/ssl rpaths (base vs ports)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
ncurses.diff (text/plain), 1.59 KB, created by
Mathieu Arnold
on 2016-08-10 12:14:20 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2016-08-10 12:14:20 UTC
Size:
1.59 KB
patch
obsolete
>commit fd8a5352e3843dd787f7ba42912ea5cd04c3e434 (HEAD -> rpath) >Author: Mathieu Arnold <mat@mat.cc> >Date: 2016-08-10 14:12:20 +0200 > > Fix ncurses to not add /usr/lib to rpath. > > There are three cases here: > > 1) USES=ncurses or USES=ncurses:base and devel/ncurses is not present: > use base, no need to add rpath as there is only one libncurses.so > present, in /usr/lib > 2) USES=ncurses and devel/ncurses is present or USES=ncurses:port: use > ports, and add rpath to LOCALBASE/lib so that the right one is picked > 3) USES=ncurses:base and devel/ncurses is present fail (it would warrant > using -rpath /usr/lib, but it error's out during the sanity stage) > >diff --git Mk/Uses/ncurses.mk Mk/Uses/ncurses.mk >index 37d046d..f5e42e4 100644 >--- Mk/Uses/ncurses.mk >+++ Mk/Uses/ncurses.mk >@@ -48,8 +48,6 @@ check-depends-ncurses: > @${FALSE} > . endif > >-NCURSESRPATH= /usr/lib:${LOCALBASE}/lib >- > .elif ${ncurses_ARGS} == port > NCURSESBASE= ${LOCALBASE} > NCURSESINC= ${LOCALBASE}/include/ncurses >@@ -77,15 +75,15 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${NCURSES_PO > RUN_DEPENDS+= ${LOCALBASE}/lib/libncurses.so.${NCURSES_SHLIBVER}:${NCURSES_PORT} > NCURSESRPATH= ${NCURSESBASE}/lib > >+.if defined(NCURSES_RPATH) >+CFLAGS+= -Wl,-rpath,${NCURSESRPATH} >+.endif >+LDFLAGS+= -Wl,-rpath=${NCURSESRPATH} >+ > .else > .error USES=ncurses only accept 'port' and 'base' as arguments, got ${ncurses_ARGS} > .endif > > NCURSESLIB= ${NCURSESBASE}/lib > >-.if defined(NCURSES_RPATH) >-CFLAGS+= -Wl,-rpath,${NCURSESRPATH} >-.endif >-LDFLAGS+= -Wl,-rpath=${NCURSESRPATH} >- > .endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211592
:
173350
|
173351
| 173494 |
173545