Bug 117708 - emulators/vmware-guestd6 won't install under multi-byte locale
Summary: emulators/vmware-guestd6 won't install under multi-byte locale
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: matusita
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 01:30 UTC by Timothy Smith
Modified: 2008-02-19 16:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Smith 2007-10-31 01:30:01 UTC
When using a multi-byte locale (at least, en_US.UTF-8), the vmware-guestd6 port fails to install.  It stops during 'make patch' after sed produces an error about an invalid byte sequence.  It can be worked around by temporarily switching to the C locale.

Apparently, setting LC_CTYPE=C, as done in the port, isn't sufficient.

Fix: 

This workaround let me install the port:

LC_ALL=C sudo portmaster /usr/ports/emulators/vmware-guestd6
How-To-Repeat: export LC_ALL; LC_ALL=en_US.UTF-8
sudo portmaster /usr/ports/emulators/vmware-guestd6
..
===>  Patching for vmware-guestd-6.0.2.59824
LC_CTYPE=C /usr/bin/sed -i.bak "`/usr/bin/printf 's|\0152\013\0350|\0152\\\n\0350|g'`"  /usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/sbin32-6/vmware-checkvm
sed: 1: "s|j�|j\n�|g": RE error: illegal byte sequence
*** Error code 1

Stop in /usr/ports/emulators/vmware-guestd6.

===>>> make failed for emulators/vmware-guestd6
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-31 11:37:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->matusita

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 matusita freebsd_committer freebsd_triage 2008-02-19 16:36:08 UTC
State Changed
From-To: open->closed

Just fixed; use LC_ALL instead of LC_CTYPE while ${REINPLACE_CMD} run. 

Thank you for letting me to know, and sorry the fix takes so long time.
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-02-19 16:37:28 UTC
matusita    2008-02-19 16:37:18 UTC

  FreeBSD ports repository

  Modified files:
    emulators/vmware-guestd6 Makefile 
  Log:
  Fix build error on multi-byte locale environment.
  
  No bumps since no content changes.
  
  PR:             117708
  Submitted by:   trangayesi at gmaildotcom
  
  Revision  Changes    Path
  1.49      +1 -1      ports/emulators/vmware-guestd6/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"