{"id":516,"date":"2009-05-12T12:13:37","date_gmt":"2009-05-12T09:13:37","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=516"},"modified":"2009-05-12T13:38:48","modified_gmt":"2009-05-12T10:38:48","slug":"upgrading-a-gentoo-box-that-hasnt-been-upgraded-since-2007","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2009\/05\/12\/upgrading-a-gentoo-box-that-hasnt-been-upgraded-since-2007\/","title":{"rendered":"upgrading a gentoo box that hasn&#8217;t been upgraded since 2007"},"content":{"rendered":"<p>I was given root today in a gentoo box that nobody had upgraded since 2007. As expected the &#8220;emerge &#8211;sync; emerge -uDavt world&#8221; showed a lot of blockages.<\/p>\n<p>I tried to solve each one but I got stuck while trying to upgrade portage 2.1.3.9 to 2.1.6.11. In order to upgrade portage I had to upgrade sandbox, but sandbox couldn&#8217;t be ugraded correctly due to portage 2.1.3.9 being unable to handle .tar.lzma files.<br \/>\nThe box had sandbox-1.2 installed and it was unable to upgrade to sandbox-1.6. The error was:<\/p>\n<blockquote><p>unpack sandbox-1.6.tar.lzma: file format not recognized. Ignoring.<\/p><\/blockquote>\n<p>Upgrading lzma-utils, tar and a few other packages did not work. In the end I edited the sandbox-1.6-r2.ebuild and changed the src_unpack function from:<br \/>\n<code>src_unpack() {<br \/>\n    unpack ${A}<br \/>\n    cd \"${S}\"<br \/>\n    epatch \"${FILESDIR}\"\/${P}-disable-qa-static.patch<br \/>\n    epatch \"${FILESDIR}\"\/${P}-disable-pthread.patch<br \/>\n    epatch \"${FILESDIR}\"\/0001-libsandbox-handle-more-at-functions.patch<br \/>\n}<br \/>\n<\/code><\/p>\n<p>To:<br \/>\n<code>src_unpack() {<br \/>\n    unpack ${A}<br \/>\n    cd \/var\/tmp\/portage\/sys-apps\/sandbox-1.6-r2\/<br \/>\n    tar --lzma -xvf sandbox-1.6.tar.lzma<br \/>\n    mv sandbox-1.6\/ work\/<br \/>\n    cd \"${S}\"<br \/>\n    epatch \"${FILESDIR}\"\/${P}-disable-qa-static.patch<br \/>\n    epatch \"${FILESDIR}\"\/${P}-disable-pthread.patch<br \/>\n    epatch \"${FILESDIR}\"\/0001-libsandbox-handle-more-at-functions.patch<br \/>\n}<\/code><\/p>\n<p>Then:<br \/>\n<code>cd \/usr\/portage\/sys-apps\/sandbox\/; ebuild sandbox-1.6-r2.ebuild manifest<\/code><\/p>\n<p>After this edit, sandbox emerged properly, so portage emerged properly too. Everything else worked as expected&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was given root today in a gentoo box that nobody had upgraded since 2007. As expected the &#8220;emerge &#8211;sync; emerge -uDavt world&#8221; showed a lot of blockages. I tried to solve each one but I got stuck while trying to upgrade portage 2.1.3.9 to 2.1.6.11. In order to upgrade portage I had to upgrade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[12,3],"tags":[601,595,88,86,87,85],"class_list":["post-516","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux","tag-gentoo","tag-linux","tag-lzma","tag-portage","tag-sandbox","tag-upgrade"],"aioseo_notices":[],"views":10541,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":9,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":529,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/516\/revisions\/529"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}