{"id":422,"date":"2011-02-02T15:22:02","date_gmt":"2011-02-02T13:22:02","guid":{"rendered":"http:\/\/blog.mageia.org\/?p=422"},"modified":"2018-01-30T00:42:08","modified_gmt":"2018-01-30T00:42:08","slug":"bootstrap-what-bootstrap-i-want-mageia-iso","status":"publish","type":"post","link":"https:\/\/blog.mageia.org\/en\/2011\/02\/02\/bootstrap-what-bootstrap-i-want-mageia-iso\/","title":{"rendered":"Bootstrap? What bootstrap? I want Mageia ISO!"},"content":{"rendered":"<p>We announced that our first alpha ISO will be available by the end of January&#8230; and still no ISO. Damned! What is going on? Let me explain it.<\/p>\n<h2>Once upon a bootstrap&#8230;<\/h2>\n<p>As stated in previous blog posts, our build system has been in active operation for the past weeks and\u00a0<a href=\"http:\/\/pkgsubmit.mageia.org\">more than 4,000\u00a0packages have already been built<\/a>. This set of packages is what we call a bootstrap.<\/p>\n<p>Looking at <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bootstrapping\">Wikipedia<\/a>, you will see that a bootstrap is a small bootloader used to boot a bigger system.\u00a0In the case of Mageia: bootstrap is the current step where the base system and major dependencies are being built so that all applications can then be also built using Mageia own tools and packages. All Linux distributions use their own packages to build all packages available in their repositories.<\/p>\n<p><a href=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square.jpg\" rel=\"lightbox[422]\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"439\" data-permalink=\"https:\/\/blog.mageia.org\/en\/2011\/02\/02\/bootstrap-what-bootstrap-i-want-mageia-iso\/white_chicken_egg_square\/\" data-orig-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square.jpg\" data-orig-size=\"625,624\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;Copyright - Ren West&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"White_chicken_egg_square\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square-300x300.jpg\" data-large-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square.jpg\" class=\"aligncenter size-medium wp-image-439\" title=\"White_chicken_egg_square\" src=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square-300x300.jpg 300w, https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square-150x150.jpg 150w, https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/White_chicken_egg_square.jpg 625w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Then comes the hardest piece of the story, kind of a chicken and egg dilemma. Some low-level packages, usually called toolchain, <em>need themselves to compile<\/em>: gcc, glibc&#8230; These packages already exist in a lot of distributions. So the bootstraping process simply start from one of these distributions.<\/p>\n<p>On Mageia side, we decided to use Mandriva packages as the first release is based on Cooker. In order to use them, we need to have them cleaned:<\/p>\n<ul style=\"position: static; z-index: auto;\">\n<li>removing Mandriva specific bits and pieces (RPM macros, copyrighted items like images, icons, deprecated stuff&#8230;)<\/li>\n<li>removing unneeded conditions in build requirement definitions<\/li>\n<li>sending patches upstream so that we don&#8217;t have to maintain them whereas they could be profitable for all if upstream accepts them<\/li>\n<li>disabling temporary some high-level dependencies as they are not yet built and available for Mageia (Java, Mono).<\/li>\n<\/ul>\n<p>When all this is done, each package is ready to be rebuilt on Mageia build system. Once the package is rebuilt as Mageia one, the packager will check and re-add, if needed, additional build dependencies as soon as they are available.<\/p>\n<h3>Let&#8217;s take an example<\/h3>\n<p>gcc is a C compiler, an important part of base system as it&#8217;s needed by a lot of applications to be built from source.<\/p>\n<p>Mageia needs its own gcc package to generate all applications using C language (also called dogfooding). This is a crucial operation for Mageia as doing it properly will ensure that everything is working well and in the same time list potential problems and correct them. Mageia gcc is then generated.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs.png\" rel=\"lightbox[422]\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"451\" data-permalink=\"https:\/\/blog.mageia.org\/en\/2011\/02\/02\/bootstrap-what-bootstrap-i-want-mageia-iso\/bootstrap_bs\/\" data-orig-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs.png\" data-orig-size=\"1011,492\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Bootstrap build system\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs-300x145.png\" data-large-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs.png\" class=\"aligncenter size-full wp-image-451\" title=\"Bootstrap build system\" src=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs.png\" alt=\"\" width=\"809\" height=\"394\" srcset=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs.png 1011w, https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/bootstrap_bs-300x145.png 300w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/a><\/p>\n<p>When the toolchain is built then we can rebuild Mageia kernel, X drivers, X server, etc. and upper-level applications. A bootstrapped system doesn&#8217;t offer packagers much more than some libraries and a compiler. It will then need additional core system packages before being able to let the packagers team really start working in earnest. Many packages do require some build dependencies which in turn require some other build dependencies.<\/p>\n<p>Finally thousands of packages are needed to build major components that will be needed for high level applications.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap.png\" rel=\"lightbox[422]\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"446\" data-permalink=\"https:\/\/blog.mageia.org\/en\/2011\/02\/02\/bootstrap-what-bootstrap-i-want-mageia-iso\/deps_bootstrap\/\" data-orig-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap.png\" data-orig-size=\"642,266\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Dependencies cascade\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap-300x124.png\" data-large-file=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap.png\" class=\"aligncenter size-full wp-image-446\" title=\"Dependencies cascade\" src=\"http:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap.png\" alt=\"\" width=\"578\" height=\"239\" srcset=\"https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap.png 642w, https:\/\/blog.mageia.org\/en\/wp-content\/uploads\/2011\/02\/deps_bootstrap-300x124.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p>Of course this is the simple story, without all the fun things that can happen during rebuild process. But that&#8217;s the big picture.<\/p>\n<h2>Why is bootstrap so important?<\/h2>\n<p>As stated previously, bootstrap is a step where packagers and base system specialists can take time to check consistency of the very low-level parts of the distribution, clean requirements and make it fit with the distribution policy. So bootstrap is not dedicated only to people interested in forks \ud83d\ude42<\/p>\n<p>By the way, improving and writing proper documentation on bootstrap will also help a lot when new architectures are being added and supported. It will need a proper toolchain, base system&#8230; Same story.<\/p>\n<h2>ISOs!<\/h2>\n<p>So back to our first question: when can we expect a first test ISO? The bootstrap step started one month ago and should be finalized by tomorrow. It took about\u00a0<strong>1,500\u00a0hours<\/strong> to build available packages, taking into account successful builds but also failures, rebuilds, technical decisions to be taken, unexpected problems, discussions&#8230;<\/p>\n<p>Now here we are :). Repository is ready for first build tests, our build machine for ISOs is properly configured and\u00a0Alpha1 is expected on 15th of February; stay tuned, more news about future roadmap is coming soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We announced that our first alpha ISO will be available by the end of January&#8230; and still no ISO. Damned! What is going on? Let me explain it. Once upon a bootstrap&#8230; As stated in previous blog posts, our build &hellip; <a href=\"https:\/\/blog.mageia.org\/en\/2011\/02\/02\/bootstrap-what-bootstrap-i-want-mageia-iso\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[42,44,43,38,36,3,23],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bootstrap","tag-build","tag-distribution","tag-iso","tag-linux","tag-mageia","tag-packaging"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p159kA-6O","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":36,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":3669,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/posts\/422\/revisions\/3669"}],"wp:attachment":[{"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mageia.org\/en\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}