1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

emulators/fs-uae: Fix build issue on -CURRENT and -STABLE

On 15-CURRENT and recent 14-STABLE the ftime() function moved from libcompat to
libutil.This caused a linker error at the end of the build.

    ld: error: undefined symbol: ftime
    >>> referenced by blkdev_cdimage.cpp
    >>>               blkdev_cdimage.o:(cdda_play_func(void*)) in archive libuae.a
    >>> referenced by blkdev_cdimage.cpp
    >>>               blkdev_cdimage.o:(cdda_play_func(void*)) in archive libuae.a
    >>> did you mean: ctime
    >>> defined in: /lib/libc.so.7
    c++: error: linker command failed with exit code 1 (use -v to see invocation)
    gmake[2]: *** [Makefile:3627: fs-uae] Error 1
    gmake[2]: Leaving directory '/wrkdirs/usr/ports/emulators/fs-uae/work/fs-uae-3.1.66'
    gmake[1]: *** [Makefile:4241: all-recursive] Error 1
    gmake[1]: Leaving directory '/wrkdirs/usr/ports/emulators/fs-uae/work/fs-uae-3.1.66'
    gmake: *** [Makefile:2356: all] Error 2
    ===> Compilation failed unexpectedly.

Patch fixes the issue for 14-STABLE > 1401500 and 15-CURRENT > 1500019

PR:		280410
This commit is contained in:
Remko Catersels 2024-07-31 17:36:46 +02:00 committed by Mateusz Piotrowski
parent d20b5abe39
commit b1b07a4b30

View File

@ -56,5 +56,10 @@ post-patch:
${WRKSRC}/src/support/socket.cpp
@${REINPLACE_CMD} -e 's|return NULL|return 0|' \
${WRKSRC}/src/memory.cpp
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1500019 || ( ${OSVERSION} >= 1401500 && ${OSVERSION} < 1500000 ))
# These versions moved ftime() from libcompat to libutil
@${REINPLACE_CMD} -e 's|-lcompat|-lutil|' \
${WRKSRC}/configure
.endif
.include <bsd.port.post.mk>