Re: git: 8b659812a215 - main - emulators/virtualbox-ose-kmod: fix cross building
Date: Tue, 13 May 2025 10:19:05 UTC
Hello!
Do other ports need this patch: emulators/virtualbox-ose-kmod-legacy and
emulators/virtualbox-ose-kmod-70?
13.05.2025 12:49, Baptiste Daroussin пишет:
> The branch main has been updated by bapt:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=8b659812a21508795778a345dbbf7d08b7fcbb38
>
> commit 8b659812a21508795778a345dbbf7d08b7fcbb38
> Author: Baptiste Daroussin <bapt@FreeBSD.org>
> AuthorDate: 2025-05-13 09:43:27 +0000
> Commit: Baptiste Daroussin <bapt@FreeBSD.org>
> CommitDate: 2025-05-13 09:49:54 +0000
>
> emulators/virtualbox-ose-kmod: fix cross building
>
> For cross building the CC variable is passed quoted with the target
>
> the which configure script from VirtualBox expects it to only be the
> name of the command and using which to determine if usable.
>
> Replacing in the which_wrapper function the call of $* with only the
> first argument, makes it accept cross building.
>
> Cross building support is important for kmods as they are all cross
> built to populate the kmods repositories
> ---
> emulators/virtualbox-ose-kmod/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/emulators/virtualbox-ose-kmod/Makefile b/emulators/virtualbox-ose-kmod/Makefile
> index 28f57d2c777c..d99d0ef6f084 100644
> --- a/emulators/virtualbox-ose-kmod/Makefile
> +++ b/emulators/virtualbox-ose-kmod/Makefile
> @@ -91,7 +91,7 @@ post-patch:
> .if ${PORT_OPTIONS:MVIMAGE}
> @${ECHO_CMD} 'VBOX_WITH_NETFLT_VIMAGE = 1' >> ${WRKSRC}/LocalConfig.kmk
> .endif
> - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
> + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; s|which \$$\*|which \$$1|g' \
> ${WRKSRC}/Config.kmk ${WRKSRC}/configure
> @${REINPLACE_CMD} \
> -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' \
--
Best regards,
Vladimir Druzenko