Skip to content

hungshihhan/gentoo-wsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gentoo overlay for Windows Subsystem for Linux (WSL) (Deprecated)

This repository contains patches for running Gentoo on WSL.

Installing Gentoo on WSL

The following steps basically follow the instruction https://wiki.archlinux.org/index.php/Install_on_WSL.

  1. Installing a Linux instance: Execute the app and wait for the download to complete. Close window when prompt asks new user name.
  2. Download Gentoo stage3: Run app again, create folder /root/stage3 download Gentoo through https://www.gentoo.org/downloads. Untar to the folder and close window when done.
  3. Navigate to %localappdata%\Packages\appname\LocalState\rootfs in Windows File Explorer and delete bin, etc, lib, lib64, sbin, usr and var. Move these folders under %localappdata%\Packages\appname\LocalState\rootfs\root\stage3 as replacement.
  4. Run app again, create new users in shell and change default user with command ubuntu config --default-user username.

Issues and workarounds

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,

  • Add USE="-ipc" in /etc/portage/make.conf.
  • Put sys-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
  1. 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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published