Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://planet.gentoo.org/rss20.xml

  1. <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  2. <channel>
  3. <title>Planet Gentoo</title>
  4. <link>https://planet.gentoo.org</link>
  5. <language>en</language>
  6. <description>Planet Gentoo - https://planet.gentoo.org/</description>
  7.  
  8.  
  9.  <item>
  10.    <title>Gentoo Linux becomes an SPI associated project</title>
  11.    <guid isPermaLink="false">https://www.gentoo.org/news/2024/04/10/SPI-associated-project.html</guid>
  12.    <link>https://www.gentoo.org/news/2024/04/10/SPI-associated-project.html</link>
  13.    <description>
  14.        
  15.          &lt;p&gt;&lt;a href=&quot;https://www.spi-inc.org/&quot; class=&quot;news-img-right&quot;&gt;
  16.  &lt;img src=&quot;https://www.gentoo.org/assets/img/news/2024/logo-spi.png&quot; alt=&quot;SPI Inc. logo&quot;&gt;
  17. &lt;/a&gt;&lt;/p&gt;
  18.  
  19. &lt;p&gt;As of this March, Gentoo Linux has become an Associated Project of
  20. &lt;a href=&quot;https://www.spi-inc.org/&quot;&gt;Software in the Public Interest&lt;/a&gt;,
  21. see also the
  22. &lt;a href=&quot;https://www.spi-inc.org/corporate/resolutions/2024/2024-03-11.js.1/&quot;&gt;formal invitation
  23. by the Board of Directors of SPI&lt;/a&gt;. Software in the Public Interest (SPI) is a non-profit
  24. corporation founded to act as a fiscal sponsor for organizations that develop open source software
  25. and hardware. It provides services such as accepting donations, holding funds and assets, …
  26. SPI qualifies for 501(c)(3) (U.S. non-profit organization) status. This means that all
  27. donations made to SPI and its supported projects are tax deductible for donors in the United States.
  28. &lt;a href=&quot;https://www.gentoo.org/news/2024/04/10/SPI-associated-project.html&quot;&gt;Read on for more details…&lt;/a&gt;&lt;/p&gt;
  29.  
  30.  
  31.  
  32. &lt;h2 id=&quot;questions--answers&quot;&gt;Questions &amp;amp; Answers&lt;/h2&gt;
  33.  
  34. &lt;h3 id=&quot;why-become-an-spi-associated-project&quot;&gt;Why become an SPI Associated Project?&lt;/h3&gt;
  35.  
  36. &lt;p&gt;Gentoo Linux, as a collective of software developers, is pretty good at being a Linux
  37. distribution. However, becoming a US federal non-profit organization would increase
  38. the non-technical workload.&lt;/p&gt;
  39.  
  40. &lt;p&gt;The current Gentoo Foundation has bylaws restricting its behavior to
  41. that of a non-profit, is a recognized non-profit only in New Mexico, but a for-profit
  42. entity at the US federal level. A direct conversion to a federally recognized
  43. non-profit would be unlikely to succeed without significant effort and cost.&lt;/p&gt;
  44.  
  45. &lt;p&gt;Finding Gentoo Foundation trustees to take care of the non-technical work is an ongoing
  46. challenge.  Robin Johnson (robbat2), our current Gentoo Foundation treasurer, spent a
  47. huge amount of time and effort with getting bookkeeping and taxes in order after the prior
  48. treasurers lost interest and retired from Gentoo.&lt;/p&gt;
  49.  
  50. &lt;p&gt;For these reasons, Gentoo is moving the non-technical organization overhead to
  51. Software in the Public Interest (SPI). As noted above, SPI is already now recognized
  52. at US federal level as a full-fleged non-profit 501(c)(3). It also handles several
  53. projects of similar type and size (e.g., Arch and Debian) and as such has exactly the
  54. experience and background that Gentoo needs.&lt;/p&gt;
  55.  
  56. &lt;h3 id=&quot;what-are-the-advantages-of-becoming-an-spi-associated-project-in-detail&quot;&gt;What are the advantages of becoming an SPI Associated Project in detail?&lt;/h3&gt;
  57.  
  58. &lt;p&gt;Financial benefits to donors:&lt;/p&gt;
  59. &lt;ul&gt;
  60.  &lt;li&gt;tax deductions [1]&lt;/li&gt;
  61. &lt;/ul&gt;
  62.  
  63. &lt;p&gt;Financial benefits to Gentoo:&lt;/p&gt;
  64. &lt;ul&gt;
  65.  &lt;li&gt;matching fund programs [2]&lt;/li&gt;
  66.  &lt;li&gt;reduced organizational complexity&lt;/li&gt;
  67.  &lt;li&gt;reduced administration costs [3]&lt;/li&gt;
  68.  &lt;li&gt;reduced taxes [4]&lt;/li&gt;
  69.  &lt;li&gt;reduced fees [5]&lt;/li&gt;
  70.  &lt;li&gt;increased access to non-profit-only sponsorship [6]&lt;/li&gt;
  71. &lt;/ul&gt;
  72.  
  73. &lt;p&gt;Non-financial benefits to Gentoo:&lt;/p&gt;
  74. &lt;ul&gt;
  75.  &lt;li&gt;reduced organizational complexity, no “double-headed beast” any more&lt;/li&gt;
  76.  &lt;li&gt;less non-technical work required&lt;/li&gt;
  77. &lt;/ul&gt;
  78.  
  79. &lt;p&gt;[1] Presently, almost no donations to the Gentoo Foundation provide a tax benefit
  80. for donors anywhere in the world. Becoming a SPI Associated Project enables tax
  81. benefits for donors located in the USA. Some other countries do recognize donations
  82. made to non-profits in other jurisdictions and provide similar tax credits.&lt;/p&gt;
  83.  
  84. &lt;p&gt;[2] This also depends on jurisdictions and local tax laws of the donor, and is often
  85. tied to tax deductions.&lt;/p&gt;
  86.  
  87. &lt;p&gt;[3] The Gentoo Foundation currently pays $1500/year in tax preparation costs.&lt;/p&gt;
  88.  
  89. &lt;p&gt;[4] In recent fiscal years, through careful budgetary planning on the part of the
  90. Treasurer and advice of tax professionals, the Gentoo Foundation has used
  91. depreciation expenses to offset taxes owing; however, this is not a sustainable
  92. strategy.&lt;/p&gt;
  93.  
  94. &lt;p&gt;[5] Non-profits are eligible for reduced fees, e.g., of Paypal (savings of 0.9-1.29%
  95. per donation) and other services.&lt;/p&gt;
  96.  
  97. &lt;p&gt;[6] Some sponsorship programs are only available to verified 501(c)(3) organizations&lt;/p&gt;
  98.  
  99. &lt;h3 id=&quot;can-i-still-donate-to-gentoo-and-how&quot;&gt;Can I still donate to Gentoo, and how?&lt;/h3&gt;
  100.  
  101. &lt;p&gt;Yes, of course, and please do so! For the start, you can go to
  102. &lt;a href=&quot;https://www.spi-inc.org/projects/gentoo/&quot;&gt;SPI’s Gentoo page&lt;/a&gt; and scroll down to the
  103. Paypal and Click&amp;amp;Pledge donation links. More information and more ways will be set up soon.
  104. Keep in mind, donations to Gentoo via SPI are tax-deductible in the US!&lt;/p&gt;
  105.  
  106. &lt;p&gt;In time, Gentoo will contact existing recurring donors, to aid transitions to
  107. SPI’s donation systems.&lt;/p&gt;
  108.  
  109. &lt;h3 id=&quot;what-will-happen-to-the-gentoo-foundation&quot;&gt;What will happen to the Gentoo Foundation?&lt;/h3&gt;
  110.  
  111. &lt;p&gt;Our intention is to eventually transfer the existing assets to SPI and dissolve the Gentoo
  112. Foundation. The precise steps needed on the way to this objective are still under discussion.&lt;/p&gt;
  113.  
  114. &lt;h3 id=&quot;does-this-affect-in-any-way-the-european-gentoo-ev&quot;&gt;Does this affect in any way the European Gentoo e.V.?&lt;/h3&gt;
  115.  
  116. &lt;p&gt;No. &lt;a href=&quot;https://gentoo-ev.org/&quot;&gt;Förderverein Gentoo e.V.&lt;/a&gt; will continue to exist
  117. independently.  It is also recognized to serve public-benefit purposes (§ 52 Fiscal Code of
  118. Germany), meaning that donations are tax-deductible in the E.U.&lt;/p&gt;
  119.        
  120.    </description>
  121.    <pubDate>Wed, 10 Apr 2024 05:00:00 +0000</pubDate>
  122.    <dc:creator>GentooNews (https://www.gentoo.org/feeds/news.xml)</dc:creator>
  123.  </item>
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  <item>
  132.    <title>The interpersonal side of the xz-utils compromise</title>
  133.    <guid isPermaLink="false">tag:blogger.com,1999:blog-7849507270164967036.post-8037508628762796857</guid>
  134.    <link>https://dilfridge.blogspot.com/2024/04/the-interpersonal-side-of-xz-utils.html</link>
  135.    <description>
  136.        
  137.          &lt;a href=&quot;https://robmensching.com/blog/posts/2024/03/30/a-microcosm-of-the-interactions-in-open-source-projects/&quot; style=&quot;clear: right;float: right;margin-bottom:1em;margin-left:1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;150&quot; data-original-width=&quot;170&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjApkQEINYQ1rpQ98SwFCpPIL2NS3yTJr5RfUNYzUjv8OIawZ9gOcxmcSkqmKhK10kLdqoQUC5Wa5gCIVhnwq6lgq2bVfCtQ9OCj6Z-xRs8GbtFTAQ1R5iizruN8afMOAT63kLH62Bxc6cE1WFHyE-e-3ZofdOC72rU6MfYn0HBuXdGIylx4SXc8YG5WnNo/s1600/thumb-microcosm.jpg&quot; width=&quot;170&quot;&gt;&lt;/a&gt;&lt;p&gt;While everyone is busy analyzing the highly complex technical details of the &lt;a href=&quot;https://www.openwall.com/lists/oss-security/2024/03/29/4&quot;&gt;recently discovered&lt;/a&gt; &lt;a href=&quot;https://www.tukaani.org/xz-backdoor/&quot;&gt;xz-utils compromise&lt;/a&gt; that is currently rocking the internet, it is worth looking at the underlying non-technical problems that make such a compromise possible. A very good write-up can be found &lt;a href=&quot;https://robmensching.com/blog/posts/2024/03/30/a-microcosm-of-the-interactions-in-open-source-projects/&quot;&gt;on the blog of Rob Mensching&lt;/a&gt;...&lt;/p&gt;&lt;p&gt;&quot;&lt;a href=&quot;https://robmensching.com/blog/posts/2024/03/30/a-microcosm-of-the-interactions-in-open-source-projects/&quot;&gt;A Microcosm of the interactions in Open Source projects&lt;/a&gt;&quot;&lt;/p&gt;
  138.        
  139.    </description>
  140.    <pubDate>Mon, 01 Apr 2024 14:54:00 +0000</pubDate>
  141.    <dc:creator>dilfridge (dilfridge)</dc:creator>
  142.  </item>
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  <item>
  151.    <title>Optimizing parallel extension builds in PEP517 builds</title>
  152.    <guid isPermaLink="false">https://blogs.gentoo.org/mgorny/?p=1945</guid>
  153.    <link>https://blogs.gentoo.org/mgorny/2024/03/15/optimizing-parallel-extension-builds-in-pep517-builds/</link>
  154.    <description>
  155.        
  156.          &lt;p&gt;The distutils (and therefore setuptools) build system supports building C extensions in parallel, through the use of &lt;kbd&gt;-j&lt;/kbd&gt; (&lt;kbd&gt;--parallel&lt;/kbd&gt;) option, passed either to &lt;kbd&gt;build_ext&lt;/kbd&gt; or &lt;kbd&gt;build&lt;/kbd&gt; command.  Gentoo distutils-r1.eclass has always passed these options to speed up builds of packages that feature multiple C files.&lt;/p&gt;
  157. &lt;p&gt;However, the switch to PEP517 build backend made this problematic.  While the backend uses the respective commands internally, it doesn’t provide a way to pass options to them.  In this post, I’d like to explore the different ways we attempted to resolve this problem, trying to find an optimal solution that would let us benefit from parallel extension builds while preserving minimal overhead for packages that wouldn’t benefit from it (e.g. pure Python packages).  I will also include a fresh benchmark results to compare these methods.&lt;br&gt;
  158. &lt;span id=&quot;more-1945&quot;&gt;&lt;/span&gt;&lt;/p&gt;
  159. &lt;h2&gt;The history&lt;/h2&gt;
  160. &lt;p&gt;The legacy build mode utilized two ebuild phases: the compile phase during which the &lt;kbd&gt;build&lt;/kbd&gt; command was invoked, and the install phase during which &lt;kbd&gt;install&lt;/kbd&gt; command was invoked.  An explicit command invocation made it possible to simply pass the &lt;kbd&gt;-j&lt;/kbd&gt; option.&lt;/p&gt;
  161. &lt;p&gt;When we initially implemented the PEP517 mode, we simply continued &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/distutils-r1.eclass?id=7ff39e403ecb492d9921826848ead926ea46ce3b#n897&quot;&gt;calling &lt;kbd&gt;esetup.py build&lt;/kbd&gt;&lt;/a&gt;, prior to calling the PEP517 backend.  The former call built all the extensions in parallel, and the latter simply reused the existing build directory.&lt;/p&gt;
  162. &lt;p&gt;This was a bit ugly, but it worked most of the time.  However, it suffered from a significant overhead from calling the &lt;kbd&gt;build&lt;/kbd&gt; command.  This meant significantly slower builds in the vast majority of packages that did not feature multiple C source files that could benefit from parallel builds.&lt;/p&gt;
  163. &lt;p&gt;The next optimization was to &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=ac1735e34dad0a1f96543daa3d7ceb303b78d842&quot;&gt;replace the &lt;kbd&gt;build&lt;/kbd&gt; command invocation with more specific &lt;kbd&gt;build_ext&lt;/kbd&gt;&lt;/a&gt;.  While the former also involved copying all .py files to the build directory, the latter only built C extensions — and therefore could be pretty much a no-op if there were none.  As a side effect, we’ve started hitting rare bugs when custom &lt;kbd&gt;setup.py&lt;/kbd&gt; scripts assumed that &lt;kbd&gt;build_ext&lt;/kbd&gt; is never called directly.  For a relatively recent example, there is my pull request to &lt;a rel=&quot;external&quot; href=&quot;https://github.com/zeromq/pyzmq/pull/1872&quot;&gt;fix build_ext -j… in pyzmq&lt;/a&gt;.&lt;/p&gt;
  164. &lt;p&gt;I’ve followed this immediately with another optimization: &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=4986eb8eece688f596bbf6e2cbcbe532df07c95f&quot;&gt;skipping the call if there were no source files&lt;/a&gt;.  To be honest, the code started looking messy at this point, but it was an optimization nevertheless.  For the no-extension case, the overhead of calling &lt;kbd&gt;esetup.py build_ext&lt;/kbd&gt; was replaced by the overhead of calling &lt;kbd&gt;find&lt;/kbd&gt; to scan the source tree.  Of course, this still had some risk of false positives and false negatives.&lt;/p&gt;
  165. &lt;p&gt;The next optimization was to &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=2e85852793d7d97f7eeb52641609302d73d4aabb&quot;&gt;call build_ext only if there were at least two files to compile&lt;/a&gt;.  This mostly addressed the added overhead for packages building only one C file — but of course it couldn’t resolve all false positives.&lt;/p&gt;
  166. &lt;p&gt;One more optimization was to &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=abbb9b973fe89bcf28bf2920c45aba96c7083365&quot;&gt;make the call conditional to &lt;kbd&gt;DISTUTILS_EXT&lt;/kbd&gt; variable&lt;/a&gt;.  While the variable was introduced for another reason (to control adding &lt;kbd&gt;debug&lt;/kbd&gt; flag), it provided a nice solution to avoid both most of the false positives (even if they were extremely rare) and the overhead of calling &lt;kbd&gt;find&lt;/kbd&gt;.&lt;/p&gt;
  167. &lt;p&gt;The last step wasn’t mine.  It was Eli Schwartz’s patch to &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=597762f0cd480abcd18792f519db370a6c249e25&quot;&gt;pass build options via &lt;var&gt;DIST_EXTRA_CONFIG&lt;/var&gt;&lt;/a&gt;.  This provided the ultimate optimization — instead of trying to hack a &lt;kbd&gt;build_ext&lt;/kbd&gt; call around, we were finally able to pass the necessary options to the PEP517 backend.  Needless to say, it meant not only no false positives and no false negatives, but it effectively almost eliminated the overhead in all cases (except for the cost of writing the configuration file).&lt;/p&gt;
  168. &lt;h2&gt;The timings&lt;/h2&gt;
  169. &lt;table&gt;
  170. &lt;caption&gt;Table 1. Benchmark results for various modes of package builds&lt;/caption&gt;
  171. &lt;tr&gt;
  172. &lt;th colspan=&quot;2&quot;&gt;&lt;/th&gt;
  173. &lt;th colspan=&quot;2&quot;&gt;Django 5.0.3&lt;/th&gt;
  174. &lt;th colspan=&quot;2&quot;&gt;Cython 3.0.9&lt;/th&gt;
  175. &lt;/tr&gt;
  176. &lt;tr&gt;
  177. &lt;th colspan=&quot;2&quot;&gt;Serial PEP517 build&lt;/th&gt;
  178. &lt;td colspan=&quot;2&quot;&gt;5.4 s&lt;/td&gt;
  179. &lt;td colspan=&quot;2&quot;&gt;46.7 s&lt;/td&gt;
  180. &lt;/tr&gt;
  181. &lt;tr&gt;
  182. &lt;th&gt;&lt;kbd&gt;build&lt;/kbd&gt;&lt;/th&gt;
  183. &lt;th rowspan=&quot;2&quot;&gt;total&lt;/th&gt;
  184. &lt;td&gt;3.1 s&lt;/td&gt;
  185. &lt;td rowspan=&quot;2&quot;&gt;8.4 s&lt;/td&gt;
  186. &lt;td&gt;20.8 s&lt;/td&gt;
  187. &lt;td rowspan=&quot;2&quot;&gt;23.5 s&lt;/td&gt;
  188. &lt;/tr&gt;
  189. &lt;tr&gt;
  190. &lt;th&gt;PEP517&lt;/th&gt;
  191. &lt;td&gt;5.3 s&lt;/td&gt;
  192. &lt;td&gt;2.7 s&lt;/td&gt;
  193. &lt;/tr&gt;
  194. &lt;tr&gt;
  195. &lt;th&gt;&lt;kbd&gt;build_ext&lt;/kbd&gt;&lt;/th&gt;
  196. &lt;th rowspan=&quot;2&quot;&gt;total&lt;/th&gt;
  197. &lt;td&gt;0.6 s&lt;/td&gt;
  198. &lt;td rowspan=&quot;2&quot;&gt;6 s&lt;/td&gt;
  199. &lt;td&gt;20.8 s&lt;/td&gt;
  200. &lt;td rowspan=&quot;2&quot;&gt;23.5 s&lt;/td&gt;
  201. &lt;/tr&gt;
  202. &lt;tr&gt;
  203. &lt;th&gt;PEP517&lt;/th&gt;
  204. &lt;td&gt;5.4 s&lt;/td&gt;
  205. &lt;td&gt;2.7 s&lt;/td&gt;
  206. &lt;/tr&gt;
  207. &lt;tr&gt;
  208. &lt;th&gt;
  209. &lt;kbd&gt;find&lt;/kbd&gt; + &lt;kbd&gt;build_ext&lt;/kbd&gt;
  210. &lt;/th&gt;
  211. &lt;th rowspan=&quot;2&quot;&gt;total&lt;/th&gt;
  212. &lt;td&gt;0.06 s&lt;/td&gt;
  213. &lt;td rowspan=&quot;2&quot;&gt;5.5 s&lt;/td&gt;
  214. &lt;td&gt;20.9 s&lt;/td&gt;
  215. &lt;td rowspan=&quot;2&quot;&gt;23.6 s&lt;/td&gt;
  216. &lt;/tr&gt;
  217. &lt;tr&gt;
  218. &lt;th&gt;PEP517&lt;/th&gt;
  219. &lt;td&gt;5.4 s&lt;/td&gt;
  220. &lt;td&gt;2.7 s&lt;/td&gt;
  221. &lt;/tr&gt;
  222. &lt;tr&gt;
  223. &lt;th colspan=&quot;2&quot;&gt;Parallel PEP517 build&lt;/th&gt;
  224. &lt;td colspan=&quot;2&quot;&gt;5.4 s&lt;/td&gt;
  225. &lt;td colspan=&quot;2&quot;&gt;22.8 s&lt;/td&gt;
  226. &lt;/tr&gt;
  227. &lt;/table&gt;
  228. &lt;figure&gt;
  229. &lt;a href=&quot;http://blogs.gentoo.org/mgorny/files/2024/03/charts.png&quot;&gt;&lt;img src=&quot;http://blogs.gentoo.org/mgorny/files/2024/03/charts.png&quot; width=&quot;1174&quot; height=&quot;404&quot; alt=&quot;Plot of the results from the table&quot;&gt;&lt;/a&gt;&lt;figcaption&gt;Figure 1. Benchmark times plot&lt;/figcaption&gt;&lt;/figure&gt;
  230. &lt;p&gt;For a pure Python package (django here), the table clearly shows how successive iterations have reduced the overhead from parallel build supports, from roughly 3 seconds in the earliest approach, resulting in 8.4 s total build time, to the same 5.4 s as the regular PEP517 build.&lt;/p&gt;
  231. &lt;p&gt;For Cython, all but the ultimate solution result in roughly 23.5 s total, half of the time needed for a serial build (46.7 s).  The ultimate solution saves another 0.8 s on the double invocation overhead, giving the final result of 22.8 s.&lt;/p&gt;
  232. &lt;h2&gt;Test data and methodology&lt;/h2&gt;
  233. &lt;p&gt;The methods were tested against two packages:&lt;/p&gt;
  234. &lt;ol&gt;
  235. &lt;li&gt;
  236. &lt;a rel=&quot;external&quot; href=&quot;https://pypi.org/project/Django/5.0.3/#files&quot;&gt;Django 5.0.3&lt;/a&gt;, representing a moderate size pure Python package, and&lt;/li&gt;
  237. &lt;li&gt;
  238. &lt;a rel=&quot;external&quot; href=&quot;https://pypi.org/project/Cython/3.0.9/#files&quot;&gt;Cython 3.0.9&lt;/a&gt;, representing a package with a moderate number of C extensions.
  239. &lt;/li&gt;
  240. &lt;/ol&gt;
  241. &lt;p&gt;Python 3.12.2_p1 was used for testing.  The timings were done using &lt;kbd&gt;time&lt;/kbd&gt; command from bash.  The results were averaged from 5 warm cache test runs.  Testing was done on AMD Ryzen 5 3600, with pstates boost disabled.&lt;/p&gt;
  242. &lt;p&gt;The PEP517 builds were performed using the following command:&lt;/p&gt;
  243. &lt;pre&gt;python3.12 -m build -nwx&lt;/pre&gt;
  244. &lt;p&gt;The remaining commands and conditions were copied from the eclass.  The test scripts, along with the results, spreadsheet and plot source can be found in the &lt;a rel=&quot;external&quot; href=&quot;https://github.com/mgorny/distutils-build-bench&quot;&gt;distutils-build-bench repository&lt;/a&gt;.&lt;/p&gt;
  245.        
  246.    </description>
  247.    <pubDate>Fri, 15 Mar 2024 15:41:12 +0000</pubDate>
  248.    <dc:creator>mgorny (mgorny)</dc:creator>
  249.  </item>
  250.  
  251.  
  252.  
  253.  <item>
  254.    <title>The story of distutils build directory in Gentoo</title>
  255.    <guid isPermaLink="false">https://blogs.gentoo.org/mgorny/?p=1918</guid>
  256.    <link>https://blogs.gentoo.org/mgorny/2024/03/13/the-story-of-distutils-build-directory-in-gentoo/</link>
  257.    <description>
  258.        
  259.          &lt;p&gt;The Python distutils build system, as well as setuptools (that it was later merged into), used a two-stage build: first, a &lt;kbd&gt;build&lt;/kbd&gt; command would prepare a built package version (usually just copy the &lt;kbd&gt;.py&lt;/kbd&gt; files, sometimes compile Python extensions) into a build directory, then an &lt;kbd&gt;install&lt;/kbd&gt; command would copy them to the live filesystem, or a staging directory.  Curious enough, distutils were an early adopter of out-of-source builds — when used right (which often enough wasn’t the case), no writes would occur in the source directory and all modifications would be done directly in the build directory.&lt;/p&gt;
  260. &lt;p&gt;Today, in the PEP517 era, two-stage builds aren’t really relevant anymore.  Build systems were turned into black boxes that spew wheels.  However, setuptools still internally uses the two-stage build and the build directory, and therefore it still remains relevant to Gentoo eclasses.  In this post, I’d like to shortly tell how we dealt with it over the years.&lt;br&gt;
  261. &lt;span id=&quot;more-1918&quot;&gt;&lt;/span&gt;&lt;/p&gt;
  262. &lt;h2&gt;Act 1: The first overrides&lt;/h2&gt;
  263. &lt;p&gt;Normally, distutils would use a build directory of &lt;kbd&gt;build/lib*&lt;/kbd&gt;, optionally suffixed for platform and Python version.  This was reasonably good most of the time, but not good enough for us.  On one hand, it didn’t properly distinguish CPython and PyPy (and it wouldn’t for a long time, until &lt;a rel=&quot;external&quot; href=&quot;https://github.com/pypa/distutils/pull/133&quot;&gt;Use cache_tag in default build_platlib dir&lt;/a&gt; PR).  On the other, the directory name would be hard to get, if ebuilds ever needed to do something about it (and we surely did).&lt;/p&gt;
  264. &lt;p&gt;Therefore, the eclass would start overriding build directories quite early on.  We would start by passing &lt;kbd&gt;--build-base&lt;/kbd&gt; to the &lt;kbd&gt;build&lt;/kbd&gt; command, then add &lt;kbd&gt;--build-lib&lt;/kbd&gt; to make the &lt;kbd&gt;lib&lt;/kbd&gt; subdirectory path simpler, then replace it with separate &lt;kbd&gt;--build-platlib&lt;/kbd&gt; and &lt;kbd&gt;--build-purelib&lt;/kbd&gt; to workaround build systems overriding one of them (wxPython, if I recall correctly).&lt;/p&gt;
  265. &lt;p&gt;The eclass would class this mode “out-of-source build” and use a dedicated &lt;var&gt;BUILD_DIR&lt;/var&gt; variable to refer to the dedicated build directory.  Confusingly, “in-source build” would actually indicate a distutils-style out-of-source build in the default &lt;kbd&gt;build&lt;/kbd&gt; subdirectory, and the eclass would create a separate copy of the sources for every Python target (effectively permitting in-source modifications).&lt;/p&gt;
  266. &lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo/historical.git/tree/eclass/distutils-r1.eclass?id=e061eb09af0558661de8a3078655e25d06d905ee#n226&quot;&gt;The last version of code passing &lt;kbd&gt;--build*&lt;/kbd&gt; options.&lt;/a&gt;&lt;/p&gt;
  267. &lt;h2&gt;Act 2: .pydistutils.cfg&lt;/h2&gt;
  268. &lt;p&gt;The big problem with the earlier approach is that you’d have to pass the options every time &lt;kbd&gt;setup.py&lt;/kbd&gt; is invoked.  Given the design of option passing in distutils, this effectively meant that you needed to repeatedly invoke the &lt;kbd&gt;build&lt;/kbd&gt; commands (otherwise you couldn’t pass options to it).&lt;/p&gt;
  269. &lt;p&gt;The next step would be to replace this logic by using &lt;kbd&gt;.pydistutils.cfg&lt;/kbd&gt; configuration file.  The file, placed in &lt;var&gt;HOME&lt;/var&gt; (also overridden in eclass) would allow us to set option values without actually having to pass specific commands on the command-line.  The relevant logic, added in September 2013 (commit: &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo/historical.git/commit/eclass/distutils-r1.eclass?id=806966ab94abb49cc9a40c240a6aec03b0a995b4&quot;&gt;Use pydistutils.cfg to set build-dirs instead of passing commands explicitly…&lt;/a&gt;), remains in the eclass even today.  However, since the PEP517 build mode stopped using this file, it is used only in legacy mode.&lt;/p&gt;
  270. &lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/distutils-r1.eclass?id=4c42c36f5fdea8612cb824fbb6eeeeaed0719531#n668&quot;&gt;The latest version of the code writing &lt;kbd&gt;.pydistutils.cfg&lt;/kbd&gt;.&lt;/a&gt;&lt;/p&gt;
  271. &lt;h2&gt;Act 3: Messy PEP517 mode&lt;/h2&gt;
  272. &lt;p&gt;One of the changes caused by building in PEP517 mode was that &lt;kbd&gt;.pydistutils.cfg&lt;/kbd&gt; started being ignored.  This implied that setuptools were using the default &lt;kbd&gt;build&lt;/kbd&gt; directory again.  It wasn’t such a big deal anymore — since we no longer used proper separation between the two build stages, and we no longer needed to have any awareness of the intermediate build directory, the path didn’t matter per se.  However, it meant CPython and PyPy started sharing the same build directory again — and since setuptools install stage picks everything up from that directory, it meant that extensions built for PyPy3.10 would be installed to CPython3.10 directory!&lt;/p&gt;
  273. &lt;p&gt;How did we deal with that?  Well, at first I’ve tried &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=44ea4a8c091afbee0b85443670eba504fb0e131e&quot;&gt;calling &lt;kbd&gt;setup.py clean -a&lt;/kbd&gt;&lt;/a&gt;.  It was kinda ugly, especially that it meant combining &lt;kbd&gt;setup.py&lt;/kbd&gt; calls with PEP517 invocations — but then, we were already calling &lt;kbd&gt;setup.py build&lt;/kbd&gt; to take advantage of parallel build jobs when building extensions, and it worked.  For a time.&lt;/p&gt;
  274. &lt;p&gt;Unfortunately, it turned out that some packages override the &lt;kbd&gt;clean&lt;/kbd&gt; command and break our code, or even literally block calling it.  So the next step was to stop being fancy and literally &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=50cf28d11e3908467f6c10030ce66f55eea1c23a&quot;&gt;call rm -rf build&lt;/a&gt;.  Well, this was ugly, but — again — it worked.&lt;/p&gt;
  275. &lt;h2&gt;Act 4: Back to the config files&lt;/h2&gt;
  276. &lt;p&gt;As I’ve mentioned before, we continued to call the &lt;kbd&gt;build&lt;/kbd&gt; command in PEP517 mode, in order to enable building C extensions in parallel via the &lt;kbd&gt;-j&lt;/kbd&gt; option.  Over time, this code grew in complexity — we’ve replaced the call with more specific &lt;kbd&gt;build_ext&lt;/kbd&gt;, then started adding heuristics to avoid calling it when unnecessary (a no-op &lt;kbd&gt;setup.py build_ext&lt;/kbd&gt; call slowed pure Python package builds substantially).&lt;/p&gt;
  277. &lt;p&gt;Eventually, Eli Schwartz came up with a great alternative — &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=597762f0cd480abcd18792f519db370a6c249e25&quot;&gt;using &lt;var&gt;DIST_EXTRA_CONFIG&lt;/var&gt; to provide a configuration file&lt;/a&gt;.  This meant that we could replace both &lt;kbd&gt;setup.py&lt;/kbd&gt; invocations — by using the configuration file both to specify the job count for extension builds, and to use a dedicated build directory.&lt;/p&gt;
  278. &lt;p&gt;The change originally was done only for the explicit use of &lt;kbd&gt;setuptools&lt;/kbd&gt; build backend.  As a result, we’ve missed a bunch of “indirect” setuptools uses — other setuptools-backed PEP517 backends (jupyter-builder, pbr), backends using setuptools conditionally (pdm-backend), custom wrappers over setuptools and… &lt;kbd&gt;dev-python/setuptools&lt;/kbd&gt; package itself (“standalone” backend).  We’ve learned about it the hard way when setuptools stopped implicitly ignoring the &lt;kbd&gt;build&lt;/kbd&gt; directory as a package name — and effectively a subsequent build collected a copy of the previous build as a &lt;kbd&gt;build&lt;/kbd&gt; package.  Yep, we’ve ended up with a monster of &lt;kbd&gt;/usr/lib/python3.12/site-packages/build/lib/build/lib/setuptools&lt;/kbd&gt;.&lt;/p&gt;
  279. &lt;p&gt;So we approach the most recent change: &lt;a rel=&quot;external&quot; href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=920edc504064fa38caa462b4d378114599f65925&quot;&gt;enabling the config for all backends&lt;/a&gt;.  After all, we’re just setting an environment variable, so others build backends will just ignore it.&lt;/p&gt;
  280. &lt;p&gt;And so, we’ve came full circle.  We’ve enabled configuration files early on, switched to other hacks when PEP517 builds broke that and eventually returned to unconditionally using configuration files.&lt;/p&gt;
  281.        
  282.    </description>
  283.    <pubDate>Wed, 13 Mar 2024 10:18:29 +0000</pubDate>
  284.    <dc:creator>mgorny (mgorny)</dc:creator>
  285.  </item>
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  <item>
  294.    <title>Gentoo RISC-V Image for the Allwinner Nezha D1</title>
  295.    <guid isPermaLink="false">http://geekplace.eu/flow/posts/2024-02-23-allwinner-nezha-d1-riscv-gentoo-image.html</guid>
  296.    <link>http://geekplace.eu/flow/posts/2024-02-23-allwinner-nezha-d1-riscv-gentoo-image.html</link>
  297.    <description>
  298.        
  299.          &lt;div class=&quot;info&quot;&gt;
  300.    Posted on February 23, 2024
  301.    
  302. &lt;/div&gt;
  303. &lt;div class=&quot;info&quot;&gt;
  304.    
  305.    Tags: gentoo
  306.    
  307. &lt;/div&gt;
  308.  
  309. &lt;h1 id=&quot;motivation&quot;&gt;Motivation&lt;/h1&gt;
  310. &lt;p&gt;The Allwinner Nezha D1 SoC was one of the first available RISC-V single-board computers (SBC)
  311. &lt;a href=&quot;https://www.indiegogo.com/projects/nezha-your-first-64bit-risc-v-linux-sbc-for-iot#/&quot;&gt;crowdfounded&lt;/a&gt; and released
  312. in 2021. According to the manufacturer, &lt;a href=&quot;https://d1.docs.aw-ol.com/en/d1_dev/&quot;&gt;“it is the world’s first mass-produced development board that supports 64bit
  313. RISC-V instruction set and Linux system.”&lt;/a&gt;.&lt;/p&gt;
  314. &lt;p&gt;Installing Gentoo on this system usually involved grabbing one existing image, like the Fedora one, and swapping the
  315. userland with a Gentoo stage3.&lt;/p&gt;
  316. &lt;p&gt;Bootstrapping via a third-party image is now no longer necessary.&lt;/p&gt;
  317. &lt;h1 id=&quot;a-gentoo-risc-v-image-for-the-nezha-d1&quot;&gt;A Gentoo RISC-V Image for the Nezha D1&lt;/h1&gt;
  318. &lt;p&gt;I have uploaded a, for now, &lt;strong&gt;experimental&lt;/strong&gt; Gentoo RISCV-V Image for the Nezha D1 at&lt;/p&gt;
  319. &lt;p&gt;&lt;a href=&quot;https://dev.gentoo.org/~flow/gymage/&quot;&gt;https://dev.gentoo.org/~flow/gymage/&lt;/a&gt;&lt;/p&gt;
  320. &lt;p&gt;Simply dd(rescue) the image onto a SD-Card and plug that card into your board.&lt;/p&gt;
  321. &lt;p&gt;Now, you could either connect to the UART or plug in a Ethernet cable to get to a login prompt.&lt;/p&gt;
  322. &lt;h2 id=&quot;uart&quot;&gt;UART&lt;/h2&gt;
  323. &lt;p&gt;You typically want to connect a USB-to-UART adapter to the board. Unlike other SBCs, the debug UART on the Nezha D1 is
  324. clearly labeled with GND, RX, and TX. Using the standard ThunderFly color scheme, this resolves to black for ground (GND), green for RX, and white for TX.&lt;/p&gt;
  325. &lt;p&gt;Then fire up your favorite serial terminal&lt;/p&gt;
  326. &lt;div class=&quot;sourceCode&quot; id=&quot;cb1&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;span id=&quot;cb1-1&quot;&gt;&lt;a href=&quot;#cb1-1&quot; tabindex=&quot;-1&quot;&gt;&lt;/a&gt;&lt;span class=&quot;ex&quot;&gt;$&lt;/span&gt; minicom &lt;span class=&quot;at&quot;&gt;--device&lt;/span&gt; /dev/ttyUSB0&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
  327. &lt;p&gt;and power on the board.&lt;/p&gt;
  328. &lt;p&gt;Note: Your milleage may vary. For example, you probably want your user to be a member of the ‘dialout’ group to access
  329. the serial port. The device name of your USB-to-UART adapter may not be &lt;code&gt;/dev/ttyUSB0&lt;/code&gt;.&lt;/p&gt;
  330. &lt;h2 id=&quot;ssh&quot;&gt;SSH&lt;/h2&gt;
  331. &lt;p&gt;Ethernet port of the board is configured to use DHCP for network configuration. A SSH daemon is listening on port 22.&lt;/p&gt;
  332. &lt;h2 id=&quot;login&quot;&gt;Login&lt;/h2&gt;
  333. &lt;p&gt;The image comes with a ‘root’ user whose password is set to ‘root’. Note that you should change this password as soon as
  334. possible.&lt;/p&gt;
  335. &lt;h1 id=&quot;gymage&quot;&gt;gymage&lt;/h1&gt;
  336. &lt;p&gt;The image was created using the gymage tool.&lt;/p&gt;
  337. &lt;p&gt;I envision the gymage to become an easy-to-use tool that allows users to create up-to-date Gentoo images for single-board
  338. computers. The tool is in an early stage with some open questions. However, you are free to try it. The
  339. source code of gymage is hosted at &lt;a href=&quot;https://gitlab.com/flow/gymage&quot;&gt;https://gitlab.com/flow/gymage&lt;/a&gt;, and feedback is, as always, appreciated.&lt;/p&gt;
  340. &lt;p&gt;Stay tuned for another blog post about gymage once it matures further.&lt;/p&gt;
  341.  
  342.  
  343.  
  344.  
  345. &lt;div id=&quot;discourse-comments&quot;&gt;&lt;/div&gt;
  346.  
  347.  
  348.  
  349. &lt;div class=&quot;flattr&quot;&gt;
  350. &lt;a class=&quot;FlattrButton&quot; href=&quot;http://geekplace.eu/flow/posts/2024-02-23-allwinner-nezha-d1-riscv-gentoo-image.html&quot; title=&quot;Gentoo RISC-V Image for the Allwinner Nezha D1&quot; lang=&quot;en&quot; data-flattr-uid=&quot;Flowdalic&quot; data-flattr-tags=&quot;blog&quot; data-flattr-category=&quot;text&quot; data-flattr-button=&quot;compact&quot;&gt;&lt;/a&gt;
  351. &lt;/div&gt;
  352.        
  353.    </description>
  354.    <pubDate>Fri, 23 Feb 2024 00:00:00 +0000</pubDate>
  355.    <dc:creator>flow (flow)</dc:creator>
  356.  </item>
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  <item>
  367.    <title>Gentoo x86-64-v3 binary packages available</title>
  368.    <guid isPermaLink="false">https://www.gentoo.org/news/2024/02/04/x86-64-v3.html</guid>
  369.    <link>https://www.gentoo.org/news/2024/02/04/x86-64-v3.html</link>
  370.    <description>
  371.        
  372.          &lt;p&gt;&lt;a href=&quot;https://www.gentoo.org/news/2024/02/04/x86-64-v3.html&quot; class=&quot;news-img-right&quot;&gt;
  373.  &lt;img src=&quot;https://www.gentoo.org/assets/img/news/2024/larry-packages-small.png&quot; alt=&quot;Larry the cow with packages&quot;&gt;
  374. &lt;/a&gt;&lt;/p&gt;
  375.  
  376. &lt;p&gt;End of December 2023 we already made our &lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot;&gt;official
  377. announcement of binary Gentoo package hosting&lt;/a&gt;. The initial package set for amd64 was and is
  378. base-line x86-64, i.e., it should work on any 64bit Intel or AMD machine. Now, we are happy to
  379. announce that there is also a separate package set using the &lt;a href=&quot;https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels&quot;&gt;&lt;b&gt;extended
  380. x86-64-v3 ISA&lt;/b&gt; (i.e., microarchitecture level)&lt;/a&gt;
  381. available for the same software. If your hardware supports it, use it and enjoy the speed-up!
  382. &lt;a href=&quot;https://www.gentoo.org/news/2024/02/04/x86-64-v3.html&quot;&gt;Read on for more details…&lt;/a&gt;&lt;/p&gt;
  383.  
  384.  
  385.  
  386. &lt;h2 id=&quot;questions--answers&quot;&gt;Questions &amp;amp; Answers&lt;/h2&gt;
  387.  
  388. &lt;h3 id=&quot;how-can-i-check-if-my-machine-supports-x86-64-v3&quot;&gt;How can I check if my machine supports x86-64-v3?&lt;/h3&gt;
  389.  
  390. &lt;p&gt;The easiest way to do this is to use glibc’s dynamic linker:&lt;/p&gt;
  391. &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;larry@noumea ~ $ ld.so --help
  392. Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
  393. You have invoked &#39;ld.so&#39;, the program interpreter for dynamically-linked
  394. ELF programs.  Usually, the program interpreter is invoked automatically
  395. when a dynamically-linked executable is started.
  396. [...]
  397. [...]
  398.  
  399. Subdirectories of glibc-hwcaps directories, in priority order:
  400.  x86-64-v4
  401.  x86-64-v3 (supported, searched)
  402.  x86-64-v2 (supported, searched)
  403. larry@noumea ~ $
  404. &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
  405. &lt;p&gt;As you can see, this laptop supports x86-64-v2 and x86-64-v3, but not x86-64-v4.&lt;/p&gt;
  406.  
  407. &lt;h3 id=&quot;how-do-i-use-the-new-x86-64-v3-packages&quot;&gt;How do I use the new x86-64-v3 packages?&lt;/h3&gt;
  408.  
  409. &lt;p&gt;On your amd64 machine, edit the configuration file in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/portage/binrepos.conf/&lt;/code&gt;
  410. that defines the URI from where the packages are downloaded, and replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x86-64&lt;/code&gt; with
  411. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x86-64-v3&lt;/code&gt;. E.g., if you have so far&lt;/p&gt;
  412. &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sync-uri = https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64/
  413. &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
  414. &lt;p&gt;then you change the URI to&lt;/p&gt;
  415. &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sync-uri = https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64-v3/
  416. &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
  417. &lt;p&gt;That’s all.&lt;/p&gt;
  418.  
  419. &lt;h3 id=&quot;why-dont-you-have-x86-64-v4-packages&quot;&gt;Why don’t you have x86-64-v4 packages?&lt;/h3&gt;
  420.  
  421. &lt;p&gt;There’s not yet enough hardware and people out there that could use them.&lt;/p&gt;
  422.  
  423. &lt;p&gt;We could start building such packages at any time (our build host is new and
  424. shiny), but for now we recommend you build from source and use your
  425. own CFLAGS then. After all, if your machine supports x86-64-v4, it’s definitely fast…&lt;/p&gt;
  426.  
  427. &lt;h3 id=&quot;why-is-there-recently-so-much-noise-about-x86-64-v3-support-in-linux-distros&quot;&gt;Why is there recently so much noise about x86-64-v3 support in Linux distros?&lt;/h3&gt;
  428.  
  429. &lt;p&gt;Beats us. The ISA is 9 years old (just the tag x86-64-v3 was slapped onto
  430. it recently), so you’d think binaries would have been generated by now.
  431. With Gentoo you could’ve done (and probably have done) it all the time.&lt;/p&gt;
  432.  
  433. &lt;p&gt;That said, in some processor lines (i.e. Atom), support for this instruction
  434. set was introduced rather late (2021).&lt;/p&gt;
  435.        
  436.    </description>
  437.    <pubDate>Sun, 04 Feb 2024 06:00:00 +0000</pubDate>
  438.    <dc:creator>GentooNews (https://www.gentoo.org/feeds/news.xml)</dc:creator>
  439.  </item>
  440.  
  441.  
  442.  
  443.  <item>
  444.    <title>2023 in retrospect &amp; happy new year 2024!</title>
  445.    <guid isPermaLink="false">https://www.gentoo.org/news/2024/01/22/new-year.html</guid>
  446.    <link>https://www.gentoo.org/news/2024/01/22/new-year.html</link>
  447.    <description>
  448.        
  449.          &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;100&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/2024.png&quot; alt=&quot;Gentoo Fireworks&quot;&gt;
  450. A Happy New Year 2024 to all of you! We hope you enjoyed the fireworks; we tried to contribute
  451. to these too with the binary package news just before new year! That’s not the only thing in Gentoo that
  452. was new in 2023 though; as in the previous years, let’s look back and &lt;a href=&quot;https://www.gentoo.org/news/2024/01/22/new-year.html&quot;&gt;give it a review&lt;/a&gt;.&lt;/p&gt;
  453.  
  454.  
  455.  
  456. &lt;h2 id=&quot;gentoo-in-numbers&quot;&gt;Gentoo in numbers&lt;/h2&gt;
  457.  
  458. &lt;p&gt;&lt;strong&gt;The number of commits to the &lt;a href=&quot;https://gitweb.gentoo.org/repo/gentoo.git/&quot;&gt;main ::gentoo repository&lt;/a&gt;
  459. has remained at an overall high level in 2023&lt;/strong&gt;, only slightly lower from &lt;em&gt;126682&lt;/em&gt; to &lt;em&gt;121000&lt;/em&gt;.
  460. The number of commits by external contributors has actually increased from &lt;em&gt;10492&lt;/em&gt; to &lt;em&gt;10708&lt;/em&gt;,
  461. now across &lt;em&gt;404&lt;/em&gt; unique external authors.&lt;/p&gt;
  462.  
  463. &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/Project:GURU&quot;&gt;GURU, our user-curated repository with a trusted user
  464. model&lt;/a&gt;, is still attracting a lot of potential developers.&lt;/strong&gt;
  465. We have had &lt;em&gt;5045&lt;/em&gt; commits in 2023, a slight decrease from &lt;em&gt;5751&lt;/em&gt; in 2022.
  466. The number of contributors to GURU has increased clearly however, from &lt;em&gt;134&lt;/em&gt; in
  467. 2022 to &lt;em&gt;158&lt;/em&gt; in 2023. Please join us there and help packaging the latest and
  468. greatest software. That’s the ideal preparation for becoming a Gentoo developer!&lt;/p&gt;
  469.  
  470. &lt;p&gt;On &lt;strong&gt;the &lt;a href=&quot;https://bugs.gentoo.org/&quot;&gt;Gentoo bugtracker bugs.gentoo.org&lt;/a&gt;&lt;/strong&gt;, we’ve had &lt;em&gt;24795&lt;/em&gt; bug reports
  471. created in 2023, compared to &lt;em&gt;26362&lt;/em&gt; in 2022. The number of resolved bugs shows a similar
  472. trend, with &lt;em&gt;22779&lt;/em&gt; in 2023 compared to &lt;em&gt;24681&lt;/em&gt; in 2022. Many of these bugs are stabilization
  473. requests; a possible interpretation is that stable Gentoo is becoming more and more current,
  474. catching up with new software releases.&lt;/p&gt;
  475.  
  476. &lt;h2 id=&quot;new-developers&quot;&gt;New developers&lt;/h2&gt;
  477.  
  478. &lt;p&gt;In 2023 we have gained &lt;strong&gt;3 new Gentoo developers&lt;/strong&gt;. They are in chronological order:&lt;/p&gt;
  479.  
  480. &lt;ol&gt;
  481.  &lt;li&gt;
  482.    &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/User:Arsen&quot;&gt;Arsen Arsenović (arsen)&lt;/a&gt;&lt;/strong&gt;:
  483. &lt;img align=&quot;right&quot; height=&quot;45&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gravatar.com/avatar/799095f570d33bcd8bc80df98ce1a4b0?s=45&amp;amp;d=retro&quot;&gt;
  484. Arsen joined up as a developer right at the start of the year in January from Belgrade, Serbia.
  485. He’s a computer science student
  486. interested in both maths and music, active in many different free software projects, and has already
  487. made his impression, e.g., in our emacs and toolchain projects.&lt;/p&gt;
  488.  &lt;/li&gt;
  489.  &lt;li&gt;
  490.    &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/User:Ris&quot;&gt;Paul Fox (ris)&lt;/a&gt;&lt;/strong&gt;:
  491. After already being very active in our Wiki for some time, Paul joined in March as developer from France.
  492. Activity on our wiki and documentation quality will certainly grow much further with his help.&lt;/p&gt;
  493.  &lt;/li&gt;
  494.  &lt;li&gt;
  495.    &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/User:Arkamar&quot;&gt;Petr Vaněk (arkamar)&lt;/a&gt;&lt;/strong&gt;:
  496. &lt;img align=&quot;right&quot; height=&quot;45&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gravatar.com/avatar/0b4f038d0a09bb9378ab900dbd40399a?s=45&amp;amp;d=retro&quot;&gt;
  497. Petr Vaněk, from Prague, Czech Republic, joined the ranks of our developers in November.
  498. Gentoo user since 2009, craft beer enthusiast, and Linux kernel contributor, he has already been
  499. active in very diverse corners of Gentoo.&lt;/p&gt;
  500.  &lt;/li&gt;
  501. &lt;/ol&gt;
  502.  
  503. &lt;h2 id=&quot;featured-changes-and-news&quot;&gt;Featured changes and news&lt;/h2&gt;
  504.  
  505. &lt;p&gt;Let’s now look at the major improvements and news of 2023 in Gentoo.&lt;/p&gt;
  506.  
  507. &lt;h3 id=&quot;distribution-wide-initiatives&quot;&gt;Distribution-wide Initiatives&lt;/h3&gt;
  508.  
  509. &lt;ul&gt;
  510.  &lt;li&gt;
  511.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;95&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2023/larry-packages.png&quot;&gt;
  512. &lt;b&gt;Binary package hosting&lt;/b&gt;: Gentoo shockingly now also &lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot;&gt;provides
  513. binary packages&lt;/a&gt;, for easier and faster installation! For &lt;b&gt;amd64 and arm64&lt;/b&gt;, we’ve got
  514. a stunning &amp;gt;20 GByte of packages on our mirrors, from LibreOffice
  515. to KDE Plasma and from Gnome to Docker.
  516. Also, would you think 9-year old &lt;b&gt;x86-64-v3&lt;/b&gt; is still experimental?
  517. &lt;a href=&quot;https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64-v3/&quot;&gt;We have it already
  518. on our mirrors!&lt;/a&gt; For all other architectures and ABIs, the binary package files used for building the
  519. installation stages (including the build tool chain) are available for download.&lt;/p&gt;
  520.  &lt;/li&gt;
  521.  &lt;li&gt;
  522.    &lt;p&gt;&lt;strong&gt;New 23.0 profiles in preparation&lt;/strong&gt;:
  523. A new profile version, i.e. a collection of presets and configurations, is at the moment
  524. undergoing internal preparation and testing for all architectures.
  525. It’s not ready yet, but will integrate more toolchain hardening by default, as well as fix a
  526. lot of internal inconsistencies. Stay tuned for an announcement with more details in the near future.&lt;/p&gt;
  527.  &lt;/li&gt;
  528.  &lt;li&gt;
  529.    &lt;p&gt;&lt;b&gt;Modern C&lt;/b&gt;: Work continues on porting Gentoo, and the Linux userland at large,
  530. to &lt;a href=&quot;https://wiki.gentoo.org/wiki/Modern_C_porting&quot;&gt;Modern C&lt;/a&gt;. This is a real marathon effort
  531. rather than a sprint (just see our &lt;a href=&quot;https://bugs.gentoo.org/870412&quot;&gt;tracker bug&lt;/a&gt; for it). Our
  532. efforts together with the same project ongoing in Fedora have already helped many upstreams,
  533. which have accepted patches in preparation for GCC 14 (that starts to enforce the
  534. modern language usage).&lt;/p&gt;
  535.  &lt;/li&gt;
  536.  &lt;li&gt;
  537.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;40&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/logo-froscon.png&quot;&gt;
  538. &lt;b&gt;Event presence&lt;/b&gt;: At the &lt;a href=&quot;https://archive.fosdem.org/2023/&quot;&gt;Free and Open Source
  539. Developers European Meeting (FOSDEM) 2023&lt;/a&gt;, the &lt;a href=&quot;https://froscon.org/en/&quot;&gt;Free and Open Source Software
  540. Conference (FrOSCon) 2023&lt;/a&gt;, and the &lt;a href=&quot;https://chemnitzer.linux-tage.de/2023/en/&quot;&gt;Chemnitzer
  541. Linux-Tage (CLT) 2023&lt;/a&gt;, Gentoo had a booth with mugs, stickers, t-shirts, and of course the famous
  542. self-compiled buttons.&lt;/p&gt;
  543.  &lt;/li&gt;
  544.  &lt;li&gt;
  545.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;100&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2022/logo-gsoc.png&quot;&gt;
  546. &lt;b&gt;Google Summer of Code&lt;/b&gt;: In 2023 Gentoo had another successful year participating in the
  547. &lt;a href=&quot;https://summerofcode.withgoogle.com/&quot;&gt;Google Summer of Code&lt;/a&gt;. We had three contributors
  548. completing their projects; you can find out more about them by visiting the
  549. &lt;a href=&quot;https://blogs.gentoo.org/gsoc/&quot;&gt;Gentoo GSoC blog&lt;/a&gt;. We thank our contributors Catcream, LabBrat, and
  550. Listout, and also all the developers who took the time to mentor them.&lt;/p&gt;
  551.  &lt;/li&gt;
  552.  &lt;li&gt;
  553.    &lt;p&gt;&lt;b&gt;Online workshops&lt;/b&gt;: Our German support, &lt;a href=&quot;https://gentoo-ev.org/&quot;&gt;Gentoo e.V.&lt;/a&gt;, organized
  554. this year &lt;a href=&quot;https://gentoo-ev.org/news/online-workshops-2023/&quot;&gt;6 online workshops on building
  555. and improving ebuilds&lt;/a&gt;. This will be continued every two months in the upcoming year.&lt;/p&gt;
  556.  &lt;/li&gt;
  557.  &lt;li&gt;
  558.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;130&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://wiki.gentoo.org/images/b/b3/Larry-hi.png&quot;&gt;
  559. &lt;b&gt;Documentation on wiki.gentoo.org&lt;/b&gt; has been making great progress as
  560. always. This past year the &lt;a href=&quot;https://wiki.gentoo.org/wiki/Gentoo_Wiki:Contributor%27s_guide&quot;&gt;contributor’s
  561. guide&lt;/a&gt;, &lt;a href=&quot;https://wiki.gentoo.org/wiki/Gentoo_Wiki:Guidelines&quot;&gt;article writing guidelines&lt;/a&gt;, and
  562. &lt;a href=&quot;https://wiki.gentoo.org/wiki/Help:Contents&quot;&gt;help pages&lt;/a&gt; were updated to
  563. give the best possible start to anyone ready to lend a hand. The Gentoo Handbook got updates,
  564. and a new changelog. Of course much documentation was fixed, extended, or updated, and quite
  565. a few new pages were created. We hope to see even more activity in the new year, and hopefully
  566. some new contributors - editing documentation is a particularly easy area to
  567. start contributing to Gentoo in, &lt;a href=&quot;https://wiki.gentoo.org/wiki/Gentoo_Wiki:Contributor%27s_guide&quot;&gt;please
  568. give it a try!&lt;/a&gt;&lt;/p&gt;
  569.  &lt;/li&gt;
  570. &lt;/ul&gt;
  571.  
  572. &lt;h3 id=&quot;architectures&quot;&gt;Architectures&lt;/h3&gt;
  573.  
  574. &lt;ul&gt;
  575.  &lt;li&gt;
  576.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/alpha-logo.png&quot;&gt;
  577. &lt;b&gt;Alpha&lt;/b&gt;: Support for the &lt;a href=&quot;https://en.wikipedia.org/wiki/DEC_Alpha&quot;&gt;DEC Alpha
  578. architecture&lt;/a&gt; was revived, with a massive keywording effort going on. While not perfectly
  579. complete yet, we are very close to a fully consistent dependency tree and package set for alpha again.&lt;/p&gt;
  580.  &lt;/li&gt;
  581.  &lt;li&gt;
  582.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2022/logo-musl.png&quot;&gt;
  583. &lt;b&gt;musl&lt;/b&gt;: Support for the &lt;a href=&quot;https://musl.libc.org/&quot;&gt;lightweight musl libc&lt;/a&gt; has
  584. been added to the architectures &lt;a href=&quot;https://www.gentoo.org/downloads/#mips&quot;&gt;MIPS (o32)&lt;/a&gt; and &lt;a href=&quot;https://www.gentoo.org/downloads/#m68k&quot;&gt;m68k&lt;/a&gt;, with corresponding profiles in the Gentoo
  585. repository and corresponding installation stages and binary packages available for download. Enjoy!&lt;/p&gt;
  586.  &lt;/li&gt;
  587. &lt;/ul&gt;
  588.  
  589. &lt;h3 id=&quot;packages&quot;&gt;Packages&lt;/h3&gt;
  590.  
  591. &lt;ul&gt;
  592.  &lt;li&gt;
  593.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/dotNET-logo.png&quot;&gt;
  594. &lt;b&gt;.NET&lt;/b&gt;: The &lt;a href=&quot;https://wiki.gentoo.org/wiki/Project:Dotnet&quot;&gt;Gentoo Dotnet project&lt;/a&gt;
  595. has &lt;a href=&quot;https://xgqt.gitlab.io//blog/posts/2023/12/17/-net-in-gentoo-in-2023/&quot;&gt;significantly
  596. improved&lt;/a&gt; support for building
  597. .NET-based software, using the nuget, dotnet-pkg-base, and dotnet-pkg eclasses.
  598. Now we’re ready for packages depending on the .NET ecosystem and for
  599. developers using dotnet-sdk on Gentoo. New software requiring .NET is constantly
  600. being added to the main Gentoo tree. Recent additions include PowerShell for Linux,
  601. Denaro (a finance application), Pinta (a graphics program), Ryujinx (a NS emulator)
  602. and many other aimed straight at developing .NET projects.&lt;/p&gt;
  603.  &lt;/li&gt;
  604.  &lt;li&gt;
  605.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2023/logo-java.png&quot;&gt;
  606. &lt;b&gt;Java&lt;/b&gt;: OpenJDK 21 has been introduced for amd64, arm64, ppc64, and x86!&lt;/p&gt;
  607.  &lt;/li&gt;
  608.  &lt;li&gt;
  609.    &lt;p&gt;&lt;b&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/Project:Python&quot;&gt;Python&lt;/a&gt;:&lt;/b&gt;
  610. In the meantime the default Python version in Gentoo has reached Python 3.11. Additionally we have
  611. also Python 3.12 available stable - again we’re fully up to date with upstream.&lt;/p&gt;
  612.  &lt;/li&gt;
  613.  &lt;li&gt;
  614.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/pypy-logo.png&quot;&gt;
  615. &lt;b&gt;PyPy3 compatibility for scientific Python&lt;/b&gt;:
  616. While some packages (numexpr, pandas, xarray) are at the moment still undergoing upstream bug fixing,
  617. more and more scientific Python packages have been adapted in Gentoo and upstream for
  618. the speed-optimized Python variant PyPy. This can provide a nice performance boost for
  619. numerical data analysis…&lt;/p&gt;
  620.  &lt;/li&gt;
  621.  &lt;li&gt;
  622.    &lt;p&gt;&lt;b&gt;Signed kernel modules and (unified) kernel images&lt;/b&gt;: We now support signing of
  623. both in-tree and out-of-tree kernel modules and kernel images. This is useful for those
  624. who would like the extra bit of verification offered by Secure Boot, which is now easier
  625. than ever to set up on Gentoo systems! Additionally, our kernel install scripts and eclasses
  626. are now fully compatible with
  627. &lt;a href=&quot;https://wiki.gentoo.org/wiki/Unified_kernel_image&quot;&gt;Unified Kernel Images&lt;/a&gt; and our
  628. prebuilt gentoo-kernel-bin can now optionally install an experimental pregenerated generic
  629. Unified Kernel Image.&lt;/p&gt;
  630.  &lt;/li&gt;
  631.  &lt;li&gt;
  632.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/logo-gap4.png&quot;&gt;
  633. &lt;b&gt;The GAP System&lt;/b&gt;:
  634. A new dev-gap package category has arrived with about sixty packages.
  635. &lt;a href=&quot;https://www.gap-system.org/&quot;&gt;GAP&lt;/a&gt; is a popular system for computational
  636. discrete algebra, with particular emphasis on Computational Group
  637. Theory. GAP consists of a programming language, a library of thousands
  638. of functions implementing algebraic algorithms written in the GAP
  639. language, and large data libraries of algebraic objects. It has
  640. &lt;a href=&quot;https://www.gap-system.org/Packages/packages.html&quot;&gt;its own
  641. package ecosystem&lt;/a&gt;, mostly written in the GAP language with a few C components.&lt;/p&gt;
  642.  &lt;/li&gt;
  643. &lt;/ul&gt;
  644.  
  645. &lt;h3 id=&quot;physical-and-software-infrastructure&quot;&gt;Physical and Software Infrastructure&lt;/h3&gt;
  646.  
  647. &lt;ul&gt;
  648.  &lt;li&gt;
  649.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/gentoo-package.png&quot;&gt;
  650. &lt;b&gt;Portage improvements&lt;/b&gt;: A significant amount of work went into enhancing our
  651. package manager, Portage, to better support binary package deployment. Users building
  652. their own binary packages and setting up their own infrastructure will certainly benefit
  653. from it too.&lt;/p&gt;
  654.  &lt;/li&gt;
  655.  &lt;li&gt;
  656.    &lt;p&gt;&lt;b&gt;packages.gentoo.org&lt;/b&gt;: The development of Gentoo’s package database website,
  657. &lt;a href=&quot;https://packages.gentoo.org&quot;&gt;packages.gentoo.org&lt;/a&gt;, has picked up speed, with new features for maintainer, category,
  658. and arch pages, and &lt;a href=&quot;https://repology.org/&quot;&gt;Repology&lt;/a&gt; integration. Many optimization were
  659. done for the backend database queries and the website should now feel faster to use.&lt;/p&gt;
  660.  &lt;/li&gt;
  661.  &lt;li&gt;
  662.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2024/bugs.png&quot;&gt;
  663. &lt;b&gt;pkgdev bugs&lt;/b&gt;: A new developer tool called &lt;i&gt;pkgdev bugs&lt;/i&gt; enables us now to
  664. simplify the procedure for filing new stable requests bugs a lot. By just giving it
  665. version lists (which can be generated by other tools),
  666. &lt;i&gt;pkgdev bugs&lt;/i&gt; can be used to compute dependencies, cycles, merges, and will file
  667. the bugs for the architecture teams / testers. This allows us to step ahead much faster
  668. with package stabilizations.&lt;/p&gt;
  669.  &lt;/li&gt;
  670. &lt;/ul&gt;
  671.  
  672. &lt;h3 id=&quot;finances-of-the-gentoo-foundation&quot;&gt;Finances of the Gentoo Foundation&lt;/h3&gt;
  673.  
  674. &lt;ul&gt;
  675.  &lt;li&gt;
  676.    &lt;p&gt;&lt;img align=&quot;right&quot; height=&quot;75&quot; style=&quot;margin-left:30px;&quot; src=&quot;https://www.gentoo.org/assets/img/news/2023/dollar.jpg&quot;&gt;
  677. &lt;b&gt;Income&lt;/b&gt;: The Gentoo Foundation took in approximately $18,500 in fiscal year 2023;
  678. the majority (over 80%) were individual cash donations from the community.&lt;/p&gt;
  679.  &lt;/li&gt;
  680.  &lt;li&gt;
  681.    &lt;p&gt;&lt;b&gt;Expenses&lt;/b&gt;: Our expenses in 2023 were, as split into the usual three categories,
  682. &lt;em&gt;operating expenses&lt;/em&gt; (for services, fees, …) $6,000, only minor &lt;em&gt;capital expenses&lt;/em&gt; (for bought
  683. assets), and &lt;em&gt;depreciation expenses&lt;/em&gt; (value loss of existing assets) $20,000.&lt;/p&gt;
  684.  &lt;/li&gt;
  685.  &lt;li&gt;
  686.    &lt;p&gt;&lt;b&gt;Balance&lt;/b&gt;: We have about $101,000 in the bank as of July 1, 2023 (which is when
  687. our fiscal year 2023 ends for accounting purposes). The draft finanical report
  688. for 2023 is &lt;a href=&quot;https://wiki.gentoo.org/wiki/Foundation:Gentoo_Foundation_Finances_FY2023&quot;&gt;available on the Gentoo Wiki&lt;/a&gt;.&lt;/p&gt;
  689.  &lt;/li&gt;
  690. &lt;/ul&gt;
  691.  
  692. &lt;h2 id=&quot;thank-you&quot;&gt;Thank you!&lt;/h2&gt;
  693.  
  694. &lt;p&gt;Obviously this is not all Gentoo development that happened in 2023. From KDE to GNOME, from
  695. kernels to scientific software, you can find much more if you look at the details.
  696. &lt;strong&gt;As every year, we would like to thank all Gentoo developers and all who have submitted contributions
  697. for their relentless everyday Gentoo work.&lt;/strong&gt; As a volunteer project, Gentoo could not exist
  698. without them. And if you are interested and would like to contribute, please join us and
  699. help us make Gentoo even better!&lt;/p&gt;
  700.        
  701.    </description>
  702.    <pubDate>Mon, 22 Jan 2024 06:00:00 +0000</pubDate>
  703.    <dc:creator>GentooNews (https://www.gentoo.org/feeds/news.xml)</dc:creator>
  704.  </item>
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  <item>
  711.    <title>Experimental binary Gentoo package hosting (amd64)</title>
  712.    <guid isPermaLink="false">tag:blogger.com,1999:blog-7849507270164967036.post-4152177364085976747</guid>
  713.    <link>https://dilfridge.blogspot.com/2021/09/experimental-binary-gentoo-package.html</link>
  714.    <description>
  715.        
  716.          &lt;div&gt;
  717. &lt;p&gt;&lt;/p&gt;
  718. &lt;div class=&quot;separator&quot; style=&quot;clear: both;text-align: center;&quot;&gt;&lt;a href=&quot;https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64/&quot; style=&quot;clear: right;float: right;margin-bottom:1em;margin-left:1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;500&quot; height=&quot;192&quot; src=&quot;https://dev.gentoo.org/~dilfridge/moving.png&quot; width=&quot;200&quot;&gt;&lt;/a&gt;&lt;/div&gt;
  719. &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;IMPORTANT&lt;/span&gt;: This blog post is outdated!&lt;/b&gt; As direct result of this experiment, we now have &lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot;&gt;&lt;b&gt;official Gentoo binary packages available&lt;/b&gt;&lt;/a&gt;. See &lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot;&gt;the announcement&lt;/a&gt; for more information and further links!  The old blog text follows...&lt;/div&gt;&lt;div&gt;&lt;hr&gt;&lt;/div&gt;&lt;div&gt;As an experiment, I&#39;ve started assembling a simple binary package hosting mechanism for Gentoo. Right now this comes with some serious limitations and &lt;b&gt;should not be used for security or mission critical applications&lt;/b&gt; (more on this below). The main purpose of this experiment is to find out how well it works and where we need improvements in Portage&#39;s binary package handling.&lt;p&gt;&lt;/p&gt;
  720. &lt;p&gt;So what do we have, and how can you use it?&lt;/p&gt;
  721. &lt;ul style=&quot;text-align: left;&quot;&gt;
  722. &lt;li&gt;The server builds an assortment of stable amd64 packages, with the use-flags as present in an unmodified 17.1/desktop/plasma/systemd profile (the only necessary change is USE=bindist).&lt;/li&gt;
  723. &lt;li&gt;The packages can be used on all amd64 profiles that differ from desktop/plasma/systemd only by use-flag settings. This includes 17.1, 17.1/desktop/*, 17.1/no-multilib, 17.1/systemd, but &lt;b&gt;not&lt;/b&gt; anything containing selinx, hardened, developer, musl, or a different profile version such as 17.0.&lt;br&gt;
  724. &lt;/li&gt;
  725. &lt;li&gt;Right now, the package set includes kde-plasma/plasma-meta, kde-apps/kde-apps-meta, app-office/libreoffice, media-gfx/gimp, media-gfx/inkscape, and of course all their dependencies. More will possibly be added.&lt;/li&gt;
  726. &lt;li&gt;CFLAGS are chosen such that the packages will be usable on all amd64 (i.e., x86-64) machines.  &lt;br&gt;
  727. &lt;/li&gt;
  728. &lt;/ul&gt;
  729. &lt;p&gt;To use the packages, I recommend the following steps: First, &lt;b&gt;create a file&lt;/b&gt; /etc/portage/&lt;b&gt;binrepos.conf&lt;/b&gt; with the following content:&lt;/p&gt;
  730. &lt;p style=&quot;margin-left:40px;text-align: left;&quot;&gt;[binhost]&lt;br&gt;priority = 9999&lt;br&gt;sync-uri = https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64/&lt;/p&gt;
  731. &lt;p style=&quot;text-align: left;&quot;&gt;You can pick a different mirror according to your preferences (but also see the remarks below). Then, edit /etc/portage/make.conf, and add the following EMERGE_DEFAULT_OPTS (in addition to flags that you might already have there):&lt;/p&gt;
  732. &lt;p style=&quot;margin-left:40px;text-align: left;&quot;&gt;EMERGE_DEFAULT_OPTS=&quot;--binpkg-respect-use=y --getbinpkg=y&quot;&lt;/p&gt;
  733. &lt;p style=&quot;text-align: left;&quot;&gt;And that&#39;s it. Your next update should download the package index and use binary packages whenever the versions and use-flag settings match. Everything else is compiled as usual.&lt;/p&gt;
  734. &lt;p style=&quot;text-align: left;&quot;&gt;What is still missing, and what are the limitations and caveats?&lt;/p&gt;
  735. &lt;ul style=&quot;text-align: left;&quot;&gt;
  736. &lt;li&gt;Obviously, the packages are not optimized for your processor.&lt;/li&gt;
  737. &lt;li&gt;Right now, the server only carries packages for the use-flag settings in an unmodified 17.1/desktop/plasma/systemd profile. If you use other settings, you will end up compiling part of your packages (which is not really a probem, you just lose the benefit of the binary download). It is technically possible to provide binary packages for different use-flag settings at the same URL, and eventually it will be implemented if this experiment succeeds.&lt;br&gt;
  738. &lt;/li&gt;
  739. &lt;li&gt;At the moment, &lt;b&gt;no cryptographic signing of the binary packages is in place yet&lt;/b&gt;. This is the main reason why I&#39;m talking about an experiment. Effectively you trust our mirror admins and the https protocol. Package signing and verification is in preparation, and before the binary package hosting &quot;moves into production&quot;, it will be enforced.&lt;/li&gt;
  740. &lt;/ul&gt;
  741. &lt;/div&gt;That&#39;s it. Enjoy! And don&#39;t forget to leave feedback in the comments.&lt;br&gt;
  742.        
  743.    </description>
  744.    <pubDate>Tue, 21 Sep 2021 16:34:00 +0000</pubDate>
  745.    <dc:creator>dilfridge (dilfridge)</dc:creator>
  746.  </item>
  747.  
  748.  
  749.  
  750.  <item>
  751.    <title>Gentoo goes Binary!</title>
  752.    <guid isPermaLink="false">https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html</guid>
  753.    <link>https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html</link>
  754.    <description>
  755.        
  756.          &lt;p&gt;&lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot; class=&quot;news-img-right&quot;&gt;
  757.  &lt;img src=&quot;https://www.gentoo.org/assets/img/news/2023/larry-packages.png&quot; alt=&quot;Larry the cow with packages&quot;&gt;
  758. &lt;/a&gt;&lt;/p&gt;
  759.  
  760. &lt;p&gt;You probably all know Gentoo Linux as your favourite source-based distribution.
  761. Did you know that our package manager, Portage, already for years also has support for binary
  762. packages, and that source- and binary-based package installations can be freely mixed?&lt;/p&gt;
  763.  
  764. &lt;p&gt;To speed up working with slow hardware and for overall convenience, we’re now also offering
  765. &lt;strong&gt;binary packages for download and direct installation&lt;/strong&gt;! For most architectures, this is
  766. limited to the core system and weekly updates - not so for &lt;strong&gt;amd64 and arm64&lt;/strong&gt; however. There we’ve got a
  767. stunning &lt;strong&gt;&amp;gt;20 GByte of packages&lt;/strong&gt; on our mirrors, from LibreOffice to KDE Plasma and from Gnome to Docker.
  768. Gentoo stable, updated daily. Enjoy! And &lt;a href=&quot;https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html&quot;&gt;read
  769. on for more details!&lt;/a&gt;&lt;/p&gt;
  770.  
  771.  
  772.  
  773. &lt;h2 id=&quot;questions--answers&quot;&gt;Questions &amp;amp; Answers&lt;/h2&gt;
  774.  
  775. &lt;h3 id=&quot;how-can-i-set-up-my-existing-gentoo-installation-to-use-these-packages&quot;&gt;How can I set up my existing Gentoo installation to use these packages?&lt;/h3&gt;
  776.  
  777. &lt;p&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/Binary_package_quickstart&quot;&gt;Quick setup instructions&lt;/a&gt; for
  778. the most common cases can be found in our wiki. In short, you need to create a configuration
  779. file in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/portage/binrepos.conf/&lt;/code&gt;.&lt;/p&gt;
  780.  
  781. &lt;p&gt;In addition, we have a rather neat &lt;a href=&quot;https://wiki.gentoo.org/wiki/Binary_package_guide&quot;&gt;binary package guide&lt;/a&gt; on
  782. our Wiki that goes into much more detail.&lt;/p&gt;
  783.  
  784. &lt;h3 id=&quot;what-do-i-have-to-do-with-a-new-stage--new-installation&quot;&gt;What do I have to do with a new stage / new installation?&lt;/h3&gt;
  785.  
  786. &lt;p&gt;New stages already contain the suitable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/portage/binrepos.conf/gentoobinhost.conf&lt;/code&gt;. You are
  787. good to go from the start, although you may want to replace the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;src-uri&lt;/code&gt;
  788. setting in there with an URI pointing to the corresponding directory on a
  789. &lt;a href=&quot;https://www.gentoo.org/downloads/mirrors/&quot;&gt;local mirror&lt;/a&gt;.&lt;/p&gt;
  790.  
  791. &lt;blockquote&gt;
  792.  &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ emerge -uDNavg @world&lt;/code&gt;&lt;/p&gt;
  793. &lt;/blockquote&gt;
  794.  
  795. &lt;h3 id=&quot;what-compile-settings-use-flags--do-the-normal-amd64-packages-use&quot;&gt;What compile settings, use flags, … do the ‘‘normal’’ amd64 packages use?&lt;/h3&gt;
  796.  
  797. &lt;p&gt;The binary packages under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;amd64/binpackages/17.1/x86-64&lt;/code&gt; are compiled using
  798. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CFLAGS=&quot;-march=x86-64 -mtune=generic -O2 -pipe&quot;&lt;/code&gt; and will work with any amd64 / x86-64 machine.&lt;/p&gt;
  799.  
  800. &lt;p&gt;The available useflag settings and versions correspond to the stable packages
  801. of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;amd64/17.1/nomultilib&lt;/code&gt; (i.e., openrc), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;amd64/17.1/desktop/plasma/systemd&lt;/code&gt;,
  802. and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;amd64/17.1/desktop/gnome/systemd&lt;/code&gt; profiles. This should provide fairly large
  803. coverage.&lt;/p&gt;
  804.  
  805. &lt;h3 id=&quot;what-compile-settings-use-flags--do-the-normal-arm64-packages-use&quot;&gt;What compile settings, use flags, … do the ‘‘normal’’ arm64 packages use?&lt;/h3&gt;
  806.  
  807. &lt;p&gt;The binary packages under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;arm64/binpackages/17.0/arm64&lt;/code&gt; are compiled using
  808. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CFLAGS=&quot;-O2 -pipe&quot;&lt;/code&gt; and will work with any arm64 / AArch64 machine.&lt;/p&gt;
  809.  
  810. &lt;p&gt;The available useflag settings and versions correspond to the stable packages
  811. of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;arm64/17.0&lt;/code&gt; (i.e., openrc), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;arm64/17.0/desktop/plasma/systemd&lt;/code&gt;,
  812. and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;arm64/17.0/desktop/gnome/systemd&lt;/code&gt; profiles.&lt;/p&gt;
  813.  
  814. &lt;h3 id=&quot;but-hey-thats-not-optimized-for-my-cpu&quot;&gt;But hey, that’s not optimized for my CPU!&lt;/h3&gt;
  815.  
  816. &lt;p&gt;Tough luck. You can still compile packages yourself just as before!&lt;/p&gt;
  817.  
  818. &lt;h3 id=&quot;what-settings-do-the-packages-for-other-architectures-and-abis-use&quot;&gt;What settings do the packages for other architectures and ABIs use?&lt;/h3&gt;
  819.  
  820. &lt;p&gt;The binary package hosting is wired up with the stage builds. Which
  821. means, for about every stage there is a binary package hosting which
  822. covers (only) the stage contents and settings. There are no further plans
  823. to expand coverage for now. But hey, this includes the compiler (gcc or
  824. clang) and the whole build toolchain!&lt;/p&gt;
  825.  
  826. &lt;h3 id=&quot;are-the-packages-cryptographically-signed&quot;&gt;Are the packages cryptographically signed?&lt;/h3&gt;
  827.  
  828. &lt;p&gt;Yes, with the &lt;a href=&quot;https://www.gentoo.org/downloads/signatures/&quot;&gt;same key as the stages&lt;/a&gt;.&lt;/p&gt;
  829.  
  830. &lt;h3 id=&quot;are-the-cryptographic-signatures-verified-before-installation&quot;&gt;Are the cryptographic signatures verified before installation?&lt;/h3&gt;
  831.  
  832. &lt;p&gt;Yes, with one limitation (in the default setting).&lt;/p&gt;
  833.  
  834. &lt;p&gt;Portage knows two binary package formats, XPAK (old) and GPKG (new). Only GPKG supports
  835. cryptographic signing. Until recently, XPAK was the default setting (and it may still
  836. be the default on your installation since this is not changed during upgrade, but only
  837. at new installation).&lt;/p&gt;
  838.  
  839. &lt;p&gt;The new, official Gentoo binary packages are all in GPKG format.
  840. GPKG packages have their signature verified, and if this fails, installation is refused.
  841. To avoid breaking compatibility with old binary packages, by default XPAK
  842. packages (which do not have signatures) can still be installed however.&lt;/p&gt;
  843.  
  844. &lt;p&gt;If you want to require verified signatures (which is something we strongly recommend),
  845. set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;FEATURES=&quot;binpkg-request-signature&quot;&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make.conf&lt;/code&gt;. Then, obviously, you can also
  846. only use GPKG packages.&lt;/p&gt;
  847.  
  848. &lt;h3 id=&quot;i-get-an-error-that-signatures-cannot-be-verified&quot;&gt;I get an error that signatures cannot be verified.&lt;/h3&gt;
  849.  
  850. &lt;p&gt;Try running the Gentoo Trust Tool &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;getuto&lt;/code&gt; as root.&lt;/p&gt;
  851.  
  852. &lt;blockquote&gt;
  853.  &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ getuto&lt;/code&gt;&lt;/p&gt;
  854. &lt;/blockquote&gt;
  855.  
  856. &lt;p&gt;This should set up the required key ring with the Gentoo Release Engineering keys for
  857. Portage.&lt;/p&gt;
  858.  
  859. &lt;p&gt;If you have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;FEATURES=&quot;binpkg-request-signature&quot;&lt;/code&gt; enabled in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make.conf&lt;/code&gt;, then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;getuto&lt;/code&gt;
  860. is called automatically before every binary package download operation, to make sure
  861. that key updates and revocations are imported.&lt;/p&gt;
  862.  
  863. &lt;h3 id=&quot;ive-made-binary-packages-myself-and-portage-refuses-to-use-them-now&quot;&gt;I’ve made binary packages myself and portage refuses to use them now!&lt;/h3&gt;
  864.  
  865. &lt;p&gt;Well, you found the side effect of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;FEATURES=&quot;binpkg-request-signature&quot;&lt;/code&gt;.
  866. For your self-made packages you will need to set up a signing key and have that key
  867. trusted by the anchor in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/portage/gnupg&lt;/code&gt;.&lt;/p&gt;
  868.  
  869. &lt;p&gt;The &lt;a href=&quot;https://wiki.gentoo.org/wiki/Binary_package_guide&quot;&gt;binary package guide&lt;/a&gt; on
  870. our Wiki will be helpful here.&lt;/p&gt;
  871.  
  872. &lt;h3 id=&quot;my-download-is-slow&quot;&gt;My download is slow.&lt;/h3&gt;
  873.  
  874. &lt;p&gt;Then pretty please use a &lt;a href=&quot;https://www.gentoo.org/downloads/mirrors/&quot;&gt;local mirror&lt;/a&gt;
  875. instead of downloading from University of Oregon. You can just edit the URI
  876. in your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/portage/binrepos.conf&lt;/code&gt;. And yes, that’s safe, because of the
  877. cryptographic signature.&lt;/p&gt;
  878.  
  879. &lt;h3 id=&quot;my-portage-still-wants-to-compile-from-source&quot;&gt;My Portage still wants to compile from source.&lt;/h3&gt;
  880.  
  881. &lt;p&gt;If you use useflag combinations deviating from the profile default, then
  882. you can’t and won’t use the packages. Portage will happily mix and match though
  883. and combine binary packages with locally compiled ones. Gentoo still remains
  884. a source-based distribution, and we are not aiming for a full binary-only
  885. installation without any compilation at all.&lt;/p&gt;
  886.  
  887. &lt;h3 id=&quot;can-i-use-the-packages-on-a-merged-usr-system&quot;&gt;Can I use the packages on a merged-usr system?&lt;/h3&gt;
  888.  
  889. &lt;p&gt;Yes. (If anything breaks, then this is a bug and &lt;a href=&quot;https://bugs.gentoo.org/&quot;&gt;should be reported&lt;/a&gt;.)&lt;/p&gt;
  890.  
  891. &lt;h3 id=&quot;can-i-use-the-packages-with-other-older-or-newer-profile-versions&quot;&gt;Can I use the packages with other (older or newer) profile versions?&lt;/h3&gt;
  892.  
  893. &lt;p&gt;&lt;strong&gt;No.&lt;/strong&gt; That’s why the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;src-uri&lt;/code&gt; path contains, e.g.,  “17.1”.
  894. &lt;strong&gt;When there’s a new profile version, we’ll also provide new, separate package directories.&lt;/strong&gt;&lt;/p&gt;
  895.  
  896. &lt;h3 id=&quot;any-plans-to-offer-binary-packages-of-amd64-&quot;&gt;Any plans to offer binary packages of ~amd64 ?&lt;/h3&gt;
  897.  
  898. &lt;p&gt;Not yet. This would mean a ton of rebuilds… If we offer it one day, it’ll
  899. be at a separate URI for technical reasons.&lt;/p&gt;
  900.  
  901. &lt;p&gt;The advice for now is to stick to stable as much as possible, and locally
  902. add in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;package.accept_keywords&lt;/code&gt; whatever packages from testing you want to use.
  903. This means you can still use a large amount of binary packages, and just
  904. compile the rest yourself.&lt;/p&gt;
  905.  
  906. &lt;h3 id=&quot;i-have-found-a-problem-with-portage-or-a-specific-package&quot;&gt;I have found a problem, with portage or a specific package!&lt;/h3&gt;
  907.  
  908. &lt;p&gt;Then please &lt;strong&gt;ask for advice&lt;/strong&gt; (on IRC, the forums, or a mailing list) and/or
  909. &lt;a href=&quot;https://bugs.gentoo.org/&quot;&gt;&lt;strong&gt;file a bug!&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
  910.  
  911. &lt;p&gt;Binary package support has been tested for some time, but with many more people using
  912. it edge cases will certainly occur, and quality bug reports are always appreciated!&lt;/p&gt;
  913.  
  914. &lt;h3 id=&quot;any-pretty-pictures&quot;&gt;Any pretty pictures?&lt;/h3&gt;
  915.  
  916. &lt;p&gt;Of course! Here’s the amount of binary package data in GByte for each architecture…&lt;/p&gt;
  917.  
  918. &lt;p&gt;&lt;img src=&quot;https://www.akhuettel.de/~huettel/plots/mirrors/binpackages-month.png&quot; alt=&quot;package data over time&quot;&gt;&lt;/p&gt;
  919.        
  920.    </description>
  921.    <pubDate>Fri, 29 Dec 2023 06:00:00 +0000</pubDate>
  922.    <dc:creator>GentooNews (https://www.gentoo.org/feeds/news.xml)</dc:creator>
  923.  </item>
  924.  
  925.  
  926.  
  927.  <item>
  928.    <title>.NET in Gentoo in 2023</title>
  929.    <guid isPermaLink="false">urn:https-xgqt-gitlab-io:-blog-posts-2023-12-17-net-in-gentoo-in-2023</guid>
  930.    <link>https://xgqt.gitlab.io//blog/posts/2023/12/17/-net-in-gentoo-in-2023/?utm_source=gentoo&amp;utm_medium=Atom</link>
  931.    <description>
  932.        
  933.          &lt;h2 id=&quot;net-ecosystem-in-gentoo-in-year-2023&quot;&gt;.NET ecosystem in Gentoo in year 2023&lt;/h2&gt;
  934.  
  935. &lt;p&gt;The Gentoo Dotnet project introduced better support for building .NET-based software using the &lt;code&gt;nuget&lt;/code&gt;, &lt;code&gt;dotnet-pkg-base&lt;/code&gt; and &lt;code&gt;dotnet-pkg&lt;/code&gt; eclasses. This opened new opportunities of bringing new packages depending on .NET ecosystem to the official Gentoo ebuild repository and helping developers that use &lt;code&gt;dotnet-sdk&lt;/code&gt; on Gentoo.&lt;/p&gt;
  936.  
  937. &lt;p&gt;New software requiring .NET is constantly being added to the main Gentoo tree, among others that is:&lt;/p&gt;
  938.  
  939. &lt;ul&gt;
  940. &lt;li&gt;
  941. &lt;a href=&quot;https://packages.gentoo.org/packages/app-shells/pwsh&quot;&gt;PowerShell&lt;/a&gt;  for Linux,&lt;/li&gt;
  942. &lt;li&gt;
  943. &lt;a href=&quot;https://packages.gentoo.org/packages/app-office/denaro&quot;&gt;Denaro&lt;/a&gt;  — finance application,&lt;/li&gt;
  944. &lt;li&gt;
  945. &lt;a href=&quot;https://packages.gentoo.org/packages/games-emulation/ryujinx&quot;&gt;Ryujinx&lt;/a&gt;  — NS emulator,&lt;/li&gt;
  946. &lt;li&gt;
  947. &lt;a href=&quot;https://packages.gentoo.org/packages/games-strategy/openra&quot;&gt;OpenRA&lt;/a&gt;  — RTS engine for Command &amp;amp; Conquer, Red Alert and Dune2k,&lt;/li&gt;
  948. &lt;li&gt;
  949. &lt;a href=&quot;https://packages.gentoo.org/packages/media-gfx/pinta&quot;&gt;Pinta&lt;/a&gt;  — graphics program,&lt;/li&gt;
  950. &lt;li&gt;
  951. &lt;a href=&quot;https://packages.gentoo.org/packages/media-gfx/pablodraw&quot;&gt;Pablodraw&lt;/a&gt;  — Ansi, Ascii and RIPscrip art editor,&lt;/li&gt;
  952. &lt;li&gt;
  953. &lt;a href=&quot;https://packages.gentoo.org/packages/dev-lang/dafny&quot;&gt;Dafny&lt;/a&gt;  — verification-aware programming language&lt;/li&gt;
  954. &lt;li&gt;many  &lt;a href=&quot;https://packages.gentoo.org/maintainer/dotnet@gentoo.org#dev-dotnet&quot;&gt;packages&lt;/a&gt;  aimed straight at developing .NET projects.&lt;/li&gt;
  955. &lt;/ul&gt;
  956.  
  957. &lt;p&gt;Dotnet project is also looking for new maintainers and users who are willing to help out here and there. Current state of .NET in Gentoo is very good but we can still do a lot better.&lt;/p&gt;
  958.  
  959. &lt;h2 id=&quot;special-thanks-to-people-who-helped-out&quot;&gt;Special thanks to people who helped out&lt;/h2&gt;
  960.  
  961. &lt;ul&gt;
  962. &lt;li&gt;&lt;a href=&quot;https://github.com/navi-desu/&quot;&gt;Anna Figueiredo Gomes&lt;/a&gt;&lt;/li&gt;
  963. &lt;li&gt;&lt;a href=&quot;https://github.com/mid-kid/&quot;&gt;Esteve Varela Colominas&lt;/a&gt;&lt;/li&gt;
  964. &lt;li&gt;&lt;a href=&quot;https://github.com/Tatsh/&quot;&gt;Andrew Udvare&lt;/a&gt;&lt;/li&gt;
  965. &lt;/ul&gt;
  966.  
  967. &lt;h2 id=&quot;links-to-bugs-and-announcements&quot;&gt;Links to bugs and announcements&lt;/h2&gt;
  968.  
  969. &lt;ul&gt;
  970. &lt;li&gt;Bugs
  971.  &lt;ul&gt;
  972.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/gentoo-dotnet-2023/-/issues/1&quot;&gt;gentoo-dotnet–2023/1&lt;/a&gt;&lt;/li&gt;
  973.   &lt;li&gt;&lt;a href=&quot;https://bugs.gentoo.org/900597&quot;&gt;900597&lt;/a&gt;&lt;/li&gt;
  974. &lt;/ul&gt;
  975. &lt;/li&gt;
  976. &lt;li&gt;Github PRs
  977.  &lt;ul&gt;
  978.   &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo/gentoo/pull/21112/&quot;&gt;21112&lt;/a&gt;&lt;/li&gt;
  979.   &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo/gentoo/pull/21451/&quot;&gt;21451&lt;/a&gt;&lt;/li&gt;
  980.   &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo/gentoo/pull/29309/&quot;&gt;29309&lt;/a&gt;&lt;/li&gt;
  981.   &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo/gentoo/pull/32109/&quot;&gt;32109&lt;/a&gt;&lt;/li&gt;
  982.   &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo/gentoo/pull/33940/&quot;&gt;33940&lt;/a&gt;&lt;/li&gt;
  983. &lt;/ul&gt;
  984. &lt;/li&gt;
  985. &lt;li&gt;Active Gentoo .NET projects
  986.  &lt;ul&gt;
  987.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/gentoo-dotnet-guide/&quot;&gt;gentoo-dotnet-guide&lt;/a&gt;&lt;/li&gt;
  988.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/gentoo-dotnet-maintainer-tools/&quot;&gt;gentoo-dotnet-maintainer-tools&lt;/a&gt;&lt;/li&gt;
  989.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/csharp-gentoodotnetinfo/&quot;&gt;csharp-gentoodotnetinfo&lt;/a&gt;&lt;/li&gt;
  990.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/eselect-dotnet/&quot;&gt;eselect-dotnet&lt;/a&gt;&lt;/li&gt;
  991.   &lt;li&gt;&lt;a href=&quot;https://gitlab.gentoo.org/dotnet/eselect-pwsh/&quot;&gt;eselect-pwsh&lt;/a&gt;&lt;/li&gt;
  992. &lt;/ul&gt;
  993. &lt;/li&gt;
  994. &lt;/ul&gt;
  995.        
  996.    </description>
  997.    <pubDate>Sun, 17 Dec 2023 22:59:12 +0000</pubDate>
  998.    <dc:creator>xgqt (xgqt)</dc:creator>
  999.  </item>
  1000.  
  1001.  
  1002.  
  1003.  <item>
  1004.    <title>Portage Continuous Delivery</title>
  1005.    <guid isPermaLink="false">urn:https-xgqt-gitlab-io:-blog-posts-2023-12-17-portage-continuous-delivery</guid>
  1006.    <link>https://xgqt.gitlab.io//blog/posts/2023/12/17/portage-continuous-delivery/?utm_source=gentoo&amp;utm_medium=Atom</link>
  1007.    <description>
  1008.        
  1009.          &lt;h2 id=&quot;portage-as-a-cd-system&quot;&gt;Portage as a CD system&lt;/h2&gt;
  1010.  
  1011. &lt;p&gt;This is a very simple way to use any system with Portage installed as a Continuous Delivery server.&lt;/p&gt;
  1012.  
  1013. &lt;p&gt;I think for a testing environment this is a valid solution to consider.&lt;/p&gt;
  1014.  
  1015. &lt;h3 id=&quot;create-a-repository-of-software-used-in-your-organization&quot;&gt;Create a repository of software used in your organization&lt;/h3&gt;
  1016.  
  1017. &lt;p&gt;Those articles from the Gentoo Wiki describe how to create a custom ebuild repository (overlay) pretty well:&lt;/p&gt;
  1018.  
  1019. &lt;ul&gt;
  1020. &lt;li&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/Ebuild_repository&quot;&gt;Ebuild repository&lt;/a&gt;&lt;/li&gt;
  1021. &lt;li&gt;&lt;a href=&quot;https://wiki.gentoo.org/wiki/Creating_an_ebuild_repository&quot;&gt;Creating an ebuild repository&lt;/a&gt;&lt;/li&gt;
  1022. &lt;/ul&gt;
  1023.  
  1024. &lt;h3 id=&quot;set-up-your-repo-with-eselect-repository&quot;&gt;Set up your repo with eselect-repository&lt;/h3&gt;
  1025.  
  1026. &lt;p&gt;Install the &lt;code&gt;my-org&lt;/code&gt; repository:&lt;/p&gt;
  1027.  
  1028. &lt;div class=&quot;brush: shell&quot;&gt;
  1029. &lt;div class=&quot;source&quot;&gt;
  1030.  &lt;table class=&quot;sourcetable&quot;&gt;
  1031.   &lt;tbody&gt;
  1032.    &lt;tr&gt;
  1033.     &lt;td class=&quot;linenos&quot;&gt;
  1034.      &lt;div class=&quot;linenodiv&quot;&gt;
  1035.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1036. &lt;/div&gt;
  1037. &lt;/td&gt;
  1038.     &lt;td class=&quot;code&quot;&gt;
  1039.      &lt;div&gt;
  1040.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;eselect&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;repository&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;add&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;my-org&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;git&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;https://git.my-org.local/portage/my-org.git
  1041. &lt;/pre&gt;
  1042. &lt;/div&gt;
  1043. &lt;/td&gt;
  1044. &lt;/tr&gt;
  1045. &lt;/tbody&gt;
  1046. &lt;/table&gt;
  1047. &lt;/div&gt;
  1048.  
  1049. &lt;/div&gt;
  1050.  
  1051. &lt;p&gt;Sync &lt;code&gt;my-org&lt;/code&gt;:&lt;/p&gt;
  1052.  
  1053. &lt;div class=&quot;brush: shell&quot;&gt;
  1054. &lt;div class=&quot;source&quot;&gt;
  1055.  &lt;table class=&quot;sourcetable&quot;&gt;
  1056.   &lt;tbody&gt;
  1057.    &lt;tr&gt;
  1058.     &lt;td class=&quot;linenos&quot;&gt;
  1059.      &lt;div class=&quot;linenodiv&quot;&gt;
  1060.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1061. &lt;/div&gt;
  1062. &lt;/td&gt;
  1063.     &lt;td class=&quot;code&quot;&gt;
  1064.      &lt;div&gt;
  1065.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;emerge&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;--sync&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;my-org
  1066. &lt;/pre&gt;
  1067. &lt;/div&gt;
  1068. &lt;/td&gt;
  1069. &lt;/tr&gt;
  1070. &lt;/tbody&gt;
  1071. &lt;/table&gt;
  1072. &lt;/div&gt;
  1073.  
  1074. &lt;/div&gt;
  1075.  
  1076. &lt;h3 id=&quot;install-live-packages-of-a-your-software&quot;&gt;Install live packages of a your software&lt;/h3&gt;
  1077.  
  1078. &lt;p&gt;First, enable live packages (keywordless) for your &lt;code&gt;my-org&lt;/code&gt; repo:&lt;/p&gt;
  1079.  
  1080. &lt;div class=&quot;brush: shell&quot;&gt;
  1081. &lt;div class=&quot;source&quot;&gt;
  1082.  &lt;table class=&quot;sourcetable&quot;&gt;
  1083.   &lt;tbody&gt;
  1084.    &lt;tr&gt;
  1085.     &lt;td class=&quot;linenos&quot;&gt;
  1086.      &lt;div class=&quot;linenodiv&quot;&gt;
  1087.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1088. &lt;/div&gt;
  1089. &lt;/td&gt;
  1090.     &lt;td class=&quot;code&quot;&gt;
  1091.      &lt;div&gt;
  1092.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;*/*::my-org&#39;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;/etc/portage/package.accept_keywords/0000_repo_my-org.conf
  1093. &lt;/pre&gt;
  1094. &lt;/div&gt;
  1095. &lt;/td&gt;
  1096. &lt;/tr&gt;
  1097. &lt;/tbody&gt;
  1098. &lt;/table&gt;
  1099. &lt;/div&gt;
  1100.  
  1101. &lt;/div&gt;
  1102.  
  1103. &lt;p&gt;Install some packages from &lt;code&gt;my-org&lt;/code&gt;:&lt;/p&gt;
  1104.  
  1105. &lt;div class=&quot;brush: shell&quot;&gt;
  1106. &lt;div class=&quot;source&quot;&gt;
  1107.  &lt;table class=&quot;sourcetable&quot;&gt;
  1108.   &lt;tbody&gt;
  1109.    &lt;tr&gt;
  1110.     &lt;td class=&quot;linenos&quot;&gt;
  1111.      &lt;div class=&quot;linenodiv&quot;&gt;
  1112.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1113. &lt;/div&gt;
  1114. &lt;/td&gt;
  1115.     &lt;td class=&quot;code&quot;&gt;
  1116.      &lt;div&gt;
  1117.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;emerge&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;-av&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;=mycategory/mysoftware-9999&quot;&lt;/span&gt;
  1118. &lt;/pre&gt;
  1119. &lt;/div&gt;
  1120. &lt;/td&gt;
  1121. &lt;/tr&gt;
  1122. &lt;/tbody&gt;
  1123. &lt;/table&gt;
  1124. &lt;/div&gt;
  1125.  
  1126. &lt;/div&gt;
  1127.  
  1128. &lt;h3 id=&quot;install-smart-live-rebuild&quot;&gt;Install smart-live-rebuild&lt;/h3&gt;
  1129.  
  1130. &lt;p&gt;&lt;code&gt;smart-live-rebuild&lt;/code&gt; can automatically update live software packages that use git as their source URL.&lt;/p&gt;
  1131.  
  1132. &lt;h3 id=&quot;set-up-cron-to-run-smart-live-rebuild&quot;&gt;Set up cron to run smart-live-rebuild&lt;/h3&gt;
  1133.  
  1134. &lt;p&gt;Refresh your &lt;code&gt;my-org&lt;/code&gt; repository every hour:&lt;/p&gt;
  1135.  
  1136. &lt;div class=&quot;brush: cron&quot;&gt;
  1137. &lt;div class=&quot;source&quot;&gt;
  1138.  &lt;table class=&quot;sourcetable&quot;&gt;
  1139.   &lt;tbody&gt;
  1140.    &lt;tr&gt;
  1141.     &lt;td class=&quot;linenos&quot;&gt;
  1142.      &lt;div class=&quot;linenodiv&quot;&gt;
  1143.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1144. &lt;/div&gt;
  1145. &lt;/td&gt;
  1146.     &lt;td class=&quot;code&quot;&gt;
  1147.      &lt;div&gt;
  1148.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;0 */1 * * * emerge --sync my-org
  1149. &lt;/pre&gt;
  1150. &lt;/div&gt;
  1151. &lt;/td&gt;
  1152. &lt;/tr&gt;
  1153. &lt;/tbody&gt;
  1154. &lt;/table&gt;
  1155. &lt;/div&gt;
  1156.  
  1157. &lt;/div&gt;
  1158.  
  1159. &lt;p&gt;Refresh the main Gentoo tree every other 6th hour:&lt;/p&gt;
  1160.  
  1161. &lt;div class=&quot;brush: cron&quot;&gt;
  1162. &lt;div class=&quot;source&quot;&gt;
  1163.  &lt;table class=&quot;sourcetable&quot;&gt;
  1164.   &lt;tbody&gt;
  1165.    &lt;tr&gt;
  1166.     &lt;td class=&quot;linenos&quot;&gt;
  1167.      &lt;div class=&quot;linenodiv&quot;&gt;
  1168.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1169. &lt;/div&gt;
  1170. &lt;/td&gt;
  1171.     &lt;td class=&quot;code&quot;&gt;
  1172.      &lt;div&gt;
  1173.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;0 */6 * * * emerge --sync gentoo
  1174. &lt;/pre&gt;
  1175. &lt;/div&gt;
  1176. &lt;/td&gt;
  1177. &lt;/tr&gt;
  1178. &lt;/tbody&gt;
  1179. &lt;/table&gt;
  1180. &lt;/div&gt;
  1181.  
  1182. &lt;/div&gt;
  1183.  
  1184. &lt;p&gt;Run &lt;code&gt;smart-live-rebuild&lt;/code&gt; every other 3rd hour:&lt;/p&gt;
  1185.  
  1186. &lt;div class=&quot;brush: cron&quot;&gt;
  1187. &lt;div class=&quot;source&quot;&gt;
  1188.  &lt;table class=&quot;sourcetable&quot;&gt;
  1189.   &lt;tbody&gt;
  1190.    &lt;tr&gt;
  1191.     &lt;td class=&quot;linenos&quot;&gt;
  1192.      &lt;div class=&quot;linenodiv&quot;&gt;
  1193.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1194. &lt;/div&gt;
  1195. &lt;/td&gt;
  1196.     &lt;td class=&quot;code&quot;&gt;
  1197.      &lt;div&gt;
  1198.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;0 */3 * * * smart-live-rebuild
  1199. &lt;/pre&gt;
  1200. &lt;/div&gt;
  1201. &lt;/td&gt;
  1202. &lt;/tr&gt;
  1203. &lt;/tbody&gt;
  1204. &lt;/table&gt;
  1205. &lt;/div&gt;
  1206.  
  1207. &lt;/div&gt;
  1208.  
  1209. &lt;h2 id=&quot;restarting-services-after-update&quot;&gt;Restarting services after update&lt;/h2&gt;
  1210.  
  1211. &lt;h3 id=&quot;all-in-one-script&quot;&gt;All-in-one script&lt;/h3&gt;
  1212.  
  1213. &lt;p&gt;You can either restart all services after successful update:&lt;/p&gt;
  1214.  
  1215. &lt;p&gt;File: &lt;code&gt;/opt/update.sh&lt;/code&gt;&lt;/p&gt;
  1216.  
  1217. &lt;div class=&quot;brush: shell&quot;&gt;
  1218. &lt;div class=&quot;source&quot;&gt;
  1219.  &lt;table class=&quot;sourcetable&quot;&gt;
  1220.   &lt;tbody&gt;
  1221.    &lt;tr&gt;
  1222.     &lt;td class=&quot;linenos&quot;&gt;
  1223.      &lt;div class=&quot;linenodiv&quot;&gt;
  1224.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;
  1225. &lt;span class=&quot;normal&quot;&gt;2&lt;/span&gt;
  1226. &lt;span class=&quot;normal&quot;&gt;3&lt;/span&gt;
  1227. &lt;span class=&quot;normal&quot;&gt;4&lt;/span&gt;
  1228. &lt;span class=&quot;normal&quot;&gt;5&lt;/span&gt;
  1229. &lt;span class=&quot;normal&quot;&gt;6&lt;/span&gt;
  1230. &lt;span class=&quot;normal&quot;&gt;7&lt;/span&gt;
  1231. &lt;span class=&quot;normal&quot;&gt;8&lt;/span&gt;&lt;/pre&gt;
  1232. &lt;/div&gt;
  1233. &lt;/td&gt;
  1234.     &lt;td class=&quot;code&quot;&gt;
  1235.      &lt;div&gt;
  1236.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;ch&quot;&gt;#!/bin/sh&lt;/span&gt;
  1237.  
  1238. &lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;-e
  1239.  
  1240. smart-live-rebuild
  1241.  
  1242. systemctl&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;restart&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;my-service-1.service
  1243. systemctl&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;restart&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;my-service-2.service
  1244. &lt;/pre&gt;
  1245. &lt;/div&gt;
  1246. &lt;/td&gt;
  1247. &lt;/tr&gt;
  1248. &lt;/tbody&gt;
  1249. &lt;/table&gt;
  1250. &lt;/div&gt;
  1251.  
  1252. &lt;/div&gt;
  1253.  
  1254. &lt;p&gt;Crontab:&lt;/p&gt;
  1255.  
  1256. &lt;div class=&quot;brush: cron&quot;&gt;
  1257. &lt;div class=&quot;source&quot;&gt;
  1258.  &lt;table class=&quot;sourcetable&quot;&gt;
  1259.   &lt;tbody&gt;
  1260.    &lt;tr&gt;
  1261.     &lt;td class=&quot;linenos&quot;&gt;
  1262.      &lt;div class=&quot;linenodiv&quot;&gt;
  1263.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  1264. &lt;/div&gt;
  1265. &lt;/td&gt;
  1266.     &lt;td class=&quot;code&quot;&gt;
  1267.      &lt;div&gt;
  1268.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;0 */3 * * * /opt/update.sh
  1269. &lt;/pre&gt;
  1270. &lt;/div&gt;
  1271. &lt;/td&gt;
  1272. &lt;/tr&gt;
  1273. &lt;/tbody&gt;
  1274. &lt;/table&gt;
  1275. &lt;/div&gt;
  1276.  
  1277. &lt;/div&gt;
  1278.  
  1279. &lt;h3 id=&quot;via-ebuilds-pkg-functions&quot;&gt;Via ebuilds pkg_ functions&lt;/h3&gt;
  1280.  
  1281. &lt;p&gt;File: &lt;code&gt;my-service-1.ebuild&lt;/code&gt;&lt;/p&gt;
  1282.  
  1283. &lt;div class=&quot;brush: shell&quot;&gt;
  1284. &lt;div class=&quot;source&quot;&gt;
  1285.  &lt;table class=&quot;sourcetable&quot;&gt;
  1286.   &lt;tbody&gt;
  1287.    &lt;tr&gt;
  1288.     &lt;td class=&quot;linenos&quot;&gt;
  1289.      &lt;div class=&quot;linenodiv&quot;&gt;
  1290.       &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;
  1291. &lt;span class=&quot;normal&quot;&gt;2&lt;/span&gt;
  1292. &lt;span class=&quot;normal&quot;&gt;3&lt;/span&gt;&lt;/pre&gt;
  1293. &lt;/div&gt;
  1294. &lt;/td&gt;
  1295.     &lt;td class=&quot;code&quot;&gt;
  1296.      &lt;div&gt;
  1297.       &lt;pre&gt;&lt;span&gt;&lt;/span&gt;pkg_postinst&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  1298. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;systemctl&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;restart&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;my-service-1.service
  1299. &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
  1300. &lt;/pre&gt;
  1301. &lt;/div&gt;
  1302. &lt;/td&gt;
  1303. &lt;/tr&gt;
  1304. &lt;/tbody&gt;
  1305. &lt;/table&gt;
  1306. &lt;/div&gt;
  1307.  
  1308. &lt;/div&gt;
  1309.  
  1310. &lt;p&gt;More about &lt;code&gt;pkg_postinst&lt;/code&gt;:&lt;/p&gt;
  1311.  
  1312. &lt;ul&gt;
  1313. &lt;li&gt;&lt;a href=&quot;https://devmanual.gentoo.org/ebuild-writing/functions/pkg_postinst/&quot;&gt;pkg_postinst&lt;/a&gt;&lt;/li&gt;
  1314. &lt;li&gt;&lt;a href=&quot;https://devmanual.gentoo.org/ebuild-writing/functions/index.html&quot;&gt;Phase Functions&lt;/a&gt;&lt;/li&gt;
  1315. &lt;/ul&gt;
  1316.  
  1317. &lt;h2 id=&quot;example-gentoo-overlays&quot;&gt;Example Gentoo overlays&lt;/h2&gt;
  1318.  
  1319. &lt;ul&gt;
  1320. &lt;li&gt;&lt;a href=&quot;https://gitlab.com/xgqt/myov/&quot;&gt;xgqt/myov&lt;/a&gt;&lt;/li&gt;
  1321. &lt;li&gt;&lt;a href=&quot;https://gitlab.com/gentoo-racket/gentoo-racket-overlay/&quot;&gt;gentoo-racket/gentoo-racket-overlay&lt;/a&gt;&lt;/li&gt;
  1322. &lt;li&gt;&lt;a href=&quot;https://github.com/gentoo-mirror/guru/&quot;&gt;gentoo-mirror/guru&lt;/a&gt;&lt;/li&gt;
  1323. &lt;/ul&gt;
  1324.        
  1325.    </description>
  1326.    <pubDate>Sun, 17 Dec 2023 00:50:15 +0000</pubDate>
  1327.    <dc:creator>xgqt (xgqt)</dc:creator>
  1328.  </item>
  1329.  
  1330.  
  1331.  
  1332.  <item>
  1333.    <title>A format that does one thing well or one-size-fits-all?</title>
  1334.    <guid isPermaLink="false">https://blogs.gentoo.org/mgorny/?p=1888</guid>
  1335.    <link>https://blogs.gentoo.org/mgorny/2023/12/07/a-format-that-does-one-thing-well-or-one-size-fits-all/</link>
  1336.    <description>
  1337.        
  1338.          &lt;p&gt;The Unix philosophy states that we ought to design programs that “do one thing well”.  Nevertheless, the current trend is to design huge monoliths with multiple unrelated functions, with web browsers at the peak of that horrifying journey.  However, let’s consider something else.&lt;/p&gt;
  1339. &lt;p&gt;Does the same philosophy hold for algorithms and file formats?  Is it better to design formats that suit a single use case well, and swap between different formats as need arises?  Or perhaps it is a better solution to actually design them so they could fit different needs?&lt;/p&gt;
  1340. &lt;p&gt;Let’s consider this by exploring three areas: hash algorithms, compressed file formats and image formats.&lt;br&gt;
  1341. &lt;span id=&quot;more-1888&quot;&gt;&lt;/span&gt;&lt;/p&gt;
  1342. &lt;h2&gt;Hash algorithms&lt;/h2&gt;
  1343. &lt;p&gt;Hash, digest, checksum — they have many names, and many uses.  To list a few uses of hash functions and their derivatives:&lt;/p&gt;
  1344. &lt;ul&gt;
  1345. &lt;li&gt;verifying file integrity&lt;/li&gt;
  1346. &lt;li&gt;verifying file authenticity&lt;/li&gt;
  1347. &lt;li&gt;generating derived keys&lt;/li&gt;
  1348. &lt;li&gt;generating unique keys for fast data access and comparison&lt;/li&gt;
  1349. &lt;/ul&gt;
  1350. &lt;p&gt;Different use cases imply different requirements.  The simple CRC algorithms were good enough to check files for random damage but they aren’t suitable for cryptographic purposes.  The SHA hashes provide good resistance to attacks but they are too slow to speed up data lookups.  That role is much better served by dedicated fast hashes such as xxHash.  In my opinion, these are all examples of “do one thing well”.&lt;/p&gt;
  1351. &lt;p&gt;On the other hand, there is some overlap.  More often than not, cryptographic hash functions are used to verify integrity.  Then we have modern hashes like BLAKE2 that are both fast and secure (though not as fast as dedicated fast hashes).  Argon2 key derivation function builds upon BLAKE2 to improve its security even further, rather than inventing a new hash.  These are the examples how a single tool is used to serve different purposes.&lt;/p&gt;
  1352. &lt;h2&gt;Compressed file formats&lt;/h2&gt;
  1353. &lt;p&gt;The purpose of compression, of course, is to reduce file size.  However, individual algorithms may be optimized for different kinds of data and different goals.&lt;/p&gt;
  1354. &lt;p&gt;Probably the oldest category are “archiving” algorithms that focus on providing strong compression and reasonably fast decompression.  Back in the day, there were used to compress files in “cold storage” and for transfer; nowadays, they can be used basically for anything that you don’t modify very frequently.  The common algorithms from this category include deflate (used by gzip, zip) and LZMA (used by 7z, lzip, xz).&lt;/p&gt;
  1355. &lt;p&gt;Then, we have very strong algorithms that achieve remarkable compression at the cost of very slow compression and decompression.  These are sometimes (but rarely) used for data distribution.  An example of such algorithms are the PAQ family.&lt;/p&gt;
  1356. &lt;p&gt;Then, we have very fast algorithms such as LZ4.  They provide worse compression ratios than other algorithms, but they are so fast that they can be used to compress data on the fly.  They can be used to speed up data access and transmission by reducing its size with no noticeable overhead.&lt;/p&gt;
  1357. &lt;p&gt;Of course, many algorithms have different presets.  You can run &lt;kbd&gt;lz4 -9&lt;/kbd&gt; to get stronger compression with LZ4, or &lt;kbd&gt;xz -1&lt;/kbd&gt; to get faster compression with XZ.  However, neither the former will excel at compression ratio, nor the latter at speed.&lt;/p&gt;
  1358. &lt;p&gt;Again, we are seeing different algorithms that “do one thing well”.  However, nowadays ZSTD is gaining popularity and it spans a wider spectrum, being capable of both providing very fast compression (but not as fast as LZ4) and quite strong compression.  What’s really important is that it’s capable of providing adaptive compression — that is, dynamically adjusting the compression level to provide the best throughput.  It switches to a faster preset if the current one is slowing the transmission down, and to a stronger one if there is a potential speedup in that.&lt;/p&gt;
  1359. &lt;h2&gt;Image formats&lt;/h2&gt;
  1360. &lt;p&gt;Let’s discuss image formats now.  If we look back far enough, we’d arrive at a time when two image formats were dominating the web.  On one hand, we had GIF — with lossless compression, limited color palette, transparency and animations, that made it a good choice for computer-generated images.  On the other, we had JPEG — with efficient lossy compression and high color depth suitable for photography.  We could see these two as “doing one thing well”.&lt;/p&gt;
  1361. &lt;p&gt;Then came PNG.  PNG is also lossless but provides much higher color depth and improved support for transparency via an alpha channel.  While it’s still the format of choice for computer-generated images, it’s also somewhat suitable for photography (but with less efficient compression).  With APNG around, it effectively replaces GIF but it also partially overlaps with the use cases for JPEG.&lt;/p&gt;
  1362. &lt;p&gt;Modern image formats go even further.  WebP, AVIF and JPEG XL all support both lossless and lossy compession, high color depths, alpha channel, animation.  Therefore, they are suitable both for computer-generated images and for photography.  Effectively, they can replace all their predecessors with a “one size fits all” format.&lt;/p&gt;
  1363. &lt;h2&gt;Conclusion&lt;/h2&gt;
  1364. &lt;p&gt;I’ve asked whether it is better to design formats that focus on one specific use case, or whether formats that try to cover a whole spectrum of use cases are better.  I’m afraid there’s no easy answer to this question.&lt;/p&gt;
  1365. &lt;p&gt;We can clearly see that “one-size-fits-all” solutions are gaining popularity — BLAKE2 among hashes, ZSTD in compressed file formats, WebP, AVIF and JPEG XL among image formats.  They have a single clear advantage — you need just one tool, one implementation.&lt;/p&gt;
  1366. &lt;p&gt;Your web browser needs to support only one format that covers both computer-generated graphics using lossless compression and photographs using lossy compression.  Different tools can reuse the same BLAKE2 implementation that’s well tested and audited.  A single ZSTD library can serve different applications in their distinct use cases.&lt;/p&gt;
  1367. &lt;p&gt;However, there is still a clear edge to algorithms that are focused on a single use case.  xxHash is still faster than any hashes that could be remotely suitable for cryptographic purposes.  LZ4 is still faster than ZSTD can be in its lowest compression mode.&lt;/p&gt;
  1368. &lt;p&gt;The only reasonable conclusion seems to be: there are use cases for both.  There are use cases that are best satisfied by a dedicated algorithm, and there are use cases when a more generic solution is better.  There are use cases when integrating two different hash algorithms, two different compression libraries into your program, with the overhead involved, is a better choice, than using just one algorithm that fits neither of your two distinct use cases well.&lt;/p&gt;
  1369. &lt;p&gt;Once again, it feels that a reference to &lt;a rel=&quot;external&quot; href=&quot;https://xkcd.com/927/&quot;&gt;XKCD#927&lt;/a&gt; is appropriate.  However, in this particular instance this isn’t a bad thing.&lt;/p&gt;
  1370.        
  1371.    </description>
  1372.    <pubDate>Thu, 07 Dec 2023 15:58:15 +0000</pubDate>
  1373.    <dc:creator>mgorny (mgorny)</dc:creator>
  1374.  </item>
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  <item>
  1405.    <title>My thin wrapper for emerge(1)</title>
  1406.    <guid isPermaLink="false">https://blogs.gentoo.org/mgorny/?p=1881</guid>
  1407.    <link>https://blogs.gentoo.org/mgorny/2023/09/05/my-thin-wrapper-for-emerge/</link>
  1408.    <description>
  1409.        
  1410.          &lt;p&gt;I’ve recently written a thin wrapper over &lt;kbd&gt;emerge&lt;/kbd&gt; that I use in my development environment.  It does the following:&lt;/p&gt;
  1411. &lt;ol&gt;
  1412. &lt;li&gt;set tmux pane title to the first package argument (so you can roughly see what’s emerging on every pane)&lt;/li&gt;
  1413. &lt;li&gt;beep meaningfully when emerge finishes (two beeps for success, three for failure),&lt;/li&gt;
  1414. &lt;li&gt;run &lt;kbd&gt;pip check&lt;/kbd&gt; after successful run to check for mismatched Python dependencies.&lt;/li&gt;
  1415. &lt;/ol&gt;
  1416. &lt;p&gt;&lt;span id=&quot;more-1881&quot;&gt;&lt;/span&gt;&lt;/p&gt;
  1417. &lt;p&gt;Here’s the code:&lt;/p&gt;
  1418. &lt;pre&gt;#!/bin/sh
  1419.  
  1420. for arg; do
  1421. case ${arg} in
  1422. -*)
  1423. ;;
  1424. *)
  1425. tmux rename-window &quot;${arg}&quot;
  1426. break
  1427. ;;
  1428. esac
  1429. done
  1430.  
  1431. /usr/bin/emerge &quot;${@}&quot;
  1432. ret=${?}
  1433.  
  1434. if [ &quot;${ret}&quot; -eq 0 ]; then
  1435. python3.11 -m pip check | grep -v certifi
  1436. else
  1437. tput bel
  1438. sleep 0.1
  1439. fi
  1440.  
  1441. tput bel
  1442. sleep 0.1
  1443. tput bel
  1444.  
  1445. exit &quot;${ret}&quot;&lt;/pre&gt;
  1446.        
  1447.    </description>
  1448.    <pubDate>Tue, 05 Sep 2023 17:04:43 +0000</pubDate>
  1449.    <dc:creator>mgorny (mgorny)</dc:creator>
  1450.  </item>
  1451.  
  1452.  
  1453.  
  1454.  <item>
  1455.    <title>Genpatches Supported Kernel Versions</title>
  1456.    <guid isPermaLink="false">https://www.mpagano.com/blog/?p=315</guid>
  1457.    <link>https://www.mpagano.com/blog/?p=315</link>
  1458.    <description>
  1459.        
  1460.          &lt;p&gt;As part of a an effort to streamline developer capacity, the maintainers of gentoo-sources and genpatches have decided to limit past kernel versions to a maximum of 3 years post initial release.&lt;/p&gt;
  1461.  
  1462.  
  1463.  
  1464. &lt;p&gt;Notes:&lt;/p&gt;
  1465.  
  1466.  
  1467.  
  1468. &lt;ul&gt;
  1469. &lt;li&gt;This impacts all kernels that utlize the official genpatches releases as part of their kernel packages including but not limited to the list here [1]&lt;/li&gt;
  1470.  
  1471.  
  1472.  
  1473. &lt;li&gt;sys-kernel/vanilla-sources will continue to follow the upstream release and deprecation schedule. Note that the upstream release schedule is showing their LTS kernel support time frames going from six years to four [2]&lt;/li&gt;
  1474.  
  1475.  
  1476.  
  1477. &lt;li&gt;gentoo-kernel will also be following this 3 year kernel support and release policy&lt;/li&gt;
  1478.  
  1479.  
  1480.  
  1481. &lt;li&gt;In the past, we only supported two versions.  With this change, gentoo-sources will still, if enacted today, support 6 versions.&lt;/li&gt;
  1482. &lt;/ul&gt;
  1483.  
  1484.  
  1485.  
  1486. &lt;p&gt;&lt;br&gt;&lt;strong&gt;Why should I not run older kernel versions?&lt;/strong&gt;&lt;/p&gt;
  1487.  
  1488.  
  1489.  
  1490. &lt;ul&gt;
  1491. &lt;li&gt;Upstream maintainer Greg Kroah-Hartman specifically recommends the following list of preferred kernel versions to choose from in order: [3]&lt;/li&gt;
  1492.  
  1493.  
  1494.  
  1495. &lt;li&gt;Supported kernel from your favorite Linux distribution&lt;/li&gt;
  1496.  
  1497.  
  1498.  
  1499. &lt;li&gt;Latest stable release&lt;/li&gt;
  1500.  
  1501.  
  1502.  
  1503. &lt;li&gt;Latest LTS release&lt;/li&gt;
  1504.  
  1505.  
  1506.  
  1507. &lt;li&gt;Older LTS release that is still being maintained&lt;/li&gt;
  1508. &lt;/ul&gt;
  1509.  
  1510.  
  1511.  
  1512. &lt;p&gt;Greg specifically called out Gentoo’s method of consistently rolling out kernels with both security/bug fixes early and  keeping up with upstream’s releases.&lt;/p&gt;
  1513.  
  1514.  
  1515.  
  1516. &lt;p&gt;Gentoo still does and will continue to offer a variety of kernels to choose from with this change.&lt;/p&gt;
  1517.  
  1518.  
  1519.  
  1520. &lt;p&gt;[1] &lt;a href=&quot;https://dev.gentoo.org/~mpagano/genpatches/kernels.html&quot;&gt;https://dev.gentoo.org/~mpagano/genpatches/kernels.html&lt;/a&gt;&lt;/p&gt;
  1521.  
  1522.  
  1523.  
  1524. &lt;p&gt;[2] &lt;a href=&quot;https://kernel.org/category/releases.html&quot;&gt;https://kernel.org/category/releases.html&lt;/a&gt;&lt;/p&gt;
  1525.  
  1526.  
  1527.  
  1528. &lt;p&gt;[3] &lt;a href=&quot;http://www.kroah.com/log/blog/2018/08/24/what-stable-kernel-should-i-use/&quot;&gt;http://www.kroah.com/log/blog/2018/08/24/what-stable-kernel-should-i-use/&lt;/a&gt;&lt;/p&gt;
  1529.        
  1530.    </description>
  1531.    <pubDate>Thu, 31 Aug 2023 17:15:49 +0000</pubDate>
  1532.    <dc:creator>mpagano (mpagano)</dc:creator>
  1533.  </item>
  1534.  
  1535.  
  1536.  
  1537.  <item>
  1538.    <title>Final Report, Automated Gentoo System Updater</title>
  1539.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=591</guid>
  1540.    <link>https://blogs.gentoo.org/gsoc/2023/08/27/final-report-automated-gentoo-system-updater/</link>
  1541.    <description>
  1542.        
  1543.          &lt;h2 id=&quot;project-goals&quot;&gt;Project Goals&lt;/h2&gt;
  1544. &lt;p&gt;Main goal of the project was to write an app that will automatically handle updates on Gentoo Linux systems and send notifications with update summaries. More specifically, I wanted to:&lt;/p&gt;
  1545. &lt;ol&gt;
  1546. &lt;li&gt;Simplify the update process for beginners, offering a simpler one-click method.&lt;/li&gt;
  1547. &lt;li&gt;Minimize time experienced users spend on routine update tasks, decreasing their workload.&lt;/li&gt;
  1548. &lt;li&gt;Ensure systems remain secure and regularly updated with minimal manual intervention.&lt;/li&gt;
  1549. &lt;li&gt;Keep users informed of the updates and changes.&lt;/li&gt;
  1550. &lt;li&gt;Improve the overall Gentoo Linux user experience.&lt;/li&gt;
  1551. &lt;/ol&gt;
  1552. &lt;h2 id=&quot;progress&quot;&gt;Progress&lt;/h2&gt;
  1553. &lt;p&gt;Here is a summary of what was done every week with links to my blog posts.&lt;/p&gt;
  1554. &lt;h3 id=&quot;week-1httpslabbratnetbloggsoc2023week1&quot;&gt;&lt;a href=&quot;https://labbrat.net/blog/gsoc2023/week1/&quot;&gt;Week 1&lt;/a&gt;&lt;/h3&gt;
  1555. &lt;p&gt;Basic system updater is ready. Also prepared a Docker Compose file to run tests in containers. Available functionality:&lt;/p&gt;
  1556. &lt;ul&gt;
  1557. &lt;li&gt;update security patches&lt;/li&gt;
  1558. &lt;li&gt;update @world&lt;/li&gt;
  1559. &lt;li&gt;merge changed configuration files&lt;/li&gt;
  1560. &lt;li&gt;restart updated services&lt;/li&gt;
  1561. &lt;li&gt;do a post-update clean up&lt;/li&gt;
  1562. &lt;li&gt;read elogs&lt;/li&gt;
  1563. &lt;li&gt;read news&lt;/li&gt;
  1564. &lt;/ul&gt;
  1565. &lt;p&gt;Links:&lt;/p&gt;
  1566. &lt;ul&gt;
  1567. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/2&quot;&gt;#2&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/3&quot;&gt;#3&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/4&quot;&gt;#4&lt;/a&gt;
  1568. &lt;/li&gt;
  1569. &lt;li&gt;Docker &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/blob/main/tests/compose.yaml&quot;&gt;tests&lt;/a&gt;
  1570. &lt;/li&gt;
  1571. &lt;/ul&gt;
  1572. &lt;h3 id=&quot;week-2httpslabbratnetbloggsoc2023week2&quot;&gt;&lt;a href=&quot;https://labbrat.net/blog/gsoc2023/week2/&quot;&gt;Week 2&lt;/a&gt;&lt;/h3&gt;
  1573. &lt;p&gt;Packaged Python code, created an &lt;strong&gt;ebuild&lt;/strong&gt; and a GitHub Actions workflow that publishes package to PyPI when commit is tagged.&lt;/p&gt;
  1574. &lt;p&gt;Links:&lt;/p&gt;
  1575. &lt;ul&gt;
  1576. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/5&quot;&gt;#5&lt;/a&gt;
  1577. &lt;/li&gt;
  1578. &lt;li&gt;ebuild &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_ebuild&quot;&gt;commit&lt;/a&gt;
  1579. &lt;/li&gt;
  1580. &lt;li&gt;GitHub Actions &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/blob/main/.github/workflows/main.yml&quot;&gt;workflow&lt;/a&gt;
  1581. &lt;/li&gt;
  1582. &lt;/ul&gt;
  1583. &lt;h3 id=&quot;week-3httpsblogsgentooorggsoc20230617week-3-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/06/17/week-3-report-automated-gentoo-system-updater/&quot;&gt;Week 3&lt;/a&gt;&lt;/h3&gt;
  1584. &lt;p&gt;Fixed issue #7 and answered to issue #8 and fixed bug 908308. Added USE flags to manage dependencies. Improve Bash code stability.&lt;/p&gt;
  1585. &lt;p&gt;Links:&lt;/p&gt;
  1586. &lt;ul&gt;
  1587. &lt;li&gt;Issues: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/issues/7&quot;&gt;#7&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/issues/8&quot;&gt;#8&lt;/a&gt;
  1588. &lt;/li&gt;
  1589. &lt;li&gt;Bugs: &lt;a href=&quot;https://bugs.gentoo.org/908308&quot;&gt;908308&lt;/a&gt;
  1590. &lt;/li&gt;
  1591. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/6&quot;&gt;#6&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/9&quot;&gt;#9&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/10&quot;&gt;#10&lt;/a&gt;
  1592. &lt;/li&gt;
  1593. &lt;/ul&gt;
  1594. &lt;h3 id=&quot;week-4httpsblogsgentooorggsoc20230625week-4-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/06/25/week-4-report-automated-gentoo-system-updater/&quot;&gt;Week 4&lt;/a&gt;&lt;/h3&gt;
  1595. &lt;p&gt;Fixed errors in &lt;strong&gt;ebuild&lt;/strong&gt;, replaced USE flags with &lt;strong&gt;optfeature&lt;/strong&gt; for dependency management. Wrote a blog post to introduce my app and posted it on forums. Fixed a bug in &lt;code&gt;--args&lt;/code&gt; flag.&lt;/p&gt;
  1596. &lt;p&gt;Links:&lt;/p&gt;
  1597. &lt;ul&gt;
  1598. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/11&quot;&gt;#11&lt;/a&gt;
  1599. &lt;/li&gt;
  1600. &lt;li&gt;
  1601. &lt;a href=&quot;https://github.com/gentoo/guru/commit/bfffbe1a4bcd10a5e6a20d3ef314ac31cd00641f&quot;&gt;request&lt;/a&gt; to fix ebuild&lt;/li&gt;
  1602. &lt;li&gt;Blog &lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/06/25/gentoo_update-introduction/&quot;&gt;post&lt;/a&gt; and Forum &lt;a href=&quot;https://forums.gentoo.org/viewtopic-p-8793590.html#8793590&quot;&gt;post&lt;/a&gt;
  1603. &lt;/li&gt;
  1604. &lt;/ul&gt;
  1605. &lt;h3 id=&quot;week-5httpsblogsgentooorggsoc20230702week-5-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/07/02/week-5-report-automated-gentoo-system-updater/&quot;&gt;Week 5&lt;/a&gt;&lt;/h3&gt;
  1606. &lt;p&gt;Received some feedback from forums. Coded much of the parser (&lt;code&gt;--report&lt;/code&gt;). Improved container testing environment.&lt;/p&gt;
  1607. &lt;p&gt;Links:&lt;/p&gt;
  1608. &lt;ul&gt;
  1609. &lt;li&gt;Improved &lt;a href=&quot;https://github.com/lab-Brat/gentoo_dockerfiles&quot;&gt;dockerfiles&lt;/a&gt;
  1610. &lt;/li&gt;
  1611. &lt;/ul&gt;
  1612. &lt;h3 id=&quot;weeks-6-and-7httpsblogsgentooorggsoc20230716week-67-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/07/16/week-67-report-automated-gentoo-system-updater/&quot;&gt;Weeks 6 and 7&lt;/a&gt;&lt;/h3&gt;
  1613. &lt;p&gt;Completed parser (&lt;code&gt;--report&lt;/code&gt;). Also added disk usage calculation before and after the update. Available functionality:&lt;/p&gt;
  1614. &lt;ul&gt;
  1615. &lt;li&gt;If the update was successful, report will show:
  1616. &lt;ul&gt;
  1617. &lt;li&gt;updated package names&lt;/li&gt;
  1618. &lt;li&gt;package versions in the format “old -&amp;gt; new”&lt;/li&gt;
  1619. &lt;li&gt;USE flags of those packages&lt;/li&gt;
  1620. &lt;li&gt;disk usage before and after the update&lt;/li&gt;
  1621. &lt;/ul&gt;
  1622. &lt;/li&gt;
  1623. &lt;li&gt;If the emerge pretend has failed, report will show:
  1624. &lt;ul&gt;
  1625. &lt;li&gt;error type (for now only supports ‘blocked packages’ error)&lt;/li&gt;
  1626. &lt;li&gt;error details (for blocked package it will show problematic packages)&lt;/li&gt;
  1627. &lt;/ul&gt;
  1628. &lt;/li&gt;
  1629. &lt;/ul&gt;
  1630. &lt;p&gt;Links:&lt;/p&gt;
  1631. &lt;ul&gt;
  1632. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/12&quot;&gt;#12&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/13&quot;&gt;#13&lt;/a&gt;
  1633. &lt;/li&gt;
  1634. &lt;/ul&gt;
  1635. &lt;h3 id=&quot;week-8httpsblogsgentooorggsoc20230723week-8-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/07/23/week-8-report-automated-gentoo-system-updater/&quot;&gt;Week 8&lt;/a&gt;&lt;/h3&gt;
  1636. &lt;p&gt;Add 2 notification methods (&lt;code&gt;--send-reports&lt;/code&gt;) – IRC bot and emails via sendgrid.&lt;/p&gt;
  1637. &lt;p&gt;Links:&lt;/p&gt;
  1638. &lt;ul&gt;
  1639. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/14&quot;&gt;#14&lt;/a&gt;, &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/15&quot;&gt;#15&lt;/a&gt;
  1640. &lt;/li&gt;
  1641. &lt;/ul&gt;
  1642. &lt;h3 id=&quot;week-9-10httpsblogsgentooorggsoc20230807week-910-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/08/07/week-910-report-automated-gentoo-system-updater/&quot;&gt;Week 9-10&lt;/a&gt;&lt;/h3&gt;
  1643. &lt;p&gt;Improved CLI argument handling. Experimented with different mobile app UI layouts and backend options. Fixed issue #17. Started working on mobile app UI, decided to use Firebase for backend.&lt;/p&gt;
  1644. &lt;p&gt;Links:&lt;/p&gt;
  1645. &lt;ul&gt;
  1646. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/16&quot;&gt;#16&lt;/a&gt;
  1647. &lt;/li&gt;
  1648. &lt;li&gt;Issues: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/issues/17&quot;&gt;#17&lt;/a&gt;
  1649. &lt;/li&gt;
  1650. &lt;/ul&gt;
  1651. &lt;h3 id=&quot;week-11-12httpsblogsgentooorggsoc20230820week-1112-report-automated-gentoo-system-updater&quot;&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/08/20/week-1112-report-automated-gentoo-system-updater/&quot;&gt;Week 11-12&lt;/a&gt;&lt;/h3&gt;
  1652. &lt;p&gt;Completed mobile app (UI + backend). Created a plan to migrate to a custom self-hosted backend based on Django+MongoDB+Nginx in the future. Added &lt;code&gt;--send-reports mobile&lt;/code&gt; option to CLI. Available functionality:&lt;/p&gt;
  1653. &lt;ul&gt;
  1654. &lt;li&gt;UI
  1655. &lt;ul&gt;
  1656. &lt;li&gt;Login screen: Anonymous login&lt;/li&gt;
  1657. &lt;li&gt;Reports screen: Receive and view reports send from CLI app.&lt;/li&gt;
  1658. &lt;li&gt;Profile screen: View token, user ID and Sign Out button.&lt;/li&gt;
  1659. &lt;/ul&gt;
  1660. &lt;/li&gt;
  1661. &lt;li&gt;Backend
  1662. &lt;ul&gt;
  1663. &lt;li&gt;Create anonymous users (Cloud Functions)&lt;/li&gt;
  1664. &lt;li&gt;Create user tokens (Cloud Functions)&lt;/li&gt;
  1665. &lt;li&gt;Receive tokens in https requests, verify them, and route to users (Cloud Functions)&lt;/li&gt;
  1666. &lt;li&gt;Send push notifications (FCM)&lt;/li&gt;
  1667. &lt;li&gt;Secure database access with Firestore security rules&lt;/li&gt;
  1668. &lt;/ul&gt;
  1669. &lt;/li&gt;
  1670. &lt;/ul&gt;
  1671. &lt;p&gt;Link:&lt;/p&gt;
  1672. &lt;ul&gt;
  1673. &lt;li&gt;Pull requests: &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/pull/18&quot;&gt;#18&lt;/a&gt;
  1674. &lt;/li&gt;
  1675. &lt;li&gt;Mobile app &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;repository&lt;/a&gt;
  1676. &lt;/li&gt;
  1677. &lt;/ul&gt;
  1678. &lt;h3 id=&quot;final-week&quot;&gt;Final week&lt;/h3&gt;
  1679. &lt;p&gt;Added token encryption with Cloud Functions. Packaged mobile app with Github Actions and published to Google Play Store. Recorded a demo video and wrote gentoo_update User Guide that covers both CLI and mobile app.&lt;/p&gt;
  1680. &lt;p&gt;Links:&lt;/p&gt;
  1681. &lt;ul&gt;
  1682. &lt;li&gt;Demo &lt;a href=&quot;https://youtu.be/go6SJZBgpgg?si=bgC2xLA22_aeikOE&quot;&gt;video&lt;/a&gt;
  1683. &lt;/li&gt;
  1684. &lt;li&gt;&lt;a href=&quot;https://blogs.gentoo.org/gsoc/2023/08/27/gentoo_update-user-guide/&quot;&gt;gentoo_update User Guide&lt;/a&gt;&lt;/li&gt;
  1685. &lt;li&gt;Packaging Github Actions &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/blob/main/.github/workflows/main.yml&quot;&gt;workflow&lt;/a&gt;
  1686. &lt;/li&gt;
  1687. &lt;li&gt;Google Play &lt;a href=&quot;https://play.google.com/store/apps/details?id=net.labbrat.gentoo_update&quot;&gt;link&lt;/a&gt;
  1688. &lt;/li&gt;
  1689. &lt;li&gt;Release &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/releases&quot;&gt;page&lt;/a&gt;
  1690. &lt;/li&gt;
  1691. &lt;/ul&gt;
  1692. &lt;h2 id=&quot;project-status&quot;&gt;Project Status&lt;/h2&gt;
  1693. &lt;p&gt;I would say I’m very satisfied with the current state of the project. Almost all tasks were completed from the proposal, and there is a product that can already be used. To summarize, here is a list of deliverables:&lt;/p&gt;
  1694. &lt;ol&gt;
  1695. &lt;li&gt;
  1696. &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;Source code&lt;/a&gt; for gentoo_update CLI app&lt;/li&gt;
  1697. &lt;li&gt;gentoo_update CLI app &lt;a href=&quot;https://github.com/gentoo/guru/tree/master/app-admin/gentoo_update&quot;&gt;ebuild&lt;/a&gt; in GURU repository&lt;/li&gt;
  1698. &lt;li&gt;gentoo_update CLI app package in &lt;a href=&quot;https://pypi.org/project/gentoo-update/&quot;&gt;PyPi&lt;/a&gt;
  1699. &lt;/li&gt;
  1700. &lt;li&gt;
  1701. &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;Source code&lt;/a&gt; for mobile app&lt;/li&gt;
  1702. &lt;li&gt;Mobile app for Andoid in &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/releases/tag/1.0.1&quot;&gt;APK&lt;/a&gt;
  1703. &lt;/li&gt;
  1704. &lt;li&gt;Mobile app for Android in &lt;a href=&quot;https://play.google.com/store/apps/details?id=net.labbrat.gentoo_update&quot;&gt;Google Play&lt;/a&gt;
  1705. &lt;/li&gt;
  1706. &lt;/ol&gt;
  1707. &lt;h2 id=&quot;future-improvements&quot;&gt;Future Improvements&lt;/h2&gt;
  1708. &lt;p&gt;I plan to add a lot more features to both CLI and mobile apps. Full feature lists can be found in readme’s of both repositories:&lt;/p&gt;
  1709. &lt;ul&gt;
  1710. &lt;li&gt;CLI app upcoming &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;features&lt;/a&gt;
  1711. &lt;/li&gt;
  1712. &lt;li&gt;mobile app upcoming &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;features&lt;/a&gt;
  1713. &lt;/li&gt;
  1714. &lt;/ul&gt;
  1715. &lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
  1716. &lt;p&gt;These 12 weeks felt like a hackathon, where I had to learn new technologies very quickly and create something that works very fast. I faced many challenges and acquired a range of new skills.&lt;/p&gt;
  1717. &lt;p&gt;Over the course of this project, I coded both Linux CLI applications using Python and Bash, and mobile apps with Flutter and Firebase. To maintain the quality of my work, I tested the code in Docker containers, virtual machines and physical hardware. Additionally, I built and deployed CI/CD pipelines with GitHub Actions to automate packaging. Beyond the technical side, I engaged actively with Gentoo community, utilizing IRC chats and forums. Through these platforms, I addressed and resolved issues on both GitHub and Gentoo Bugs, enriching my understanding and refining my skills.&lt;/p&gt;
  1718. &lt;p&gt;I also would like to thank my mentor, Andrey Falko, for all his help and support. I wouldn’t have been able to finish this project without his guidance.&lt;/p&gt;
  1719. &lt;p&gt;In addition, I want to thank Google for providing such a generous opportunity for open source developers to work on bringing forth innovation.&lt;/p&gt;
  1720. &lt;p&gt;Lastly, I am grateful to Gentoo community for the feedback that’s helped me to improve the project immensely.&lt;/p&gt;
  1721.        
  1722.    </description>
  1723.    <pubDate>Sun, 27 Aug 2023 16:28:11 +0000</pubDate>
  1724.    <dc:creator>GSoC (gsoc)</dc:creator>
  1725.  </item>
  1726.  
  1727.  
  1728.  
  1729.  <item>
  1730.    <title>gentoo_update User Guide</title>
  1731.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=580</guid>
  1732.    <link>https://blogs.gentoo.org/gsoc/2023/08/27/gentoo_update-user-guide/</link>
  1733.    <description>
  1734.        
  1735.          &lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
  1736. &lt;p&gt;This article will go through the basic usage of &lt;code&gt;gentoo_update&lt;/code&gt; CLI tool and the mobile app.&lt;/p&gt;
  1737. &lt;p&gt;But before that, here is a demo of this project:&lt;/p&gt;
  1738. &lt;p&gt;&lt;/p&gt;
  1739. &lt;h2 id=&quot;gentoo_update-cli-app&quot;&gt;gentoo_update CLI App&lt;/h2&gt;
  1740. &lt;h3 id=&quot;installation&quot;&gt;Installation&lt;/h3&gt;
  1741. &lt;p&gt;&lt;code&gt;gentoo_update&lt;/code&gt; is available in GURU overlay and in PyPI. Generally, installing the program from GURU overlay is the preferred method, but PyPI will always have the most recent version.&lt;/p&gt;
  1742. &lt;p&gt;Enable GURU and install with emerge:&lt;/p&gt;
  1743. &lt;div class=&quot;highlight&quot;&gt;
  1744. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;eselect repository &lt;span class=&quot;hljs-built_in&quot;&gt;enable&lt;/span&gt; guru
  1745. emerge --ask app-admin/gentoo_update
  1746. &lt;/code&gt;&lt;/pre&gt;
  1747. &lt;/div&gt;
  1748. &lt;p&gt;Alternatively, install from PyPI with pip:&lt;/p&gt;
  1749. &lt;div class=&quot;highlight&quot;&gt;
  1750. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;python -m venv .venv_gentoo_update
  1751. source .venv_gentoo_update/bin/activate
  1752. python -m pip install gentoo_update&lt;/code&gt;&lt;/pre&gt;
  1753. &lt;h3 id=&quot;update&quot;&gt;Update&lt;/h3&gt;
  1754. &lt;p&gt;&lt;code&gt;gentoo_update&lt;/code&gt; provides 2 update modes – full and security. Full mode updates @world, and security mode uses glsa-check to find security patches, and installs them if something is found.&lt;/p&gt;
  1755. &lt;p&gt;By default, when run without flags security mode is selected:&lt;/p&gt;
  1756. &lt;div class=&quot;highlight&quot;&gt;
  1757. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;gentoo-update
  1758. &lt;/code&gt;&lt;/pre&gt;
  1759. &lt;/div&gt;
  1760. &lt;p&gt;To update @world, run:&lt;/p&gt;
  1761. &lt;div class=&quot;highlight&quot;&gt;
  1762. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;gentoo-update --update-mode full
  1763. &lt;/code&gt;&lt;/pre&gt;
  1764. &lt;/div&gt;
  1765. &lt;p&gt;Full list of available parameters and flags can be accessed with the &lt;code&gt;--help&lt;/code&gt; flag. Further examples are detailed in the repository’s &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;readme file&lt;/a&gt;.&lt;/p&gt;
  1766. &lt;p&gt;Once the update concludes, a log file gets generated at &lt;code&gt;/var/log/portage/gentoo_update/log_&amp;lt;date&amp;gt;&lt;/code&gt; (or whatever $PORTAGE_LOGDIR is set to). This log becomes the basis for the update report when the &lt;code&gt;--report&lt;/code&gt; flag is used, transforming the log details into a structured update report.&lt;/p&gt;
  1767. &lt;h3 id=&quot;send-report&quot;&gt;Send Report&lt;/h3&gt;
  1768. &lt;p&gt;The update report can be sent through three distinct methods: IRC bot, email, or mobile app.&lt;/p&gt;
  1769. &lt;p&gt;&lt;strong&gt;IRC Bot Method&lt;/strong&gt;&lt;br&gt;
  1770. Begin by registering a user on an IRC server and setting a nickname as outlined in the &lt;a href=&quot;https://libera.chat/guides/registration&quot;&gt;documentation&lt;/a&gt;. After establishing a chat channel for notifications, define the necessary environmental variables and execute the following commands:&lt;/p&gt;
  1771. &lt;div class=&quot;highlight&quot;&gt;
  1772. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; IRC_CHANNEL=&lt;span class=&quot;hljs-string&quot;&gt;&quot;#&amp;lt;irc_channel_name&amp;gt;&quot;&lt;/span&gt;
  1773. &lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; IRC_BOT_NICKNAME=&lt;span class=&quot;hljs-string&quot;&gt;&quot;&amp;lt;bot_name&amp;gt;&quot;&lt;/span&gt;
  1774. &lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; IRC_BOT_PASSWORD=&lt;span class=&quot;hljs-string&quot;&gt;&quot;&amp;lt;bot_password&amp;gt;&quot;&lt;/span&gt;
  1775. gentoo-update --send-report irc
  1776. &lt;/code&gt;&lt;/pre&gt;
  1777. &lt;/div&gt;
  1778. &lt;p&gt;&lt;strong&gt;Email via Sendgrid&lt;/strong&gt;&lt;br&gt;
  1779. To utilize Sendgrid, register for an account and generate an &lt;a href=&quot;https://docs.sendgrid.com/ui/account-and-settings/api-keys&quot;&gt;API key&lt;/a&gt;). After installing the Sendgrid Python library from GURU, save the API key in the environmental variables and use the commands below:&lt;/p&gt;
  1780. &lt;div class=&quot;highlight&quot;&gt;
  1781. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;emerge --ask dev-python/sendgrid
  1782. &lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; SENDGRID_TO=&lt;span class=&quot;hljs-string&quot;&gt;&#39;recipient@email.com&#39;&lt;/span&gt;
  1783. &lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; SENDGRID_FROM=&lt;span class=&quot;hljs-string&quot;&gt;&#39;sender@email.com&#39;&lt;/span&gt;
  1784. &lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; SENDGRID_API_KEY=&lt;span class=&quot;hljs-string&quot;&gt;&#39;SG.****************&#39;&lt;/span&gt;
  1785. gentoo-update --send-report email
  1786. &lt;/code&gt;&lt;/pre&gt;
  1787. &lt;/div&gt;
  1788. &lt;p&gt;Notifications can also be sent via the mobile app. Details on this method will be elaborated in the following section.&lt;/p&gt;
  1789. &lt;p&gt; &lt;/p&gt;
  1790. &lt;h2 id=&quot;gentoo_update-mobile-app&quot;&gt;gentoo_update Mobile App&lt;/h2&gt;
  1791. &lt;h3 id=&quot;installation-1&quot;&gt;Installation&lt;/h3&gt;
  1792. &lt;p&gt;Mobile app can either be installed from Github or Google Play Store.&lt;/p&gt;
  1793. &lt;p&gt;&lt;strong&gt;Play Store&lt;/strong&gt;&lt;/p&gt;
  1794. &lt;p&gt;App can be found by searching ‘gentoo_update’ in the Play Store, or by using &lt;a href=&quot;https://play.google.com/store/apps/details?id=net.labbrat.gentoo_update&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
  1795. &lt;p&gt;&lt;strong&gt;Manual Installation&lt;/strong&gt;&lt;br&gt;
  1796. For manual installation on an Android device, download the APK file from&lt;br&gt;
  1797. &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/releases/tag/1.0.1&quot;&gt;Releases&lt;/a&gt; tab on Github. Ensure you’ve enabled installation from &lt;a href=&quot;https://www.applivery.com/docs/mobile-app-distribution/android-unknown-sources/&quot;&gt;Unknown Sources&lt;/a&gt; before proceeding.&lt;/p&gt;
  1798. &lt;h3 id=&quot;usage&quot;&gt;Usage&lt;/h3&gt;
  1799. &lt;p&gt;The mobile app consists of three screens: Login, Reports, and Profile.&lt;/p&gt;
  1800. &lt;p&gt;Upon first use, users will see the Login screen. To proceed, select the Anonymous Login button. This action generates an account with a unique user ID and token, essential for the CLI to send reports.&lt;/p&gt;
  1801. &lt;p&gt;The Reports screen displays all reports sent using a specific token. Each entry shows the update status and report ID. For an in-depth view of any report, simply tap on it.&lt;/p&gt;
  1802. &lt;p&gt;On the Profile screen, users can find their 8-character token, which needs to be saved as the GU_TOKEN variable on the Gentoo instance. This screen also shows the AES key status, crucial for decrypting the client-side token as it’s encrypted in the database. To log out, tap the Sign Out button.&lt;br&gt;
  1803. &lt;strong&gt;Note:&lt;/strong&gt; Since only Anonymous Login is available, once logged out, returning to the same account isn’t possible.&lt;/p&gt;
  1804. &lt;p&gt;&lt;img class=&quot;wp-image-586 aligncenter&quot; src=&quot;http://blogs.gentoo.org/gsoc/files/2023/08/2_screens-300x282.jpg&quot; width=&quot;489&quot; height=&quot;460&quot;&gt;&lt;/p&gt;
  1805. &lt;h2 id=&quot;contacts&quot;&gt;Contacts&lt;/h2&gt;
  1806. &lt;p&gt;Preferred method for getting help or requesting a new feature for both CLI and mobile apps is by creating an issue in Github:&lt;/p&gt;
  1807. &lt;ul&gt;
  1808. &lt;li&gt;gentoo_update CLI &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update/issues&quot;&gt;issues page&lt;/a&gt;
  1809. &lt;/li&gt;
  1810. &lt;li&gt;Mobile app &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/issues&quot;&gt;issues page&lt;/a&gt;
  1811. &lt;/li&gt;
  1812. &lt;/ul&gt;
  1813. &lt;p&gt;Or just contact me directly via &lt;a href=&quot;mailto:labbrat_social@pm.me&quot;&gt;labbrat_social@pm.me&lt;/a&gt; and IRC. I am in most of the #gentoo IRC groups and my nick is #LabBrat.&lt;/p&gt;
  1814. &lt;h2 id=&quot;links&quot;&gt;Links&lt;/h2&gt;
  1815. &lt;ul&gt;
  1816. &lt;li&gt;[&lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;Link&lt;/a&gt;] – gentoo_update CLI repository&lt;/li&gt;
  1817. &lt;/ul&gt;
  1818. &lt;ul&gt;
  1819. &lt;li&gt;[&lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;Link&lt;/a&gt;] – Mobile App repository&lt;/li&gt;
  1820. &lt;/ul&gt;
  1821. &lt;/div&gt;
  1822.        
  1823.    </description>
  1824.    <pubDate>Sun, 27 Aug 2023 15:15:38 +0000</pubDate>
  1825.    <dc:creator>GSoC (gsoc)</dc:creator>
  1826.  </item>
  1827.  
  1828.  
  1829.  
  1830.  <item>
  1831.    <title>Week 12 report on porting Gentoo packages to modern C</title>
  1832.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=565</guid>
  1833.    <link>https://blogs.gentoo.org/gsoc/2023/08/21/week-12-report-on-porting-gentoo-packages-to-modern-c/</link>
  1834.    <description>
  1835.        
  1836.          &lt;p&gt;Hello all, hope you’re doing well. This is my week 12 report for my&lt;br&gt;
  1837. project “Porting Gentoo’s packages to modern C”&lt;/p&gt;
  1838. &lt;p&gt;Similar to last week I took up bugs from the tracker randomly and&lt;br&gt;
  1839. patched them, sending patch upstream whenever possible. Unfortunately,&lt;br&gt;
  1840. nothing new or interesting.&lt;/p&gt;
  1841. &lt;p&gt;Also been working with Juippis on masking firefox-bin and rust-bin in&lt;br&gt;
  1842. glibc llvm profile, Juippis has for now reverted the commit masking&lt;br&gt;
  1843. those bin packages, but likely a proper fix will be committed soon.&lt;/p&gt;
  1844. &lt;p&gt;Just warping things up for final review. I’m also in 1:1 contact with&lt;br&gt;
  1845. Sam in case there is some major work needed on a particular section of&lt;br&gt;
  1846. my project or a package.&lt;/p&gt;
  1847. &lt;p&gt;And to be honest, it not really much, I’ve been under the weather a bit&lt;br&gt;
  1848. and busy with some IRL stuff.&lt;/p&gt;
  1849. &lt;p&gt;This week I’ve some free time which I plan on dedicating to lapac and&lt;br&gt;
  1850. fortran bug on llvm profile. With that solved, we will be able to close&lt;br&gt;
  1851. a good number of bugs sci package related bugs and also some qemu&lt;br&gt;
  1852. related bugs (as that pull some packages like apack and lapack). I’ll&lt;br&gt;
  1853. probably also sit with Sam for this one, hopefully we’ll be able to calk&lt;br&gt;
  1854. something out.&lt;/p&gt;
  1855. &lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/p&gt;
  1856. &lt;p&gt;I forgot to mention that this is going to be the last week, so I’ll wrap things up after talking with my mentors. Also will create a separate blog post that will link all of my work throughout the weeks in brief and will be used as the final submission.&lt;/p&gt;
  1857. &lt;p&gt;Till then see yah!&lt;/p&gt;
  1858.        
  1859.    </description>
  1860.    <pubDate>Mon, 21 Aug 2023 13:49:50 +0000</pubDate>
  1861.    <dc:creator>GSoC (gsoc)</dc:creator>
  1862.  </item>
  1863.  
  1864.  
  1865.  
  1866.  <item>
  1867.    <title>Week 11+12 Report, Automated Gentoo System Updater</title>
  1868.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=562</guid>
  1869.    <link>https://blogs.gentoo.org/gsoc/2023/08/20/week-1112-report-automated-gentoo-system-updater/</link>
  1870.    <description>
  1871.        
  1872.          &lt;p&gt;This article is a summary of all the changes made on &lt;a href=&quot;https://wiki.gentoo.org/wiki/Google_Summer_of_Code/2023/Ideas/Automated_Gentoo_system_updater&quot;&gt;Automated Gentoo System Updater&lt;/a&gt; project during &lt;strong&gt;weeks 11 and 12&lt;/strong&gt; of GSoC.&lt;/p&gt;
  1873. &lt;p&gt;Project is hosted on GitHub ( &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;gentoo_update&lt;/a&gt; and &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;mobile app&lt;/a&gt;).&lt;/p&gt;
  1874. &lt;h3 id=&quot;progress-on-weeks-11-and-12&quot;&gt;Progress on Weeks 11 and 12&lt;/h3&gt;
  1875. &lt;p&gt;During last 2 weeks I’ve completed app UI and Firebase backend. Most of the work is done!&lt;/p&gt;
  1876. &lt;p&gt;I’m not entirely pleased with how the backend works. In Firebase, I ended up using:&lt;/p&gt;
  1877. &lt;ul&gt;
  1878. &lt;li&gt;Firestore (security rules defined &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/blob/main/firestore.rules&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
  1879. &lt;li&gt;Cloud Functions (defined &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter/tree/main/functions&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
  1880. &lt;li&gt;Cloud Messaging (FCM).&lt;/li&gt;
  1881. &lt;/ul&gt;
  1882. &lt;p&gt;After a user authenticates using anonymous login, a token is automatically registered in Firestore. This token is later used by &lt;code&gt;gentoo_update&lt;/code&gt; to send reports. Cloud Functions manage the token’s creation. In fact, all database write operations are handled by Cloud Functions, with users having read-only access to the data they’ve created. Here is how to send the report via token:&lt;/p&gt;
  1883. &lt;div class=&quot;highlight&quot;&gt;
  1884. &lt;pre&gt;&lt;code class=&quot;language-bash hljs&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;hljs-built_in&quot;&gt;export&lt;/span&gt; GU_TOKEN=&lt;span class=&quot;hljs-string&quot;&gt;&quot;&amp;lt;token ID&amp;gt;&quot;&lt;/span&gt;
  1885. gentoo-update --send-report mobile
  1886. &lt;/code&gt;&lt;/pre&gt;
  1887. &lt;/div&gt;
  1888. &lt;p&gt;Internally, gentoo-update talks to a Cloud Function. This function checks the token, then saves the report in Firestore for the user to access.&lt;/p&gt;
  1889. &lt;p&gt;This differs from the original idea, where I didn’t intend to save reports in Firestore. The initial plan was to have the client side listen and let Firebase route report content from the Gentoo system to the app. But this method often missed reports or stored them incorrectly, causing them to vanish from the app. To solve this, I chose to save the reports and tokens, but with encryption.&lt;/p&gt;
  1890. &lt;p&gt;I’ve came up with a solution to create a custom backend for the app, which users will be to self-host, more about in the &lt;a href=&quot;https://labbrat.net/blog/gsoc2023/week11_12/#Challenges&quot;&gt;Challenges&lt;/a&gt; section.&lt;/p&gt;
  1891. &lt;p&gt;Apart from the web app, I’ve fixed some minor issues in &lt;code&gt;gentoo-update&lt;/code&gt; and pushed the latest ebuild version to GURU repository (&lt;a href=&quot;https://github.com/gentoo/guru/commit/62522296f838eec2ca2d1324cb9a436b64f4b877&quot;&gt;commit link&lt;/a&gt;).&lt;/p&gt;
  1892. &lt;h3 id=&quot;challenges&quot;&gt;Challenges&lt;/h3&gt;
  1893. &lt;p&gt;While Firebase offers a quick way to set up a backend, it has its drawbacks:&lt;/p&gt;
  1894. &lt;ul&gt;
  1895. &lt;li&gt;Not all its best features are free.&lt;/li&gt;
  1896. &lt;li&gt;Some of its operations aren’t transparent.&lt;/li&gt;
  1897. &lt;li&gt;It doesn’t offer self-hosting.&lt;/li&gt;
  1898. &lt;li&gt;Its rate-limiting and security features aren’t as strong as needed. To tackle these concerns, I’m considering a custom backend using this tech stack: Linux + Docker + Python/Django + MongoDB + Nginx.&lt;/li&gt;
  1899. &lt;/ul&gt;
  1900. &lt;p&gt;Here’s a breakdown:&lt;/p&gt;
  1901. &lt;ul&gt;
  1902. &lt;li&gt;Django will serve as the backend, handling tasks similar to Cloud Functions.&lt;/li&gt;
  1903. &lt;li&gt;MongoDB, a document database, will take Firestore’s place.&lt;/li&gt;
  1904. &lt;li&gt;Nginx adds extra capabilities for rate-limiting, load balancing, and security checks.&lt;/li&gt;
  1905. &lt;/ul&gt;
  1906. &lt;p&gt;If necessary, MongoDB can be swapped out for a relational database because the backend will heavily utilize ORM. The same flexibility applies to Nginx.&lt;/p&gt;
  1907. &lt;p&gt;A highlight of this approach is that everything can be defined in a Docker Compose file, simplifying self-hosting for users.&lt;/p&gt;
  1908. &lt;h3 id=&quot;plans-for-week-13-final-week-&quot;&gt;Plans for Week 13 (final week &lt;img src=&quot;https://s.w.org/images/core/emoji/14.0.0/72x72/1f389.png&quot; alt=&quot;🎉&quot; class=&quot;wp-smiley&quot; style=&quot;height: 1em;&quot;&gt;)&lt;/h3&gt;
  1909. &lt;p&gt;Here is my plan for the final week of GSoC’2023:&lt;/p&gt;
  1910. &lt;ol&gt;
  1911. &lt;li&gt;Add encryption to the Firestore. I don’t want any user data to be stored in plain text.&lt;/li&gt;
  1912. &lt;li&gt;Improve some UI elements and add a pop-up with commands to copy/paste.&lt;/li&gt;
  1913. &lt;li&gt;Publish mobile app to Playstore.&lt;/li&gt;
  1914. &lt;li&gt;Write a detailed blog post on how to use the whole thing.&lt;/li&gt;
  1915. &lt;li&gt;Writa a post on forums.&lt;/li&gt;
  1916. &lt;/ol&gt;
  1917.        
  1918.    </description>
  1919.    <pubDate>Sun, 20 Aug 2023 20:59:12 +0000</pubDate>
  1920.    <dc:creator>GSoC (gsoc)</dc:creator>
  1921.  </item>
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  <item>
  1928.    <title>Week 11 report on porting Gentoo packages to modern C</title>
  1929.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=559</guid>
  1930.    <link>https://blogs.gentoo.org/gsoc/2023/08/14/week-11-report-on-porting-gentoo-packages-to-modern-c/</link>
  1931.    <description>
  1932.        
  1933.          &lt;p&gt;Hello all, hope you’re doing well. This is my week 11 report for my&lt;br&gt;
  1934. project “Porting Gentoo’s packages to modern C”&lt;/p&gt;
  1935. &lt;p&gt;Similar to last two weeks I took up bugs from the tracker randomly and&lt;br&gt;
  1936. patched them, sending patch upstream whenever possible. Unfortunately,&lt;br&gt;
  1937. nothing new or interesting.&lt;/p&gt;
  1938. &lt;p&gt;I’ve some open PRs at ::gentoo that I would like to work on and get&lt;br&gt;
  1939. reviews on from mentor/s.&lt;/p&gt;
  1940. &lt;p&gt;This coming week is going to be the last week, so I would like to few more bugs and&lt;br&gt;
  1941. start working on wrapping things up. However, I don’t plan on abandoning&lt;br&gt;
  1942. my patching work for this week (not even after GSoC) as there is still&lt;br&gt;
  1943. lots interesting packages in the tracker.&lt;/p&gt;
  1944. &lt;p&gt;Till then see yah!&lt;/p&gt;
  1945.        
  1946.    </description>
  1947.    <pubDate>Mon, 14 Aug 2023 05:30:28 +0000</pubDate>
  1948.    <dc:creator>GSoC (gsoc)</dc:creator>
  1949.  </item>
  1950.  
  1951.  
  1952.  
  1953.  <item>
  1954.    <title>Week 9+10 Report, Automated Gentoo System Updater</title>
  1955.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=556</guid>
  1956.    <link>https://blogs.gentoo.org/gsoc/2023/08/07/week-910-report-automated-gentoo-system-updater/</link>
  1957.    <description>
  1958.        
  1959.          &lt;p&gt;This article is a summary of all the changes made on &lt;a href=&quot;https://wiki.gentoo.org/wiki/Google_Summer_of_Code/2023/Ideas/Automated_Gentoo_system_updater&quot;&gt;Automated Gentoo System Updater&lt;/a&gt; project during &lt;strong&gt;weeks 9 and 10&lt;/strong&gt; of GSoC.&lt;/p&gt;
  1960. &lt;p&gt;Project is hosted on GitHub (&lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update&quot;&gt;gentoo_update&lt;/a&gt; and &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;mobile app&lt;/a&gt;).&lt;/p&gt;
  1961. &lt;h3 id=&quot;progress-on-week-10&quot;&gt;Progress on Weeks 9 and 10&lt;/h3&gt;
  1962. &lt;p&gt;I have finalized app architecture, here are the details:&lt;/p&gt;
  1963. &lt;p&gt;The app’s main functionality is to receive notification from the push server. For each user, it will create a unique API token after authentication (there is an Anonymous option). This token will be used by &lt;code&gt;gentoo_update&lt;/code&gt; to send the encrypted report to the mobile device using a push server endpoint. Update reports will be kept only on the mobile device, ensuring privacy.&lt;/p&gt;
  1964. &lt;p&gt;After much discussion, I decided to implement app’s backend in Firebase. Since GSoC is organized by Google, it seems appropriate to use their products for this project. However, future plans include the possibility of implementing a self-hosted web server, so that instead of authentication user will just enter server public IP and port.&lt;/p&gt;
  1965. &lt;p&gt;Example usage will be something like:&lt;/p&gt;
  1966. &lt;ol&gt;
  1967. &lt;li&gt;Download the app and sign-in.&lt;/li&gt;
  1968. &lt;li&gt;App will generate a token, 1 token per 1 account.&lt;/li&gt;
  1969. &lt;li&gt;Save the token into an environmental variable on Gentoo Linux.&lt;/li&gt;
  1970. &lt;li&gt;Run &lt;code&gt;gentoo_update --send-report mobile&lt;/code&gt;
  1971. &lt;/li&gt;
  1972. &lt;li&gt;Wait until notification arrives on the mobile app.&lt;/li&gt;
  1973. &lt;/ol&gt;
  1974. &lt;p&gt;I have also made some progress on the app’s code. I’ve decided to host it in another &lt;a href=&quot;https://github.com/Lab-Brat/gentoo_update_flutter&quot;&gt;repository&lt;/a&gt; because it doesn’t require direct access to &lt;code&gt;gentoo_update&lt;/code&gt;, and this way it will be easier to manage versions and set up CI/CD.&lt;/p&gt;
  1975. &lt;p&gt;Splitting tasks for the app into &lt;code&gt;UI&lt;/code&gt; and &lt;code&gt;Backend&lt;/code&gt; categories was not very efficient in practice, since two are very closely related. Here is what I have done so far:&lt;/p&gt;
  1976. &lt;ul&gt;
  1977. &lt;li&gt;Create an app layout&lt;/li&gt;
  1978. &lt;li&gt;Set up Firebase backend for the app&lt;/li&gt;
  1979. &lt;li&gt;Set up database structure for storing tokens&lt;/li&gt;
  1980. &lt;li&gt;Configure anonymous authentication&lt;/li&gt;
  1981. &lt;li&gt;UI elements for everything above&lt;/li&gt;
  1982. &lt;/ul&gt;
  1983. &lt;h3 id=&quot;challenges&quot;&gt;Challenges&lt;/h3&gt;
  1984. &lt;p&gt;I’m finding it somewhat challenging to get used to Flutter and design an modern-looking app. My comfort zone lies more in coding backend and automation tasks rather than focusing on the intricacies of UI components. Despite these challenges, I am 60% sure that in end app will look half-decent.&lt;/p&gt;
  1985. &lt;h3 id=&quot;plans-for-week-11&quot;&gt;Plans for Week 11&lt;/h3&gt;
  1986. &lt;p&gt;After week 11 I plan to have a mechanism to deliver update reports from a Gentoo Linux machine.&lt;/p&gt;
  1987.        
  1988.    </description>
  1989.    <pubDate>Mon, 07 Aug 2023 18:24:59 +0000</pubDate>
  1990.    <dc:creator>GSoC (gsoc)</dc:creator>
  1991.  </item>
  1992.  
  1993.  
  1994.  
  1995.  <item>
  1996.    <title>Week 10 report on porting Gentoo packages to modern C</title>
  1997.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=552</guid>
  1998.    <link>https://blogs.gentoo.org/gsoc/2023/08/06/week-10-report-on-porting-gentoo-packages-to-modern-c/</link>
  1999.    <description>
  2000.        
  2001.          &lt;p&gt;&lt;img class=&quot;aligncenter wp-image-553 size-large&quot; src=&quot;http://blogs.gentoo.org/gsoc/files/2023/08/gnome-llvm-1024x576.png&quot; width=&quot;640&quot; height=&quot;360&quot;&gt;&lt;/p&gt;
  2002. &lt;p&gt;Hello all, I’m here with my week 10 report of my project “Porting&lt;br&gt;
  2003. gentoo’s packages to modern C”&lt;/p&gt;
  2004. &lt;p&gt;So apart from the usual patching of packages from the tracker the most&lt;br&gt;
  2005. significant work done this week is getting GNOME desktop on llvm&lt;br&gt;
  2006. profile. But it is to be noted that the packages gui-libs/libhandy,&lt;br&gt;
  2007. dev-libs/libgee and sys-libs/libblockdev require gcc fallback&lt;br&gt;
  2008. environment. net-dialup/ppp was also on our list but thanks to Sam its&lt;br&gt;
  2009. has been patched [0] (and fix sent upstream). I’m pretty sure that&lt;br&gt;
  2010. the same work around would work on musl-llvm profile as well. Overall&lt;br&gt;
  2011. point being we now have two DEs on llvm profile, GNOME and MATE.&lt;/p&gt;
  2012. &lt;p&gt;Another thing to note is currently gui-libs/gtk-4.10.4 require&lt;br&gt;
  2013. overriding of LD to bfd and OBJCOPY to gnu objcopy, it is a dependency&lt;br&gt;
  2014. for gnome 44.3.&lt;/p&gt;
  2015. &lt;p&gt;Unfortunately, time is not my friend here and I’ve got only two weeks&lt;br&gt;
  2016. left. I’ll try fix as many as packages possible in the coming weeks,&lt;br&gt;
  2017. starting with the GNOME dependencies.&lt;/p&gt;
  2018. &lt;p&gt;Meanwhile lot of my upstream patches are merged as well, hope remaining&lt;br&gt;
  2019. ones get merged as well, [1][2] to name a few.&lt;/p&gt;
  2020. &lt;p&gt;Till then, see ya!&lt;/p&gt;
  2021. &lt;p&gt;[0]: &lt;a href=&quot;https://github.com/gentoo/gentoo/pull/32198&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; data-saferedirecturl=&quot;https://www.google.com/url?q=https://github.com/gentoo/gentoo/pull/32198&amp;amp;source=gmail&amp;amp;ust=1691434226149000&amp;amp;usg=AOvVaw2xkFtXcM3H_VGReN2a0lxp&quot;&gt;https://github.com/gentoo/gentoo/pull/32198&lt;/a&gt;&lt;br&gt;
  2022. [1]: &lt;a href=&quot;https://github.com/CruiserOne/Astrolog/pull/20&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; data-saferedirecturl=&quot;https://www.google.com/url?q=https://github.com/CruiserOne/Astrolog/pull/20&amp;amp;source=gmail&amp;amp;ust=1691434226149000&amp;amp;usg=AOvVaw1IOiK3LWFww-AH5iDolNU5&quot;&gt;https://github.com/CruiserOne/Astrolog/pull/20&lt;/a&gt;&lt;br&gt;
  2023. [2]: &lt;a href=&quot;https://github.com/cosmos72/detachtty/pull/6&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; data-saferedirecturl=&quot;https://www.google.com/url?q=https://github.com/cosmos72/detachtty/pull/6&amp;amp;source=gmail&amp;amp;ust=1691434226149000&amp;amp;usg=AOvVaw04-audAtz5vQBzpakl3AD1&quot;&gt;https://github.com/cosmos72/detachtty/pull/6&lt;/a&gt;&lt;span style=&quot;color: #888888;&quot;&gt;&lt;br&gt;
  2024. &lt;/span&gt;&lt;/p&gt;
  2025.        
  2026.    </description>
  2027.    <pubDate>Sun, 06 Aug 2023 18:53:03 +0000</pubDate>
  2028.    <dc:creator>GSoC (gsoc)</dc:creator>
  2029.  </item>
  2030.  
  2031.  
  2032.  
  2033.  <item>
  2034.    <title>Weekly report 9, LLVM-libc</title>
  2035.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=550</guid>
  2036.    <link>https://blogs.gentoo.org/gsoc/2023/08/02/weekly-report-9-llvm-libc/</link>
  2037.    <description>
  2038.        
  2039.          &lt;p&gt;Hi! This week I’ve pretty much finished the work on LLVM/Clang support&lt;br&gt;
  2040. for Crossdev and LLVM-libc ebuild(s). I have sent PRs for Crossdev and&lt;br&gt;
  2041. related ebuild changes here:&lt;/p&gt;
  2042. &lt;p&gt;https://github.com/gentoo/crossdev/pull/10&lt;br&gt;
  2043. https://github.com/gentoo/gentoo/pull/32136&lt;br&gt;
  2044. This PR includes changes for compiler-rt which are always needed for&lt;br&gt;
  2045. Clang crossdev, regardless of libc. There are also changes to musl,&lt;br&gt;
  2046. kernel-2.eclass (for linux-headers), and a new eclass, cross.eclass.&lt;/p&gt;
  2047. &lt;p&gt;I made a gentoo.git branch that has LLVM-libc, libc-hdrgen ebuilds and a&lt;br&gt;
  2048. gnuconfig patch to support&lt;br&gt;
  2049. LLVM-libc. https://github.com/gentoo/gentoo/compare/master…alfredfo:gentoo:gentoo-llvm-libc. I&lt;br&gt;
  2050. want to merge Crossdev changes and ebuilds before merging&lt;br&gt;
  2051. this. Previously all autotools based projects would fail to configure on&lt;br&gt;
  2052. LLVM-libc because there was no gnuconfig entry for it.&lt;/p&gt;
  2053. &lt;p&gt;I have also solved the problem from last week not being able to compile SCUDO&lt;br&gt;
  2054. into LLVM-libc directly. This was caused by two things, 1) LLVM-libc&lt;br&gt;
  2055. only checked for compiler-rt in LLVM_ENABLE_PROJECTS, not&lt;br&gt;
  2056. LLVM_ENABLE_RUNTIMES which is needed for using “llvm-project/runtimes”&lt;br&gt;
  2057. as root source directory (“Runtimes build”).&lt;br&gt;
  2058. Fix commit:&lt;br&gt;
  2059. https://github.com/llvm/llvm-project/commit/fe9c3c786837de74dc936f8994cd5a53dd8ee708&lt;br&gt;
  2060. 2) Many compiler-rt configure tests would fail because of LLVM-libc not&lt;br&gt;
  2061. supporting dynamic linking, and therefore disable the build of&lt;br&gt;
  2062. SCUDO. This was fixed by passing&lt;br&gt;
  2063. -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY. So now I no longer need&lt;br&gt;
  2064. to manually compile the source files and append object files into&lt;br&gt;
  2065. libc.a, yay!&lt;/p&gt;
  2066. &lt;p&gt;Now I will continue to fix packages for using LLVM-libc Crossdev, or&lt;br&gt;
  2067. more likely, add needed functionality into LLVM-libc. I will of course&lt;br&gt;
  2068. also fix any comments I get on my PRs.&lt;/p&gt;
  2069. &lt;p&gt;—&lt;br&gt;
  2070. catcream&lt;/p&gt;
  2071.        
  2072.    </description>
  2073.    <pubDate>Wed, 02 Aug 2023 01:32:02 +0000</pubDate>
  2074.    <dc:creator>GSoC (gsoc)</dc:creator>
  2075.  </item>
  2076.  
  2077.  
  2078.  
  2079.  <item>
  2080.    <title>Week 9 report on porting Gentoo packages to modern C</title>
  2081.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=547</guid>
  2082.    <link>https://blogs.gentoo.org/gsoc/2023/07/30/week-9-report-on-porting-gentoo-packages-to-modern-c/</link>
  2083.    <description>
  2084.        
  2085.          &lt;p&gt;Hello all, hope you’re doing well. This is my week 9 report for my&lt;br&gt;
  2086. project “Porting Gentoo’s packages to modern C”&lt;/p&gt;
  2087. &lt;p&gt;Similar to last week, I picked up bugs at random and started submitting&lt;br&gt;
  2088. patches. But this time I made sure to check out the upstream and send in&lt;br&gt;
  2089. patches whenever possible, if it turned out to be difficult or I&lt;br&gt;
  2090. couldn’t find upstream I made sure to make a note about it in the PR&lt;br&gt;
  2091. either via commit message or through a separate comment. This way it’ll&lt;br&gt;
  2092. help my Sam keep track of things and my progress.&lt;/p&gt;
  2093. &lt;p&gt;Apart from that nothing new or interesting unfortunately.&lt;/p&gt;
  2094. &lt;p&gt;Coming next week the plan is the same, pick up more bugs and send in&lt;br&gt;
  2095. PRs, both in ::gentoo and upstream whenever possible. I also have some&lt;br&gt;
  2096. free time coming week, so plan to make up for lost time during my sick&lt;br&gt;
  2097. days in the coming week, as there still lots of packages that require&lt;br&gt;
  2098. patching.&lt;/p&gt;
  2099. &lt;p&gt;I would like to note here, that I made an extra blog post last week&lt;br&gt;
  2100. about setting testing environment using lxc and the knowledge about&lt;br&gt;
  2101. using gentoo’s stage-3 tarballs to create custom lxc gentoo images. I&lt;br&gt;
  2102. don’t really expect anyone following it or using it, mainly put that up&lt;br&gt;
  2103. for future reference for myself.&lt;/p&gt;
  2104. &lt;p&gt;Till then, see ya!&lt;/p&gt;
  2105.        
  2106.    </description>
  2107.    <pubDate>Sun, 30 Jul 2023 18:31:18 +0000</pubDate>
  2108.    <dc:creator>GSoC (gsoc)</dc:creator>
  2109.  </item>
  2110.  
  2111.  
  2112.  
  2113.  <item>
  2114.    <title>Genkernel in 2023</title>
  2115.    <guid isPermaLink="false">urn:https-xgqt-gitlab-io:-blog-posts-2023-07-29-genkernel-in-2023</guid>
  2116.    <link>https://xgqt.gitlab.io//blog/posts/2023/07/29/genkernel-in-2023/?utm_source=gentoo&amp;utm_medium=Atom</link>
  2117.    <description>
  2118.        
  2119.          &lt;p&gt;I really wanted to look into the new kernel building solutions for Gentoo and maybe migrate to dracut, but last time I tried, ~1.5 years ago, the initreamfs was now working for me.&lt;/p&gt;
  2120.  
  2121. &lt;p&gt;And now in 2023 I’m still running genkernel for my personal boxes as well as other servers running Gentoo.&lt;/p&gt;
  2122.  
  2123. &lt;p&gt;I guess some short term solutions really become defined tools :P&lt;/p&gt;
  2124.  
  2125. &lt;p&gt;So this is how I rebuild my kernel nowadays:&lt;/p&gt;
  2126.  
  2127. &lt;ol&gt;
  2128. &lt;li&gt;
  2129.  &lt;p&gt;Copy old config&lt;/p&gt;
  2130.  &lt;div class=&quot;brush: shell&quot;&gt;
  2131.   &lt;div class=&quot;source&quot;&gt;
  2132.    &lt;table class=&quot;sourcetable&quot;&gt;
  2133.     &lt;tbody&gt;
  2134.      &lt;tr&gt;
  2135.       &lt;td class=&quot;linenos&quot;&gt;
  2136.        &lt;div class=&quot;linenodiv&quot;&gt;
  2137.         &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;
  2138. &lt;span class=&quot;normal&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;
  2139. &lt;/div&gt;
  2140. &lt;/td&gt;
  2141.       &lt;td class=&quot;code&quot;&gt;
  2142.        &lt;div&gt;
  2143.         &lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;/usr/src
  2144. cp&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;linux-6.1.38-gentoo/.config&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;linux-6.1.41-gentoo/
  2145. &lt;/pre&gt;
  2146. &lt;/div&gt;
  2147. &lt;/td&gt;
  2148. &lt;/tr&gt;
  2149. &lt;/tbody&gt;
  2150. &lt;/table&gt;
  2151. &lt;/div&gt;
  2152.  
  2153. &lt;/div&gt;
  2154. &lt;/li&gt;
  2155. &lt;li&gt;
  2156.  &lt;p&gt;Remove old kernel build directories&lt;/p&gt;
  2157.  &lt;div class=&quot;brush: shell&quot;&gt;
  2158.   &lt;div class=&quot;source&quot;&gt;
  2159.    &lt;table class=&quot;sourcetable&quot;&gt;
  2160.     &lt;tbody&gt;
  2161.      &lt;tr&gt;
  2162.       &lt;td class=&quot;linenos&quot;&gt;
  2163.        &lt;div class=&quot;linenodiv&quot;&gt;
  2164.         &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  2165. &lt;/div&gt;
  2166. &lt;/td&gt;
  2167.       &lt;td class=&quot;code&quot;&gt;
  2168.        &lt;div&gt;
  2169.         &lt;pre&gt;&lt;span&gt;&lt;/span&gt;rm&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;-r&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;linux-6.1.31-gentoo
  2170. &lt;/pre&gt;
  2171. &lt;/div&gt;
  2172. &lt;/td&gt;
  2173. &lt;/tr&gt;
  2174. &lt;/tbody&gt;
  2175. &lt;/table&gt;
  2176. &lt;/div&gt;
  2177.  
  2178. &lt;/div&gt;
  2179. &lt;/li&gt;
  2180. &lt;li&gt;
  2181.  &lt;p&gt;Run initial preparation&lt;/p&gt;
  2182.  &lt;div class=&quot;brush: shell&quot;&gt;
  2183.   &lt;div class=&quot;source&quot;&gt;
  2184.    &lt;table class=&quot;sourcetable&quot;&gt;
  2185.     &lt;tbody&gt;
  2186.      &lt;tr&gt;
  2187.       &lt;td class=&quot;linenos&quot;&gt;
  2188.        &lt;div class=&quot;linenodiv&quot;&gt;
  2189.         &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  2190. &lt;/div&gt;
  2191. &lt;/td&gt;
  2192.       &lt;td class=&quot;code&quot;&gt;
  2193.        &lt;div&gt;
  2194.         &lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;eselect&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;kernel&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;/usr/src/linux&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;make&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;olddefconfig&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
  2195. &lt;/pre&gt;
  2196. &lt;/div&gt;
  2197. &lt;/td&gt;
  2198. &lt;/tr&gt;
  2199. &lt;/tbody&gt;
  2200. &lt;/table&gt;
  2201. &lt;/div&gt;
  2202.  
  2203. &lt;/div&gt;
  2204. &lt;/li&gt;
  2205. &lt;li&gt;
  2206.  &lt;p&gt;Call genkernel&lt;/p&gt;
  2207.  &lt;div class=&quot;brush: shell&quot;&gt;
  2208.   &lt;div class=&quot;source&quot;&gt;
  2209.    &lt;table class=&quot;sourcetable&quot;&gt;
  2210.     &lt;tbody&gt;
  2211.      &lt;tr&gt;
  2212.       &lt;td class=&quot;linenos&quot;&gt;
  2213.        &lt;div class=&quot;linenodiv&quot;&gt;
  2214.         &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt; 1&lt;/span&gt;
  2215. &lt;span class=&quot;normal&quot;&gt; 2&lt;/span&gt;
  2216. &lt;span class=&quot;normal&quot;&gt; 3&lt;/span&gt;
  2217. &lt;span class=&quot;normal&quot;&gt; 4&lt;/span&gt;
  2218. &lt;span class=&quot;normal&quot;&gt; 5&lt;/span&gt;
  2219. &lt;span class=&quot;normal&quot;&gt; 6&lt;/span&gt;
  2220. &lt;span class=&quot;normal&quot;&gt; 7&lt;/span&gt;
  2221. &lt;span class=&quot;normal&quot;&gt; 8&lt;/span&gt;
  2222. &lt;span class=&quot;normal&quot;&gt; 9&lt;/span&gt;
  2223. &lt;span class=&quot;normal&quot;&gt;10&lt;/span&gt;
  2224. &lt;span class=&quot;normal&quot;&gt;11&lt;/span&gt;
  2225. &lt;span class=&quot;normal&quot;&gt;12&lt;/span&gt;&lt;/pre&gt;
  2226. &lt;/div&gt;
  2227. &lt;/td&gt;
  2228.       &lt;td class=&quot;code&quot;&gt;
  2229.        &lt;div&gt;
  2230.         &lt;pre&gt;&lt;span&gt;&lt;/span&gt;genkernel&lt;span class=&quot;w&quot;&gt;                                                       &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2231. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--no-menuconfig&lt;span class=&quot;w&quot;&gt;                                             &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2232. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--no-clean&lt;span class=&quot;w&quot;&gt;                                                  &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2233. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--no-clear-cachedir&lt;span class=&quot;w&quot;&gt;                                         &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2234. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--no-cleanup&lt;span class=&quot;w&quot;&gt;                                                &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2235. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--no-mrproper&lt;span class=&quot;w&quot;&gt;                                               &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2236. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--lvm&lt;span class=&quot;w&quot;&gt;                                                       &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2237. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--luks&lt;span class=&quot;w&quot;&gt;                                                      &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2238. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--mdadm&lt;span class=&quot;w&quot;&gt;                                                     &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2239. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--nfs&lt;span class=&quot;w&quot;&gt;                                                       &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2240. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;--kernel-localversion&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;$(&lt;/span&gt;hostname&lt;span class=&quot;k&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;$(&lt;/span&gt;date&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;+%Y.%m.%d&#39;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  2241. &lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;all
  2242. &lt;/pre&gt;
  2243. &lt;/div&gt;
  2244. &lt;/td&gt;
  2245. &lt;/tr&gt;
  2246. &lt;/tbody&gt;
  2247. &lt;/table&gt;
  2248. &lt;/div&gt;
  2249.  
  2250. &lt;/div&gt;
  2251. &lt;/li&gt;
  2252. &lt;li&gt;
  2253.  &lt;p&gt;Rebuild the modules&lt;/p&gt;
  2254.  &lt;p&gt;If in your &lt;code&gt;/etc/genkernel.conf&lt;/code&gt; you have &lt;code&gt;MODULEREBUILD&lt;/code&gt; turned off, then also call emerge:&lt;/p&gt;
  2255.  &lt;div class=&quot;brush: shell&quot;&gt;
  2256.   &lt;div class=&quot;source&quot;&gt;
  2257.    &lt;table class=&quot;sourcetable&quot;&gt;
  2258.     &lt;tbody&gt;
  2259.      &lt;tr&gt;
  2260.       &lt;td class=&quot;linenos&quot;&gt;
  2261.        &lt;div class=&quot;linenodiv&quot;&gt;
  2262.         &lt;pre&gt;&lt;span class=&quot;normal&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
  2263. &lt;/div&gt;
  2264. &lt;/td&gt;
  2265.       &lt;td class=&quot;code&quot;&gt;
  2266.        &lt;div&gt;
  2267.         &lt;pre&gt;&lt;span&gt;&lt;/span&gt;emerge&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;-1&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;@module-rebuild
  2268. &lt;/pre&gt;
  2269. &lt;/div&gt;
  2270. &lt;/td&gt;
  2271. &lt;/tr&gt;
  2272. &lt;/tbody&gt;
  2273. &lt;/table&gt;
  2274. &lt;/div&gt;
  2275.  
  2276. &lt;/div&gt;
  2277. &lt;/li&gt;
  2278. &lt;/ol&gt;
  2279.        
  2280.    </description>
  2281.    <pubDate>Sat, 29 Jul 2023 17:10:35 +0000</pubDate>
  2282.    <dc:creator>xgqt (xgqt)</dc:creator>
  2283.  </item>
  2284.  
  2285.  
  2286.  
  2287.  <item>
  2288.    <title>Weekly report 8, LLVM libc</title>
  2289.    <guid isPermaLink="false">https://blogs.gentoo.org/gsoc/?p=544</guid>
  2290.    <link>https://blogs.gentoo.org/gsoc/2023/07/24/weekly-report-8-llvm-libc/</link>
  2291.    <description>
  2292.        
  2293.          &lt;p&gt;Hi! This (and last week) I’ve spent my time polishing the LLVM/Clang&lt;br&gt;
  2294. crossdev work. I have also created ebuilds for llvm-libc, libc-hdrgen&lt;br&gt;
  2295. and also the SCUDO allocator. But I will probably bake SCUDO into the&lt;br&gt;
  2296. llvm-libc ebuild instead actually.&lt;/p&gt;
  2297. &lt;p&gt;One thing I have also made is a cross eclass that handles cross&lt;br&gt;
  2298. compilation, instead of having the same logic copy-pasted in all&lt;br&gt;
  2299. ebuilds. To differentiate a “normal” crossdev package and LLVM/Clang&lt;br&gt;
  2300. crossdev I decided to use “cross_llvm-${CTARGET}” as package category&lt;br&gt;
  2301. name. This is necessary since you need some way to tell the ebuild about&lt;br&gt;
  2302. using LLVM for cross. My initial idea was to handle all this in the&lt;br&gt;
  2303. crossdev script, but crossdev ebuilds are self-contained, and you can do&lt;br&gt;
  2304. something like “emerge cross_llvm-gentoo-linux-llvm/llvm-libc” and it&lt;br&gt;
  2305. will do the right thing without running emerge from crossdev. Hence I&lt;br&gt;
  2306. need to handle cross compilation in the ebuilds themselves, using the&lt;br&gt;
  2307. eclass. Me and sam are not sure if a new eclass is the right thing to&lt;br&gt;
  2308. do but I will continue with it until I get some more thoughts as we can&lt;br&gt;
  2309. just inline everything later without wasting any work.&lt;/p&gt;
  2310. &lt;p&gt;I feel pretty much done now except for baking SCUDO directly into the&lt;br&gt;
  2311. llvm-libc ebuild. Actually it is very simple to do but I got some issues&lt;br&gt;
  2312. with libstdc++ when using llvm/ as root source directory for the libc&lt;br&gt;
  2313. build, which is necessary to use when compiling SCUDO. Previously I used&lt;br&gt;
  2314. runtimes/ as root directory, and that worked without issue. Currently to&lt;br&gt;
  2315. work around this you can just compile the source files in&lt;br&gt;
  2316. llvm-project/compiler-rt/lib/scudo/standalone and append the object&lt;br&gt;
  2317. files into libc.a. LLVM libc then just works with crossdev and you&lt;br&gt;
  2318. can compile things with the emerge wrapper as usual, but currently a lot&lt;br&gt;
  2319. of autotools things break due to me not having specified gnuconfig for&lt;br&gt;
  2320. llvm-libc yet.&lt;/p&gt;
  2321. &lt;p&gt;I had a lot of trouble last week with sonames when doing an aarch64 musl&lt;br&gt;
  2322. crossdev setup and running binaries with qemu-user, however it turned&lt;br&gt;
  2323. out it was just a warning and it worked after setting LD_LIBRARY_PATH as&lt;br&gt;
  2324. envvar to qemu-user. I spent a loong time on this.&lt;/p&gt;
  2325. &lt;p&gt;Currently I will need to upstream changes to compiler-rt ebuild, musl&lt;br&gt;
  2326. llvm-libc ebuild, libc-hdrgen, cross.eclass, and of course crossdev.&lt;/p&gt;
  2327. &lt;p&gt;Next week I will send the changes upstream for review and continue work&lt;br&gt;
  2328. on LLVM libc, most likely simple packages like ed, and then try to get&lt;br&gt;
  2329. the missing pieces upstreamed to LLVM libc. fileno() is definitely&lt;br&gt;
  2330. needed for ed.&lt;/p&gt;
  2331. &lt;p&gt;Last week I did not write a blog post as I was in “bug hell” and worked&lt;br&gt;
  2332. on a lot of small things at once and thought “if I just finish this I&lt;br&gt;
  2333. can write a good report”, and then wednesday came, and I decided to just&lt;br&gt;
  2334. do an overview of all my work for this weeks’ blog instead &lt;img src=&quot;https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png&quot; alt=&quot;😀&quot; class=&quot;wp-smiley&quot; style=&quot;height: 1em;&quot;&gt;&lt;/p&gt;
  2335. &lt;p&gt;– —&lt;br&gt;
  2336. catcream&lt;/p&gt;
  2337.        
  2338.    </description>
  2339.    <pubDate>Mon, 24 Jul 2023 23:21:47 +0000</pubDate>
  2340.    <dc:creator>GSoC (gsoc)</dc:creator>
  2341.  </item>
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348. </channel>
  2349. </rss>
  2350.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//planet.gentoo.org/rss20.xml

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda