From 8601adbebc24c30906fcceb7c2326b83f727c7a6 Mon Sep 17 00:00:00 2001 From: Makoto Matsushita Date: Thu, 15 Feb 2007 10:49:20 +0000 Subject: [PATCH] Set LC_CTYPE to 'C' for ${REINPLACE_CMD}, since if LC_CTYPE is set to others (such as ja_JP.eucJP), replacing string may fail. No bumps, since nothing changed if REINPLACE_CMD works as expected. Requested by: kuriyama --- emulators/vmware-guestd4/Makefile | 4 ++-- emulators/vmware-guestd5/Makefile | 2 +- emulators/vmware-guestd6/Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/emulators/vmware-guestd4/Makefile b/emulators/vmware-guestd4/Makefile index 4b09ed1105b3..4d90ea6b1021 100644 --- a/emulators/vmware-guestd4/Makefile +++ b/emulators/vmware-guestd4/Makefile @@ -105,10 +105,10 @@ post-extract: post-patch: .if defined(WITH_VMWARE_VMMEMCTL) - ${REINPLACE_CMD} -e 's|vmmemctl1.o||' ${WRKDIR}/vmmemctl-only/Makefile + LC_CTYPE=C ${REINPLACE_CMD} -e 's|vmmemctl1.o||' ${WRKDIR}/vmmemctl-only/Makefile ${ECHO_CMD} "OBJS+=vmmemctl1.o" >> ${WRKDIR}/vmmemctl-only/Makefile .endif - ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + LC_CTYPE=C ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ ${WRKSRC}/sbin/vmware-checkvm .if defined(VMWARE_X_PORTS) diff --git a/emulators/vmware-guestd5/Makefile b/emulators/vmware-guestd5/Makefile index bdabbe499ee9..0614762b2109 100644 --- a/emulators/vmware-guestd5/Makefile +++ b/emulators/vmware-guestd5/Makefile @@ -189,7 +189,7 @@ do-install: .else post-patch: - ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + LC_CTYPE=C ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ ${WRKSRC}/lib/sbin${BITS}/vmware-checkvm do-build: diff --git a/emulators/vmware-guestd6/Makefile b/emulators/vmware-guestd6/Makefile index bdabbe499ee9..0614762b2109 100644 --- a/emulators/vmware-guestd6/Makefile +++ b/emulators/vmware-guestd6/Makefile @@ -189,7 +189,7 @@ do-install: .else post-patch: - ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + LC_CTYPE=C ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ ${WRKSRC}/lib/sbin${BITS}/vmware-checkvm do-build: