{"id":533,"date":"2023-07-23T15:08:51","date_gmt":"2023-07-23T15:08:51","guid":{"rendered":"https:\/\/blogs.gentoo.org\/gsoc\/?p=533"},"modified":"2023-07-23T15:08:51","modified_gmt":"2023-07-23T15:08:51","slug":"week-8-report-on-porting-gentoo-packages-to-modern-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/gsoc\/2023\/07\/23\/week-8-report-on-porting-gentoo-packages-to-modern-c\/","title":{"rendered":"Week 8 report on porting Gentoo packages to modern C"},"content":{"rendered":"<p>Hello all,<br \/>\nI&#8217;m here with my week 8 report on Modern C porting of Gentoo&#8217;s packages.<\/p>\n<p>Testing environments are set. I now have three environments to test my<br \/>\nPRs on.<br \/>\n&#8211; GCC 13 with glibc<br \/>\n&#8211; Clang-16 with llvm profile<br \/>\n&#8211; Clang-16 with musl-llvm profile<\/p>\n<p>Much of it goes to juippis who gave me the instructions for creating<br \/>\ncustom lxc images using gentoo stage-3 tar balls. This has helped me<br \/>\nimmensely, I can now have testing environment ready in only couple of<br \/>\nminutes and keep untouched clean environments at ready.<\/p>\n<p>Coming to my work, it&#8217;s has remained the same, I&#8217;ve picked up various<br \/>\nrandom bugs from the tracker list and worked on them. But I&#8217;ve come to<br \/>\nthe realization that my work isn&#8217;t just limited to c99 or c11 porting.<br \/>\nIt&#8217;s is mix between c99 porting, using Clang-16 as the default compiler<br \/>\nand perhaps using lld as the system linker as well. Which of course I&#8217;m<br \/>\nvery happy about.<\/p>\n<p>Another thing that Sam brought up is that it&#8217;s always the best to inform<br \/>\nhim whenever I&#8217;m or I&#8217;m not sending patches upstream, because it&#8217;s in<br \/>\nmy initial proposal to send patches upstream and sometimes it&#8217;s very<br \/>\nimportant because often times the developers of the packages know better<br \/>\nabout the codebase and can offer more in sights about what would be the<br \/>\nbest practice.<\/p>\n<p>Coming next week, I plan to work more on reducing the bug from the<br \/>\ntracker, mainly picking up bugs from the tracker and send patching them.<\/p>\n<p>Also, work with Sam and Joonas on my already submitted patches as they<br \/>\nhave started to review my PRs. Not to mention I&#8217;ve to take care about<br \/>\nsending patches upstream whenever possible, as Sam mentioned.<\/p>\n<p>Till then, see ya!<span style=\"color: #888888\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello all, I&#8217;m here with my week 8 report on Modern C porting of Gentoo&#8217;s packages. Testing environments are set. I now have three environments to test my PRs on. &#8211; GCC 13 with glibc &#8211; Clang-16 with llvm profile &hellip; <a href=\"https:\/\/blogs.gentoo.org\/gsoc\/2023\/07\/23\/week-8-report-on-porting-gentoo-packages-to-modern-c\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":176,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,20],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/533"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/users\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/comments?post=533"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/533\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/posts\/533\/revisions\/534"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/media?parent=533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/categories?post=533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/gsoc\/wp-json\/wp\/v2\/tags?post=533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}