{"id":89,"date":"2012-06-23T16:05:56","date_gmt":"2012-06-23T23:05:56","guid":{"rendered":"http:\/\/blogs.gentoo.org\/zmedico\/?p=89"},"modified":"2012-09-27T09:22:50","modified_gmt":"2012-09-27T16:22:50","slug":"automatic-rebuilds-with-experimental-eapi-4-slot-abi","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/zmedico\/2012\/06\/23\/automatic-rebuilds-with-experimental-eapi-4-slot-abi\/","title":{"rendered":"Automatic rebuilds with experimental EAPI 4-slot-abi"},"content":{"rendered":"<p>In response to <a href=\"http:\/\/archives.gentoo.org\/gentoo-dev\/msg_f0e171be0f12abac2a10069e05e43c73.xml\">recent discussion<\/a> on the gentoo-dev mailing list, in <a href=\"http:\/\/packages.gentoo.org\/package\/sys-apps\/portage\">portage-2.1.11.1 and 2.2.0_alpha112<\/a> I&#8217;ve added experimental support for <a href=\"http:\/\/dev.gentoo.org\/~zmedico\/portage\/doc\/portage.html#package-ebuild-eapi-4-slot-abi\">EAPI &#8220;4-slot-abi&#8221;<\/a>. This EAPI makes it possible for packages to be rebuilt automatically when necessary, so that you don&#8217;t have to do it manually (nor using a helper such as revdep-rebuild or perl-cleaner). Hopefully this feature will soon be coming to an official <a href=\"https:\/\/bugs.gentoo.org\/show_bug.cgi?id=192319\">future EAPI<\/a>. I&#8217;ll post some example usage scenarios from portage&#8217;s <a href=\"http:\/\/git.overlays.gentoo.org\/gitweb\/?p=proj\/portage.git;a=blob;f=pym\/portage\/tests\/resolver\/test_slot_abi.py\">unit tests for EAPI &#8220;4-slot-abi&#8221;<\/a>.<\/p>\n<p>Here&#8217;s an example dev-libs\/icu upgrade:<br \/>\n<code><br \/>\n$ emerge -pu dev-libs\/icu<\/p>\n<p>These are the packages that would be merged, in order:<\/p>\n<p>Calculating dependencies... done!<br \/>\n[ebuild     U  ] dev-libs\/icu-49 [4.8]<br \/>\n[ebuild   R    ] dev-libs\/libxml2-2.7.8<br \/>\n<\/code><br \/>\nAs you can see, emerge detects that libxml has been built against an older version of dev-libs\/icu, so it automatically rebuilds it against the newer version. Without EAPI support, typically a user handles this kind of rebuild manually, by running the revdep-rebuild helper to detect the breakage (or similarly running @preserved-rebuild with portage-2.2_alpha).<\/p>\n<p>Here&#8217;s an example sys-libs\/db upgrade:<br \/>\n<code><br \/>\n$ emerge -pu sys-libs\/db<\/p>\n<p>These are the packages that would be merged, in order:<\/p>\n<p>Calculating dependencies... done!<br \/>\n[ebuild  NS    ] sys-libs\/db-4.8 [4.7]<br \/>\n[ebuild   R    ] app-office\/libreoffice-3.5.4.2<br \/>\n<\/code><br \/>\nIn this case, emerge detects that libreoffice has been built against an older slot of sys-libs\/db, so it automatically rebuilds it to link against the newer slot. This type of rebuild is not strictly necessary, unless you&#8217;d like emerge &#8208;&#8208;depclean to be able to remove the older slot. If you want to avoid this kind of optional rebuild, you can use the emerge &#8208;&#8208;rebuild-if-new-slot-abi=n option, or use &#8208;&#8208;exclude=app-office\/libreoffice if you want to be more specific (these options are documented in the <a href=\"http:\/\/dev.gentoo.org\/~zmedico\/portage\/doc\/man\/emerge.1.html\">emerge man page<\/a>).<\/p>\n<p>Here&#8217;s an example dev-libs\/glib upgrade:<br \/>\n<code><br \/>\n$ emerge -pu dev-libs\/glib<\/p>\n<p>These are the packages that would be merged, in order:<\/p>\n<p>Calculating dependencies... done!<br \/>\n[ebuild     U  ] dev-libs\/glib-2.32.3 [2.30.2]<br \/>\n[ebuild   R    ] dev-libs\/dbus-glib-0.98<br \/>\n<\/code><br \/>\nIn this case, emerge detects that dbus-glib has been built against an older version of dev-libs\/glib, so it automatically rebuilds it against the newer version. Without EAPI support, typically a user handles this kind of rebuild manually, after being prompted by an ewarn message (revdep-rebuild does not handle this case, as noted in <a href=\"https:\/\/bugs.gentoo.org\/show_bug.cgi?id=297483\">bug #297483<\/a>).<\/p>\n<p>If you are interested in experimenting with EAPI &#8220;4-slot-abi&#8221;, then please refer to the corresponding <a href=\"http:\/\/dev.gentoo.org\/~zmedico\/portage\/doc\/portage.html#package-ebuild-eapi-4-slot-abi\">html documentation<\/a> that is installed by &gt;=sys-apps\/portage-2.1.11 with USE=doc, and also to the <a href=\"http:\/\/dev.gentoo.org\/~zmedico\/portage\/doc\/man\/emerge.1.html\">emerge(1) man page<\/a> for information about the related &#8208;&#8208;ignore-built-slot-abi-deps and &#8208;&#8208;rebuild-if-new-slot-abi options.<\/p>\n<p><strong>Update 2012-07-01<\/strong><br \/>\nThere&#8217;s now an overlay available for testing EAPI 4-slot-abi. Please refer to <a href=\"https:\/\/bugs.gentoo.org\/show_bug.cgi?id=424429\">bug 424429<\/a> for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In response to recent discussion on the gentoo-dev mailing list, in portage-2.1.11.1 and 2.2.0_alpha112 I&#8217;ve added experimental support for EAPI &#8220;4-slot-abi&#8221;. This EAPI makes it possible for packages to be rebuilt automatically when necessary, so that you don&#8217;t have to do it manually (nor using a helper such as revdep-rebuild or perl-cleaner). Hopefully this feature &hellip; <a href=\"https:\/\/blogs.gentoo.org\/zmedico\/2012\/06\/23\/automatic-rebuilds-with-experimental-eapi-4-slot-abi\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Automatic rebuilds with experimental EAPI 4-slot-abi<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[5,7,4,9],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/89"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":29,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/89\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}