This repository contains patches for running Gentoo on WSL.
The following steps basically follow the instruction https://wiki.archlinux.org/index.php/Install_on_WSL.
- Installing a Linux instance: Execute the app and wait for the download to complete. Close window when prompt asks new user name.
- Download Gentoo stage3: Run app again, create folder
/root/stage3
download Gentoo throughhttps://www.gentoo.org/downloads
. Untar to the folder and close window when done. - Navigate to
%localappdata%\Packages\appname\LocalState\rootfs
in Windows File Explorer and deletebin
,etc
,lib
,lib64
,sbin
,usr
andvar
. Move these folders under%localappdata%\Packages\appname\LocalState\rootfs\root\stage3
as replacement. - Run app again, create new users in shell and change default user with command
ubuntu config --default-user username
.
1. IPC not supported microsoft/WSL#992: Edit /usr/lib64/python2.7/site-packages/_emerge/AbstractEbuildProcess.py
and set _enable_ipc_daemon
to False
. Do so for python3.4
. These files are installed with sys-apps/portage
. To disable ipc support for future update,
AddUSE="-ipc"
in/etc/portage/make.conf
.Putsys-apps/portage -ipc
in/etc/portage/profile/package.use.force
.
2. locale-gen
failed microsoft/WSL#1878:
localedef: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertionec >= 0' failed.
# cd /usr/share/i18n/charmaps/
# gunzip --keep UTF-8.gz
# locale-gen
- Pulseaudio doesn't work microsoft/WSL#486: Sync the overlay and
# emerge --ask --verbose media-sound/pulseaudio::wsl
4. Emacs failed to build microsoft/WSL#1664
# bash -c "echo 0 > /proc/sys/kernel/randomize_va_space"
5. qtgui-5.11.1 emake failed on WSL: https://bugs.gentoo.org/669994
# find /lib /usr/lib /usr/libexec -name '*.so' | xargs strip --remove-section=.note.ABI-tag