Multilib: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
mNo edit summary
Tgurr (talk | contribs)
Replaced content with "TO DELETE, Multilib has been superseeded by Multiarch: http://exherbo.org/docs/multiarch.html"
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Exherbo supports multilib natively, but it's not enabled by default yet.
TO DELETE, Multilib has been superseeded by Multiarch: http://exherbo.org/docs/multiarch.html
 
First we enable the multilib profile by changing the profiles variable in arbor.conf.
{{File|/etc/paludis/repositories/arbor.conf|
<pre>
...
profiles = ${location}/profiles/amd64/multilib
...
</pre>
}}
 
 
Remove the CHOST entry from bashrc and either set C{,XX}FLAGS which apply to all C targets, or define individual ones.
{{File|/etc/paludis/bashrc|
<pre>
CFLAGS="-march=native -pipe -O2"
CXXFLAGS="${CFLAGS}"
 
#MULTIBUILD_C_32_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_32_USER_CXXFLAGS="${MULTIBUILD_C_32_USER_CFLAGS}"
#MULTIBUILD_C_64_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_64_USER_CXXFLAGS="${MULTIBUILD_C_64_USER_CFLAGS}"
</pre>
}}
 
{{Root|cave resolve skeleton-filesystem-layout -x1}}
 
 
Temporarily enable bootstrap and reinstall glibc, it will also pull in bootstrap-gcc.
 
{{File|/etc/paludis/options.conf|
<pre>
sys-libs/glibc bootstrap
</pre>
}}
 
 
{{Root|cave resolve glibc -x1}}
 
 
Temporarily disable openmp and reinstall gcc. If you intent to rebuild gcc afterwards you can also temporarily disable java, fortran, etc. to speed things up.
 
{{File|/etc/paludis/options.conf|
<pre>
sys-devel/gcc -fortran -java -openmp
</pre>
}}
 
{{Root|cave resolve gcc -x1}}
 
Switch to the new gcc, if not already active.
{{Root|eclectic gcc list}}
{{Root|eclectic gcc set -1}}
 
Remove the bootstrap OPTION from glibc in /etc/paludis/options.conf and reinstall it, also purging the now uneeded bootstrap-gcc.
 
{{Root|cave resolve glibc --purge '*/*' -x1}}
 
If you disabled some gcc options before in /etc/paludis/options.conf, you can now re-enable them and reinstall gcc.
 
{{Root|cave resolve gcc -x1}}
 
 
If you want to install for example Wine you may have to temporarily disable some OPTIONS to manually resolve blockers.
 
{{File|/etc/paludis/options.conf|
<pre>
sys-apps/util-linux -systemd -udev
sys-apps/dbus -systemd
</pre>
}}
 
Be sure to re-enable and reinstall the affected packages afterwards.

Latest revision as of 22:35, 19 May 2015

TO DELETE, Multilib has been superseeded by Multiarch: http://exherbo.org/docs/multiarch.html