Skip to content

Commit

Permalink
sysutils/conky: Force linking against correct LUA
Browse files Browse the repository at this point in the history
When multiple LUA versions are present conky could link against
version 5.3 but register dependency against version 5.2.

Try to force conky build system to actually link against the desired
version of the library.

Reported by:	Joachim Moskalewski <moskalewski@jmos.net>
  • Loading branch information
madpilot78 committed Apr 25, 2021
1 parent 2ebb5fb commit 9b1daa8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sysutils/conky/Makefile
Expand Up @@ -144,6 +144,15 @@ post-patch:
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
@${REINPLACE_CMD} -e 's,LOCALBASE,${LOCALBASE},' \
${WRKSRC}/doc/docgen.sh
.if ${LUA_DEFAULT} == 5.2
# Force using lua 5.2
@${REINPLACE_CMD} -e 's/lua.*5\.*3//' \
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
.elif ${LUA_DEFAULT} == 5.3
# Force using lua 5.3
@${REINPLACE_CMD} -e 's/lua.*5\.*2//' \
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
.endif

post-build:
(cd ${WRKSRC}/doc && ${SH} docgen.sh)
Expand Down

0 comments on commit 9b1daa8

Please sign in to comment.