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
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4971

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: https://wiki.gentoo.org/wiki/Project:Hardened_musl

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:
    Code:
    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
    Code:
    layman -L

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

    ?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
    <repositories xmlns="" version="1.0">
    <repo quality="experimental" status="official">
        <name>gentoo-musl</name>
        <description>Development Overlay for Hardened Gcc 4.x Toolchain</description>
        <homepage>http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=summary</homepage>
        <owner type="project">
           <email>hardened@gentoo.org</email>
        </owner>
        <source type="git" branch="musl">git://git.overlays.gentoo.org/proj/hardened-dev.git</source>
        <feed>http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=atom</feed>
    </repo>
    </repositories>

  4. run
    Code:
    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
ProjectFootball
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