Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: musl flavored gentoo
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 22 Mar 2006
Posts: 5452

PostPosted: Sat Nov 15, 2014 5:31 pm    Post subject: HOWTO: musl flavored gentoo Reply with quote

here is a howto for the brave souls who wants to run musl powered gentoo (musl is a posix supported libc replacement).
this howto is based on this:

first, enter the link above and see if you desired arch is supported, if so, download the relevant stage3 file (vanilla is best for desktop usage)
create the installation using the handbook.

when getting to "The Portage Tree" stage, do the following steps:

  1. execute the following commands:
    echo "dev-vcs/git -gpg" >> /etc/portage/package.use
    echo "app-portage/layman" >> /etc/portage/package.keywords
    emerge -q >=layman-2.2.0-r5 dev-vcs/git

  2. sync layman by running
    layman -L

  3. create /etc/layman/overlays/gentoo-musl.xml with the following lines

    ?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
    <repositories xmlns="" version="1.0">
    <repo quality="experimental" status="official">
        <description>Development Overlay for Hardened Gcc 4.x Toolchain</description>
        <owner type="project">
        <source type="git" branch="musl">git://</source>

  4. run
    layman -L
    layman -a <the name you've given to it the stage before>
    echo source /var/lib/layman/make.conf >> /etc/portage/make.conf

continue with the handbook.

after finishing with the handbook you should have a minimal working musl powered gentoo.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum