{"id":3,"date":"2008-11-08T04:42:04","date_gmt":"2008-11-05T19:13:14","guid":{"rendered":""},"modified":"2017-03-07T20:20:59","modified_gmt":"2017-03-07T20:20:59","slug":"fixing_automagic_dependencies_with_cmake","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/serkan\/2008\/11\/08\/fixing_automagic_dependencies_with_cmake\/","title":{"rendered":"Fixing automagic dependencies with cmake"},"content":{"rendered":"<p><a href=\"http:\/\/packages.gentoo.org\/package\/gnome-extra\/file-browser-applet\">file-browser-applet<\/a> in tree introduced support for Super-H hotkey for menu activation via gtkhotkey library in 0.5.8. The dependency was optional:crazy: but automagic and the build system of the package is cmake.  After examining <a href=\"http:\/\/www.gentoo.org\/proj\/en\/qa\/automagic.xml\">Diego&#8217;s documentation<\/a> for general information and personally getting help from him, I researched for how to fix the issue for cmake. You can see the <a href=\"http:\/\/code.google.com\/p\/gnome-menu-file-browser-applet\/issues\/detail?id=36\">bug report<\/a> and my <a href=\"http:\/\/gnome-menu-file-browser-applet.googlecode.com\/issues\/attachment?aid=-1469824077598532298&amp;name=file-browser-applet-0.5.8.patch\">initial patch<\/a> for the package. After releasing 2 more versions following 0.5.8 a modified version of my patch is <a href=\"http:\/\/code.google.com\/p\/gnome-menu-file-browser-applet\/source\/detail?r=160\">committed<\/a>. The upstream patch still prints out an ugly not found error even if file-browser-applet is compiled with <b>-gtkhotkey<\/b>. But I bumped and added the upstream patch to portage.<\/p>\n<p>What I learned from this is cmake has an interesting if-then-else syntax that you need to include the control variable near each keyword. What I need to do afterwards is to extend Diego&#8217;s documentation with a paragraph about cmake.<\/p>\n<p><b>Edit:<\/b> I added prelimenary CMake section to Diego&#8217;s documentation. Please extend it with different possibilities which CMake may cause automagic dependencies.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>file-browser-applet in tree introduced support for Super-H hotkey for menu activation via gtkhotkey library in 0.5.8. The dependency was optional:crazy: but automagic and the build system of the package is cmake. After examining Diego&#8217;s documentation for general information and personally getting help from him, I researched for how to fix the issue for cmake. You &hellip; <a href=\"https:\/\/blogs.gentoo.org\/serkan\/2008\/11\/08\/fixing_automagic_dependencies_with_cmake\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing automagic dependencies with cmake<\/span><\/a><\/p>\n","protected":false},"author":71,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/3"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/posts\/3\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/serkan\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}