From: Qian H. <fra...@gm...> - 2015-03-12 16:01:52
|
Hi David, On Thu, Mar 12, 2015 at 5:22 PM, David Macek <dav...@gm...> wrote: > First, check if the `develop` branch of https://github.com/Alexpux/Cygwin has this change you want to test. Then: > > $ pacman -S --needed base-devel msys2-devel git mingw-w64-cross-gcc mingw-w64-cross-zlib zlib-devel gettext-devel libiconv-devel diffutils > $ git clone https://github.com/Alexpux/MSYS2-packages.git > $ cd MSYS2-packages/msys2-runtime > $ makepkg > $ pacman -U *.pkg.tar.xz > > Close all MSYS2 processes and you're good to go. Thanks a lot for the hint. I rebuilt latest msys2-runtime, but hostname.exe still fail on long name, reported "Operation not permitted" as before. Now I'm wondering if there is anything related to newlib VS winsup: there are two gethostname implementations, one is in newlib/libc/sys/linux/gethostname.c, the other is in winsup/cygwin/net.cc, is it possible that Cygwin is using the newlib version but MSYS2 is using the winsup version? Thanks a lot! -- Regards, Qian Hong - http://www.winehq.org |