1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
7 <atom:link href=
"http://www.hungry.com/~pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>What is the most supported MIME type in Debian in
2025?
</title>
11 <link>http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2025_.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2025_.html
</guid>
13 <pubDate>Sat,
18 Jan
2025 10:
30:
00 +
0100</pubDate>
14 <description><p
><a href=
"http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2018_.html
">Seven
</a
>
16 <a href=
"http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html
">twelve
</a
>
17 years ago, I measured what the most supported MIME type in Debian
18 was
</a
>, first by analysing the desktop files in all packages in the
19 archive, then by analysing the DEP-
11 AppStream data set. I guess it
20 is time to repeat the measurement, only for unstable as last time:
</p
>
22 <p
><strong
>Debian Unstable:
</strong
></p
>
26 ----- -----------------------
49 <p
>The list was created like this using a sid chroot:
</p
>
52 cat /var/lib/apt/lists/*sid*_dep11_Components-amd64.yml.gz | \
53 zcat | awk
'/^ - \S+\/\S+$/ {print $
2 }
' | sort | \
54 uniq -c | sort -nr | head -
20
57 <p
>It is nice to see that the same number of packages now support PNG
58 and JPEG. Last time JPEG had more support than PNG. Most of the MIME
59 types are known to me, but the
'audio/x-scpls
' one I have no idea what
60 represent, except it being an audio format. To find the packages
61 claiming support for this format, the appstreamcli command from the
62 appstream package can be used:
65 % appstreamcli what-provides mediatype audio/x-scpls | grep Package: | sort -u
66 Package: alsaplayer-common
73 Package: cynthiune.app
80 Package: mediaconch-gui
81 Package: mediainfo-gui
93 Package: soundconverter
100 <p
>Look like several video and auto tools understand the format.
101 Similarly one can check out the number of packages supporting the STL
102 format commonly used for
3D printing:
</p
>
105 % appstreamcli what-provides mediatype model/stl | grep Package: | sort -u
108 Package: open3d-viewer
112 <p
>How strange the
113 <a href=
"https://tracker.debian.org/pkg/slic3r
">slic3r
</a
> and
114 <a href=
"https://tracker.debian.org/pkg/slic3r-prusa
">prusa-slicer
</a
>
115 packages do not support STL. Perhaps just missing package metadata?
116 Luckily the amount of package metadata in Debian is getting better,
117 and hopefully this way of locating relevant packages for any file
118 format will be the preferred one soon.
120 <p
>As usual, if you use Bitcoin and want to show your support of my
121 activities, please send Bitcoin donations to my address
122 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
127 <title>The
2025 LinuxCNC Norwegian developer gathering
</title>
128 <link>http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</link>
129 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</guid>
130 <pubDate>Sat,
11 Jan
2025 14:
30:
00 +
0100</pubDate>
131 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is
132 trotting along. And I believe this great software system for
133 numerical control of machines such as milling machines, lathes, plasma
134 cutters, routers, cutting machines, robots and hexapods, would do even
135 better with more in-person developer gatherings, so we plan to
136 organise such gathering this summer too.
</p
>
138 <p
>This year we would like to invite to a small LinuxCNC and free
139 software fabrication workshop/gathering in Norway this summer for the
140 weekend starting July
4th
2025. New this year is the slightly larger
141 scope, and we invite people also outside the LinuxCNC community to
142 join. As earlier, we suggest to organize it as an
143 <a href=
"https://en.wikipedia.org/wiki/Unconference
">unconference
</a
>,
144 where the participants create the program upon arrival.
</p
>
146 <p
>The location is a metal workshop
15 minutes drive away from to the
147 Gardermoen airport (OSL), where there is a lot of space and a hotel only
148 5 minutes away by car. We plan to fire up the barbeque in the evenings.
</p
>
150 <p
>Please let us know if you would like to join. We track the list of
151 participants on
<a href=
"https://pad.efn.no/p/linuxcnc-
2025-norway
">a
152 simple pad
</a
>, please add yourself there if you are interested in joining.
</p
>
154 <p
><a href=
"https://www.nuugfoundation.no/
">The NUUG Foundation
</a
> has on
155 our request offered to handle any money involved with this gathering,
156 in other words holding any sponsor funds and paying any bills.
157 NUUG Foundation is a spinnoff from the NUUG member organisation here
158 in Norway with long ties to the free software and open standards
159 communities.
</p
>
161 <p
>As usual we hope to find sponsors to pay for food, lodging and travel.
</p
>
163 <p
>As usual, if you use Bitcoin and want to show your support of my
164 activities, please send Bitcoin donations to my address
165 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
170 <title>New lsdvd release
0.18 after ten years
</title>
171 <link>http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</link>
172 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</guid>
173 <pubDate>Sat,
21 Dec
2024 10:
50:
00 +
0100</pubDate>
174 <description><p
>The rumors of the death of
175 <a href=
"https://sourceforge.net/projects/lsdvd/
">the lsdvd project
</a
>
176 is slightly exaggerated. And the last few months, we have been
177 working on fixing and improving it, culminating in a new release last
178 night. This is the list of changes in the new
0.18 release, as
179 <a href=
"https://sourceforge.net/p/lsdvd/mailman/message/
59108028/
">announced
180 on the project mailing list
</a
>:
</p
>
184 <li
>Simplified autoconf setup, dropped --enable-debug option.
</li
>
185 <li
>Improved video resolution reporting (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
8/
">Fixes #
8</a
>).
</li
>
186 <li
>Applied patches fetched from BSDs (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
7/
">Fixes #
7</a
>).
</li
>
187 <li
>Corrected Perl output (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
1/
">Fixes #
1</a
>).
</li
>
188 <li
>Adjusted Pan and Scan entries to produce valid XML.
</li
>
189 <li
>Changed --help output from stderr to stdout.
</li
>
190 <li
>Corrected aspect ratio and audio format formatting.
</li
>
191 <li
>Avoid segfault when hitting a NULL pointer in the IFO structure.
</li
>
192 <li
>Change build rules to supress compiler flags, to make it easier to
193 spot warnings.
</li
>
194 <li
>Set default DVD device based on OS (Linux, *BSD, Darwin)
</li
>
195 <li
>Added libdvdread DVDDiscID to output.
</li
>
196 <li
>Corrected typo in longest track value in XML format.
</li
>
197 <li
>Switched XML output to use libxml to avoid string encoding issues.
</li
>
198 <li
>Added simple build time test suite.
</li
>
199 <li
>Cleaned up language code handling and adding missing mapping for
200 language codes
'nb
' and
'nn
'.
</li
>
201 <li
>Added JSON output support using -Oj.
</li
>
204 <p
>The most exciting news to me is easy access to the DVDDiscID, which
205 make it a lot easier to identify DVD duplicates across a large
206 collection of DVDs. During testing it has proved to be very effective
207 ad identifying when DVDs in a DVD box (say all Star Wars movies) is
208 identical to DVDs sold individually (like the same Star Wars movies
209 packaged individually).
</p
>
211 <p
>Because none of the current developers got access to do tarball
212 releases on Sourceforge any more, the release is only available as
213 <a href=
"https://sourceforge.net/p/lsdvd/git/ci/
0.18/tree/
">a git
214 tag
</a
> in the repository. Lets hope it do not take ten years for the
215 next release. The project are discussing to move away from
216 Sourceforge, but it has not yet concluded.
</p
>
218 <p
>As usual, if you use Bitcoin and want to show your support of my
219 activities, please send Bitcoin donations to my address
220 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
225 <title>More than
200 orphaned Debian packages moved to git,
216 to go
</title>
226 <link>http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</link>
227 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</guid>
228 <pubDate>Thu,
11 Jul
2024 12:
30:
00 +
0200</pubDate>
229 <description><p
><a href=
"http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
">In
230 April
</a
>, I started migrating orphaned Debian packages without any
231 version control system listed in debian/control to git. This morning,
232 my Debian QA page finally reached
200 QA packages migrated. In
233 reality there are a few more, as the packages uploaded by someone else
234 after my initial upload have disappeared from my QA uploads list. As
235 I am running out of steam and will most likely focus on other parts of
236 Debian moving forward, I hope someone else will find time to continue
237 the migration to bring the number of orphaned packages without any
238 version control system down to zero. Here is the updated recipe if
239 someone want to help out.
</p
>
241 <p
>To locate packages to work on, the following one-liner can be used:
</p
>
243 <blockquote
><pre
>
244 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
245 --username=udd-mirror udd -c
"select source from sources \
246 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
247 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
248 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
249 order by random() limit
10;
"
250 </pre
></blockquote
>
252 <p
>Pick a random package from the list and run the latest edition of
254 <tt
><a href=
"http://www.hungry.com/~pere/blog/images/
2024-
07-
11-debian-snap-to-salsa.sh
">debian-snap-to-salsa
</a
></tt
>
255 with the package name as the argument to prepare a git repository with
256 the existing packaging. This will download old Debian packages from
257 <tt
>snapshot.debian.org
</tt
>. Note that very recent uploads will not
258 be included, so check out the package on
<tt
>tracker.debian.org
</tt
>.
259 Next, run
<tt
>gbp buildpackage --git-ignore-new
</tt
> to verify that
260 the package build as it should, and then visit
261 <a href=
"https://salsa.debian.org/debian/
">https://salsa.debian.org/debian/
</a
>
262 and make sure there is not already a git repository for the package
263 there. I also did
<tt
>git log -p debian/control
</tt
> and look for vcs
264 entries to check if the package used to have a git repository on
265 Alioth, and see if it can be a useful starting point moving forward.
266 If all this check out, I created a new gitlab project below the Debian
267 group on salsa, push the package source there and upload a new version.
268 I tend to also ensure build hardening is enabled, if it prove to be
269 easy, and check if I can easily fix any lintian issues or bug reports.
270 If the process took more than
20 minutes, I dropped it and moved on to
271 another package.
</p
>
273 <p
>If I found patches in debian/patches/ that were not yet passed
274 upstream, I would send an email to make sure upstream know about them.
275 This has proved to be a valuable step, and caused several new releases
276 for software that initially appeared abandoned. :)
</p
>
278 <p
>As usual, if you use Bitcoin and want to show your support of my
279 activities, please send Bitcoin donations to my address
280 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
285 <title>Some notes from the
2024 LinuxCNC Norwegian developer gathering
</title>
286 <link>http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
287 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
288 <pubDate>Wed,
10 Jul
2024 14:
45:
00 +
0200</pubDate>
289 <description><p
>The Norwegian
<a href=
"https://linuxcnc.org/
">The LinuxCNC
</a
>
290 developer gathering
2024 is over. It was a great and productive
291 weekend, and I am sad that it is over.
</p
>
293 <p
>Regular readers probably still remember what LinuxCNC is, but her
294 is a quick summary for those that forgot? LinuxCNC is a free software
295 system for numerical control of machines such as milling machines,
296 lathes, plasma cutters, routers, cutting machines, robots and
297 hexapods. It eats G-code and produce motor movement and other changes
298 to the physical world, while reading sensor input.
</p
>
300 <p
>I am not quite sure about the total head count, as not all people
301 were present at the gathering the entire weekend, but I believe it was
302 close to
10 people showing their faces at the gathering. The
"hard
303 core
" of the group, who stayed the entire weekend, were two from
304 Norway, two from Germany and one from England. I am happy with the
305 outcome from the gathering. We managed to wrap up a new stable
306 LinuxCNC release
2.9.3 and even tested it on real hardware within
307 minutes of the release. The release notes for
2.9.3 are still being
308 written, but should show up on on the project site in the next few
309 days. We managed to go through around twenty pull requests and merge
310 then into either the stable release (
2.9) or the development branch
311 (master). There are still around thirty pull requests left to
312 process, so we are not out of work yet. We even managed to
313 fix/improve a slightly worn lathe, and experiment with running a
314 mechanical clock using G-code.
</p
>
316 <p
>The evening barbeque worked well both on Saturday and Sunday. It
317 is quite fun to light up a charcoal grill using compressed air. Sadly
318 the weather was not the best, so we stayed indoors most of the
321 <p
>This gathering was made possible partly with sponsoring from both
322 <a href=
"https://www.redpill-linpro.com/
">Redpill Linpro
</a
>,
323 <a href=
"https://debian.org/
">Debian
</a
> and
324 <a href=
"https://nuugfoundation.no/
">NUUG Foundation
</a
>, and we are
325 most grateful for the support. I would also like to thank the local
326 school for lending us some furniture, and of course the rest of the
327 members of the organizers team, Asle and Bosse, for their countless
328 contributions. The gathering was such success that we want to do it
329 again next year.
</p
>
331 <p
>We plan to organize the next Norwegian LinuxCNC developer gathering
332 at the end of June next year, the weekend Friday
27th to Sunday
29th
333 of June
2025. I recommend you reserve the dates on your calendar
334 today. Other related communities are also welcome to join in, for
335 example those working on systems like FreeCAD and opencamlib, as I am
336 sure we have much in common and sharing experiences would be very
337 useful to all involved. We are of course looking for sponsors for
338 this gathering already. The total budget for this gathering was
339 around NOK
25.000 (around EUR
2.300), so our needs are quite modest.
340 Perhaps a machine or tools company would like to help out the free
341 software manufacturing community by sponsoring food, lodging and
342 transport for such gathering?
</p
>
347 <title>«Møter vi liv eller død?», pamfletten som inspirerte
</title>
348 <link>http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</link>
349 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</guid>
350 <pubDate>Tue,
4 Jun
2024 11:
30:
00 +
0200</pubDate>
351 <description><img align=
"center
" src=
"http://www.hungry.com/~pere/blog/images/
2024-
06-
04-bok-elsa-laula.svg
" width=
"20%
" align=
"center
" border=
"1"></a
>
353 <p
>Da jeg i høst hørte jeg et innslag på
354 <a href=
"https://radiorakel.no/
">radiOrakel
</a
> om en inspirerende dame
355 som levde for over hundre år siden, fikk jeg en vill ide. Elsa Laula
356 var en svensk samisk dame som ikke bare fikk utdannelsen finansiert av
357 den danske dronningen, men som gjorde så god jobb med å inspirere og
358 organisere den samiske befolkningen at det visstnok ble forslått i
359 Sverige å straffeforfølge henne for oppvigleri før hun flyttet fra
360 Sverige til Norge. Radiopraterne fortalte videre at da Elsa Laula ga
361 ut en pamflett for å inspirere samene til samling var dette den
362 første bok gitt ut av en samisk dame noensinne. Jeg fikk høre at
363 denne korte teksten kun fantes på originalspråket svensk under
364 tittelen «Inför lif eller död» og aldri var oversatt til norsk. Da
365 tenkte jeg, der jeg satt i bilen, at en norsk utgave kan vel jeg
366 fikse. Jeg har jo fått oversatt endel bøker, og en liten pamflett på
367 noen få sider burde jo være grei skuring.
</p
>
369 <p
>Den imponerende Elsa Laula, som senere la til etternavnet Renberg, har
370 blant annet fått dokumentaren
371 «
<a href=
"https://www.nrk.no/video/elsa-laula-renberg-kvinnen-som-samlet-sapmi_SAPP67002117
">Elsa
372 Laula Renberg, kvinnen som samlet Sápmi
</a
>» (
2017) av Per Kristian
373 Olsen på NRK, NRK-artikkelen
374 «
<a href=
"https://www.nrk.no/kultur/xl/et-liv-i-kamp-for-samefolkets-rettigheter-
1.13351401">Samenes
375 Jeanne d’Arc
</a
>» av Karen Brodshaug Sveen (
2017), oppgaven
376 «
<a href=
"https://nordligefolk.no/wp-content/uploads/
2020/
03/Elsa-Laulas-Info%CC%
88r-Lif-och-Do%CC%
88d.pdf
">Elsa
377 Laulas Innför lif och död – sanningsord i de lappska
378 förhållandena
</a
>» av Edel Olsen, biografien
379 «
<a href=
"https://www.siribrochjohansen.no/biografien-om-elsa-laula-renberg/
">Elsa
380 Laula Renberg - Historien om samefolkets store Minerva
</a
>» (
2015) av
381 Siri Broch Johansen og radiOrakel-podkasten
382 <a href=
"https://radiorakel.no/podcast/revolusjonen-har-et-kvinnelig-ansikt-elsa-laula/
">Revolusjonen
383 har et kvinnelig ansikt – Elsa Laula
</a
>, for å nevne de jeg har
384 finnet uten å lete spesielt hardt. En virkelig spennende dame, som i
385 tillegg til å inspirere til opprettelsen av samiske organisasjoner,
386 har inspirert til opprettelsen av Sametinget, og født seks barn der
387 fire vokste opp.
</p
>
389 <p
>I dag er jeg veldig glad for å kunne annonsere at
390 <a href=
"http://www.hungry.com/~pere/publisher/#infoerlifellerdoed2024
">bokmålsoversettelsen
391 er klar og tilgjengelig
</a
> for både bestilling på papir og
392 epub-utgave fra lulu.com, samt som nettside. Den kringkastede
393 bokinformasjonen ser slik ut:
</p
>
397 <p
>Den
27 år gamle sørsamiske kvinnen Elsa Laula ga i august
1904 ut
398 en pamflett i Stockholm. Opplaget var på
6000, finansiert av
399 Stockholmsredaktøren Gustav Hedenström, som også bidro i stiftelsen av
400 Lapparnes Centralforbund. Dette kampskriftet var den første boken gitt
401 ut av en samisk kvinne, og hadde som mål å inspirere til opprettelsen
402 av samiske foreninger over hele landet, samt skape blest om
403 sentralforbundet. Pamfletten er et politisk manifest som fortsatt
404 inspirerer i dag.
</p
>
406 <p
>Denne pamfletten er nå for første gang tilgjengelig på bokmål,
407 sammen med en nyutgivelse av originalteksten på svensk.
</p
>
411 <p
>Oversettelsen hadde ikke vært mulig uten gode hjelpere. En virkelig
412 stor innsats både i korrekturarbeidet og utforskning av arkaiske
413 svenske ord, står Axel Rosén bak. I tillegg har jeg fått innspill fra
414 Edel May Karlsen og flere andre både på språkføring og historisk
415 bakgrunn for å forstå teksten.
</p
>
417 <p
>En kuriositet som jeg oppdaget i arbeidet med oversettelsen er at
418 det ikke stemmer at denne boken ikke var oversatt til noen andre
419 språk. Anna Wuolab oversatte den til nordsamisk i
2017 i en utgave
420 gitt ut av samisk skribent- och författarförening (Bágu čálliid
421 searvi) under tittelen «Eallit vai jápmit? : duohtavuođasánit sámi
422 diliid birra = Inför lif eller död? : sanningsord i de lappska
423 förhållandena». Papirutgaven er så vidt jeg kan forstå utsolgt fra
424 forlaget og jeg har ikke klart å finne informasjonsside om boken på
425 Internett. Mulig den er mulig å få tak i som ebok, hvis en skal tro
426 <a href=
"https://search.worldcat.org/title/
1405213087">oppføring i
427 worldcat
</a
>.
</p
>
429 <p
>Oversetterrammeverket jeg har satt opp for å gjennomføre dette
430 oversettelsesprosjektet håndterer flere språk. Jeg er igang med
431 engelsk utgave, og er åpen for å også gi ut andre oversettelser hvis
432 noen er interessert i å gjøre jobben. Det hadde vært ekstra moro å gi
433 den ut på sørsamisk, det samiske språket i regionen der Elsa Laula kom
434 fra. Der er jeg som vanlig avhengig av frivillige som er også
435 interessert i å gjøre dette på dugnad.
</p
>
437 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
438 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
440 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
441 betaling med bitcoin er ikke anonymt. :)
</p
>
446 <title>The
2024 LinuxCNC Norwegian developer gathering
</title>
447 <link>http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
448 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
449 <pubDate>Fri,
31 May
2024 07:
45:
00 +
0200</pubDate>
450 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is still
451 going strong. And I believe this great software system for numerical control of
452 machines such as milling machines, lathes, plasma cutters, routers,
453 cutting machines, robots and hexapods, would do even better with more
454 in-person developer gatherings, so we plan to organise such gathering
455 this summer too.
</p
>
457 <p
>The Norwegian LinuxCNC developer gathering take place the weekend
458 Friday July
5th to
7th this year, and is open for everyone interested
459 in contributing to LinuxCNC and free software manufacturing. Up to
460 date information about the gathering can be found in
461 <a href=
"https://sourceforge.net/p/emc/mailman/emc-developers/thread/
123eaae0-f3b9-
4170-a251-b7d608f1e974%
40bofh.no/
">the
462 developer mailing list thread
</a
> where the gathering was announced.
463 Thanks to the good people at
465 <a href=
"https://www.debian.org/
">Debian
</a
> as well as leftover money
466 from last years gathering from
467 <a href=
"https://www.redpill-linpro.com/
">Redpill-Linpro
</a
> and
468 <a href=
"https://www.nuugfoundation.no/no/
">NUUG Foundation
</a
>, we
469 have enough sponsor funds to pay for food, and probably also shelter
470 for the people traveling from afar to join us. If you would like to
471 join the gathering, get in touch and add your details on
472 <a href=
"https://pad.efn.no/p/linuxcnc-
2024-norway
">the pad
</a
>.
</p
>
474 <p
>As usual, if you use Bitcoin and want to show your support of my
475 activities, please send Bitcoin donations to my address
476 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
481 <title>45 orphaned Debian packages moved to git,
391 to go
</title>
482 <link>http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</link>
483 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</guid>
484 <pubDate>Thu,
25 Apr
2024 22:
00:
00 +
0200</pubDate>
485 <description><p
>Nine days ago, I started migrating orphaned Debian packages with no
486 version control system listed in debian/control of the source to git.
487 At the time there were
438 such packages. Now there are
391,
488 according to the UDD. In reality it is slightly less, as there is a
489 delay between uploads and UDD updates. In the nine days since, I have
490 thus been able to work my way through ten percent of the packages. I
491 am starting to run out of steam, and hope someone else will also help
492 brushing some dust of these packages. Here is a recipe how to do it.
494 I start by picking a random package by querying the UDD for a list of
495 10 random packages from the set of remaining packages:
497 <blockquote
><pre
>
498 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
499 --username=udd-mirror udd -c
"select source from sources \
500 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
501 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
502 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
503 order by random() limit
10;
"
504 </pre
></blockquote
>
506 <p
>Next, I visit http://salsa.debian.org/debian and search for the
507 package name, to ensure no git repository already exist. If it does,
508 I clone it and try to get it to an uploadable state, and add the Vcs-*
509 entries in d/control to make the repository more widely known. These
510 packages are a minority, so I will not cover that use case here.
</p
>
512 <p
>For packages without an existing git repository, I run the
513 following script
<tt
>debian-snap-to-salsa
</tt
> to prepare a git
514 repository with the existing packaging.
</p
>
516 <blockquote
><pre
>
519 # See also https://bugs.debian.org/
804722#
31
523 # Move to this Standards-Version.
528 if [ -z
"$PKG
" ]; then
529 echo
"usage: $
0 <pkgname
>"
533 if [ -e
"${PKG}-salsa
" ]; then
534 echo
"error: ${PKG}-salsa already exist, aborting.
"
538 if [ -z
"ALLOWFAILURE
" ] ; then
542 # Fetch every snapshotted source package. Manually loop until all
543 # transfers succeed, as
'gbp import-dscs --debsnap
' do not fail on
545 until debsnap --force -v $PKG || $ALLOWFAILURE ; do sleep
1; done
546 mkdir ${PKG}-salsa; cd ${PKG}-salsa
549 # Specify branches to override any debian/gbp.conf file present in the
551 gbp import-dscs --debian-branch=master --upstream-branch=upstream \
552 --pristine-tar ../source-$PKG/*.dsc
554 # Add Vcs pointing to Salsa Debian project (must be manually created
556 if ! grep -q ^Vcs- debian/control ; then
557 awk
"BEGIN { s=
1 } /^\$/ { if (s==
1) { print \
"Vcs-Browser: https://salsa.debian.org/debian/$PKG\
"; print \
"Vcs-Git: https://salsa.debian.org/debian/$PKG.git\
" }; s=
0 } { print }
" < debian/control
> debian/control.new
&& mv debian/control.new debian/control
558 git commit -m
"Updated vcs in d/control to Salsa.
" debian/control
561 # Tell gbp to enforce the use of pristine-tar.
562 inifile +inifile debian/gbp.conf +create +section DEFAULT +key pristine-tar +value True
563 git add debian/gbp.conf
564 git commit -m
"Added d/gbp.conf to enforce the use of pristine-tar.
" debian/gbp.conf
566 # Update to latest Standards-Version.
567 SV=
"$(grep ^Standards-Version: debian/control|awk
'{print $
2}
')
"
568 if [ $SV_LATEST != $SV ]; then
569 sed -i
"s/\(Standards-Version: \)\(.*\)/\
1$SV_LATEST/
" debian/control
570 git commit -m
"Updated Standards-Version from $SV to $SV_LATEST.
" debian/control
573 if grep -q pkg-config debian/control; then
574 sed -i s/pkg-config/pkgconf/ debian/control
575 git commit -m
"Replaced obsolete pkg-config build dependency with pkgconf.
" debian/control
578 if grep -q libncurses5-dev debian/control; then
579 sed -i s/libncurses5-dev/libncurses-dev/ debian/control
580 git commit -m
"Replaced obsolete libncurses5-dev build dependency with libncurses-dev.
" debian/control
582 </pre
></blockquote
>
584 Some times the debsnap script fail to download some of the versions.
585 In those cases I investigate, and if I decide the failing versions
586 will not be missed, I call it using ALLOWFAILURE=true to ignore the
587 problem and create the git repository anyway.
</p
>
589 <p
>With the git repository in place, I do a test build (gbp
590 buildpackage) to ensure the build is actually working. If it does not
591 I pick a different package, or if the build failure is trivial to fix,
592 I fix it before continuing. At this stage I revisit
593 http://salsa.debian.org/debian and create the project under this group
594 for the package. I then follow the instructions to publish the local
595 git repository. Here is from a recent example:
</p
>
597 <blockquote
><pre
>
598 git remote add origin git@salsa.debian.org:debian/perl-byacc.git
599 git push --set-upstream origin master upstream pristine-tar
601 </pre
></blockquote
>
603 <p
>With a working build, I have a look at the build rules if I want to
604 remove some more dust. I normally try to move to debhelper compat
605 level
13, which involves removing debian/compat and modifying
606 debian/control to build depend on debhelper-compat (=
13). I also test
607 with
'Rules-Requires-Root: no
' in debian/control and verify in
608 debian/rules that hardening is enabled, and include all of these if
609 the package still build. If it fail to build with level
13, I try
610 with
12,
11,
10 and so on until I find a level where it build, as I do
611 not want to spend a lot of time fixing build issues.
</p
>
613 <p
>Some times, when I feel inspired, I make sure debian/copyright is
614 converted to the machine readable format, often by starting with
615 'debhelper -cc
' and then cleaning up the autogenerated content until
616 it matches realities. If I feel like it, I might also clean up
617 non-dh-based debian/rules files to use the short style dh build
620 <p
>Once I have removed all the dust I care to process for the package,
621 I run
'gbp dch
' to generate a debian/changelog entry based on the
622 commits done so far, run
'dch -r
' to switch from
'UNRELEASED
' to
623 'unstable
' and get an editor to make sure the
'QA upload
' marker is in
624 place and that all long commit descriptions are wrapped into sensible
625 lengths, run
'debcommit --release -a
' to commit and tag the new
626 debian/changelog entry, run
'debuild -S
' to build a source only
627 package, and
'dput ../perl-byacc_2.0-
10_source.changes
' to do the
628 upload. During the entire process, and many times per step, I run
629 'debuild
' to verify the changes done still work. I also some times
630 verify the set of built files using
'find debian
' to see if I can spot
631 any problems (like no file in usr/bin any more or empty package). I
632 also try to fix all lintian issues reported at the end of each
633 'debuild
' run.
</p
>
635 <p
>If I find Debian specific patches, I try to ensure their metadata
636 is fairly up to date and some times I even try to reach out to
637 upstream, to make the upstream project aware of the patches. Most of
638 my emails bounce, so the success rate is low. For projects with no
639 Homepage entry in debian/control I try to track down one, and for
640 packages with no debian/watch file I try to create one. But at least
641 for some of the packages I have been unable to find a functioning
642 upstream, and must skip both of these.
</p
>
644 <p
>If I could handle ten percent in nine days, twenty people could
645 complete the rest in less then five days. I use approximately twenty
646 minutes per package, when I have twenty minutes spare time to spend.
647 Perhaps you got twenty minutes to spare too?
</p
>
649 <p
>As usual, if you use Bitcoin and want to show your support of my
650 activities, please send Bitcoin donations to my address
651 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
653 <p
><strong
>Update
2024-
05-
04:
</strong
> There is
654 <a href=
"http://www.hungry.com/~pere/blog/images/
2024-
05-
04-debian-snap-to-salsa.sh
">an
655 updated edition of my migration script
</a
>, last updated
656 2024-
05-
04.
</p
>
661 <title>RAID status from LSI Megaraid controllers in Debian
</title>
662 <link>http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</link>
663 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</guid>
664 <pubDate>Wed,
17 Apr
2024 17:
00:
00 +
0200</pubDate>
665 <description><p
>I am happy to report that
666 <a href=
"https://github.com/namiltd/megactl
">the megactl package
</a
>,
667 useful to fetch RAID status when using the LSI Megaraid controller,
668 now is available in Debian. It passed NEW a few days ago, and is now
669 <a href=
"https://tracker.debian.org/pkg/megactl
">available in
670 unstable
</a
>, and probably showing up in testing in a weeks time. The
671 new version should provide Appstream hardware mapping and should
672 integrate nicely with isenkram.
</p
>
674 <p
>As usual, if you use Bitcoin and want to show your support of my
675 activities, please send Bitcoin donations to my address
676 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
682 <title>Time to move orphaned Debian packages to git
</title>
683 <link>http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</link>
684 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</guid>
685 <pubDate>Sun,
14 Apr
2024 09:
30:
00 +
0200</pubDate>
686 <description><p
>There are several packages in Debian without a associated git
687 repository with the packaging history. This is unfortunate and it
688 would be nice if more of these would do so. Quote a lot of these are
689 without a maintainer, ie listed as maintained by the
690 '<a href=
"https://qa.debian.org/developer.php?email=packages%
40qa.debian.org
">Debian
691 QA Group
</a
>' place holder. In fact,
438 packages have this property
692 according to UDD (
<tt
>SELECT source FROM sources WHERE release =
'sid
'
693 AND (vcs_url ilike
'%anonscm.debian.org%
' OR vcs_browser ilike
694 '%anonscm.debian.org%
' or vcs_url IS NULL OR vcs_browser IS NULL) AND
695 maintainer ilike
'%packages@qa.debian.org%
';
</tt
>). Such packages can
696 be updated without much coordination by any Debian developer, as they
697 are considered orphaned.
</p
>
699 <p
>To try to improve the situation and reduce the number of packages
700 without associated git repository, I started a few days ago to search
701 out candiates and provide them with a git repository under the
702 'debian
' collaborative Salsa project. I started with the packages
703 pointing to obsolete Alioth git repositories, and am now working my
704 way across the ones completely without git references. In addition to
705 updating the Vcs-* debian/control fields, I try to update
706 Standards-Version, debhelper compat level, simplify d/rules, switch to
707 Rules-Requires-Root: no and fix lintian issues reported. I only
708 implement those that are trivial to fix, to avoid spending too much
709 time on each orphaned package. So far my experience is that it take
710 aproximately
20 minutes to convert a package without any git
711 references, and a lot more for packages with existing git repositories
712 incompatible with git-buildpackages.
</p
>
714 <p
>So far I have converted
10 packages, and I will keep going until I
715 run out of steam. As should be clear from the numbers, there is
716 enough packages remaining for more people to do the same without
717 stepping on each others toes. I find it useful to start by searching
718 for a git repo already on salsa, as I find that some times a git repo
719 has already been created, but no new version is uploaded to Debian
720 yet. In those cases I start with the existing git repository. I
721 convert to the git-buildpackage+pristine-tar workflow, and ensure a
722 debian/gbp.conf file with
"pristine-tar=True
" is added early, to avoid
723 uploading a orig.tar.gz with the wrong checksum by mistake. Did that
724 three times in the begin before I remembered my mistake.
</p
>
726 <p
>So, if you are a Debian Developer and got some spare time, perhaps
727 considering migrating some orphaned packages to git?
</p
>
729 <p
>As usual, if you use Bitcoin and want to show your support of my
730 activities, please send Bitcoin donations to my address
731 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>