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>The
2025 LinuxCNC Norwegian developer gathering
</title>
11 <link>http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</guid>
13 <pubDate>Sat,
11 Jan
2025 14:
30:
00 +
0100</pubDate>
14 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is
15 trotting along. And I believe this great software system for
16 numerical control of machines such as milling machines, lathes, plasma
17 cutters, routers, cutting machines, robots and hexapods, would do even
18 better with more in-person developer gatherings, so we plan to
19 organise such gathering this summer too.
</p
>
21 <p
>This year we would like to invite to a small LinuxCNC and free
22 software fabrication workshop/gathering in Norway this summer for the
23 weekend starting July
4th
2024. New this year is the slightly larger
24 scope, and we invite people also outside the LinuxCNC community to
25 join. As earlier, we suggest to organize it as an
26 <a href=
"https://en.wikipedia.org/wiki/Unconference
">unconference
</a
>,
27 where the participants create the program upon arrival.
</p
>
29 <p
>The location is a metal workshop
15 minutes drive away from to the
30 Gardermoen airport (OSL), where there is a lot of space and a hotel only
31 5 minutes away by car. We plan to fire up the barbeque in the evenings.
</p
>
33 <p
>Please let us know if you would like to join. We track the list of
34 participants on
<a href=https://pad.efn.no/p/linuxcnc-
2025-norway
">a
35 simple pad
</a
>, please add yourself there if you are interested in joining.
</p
>
37 <p
><a href=
"https://www.nuugfoundation.no/
">The NUUG Foundation
</a
> has on
38 our request offered to handle any money involved with this gathering,
39 in other words holding any sponsor funds and paying any bills.
40 NUUG Foundation is a spinnoff from the NUUG member organisation here
41 in Norway with long ties to the free software and open standards
42 communities.
</p
>
44 <p
>As usual we hope to find sponsors to pay for food, lodging and travel.
</p
>
46 <p
>As usual, if you use Bitcoin and want to show your support of my
47 activities, please send Bitcoin donations to my address
48 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
53 <title>New lsdvd release
0.18 after ten years
</title>
54 <link>http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</link>
55 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</guid>
56 <pubDate>Sat,
21 Dec
2024 10:
50:
00 +
0100</pubDate>
57 <description><p
>The rumors of the death of
58 <a href=
"https://sourceforge.net/projects/lsdvd/
">the lsdvd project
</a
>
59 is slightly exaggerated. And the last few months, we have been
60 working on fixing and improving it, culminating in a new release last
61 night. This is the list of changes in the new
0.18 release, as
62 <a href=
"https://sourceforge.net/p/lsdvd/mailman/message/
59108028/
">announced
63 on the project mailing list
</a
>:
</p
>
67 <li
>Simplified autoconf setup, dropped --enable-debug option.
</li
>
68 <li
>Improved video resolution reporting (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
8/
">Fixes #
8</a
>).
</li
>
69 <li
>Applied patches fetched from BSDs (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
7/
">Fixes #
7</a
>).
</li
>
70 <li
>Corrected Perl output (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
1/
">Fixes #
1</a
>).
</li
>
71 <li
>Adjusted Pan and Scan entries to produce valid XML.
</li
>
72 <li
>Changed --help output from stderr to stdout.
</li
>
73 <li
>Corrected aspect ratio and audio format formatting.
</li
>
74 <li
>Avoid segfault when hitting a NULL pointer in the IFO structure.
</li
>
75 <li
>Change build rules to supress compiler flags, to make it easier to
76 spot warnings.
</li
>
77 <li
>Set default DVD device based on OS (Linux, *BSD, Darwin)
</li
>
78 <li
>Added libdvdread DVDDiscID to output.
</li
>
79 <li
>Corrected typo in longest track value in XML format.
</li
>
80 <li
>Switched XML output to use libxml to avoid string encoding issues.
</li
>
81 <li
>Added simple build time test suite.
</li
>
82 <li
>Cleaned up language code handling and adding missing mapping for
83 language codes
'nb
' and
'nn
'.
</li
>
84 <li
>Added JSON output support using -Oj.
</li
>
87 <p
>The most exciting news to me is easy access to the DVDDiscID, which
88 make it a lot easier to identify DVD duplicates across a large
89 collection of DVDs. During testing it has proved to be very effective
90 ad identifying when DVDs in a DVD box (say all Star Wars movies) is
91 identical to DVDs sold individually (like the same Star Wars movies
92 packaged individually).
</p
>
94 <p
>Because none of the current developers got access to do tarball
95 releases on Sourceforge any more, the release is only available as
96 <a href=
"https://sourceforge.net/p/lsdvd/git/ci/
0.18/tree/
">a git
97 tag
</a
> in the repository. Lets hope it do not take ten years for the
98 next release. The project are discussing to move away from
99 Sourceforge, but it has not yet concluded.
</p
>
101 <p
>As usual, if you use Bitcoin and want to show your support of my
102 activities, please send Bitcoin donations to my address
103 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
108 <title>More than
200 orphaned Debian packages moved to git,
216 to go
</title>
109 <link>http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</link>
110 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</guid>
111 <pubDate>Thu,
11 Jul
2024 12:
30:
00 +
0200</pubDate>
112 <description><p
><a href=
"http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
">In
113 April
</a
>, I started migrating orphaned Debian packages without any
114 version control system listed in debian/control to git. This morning,
115 my Debian QA page finally reached
200 QA packages migrated. In
116 reality there are a few more, as the packages uploaded by someone else
117 after my initial upload have disappeared from my QA uploads list. As
118 I am running out of steam and will most likely focus on other parts of
119 Debian moving forward, I hope someone else will find time to continue
120 the migration to bring the number of orphaned packages without any
121 version control system down to zero. Here is the updated recipe if
122 someone want to help out.
</p
>
124 <p
>To locate packages to work on, the following one-liner can be used:
</p
>
126 <blockquote
><pre
>
127 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
128 --username=udd-mirror udd -c
"select source from sources \
129 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
130 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
131 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
132 order by random() limit
10;
"
133 </pre
></blockquote
>
135 <p
>Pick a random package from the list and run the latest edition of
137 <tt
><a href=
"http://www.hungry.com/~pere/blog/images/
2024-
07-
11-debian-snap-to-salsa.sh
">debian-snap-to-salsa
</a
></tt
>
138 with the package name as the argument to prepare a git repository with
139 the existing packaging. This will download old Debian packages from
140 <tt
>snapshot.debian.org
</tt
>. Note that very recent uploads will not
141 be included, so check out the package on
<tt
>tracker.debian.org
</tt
>.
142 Next, run
<tt
>gbp buildpackage --git-ignore-new
</tt
> to verify that
143 the package build as it should, and then visit
144 <a href=
"https://salsa.debian.org/debian/
">https://salsa.debian.org/debian/
</a
>
145 and make sure there is not already a git repository for the package
146 there. I also did
<tt
>git log -p debian/control
</tt
> and look for vcs
147 entries to check if the package used to have a git repository on
148 Alioth, and see if it can be a useful starting point moving forward.
149 If all this check out, I created a new gitlab project below the Debian
150 group on salsa, push the package source there and upload a new version.
151 I tend to also ensure build hardening is enabled, if it prove to be
152 easy, and check if I can easily fix any lintian issues or bug reports.
153 If the process took more than
20 minutes, I dropped it and moved on to
154 another package.
</p
>
156 <p
>If I found patches in debian/patches/ that were not yet passed
157 upstream, I would send an email to make sure upstream know about them.
158 This has proved to be a valuable step, and caused several new releases
159 for software that initially appeared abandoned. :)
</p
>
161 <p
>As usual, if you use Bitcoin and want to show your support of my
162 activities, please send Bitcoin donations to my address
163 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
168 <title>Some notes from the
2024 LinuxCNC Norwegian developer gathering
</title>
169 <link>http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
170 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
171 <pubDate>Wed,
10 Jul
2024 14:
45:
00 +
0200</pubDate>
172 <description><p
>The Norwegian
<a href=
"https://linuxcnc.org/
">The LinuxCNC
</a
>
173 developer gathering
2024 is over. It was a great and productive
174 weekend, and I am sad that it is over.
</p
>
176 <p
>Regular readers probably still remember what LinuxCNC is, but her
177 is a quick summary for those that forgot? LinuxCNC is a free software
178 system for numerical control of machines such as milling machines,
179 lathes, plasma cutters, routers, cutting machines, robots and
180 hexapods. It eats G-code and produce motor movement and other changes
181 to the physical world, while reading sensor input.
</p
>
183 <p
>I am not quite sure about the total head count, as not all people
184 were present at the gathering the entire weekend, but I believe it was
185 close to
10 people showing their faces at the gathering. The
"hard
186 core
" of the group, who stayed the entire weekend, were two from
187 Norway, two from Germany and one from England. I am happy with the
188 outcome from the gathering. We managed to wrap up a new stable
189 LinuxCNC release
2.9.3 and even tested it on real hardware within
190 minutes of the release. The release notes for
2.9.3 are still being
191 written, but should show up on on the project site in the next few
192 days. We managed to go through around twenty pull requests and merge
193 then into either the stable release (
2.9) or the development branch
194 (master). There are still around thirty pull requests left to
195 process, so we are not out of work yet. We even managed to
196 fix/improve a slightly worn lathe, and experiment with running a
197 mechanical clock using G-code.
</p
>
199 <p
>The evening barbeque worked well both on Saturday and Sunday. It
200 is quite fun to light up a charcoal grill using compressed air. Sadly
201 the weather was not the best, so we stayed indoors most of the
204 <p
>This gathering was made possible partly with sponsoring from both
205 <a href=
"https://www.redpill-linpro.com/
">Redpill Linpro
</a
>,
206 <a href=
"https://debian.org/
">Debian
</a
> and
207 <a href=
"https://nuugfoundation.no/
">NUUG Foundation
</a
>, and we are
208 most grateful for the support. I would also like to thank the local
209 school for lending us some furniture, and of course the rest of the
210 members of the organizers team, Asle and Bosse, for their countless
211 contributions. The gathering was such success that we want to do it
212 again next year.
</p
>
214 <p
>We plan to organize the next Norwegian LinuxCNC developer gathering
215 at the end of June next year, the weekend Friday
27th to Sunday
29th
216 of June
2025. I recommend you reserve the dates on your calendar
217 today. Other related communities are also welcome to join in, for
218 example those working on systems like FreeCAD and opencamlib, as I am
219 sure we have much in common and sharing experiences would be very
220 useful to all involved. We are of course looking for sponsors for
221 this gathering already. The total budget for this gathering was
222 around NOK
25.000 (around EUR
2.300), so our needs are quite modest.
223 Perhaps a machine or tools company would like to help out the free
224 software manufacturing community by sponsoring food, lodging and
225 transport for such gathering?
</p
>
230 <title>«Møter vi liv eller død?», pamfletten som inspirerte
</title>
231 <link>http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</link>
232 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</guid>
233 <pubDate>Tue,
4 Jun
2024 11:
30:
00 +
0200</pubDate>
234 <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
>
236 <p
>Da jeg i høst hørte jeg et innslag på
237 <a href=
"https://radiorakel.no/
">radiOrakel
</a
> om en inspirerende dame
238 som levde for over hundre år siden, fikk jeg en vill ide. Elsa Laula
239 var en svensk samisk dame som ikke bare fikk utdannelsen finansiert av
240 den danske dronningen, men som gjorde så god jobb med å inspirere og
241 organisere den samiske befolkningen at det visstnok ble forslått i
242 Sverige å straffeforfølge henne for oppvigleri før hun flyttet fra
243 Sverige til Norge. Radiopraterne fortalte videre at da Elsa Laula ga
244 ut en pamflett for å inspirere samene til samling var dette den
245 første bok gitt ut av en samisk dame noensinne. Jeg fikk høre at
246 denne korte teksten kun fantes på originalspråket svensk under
247 tittelen «Inför lif eller död» og aldri var oversatt til norsk. Da
248 tenkte jeg, der jeg satt i bilen, at en norsk utgave kan vel jeg
249 fikse. Jeg har jo fått oversatt endel bøker, og en liten pamflett på
250 noen få sider burde jo være grei skuring.
</p
>
252 <p
>Den imponerende Elsa Laula, som senere la til etternavnet Renberg, har
253 blant annet fått dokumentaren
254 «
<a href=
"https://www.nrk.no/video/elsa-laula-renberg-kvinnen-som-samlet-sapmi_SAPP67002117
">Elsa
255 Laula Renberg, kvinnen som samlet Sápmi
</a
>» (
2017) av Per Kristian
256 Olsen på NRK, NRK-artikkelen
257 «
<a href=
"https://www.nrk.no/kultur/xl/et-liv-i-kamp-for-samefolkets-rettigheter-
1.13351401">Samenes
258 Jeanne d’Arc
</a
>» av Karen Brodshaug Sveen (
2017), oppgaven
259 «
<a href=
"https://nordligefolk.no/wp-content/uploads/
2020/
03/Elsa-Laulas-Info%CC%
88r-Lif-och-Do%CC%
88d.pdf
">Elsa
260 Laulas Innför lif och död – sanningsord i de lappska
261 förhållandena
</a
>» av Edel Olsen, biografien
262 «
<a href=
"https://www.siribrochjohansen.no/biografien-om-elsa-laula-renberg/
">Elsa
263 Laula Renberg - Historien om samefolkets store Minerva
</a
>» (
2015) av
264 Siri Broch Johansen og radiOrakel-podkasten
265 <a href=
"https://radiorakel.no/podcast/revolusjonen-har-et-kvinnelig-ansikt-elsa-laula/
">Revolusjonen
266 har et kvinnelig ansikt – Elsa Laula
</a
>, for å nevne de jeg har
267 finnet uten å lete spesielt hardt. En virkelig spennende dame, som i
268 tillegg til å inspirere til opprettelsen av samiske organisasjoner,
269 har inspirert til opprettelsen av Sametinget, og født seks barn der
270 fire vokste opp.
</p
>
272 <p
>I dag er jeg veldig glad for å kunne annonsere at
273 <a href=
"http://www.hungry.com/~pere/publisher/#infoerlifellerdoed2024
">bokmålsoversettelsen
274 er klar og tilgjengelig
</a
> for både bestilling på papir og
275 epub-utgave fra lulu.com, samt som nettside. Den kringkastede
276 bokinformasjonen ser slik ut:
</p
>
280 <p
>Den
27 år gamle sørsamiske kvinnen Elsa Laula ga i august
1904 ut
281 en pamflett i Stockholm. Opplaget var på
6000, finansiert av
282 Stockholmsredaktøren Gustav Hedenström, som også bidro i stiftelsen av
283 Lapparnes Centralforbund. Dette kampskriftet var den første boken gitt
284 ut av en samisk kvinne, og hadde som mål å inspirere til opprettelsen
285 av samiske foreninger over hele landet, samt skape blest om
286 sentralforbundet. Pamfletten er et politisk manifest som fortsatt
287 inspirerer i dag.
</p
>
289 <p
>Denne pamfletten er nå for første gang tilgjengelig på bokmål,
290 sammen med en nyutgivelse av originalteksten på svensk.
</p
>
294 <p
>Oversettelsen hadde ikke vært mulig uten gode hjelpere. En virkelig
295 stor innsats både i korrekturarbeidet og utforskning av arkaiske
296 svenske ord, står Axel Rosén bak. I tillegg har jeg fått innspill fra
297 Edel May Karlsen og flere andre både på språkføring og historisk
298 bakgrunn for å forstå teksten.
</p
>
300 <p
>En kuriositet som jeg oppdaget i arbeidet med oversettelsen er at
301 det ikke stemmer at denne boken ikke var oversatt til noen andre
302 språk. Anna Wuolab oversatte den til nordsamisk i
2017 i en utgave
303 gitt ut av samisk skribent- och författarförening (Bágu čálliid
304 searvi) under tittelen «Eallit vai jápmit? : duohtavuođasánit sámi
305 diliid birra = Inför lif eller död? : sanningsord i de lappska
306 förhållandena». Papirutgaven er så vidt jeg kan forstå utsolgt fra
307 forlaget og jeg har ikke klart å finne informasjonsside om boken på
308 Internett. Mulig den er mulig å få tak i som ebok, hvis en skal tro
309 <a href=
"https://search.worldcat.org/title/
1405213087">oppføring i
310 worldcat
</a
>.
</p
>
312 <p
>Oversetterrammeverket jeg har satt opp for å gjennomføre dette
313 oversettelsesprosjektet håndterer flere språk. Jeg er igang med
314 engelsk utgave, og er åpen for å også gi ut andre oversettelser hvis
315 noen er interessert i å gjøre jobben. Det hadde vært ekstra moro å gi
316 den ut på sørsamisk, det samiske språket i regionen der Elsa Laula kom
317 fra. Der er jeg som vanlig avhengig av frivillige som er også
318 interessert i å gjøre dette på dugnad.
</p
>
320 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
321 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
323 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
324 betaling med bitcoin er ikke anonymt. :)
</p
>
329 <title>The
2024 LinuxCNC Norwegian developer gathering
</title>
330 <link>http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
331 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
332 <pubDate>Fri,
31 May
2024 07:
45:
00 +
0200</pubDate>
333 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is still
334 going strong. And I believe this great software system for numerical control of
335 machines such as milling machines, lathes, plasma cutters, routers,
336 cutting machines, robots and hexapods, would do even better with more
337 in-person developer gatherings, so we plan to organise such gathering
338 this summer too.
</p
>
340 <p
>The Norwegian LinuxCNC developer gathering take place the weekend
341 Friday July
5th to
7th this year, and is open for everyone interested
342 in contributing to LinuxCNC and free software manufacturing. Up to
343 date information about the gathering can be found in
344 <a href=
"https://sourceforge.net/p/emc/mailman/emc-developers/thread/
123eaae0-f3b9-
4170-a251-b7d608f1e974%
40bofh.no/
">the
345 developer mailing list thread
</a
> where the gathering was announced.
346 Thanks to the good people at
348 <a href=
"https://www.debian.org/
">Debian
</a
> as well as leftover money
349 from last years gathering from
350 <a href=
"https://www.redpill-linpro.com/
">Redpill-Linpro
</a
> and
351 <a href=
"https://www.nuugfoundation.no/no/
">NUUG Foundation
</a
>, we
352 have enough sponsor funds to pay for food, and probably also shelter
353 for the people traveling from afar to join us. If you would like to
354 join the gathering, get in touch and add your details on
355 <a href=
"https://pad.efn.no/p/linuxcnc-
2024-norway
">the pad
</a
>.
</p
>
357 <p
>As usual, if you use Bitcoin and want to show your support of my
358 activities, please send Bitcoin donations to my address
359 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
364 <title>45 orphaned Debian packages moved to git,
391 to go
</title>
365 <link>http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</link>
366 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</guid>
367 <pubDate>Thu,
25 Apr
2024 22:
00:
00 +
0200</pubDate>
368 <description><p
>Nine days ago, I started migrating orphaned Debian packages with no
369 version control system listed in debian/control of the source to git.
370 At the time there were
438 such packages. Now there are
391,
371 according to the UDD. In reality it is slightly less, as there is a
372 delay between uploads and UDD updates. In the nine days since, I have
373 thus been able to work my way through ten percent of the packages. I
374 am starting to run out of steam, and hope someone else will also help
375 brushing some dust of these packages. Here is a recipe how to do it.
377 I start by picking a random package by querying the UDD for a list of
378 10 random packages from the set of remaining packages:
380 <blockquote
><pre
>
381 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
382 --username=udd-mirror udd -c
"select source from sources \
383 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
384 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
385 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
386 order by random() limit
10;
"
387 </pre
></blockquote
>
389 <p
>Next, I visit http://salsa.debian.org/debian and search for the
390 package name, to ensure no git repository already exist. If it does,
391 I clone it and try to get it to an uploadable state, and add the Vcs-*
392 entries in d/control to make the repository more widely known. These
393 packages are a minority, so I will not cover that use case here.
</p
>
395 <p
>For packages without an existing git repository, I run the
396 following script
<tt
>debian-snap-to-salsa
</tt
> to prepare a git
397 repository with the existing packaging.
</p
>
399 <blockquote
><pre
>
402 # See also https://bugs.debian.org/
804722#
31
406 # Move to this Standards-Version.
411 if [ -z
"$PKG
" ]; then
412 echo
"usage: $
0 <pkgname
>"
416 if [ -e
"${PKG}-salsa
" ]; then
417 echo
"error: ${PKG}-salsa already exist, aborting.
"
421 if [ -z
"ALLOWFAILURE
" ] ; then
425 # Fetch every snapshotted source package. Manually loop until all
426 # transfers succeed, as
'gbp import-dscs --debsnap
' do not fail on
428 until debsnap --force -v $PKG || $ALLOWFAILURE ; do sleep
1; done
429 mkdir ${PKG}-salsa; cd ${PKG}-salsa
432 # Specify branches to override any debian/gbp.conf file present in the
434 gbp import-dscs --debian-branch=master --upstream-branch=upstream \
435 --pristine-tar ../source-$PKG/*.dsc
437 # Add Vcs pointing to Salsa Debian project (must be manually created
439 if ! grep -q ^Vcs- debian/control ; then
440 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
441 git commit -m
"Updated vcs in d/control to Salsa.
" debian/control
444 # Tell gbp to enforce the use of pristine-tar.
445 inifile +inifile debian/gbp.conf +create +section DEFAULT +key pristine-tar +value True
446 git add debian/gbp.conf
447 git commit -m
"Added d/gbp.conf to enforce the use of pristine-tar.
" debian/gbp.conf
449 # Update to latest Standards-Version.
450 SV=
"$(grep ^Standards-Version: debian/control|awk
'{print $
2}
')
"
451 if [ $SV_LATEST != $SV ]; then
452 sed -i
"s/\(Standards-Version: \)\(.*\)/\
1$SV_LATEST/
" debian/control
453 git commit -m
"Updated Standards-Version from $SV to $SV_LATEST.
" debian/control
456 if grep -q pkg-config debian/control; then
457 sed -i s/pkg-config/pkgconf/ debian/control
458 git commit -m
"Replaced obsolete pkg-config build dependency with pkgconf.
" debian/control
461 if grep -q libncurses5-dev debian/control; then
462 sed -i s/libncurses5-dev/libncurses-dev/ debian/control
463 git commit -m
"Replaced obsolete libncurses5-dev build dependency with libncurses-dev.
" debian/control
465 </pre
></blockquote
>
467 Some times the debsnap script fail to download some of the versions.
468 In those cases I investigate, and if I decide the failing versions
469 will not be missed, I call it using ALLOWFAILURE=true to ignore the
470 problem and create the git repository anyway.
</p
>
472 <p
>With the git repository in place, I do a test build (gbp
473 buildpackage) to ensure the build is actually working. If it does not
474 I pick a different package, or if the build failure is trivial to fix,
475 I fix it before continuing. At this stage I revisit
476 http://salsa.debian.org/debian and create the project under this group
477 for the package. I then follow the instructions to publish the local
478 git repository. Here is from a recent example:
</p
>
480 <blockquote
><pre
>
481 git remote add origin git@salsa.debian.org:debian/perl-byacc.git
482 git push --set-upstream origin master upstream pristine-tar
484 </pre
></blockquote
>
486 <p
>With a working build, I have a look at the build rules if I want to
487 remove some more dust. I normally try to move to debhelper compat
488 level
13, which involves removing debian/compat and modifying
489 debian/control to build depend on debhelper-compat (=
13). I also test
490 with
'Rules-Requires-Root: no
' in debian/control and verify in
491 debian/rules that hardening is enabled, and include all of these if
492 the package still build. If it fail to build with level
13, I try
493 with
12,
11,
10 and so on until I find a level where it build, as I do
494 not want to spend a lot of time fixing build issues.
</p
>
496 <p
>Some times, when I feel inspired, I make sure debian/copyright is
497 converted to the machine readable format, often by starting with
498 'debhelper -cc
' and then cleaning up the autogenerated content until
499 it matches realities. If I feel like it, I might also clean up
500 non-dh-based debian/rules files to use the short style dh build
503 <p
>Once I have removed all the dust I care to process for the package,
504 I run
'gbp dch
' to generate a debian/changelog entry based on the
505 commits done so far, run
'dch -r
' to switch from
'UNRELEASED
' to
506 'unstable
' and get an editor to make sure the
'QA upload
' marker is in
507 place and that all long commit descriptions are wrapped into sensible
508 lengths, run
'debcommit --release -a
' to commit and tag the new
509 debian/changelog entry, run
'debuild -S
' to build a source only
510 package, and
'dput ../perl-byacc_2.0-
10_source.changes
' to do the
511 upload. During the entire process, and many times per step, I run
512 'debuild
' to verify the changes done still work. I also some times
513 verify the set of built files using
'find debian
' to see if I can spot
514 any problems (like no file in usr/bin any more or empty package). I
515 also try to fix all lintian issues reported at the end of each
516 'debuild
' run.
</p
>
518 <p
>If I find Debian specific patches, I try to ensure their metadata
519 is fairly up to date and some times I even try to reach out to
520 upstream, to make the upstream project aware of the patches. Most of
521 my emails bounce, so the success rate is low. For projects with no
522 Homepage entry in debian/control I try to track down one, and for
523 packages with no debian/watch file I try to create one. But at least
524 for some of the packages I have been unable to find a functioning
525 upstream, and must skip both of these.
</p
>
527 <p
>If I could handle ten percent in nine days, twenty people could
528 complete the rest in less then five days. I use approximately twenty
529 minutes per package, when I have twenty minutes spare time to spend.
530 Perhaps you got twenty minutes to spare too?
</p
>
532 <p
>As usual, if you use Bitcoin and want to show your support of my
533 activities, please send Bitcoin donations to my address
534 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
536 <p
><strong
>Update
2024-
05-
04:
</strong
> There is
537 <a href=
"http://www.hungry.com/~pere/blog/images/
2024-
05-
04-debian-snap-to-salsa.sh
">an
538 updated edition of my migration script
</a
>, last updated
539 2024-
05-
04.
</p
>
544 <title>RAID status from LSI Megaraid controllers in Debian
</title>
545 <link>http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</link>
546 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</guid>
547 <pubDate>Wed,
17 Apr
2024 17:
00:
00 +
0200</pubDate>
548 <description><p
>I am happy to report that
549 <a href=
"https://github.com/namiltd/megactl
">the megactl package
</a
>,
550 useful to fetch RAID status when using the LSI Megaraid controller,
551 now is available in Debian. It passed NEW a few days ago, and is now
552 <a href=
"https://tracker.debian.org/pkg/megactl
">available in
553 unstable
</a
>, and probably showing up in testing in a weeks time. The
554 new version should provide Appstream hardware mapping and should
555 integrate nicely with isenkram.
</p
>
557 <p
>As usual, if you use Bitcoin and want to show your support of my
558 activities, please send Bitcoin donations to my address
559 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
565 <title>Time to move orphaned Debian packages to git
</title>
566 <link>http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</link>
567 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</guid>
568 <pubDate>Sun,
14 Apr
2024 09:
30:
00 +
0200</pubDate>
569 <description><p
>There are several packages in Debian without a associated git
570 repository with the packaging history. This is unfortunate and it
571 would be nice if more of these would do so. Quote a lot of these are
572 without a maintainer, ie listed as maintained by the
573 '<a href=
"https://qa.debian.org/developer.php?email=packages%
40qa.debian.org
">Debian
574 QA Group
</a
>' place holder. In fact,
438 packages have this property
575 according to UDD (
<tt
>SELECT source FROM sources WHERE release =
'sid
'
576 AND (vcs_url ilike
'%anonscm.debian.org%
' OR vcs_browser ilike
577 '%anonscm.debian.org%
' or vcs_url IS NULL OR vcs_browser IS NULL) AND
578 maintainer ilike
'%packages@qa.debian.org%
';
</tt
>). Such packages can
579 be updated without much coordination by any Debian developer, as they
580 are considered orphaned.
</p
>
582 <p
>To try to improve the situation and reduce the number of packages
583 without associated git repository, I started a few days ago to search
584 out candiates and provide them with a git repository under the
585 'debian
' collaborative Salsa project. I started with the packages
586 pointing to obsolete Alioth git repositories, and am now working my
587 way across the ones completely without git references. In addition to
588 updating the Vcs-* debian/control fields, I try to update
589 Standards-Version, debhelper compat level, simplify d/rules, switch to
590 Rules-Requires-Root: no and fix lintian issues reported. I only
591 implement those that are trivial to fix, to avoid spending too much
592 time on each orphaned package. So far my experience is that it take
593 aproximately
20 minutes to convert a package without any git
594 references, and a lot more for packages with existing git repositories
595 incompatible with git-buildpackages.
</p
>
597 <p
>So far I have converted
10 packages, and I will keep going until I
598 run out of steam. As should be clear from the numbers, there is
599 enough packages remaining for more people to do the same without
600 stepping on each others toes. I find it useful to start by searching
601 for a git repo already on salsa, as I find that some times a git repo
602 has already been created, but no new version is uploaded to Debian
603 yet. In those cases I start with the existing git repository. I
604 convert to the git-buildpackage+pristine-tar workflow, and ensure a
605 debian/gbp.conf file with
"pristine-tar=True
" is added early, to avoid
606 uploading a orig.tar.gz with the wrong checksum by mistake. Did that
607 three times in the begin before I remembered my mistake.
</p
>
609 <p
>So, if you are a Debian Developer and got some spare time, perhaps
610 considering migrating some orphaned packages to git?
</p
>
612 <p
>As usual, if you use Bitcoin and want to show your support of my
613 activities, please send Bitcoin donations to my address
614 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
619 <title>Plain text accounting file from your bitcoin transactions
</title>
620 <link>http://www.hungry.com/~pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</link>
621 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</guid>
622 <pubDate>Thu,
7 Mar
2024 18:
00:
00 +
0100</pubDate>
623 <description><p
>A while back I wrote a small script to extract the Bitcoin
624 transactions in a wallet in the
625 <ahref=
"https://plaintextaccounting.org/
">ledger plain text accounting
626 format
</a
>. The last few days I spent some time to get it working
627 better with more special cases. In case it can be useful for others,
628 here is a copy:
</p
>
630 <p
><blockquote
><pre
>
632 # -*- coding: utf-
8 -*-
633 # Copyright (c)
2023-
2024 Petter Reinholdtsen
635 from decimal import Decimal
642 def format_float(num):
643 return numpy.format_float_positional(num, trim=
'-
')
646 u
'amount
' :
'Assets:BTC:main
',
650 '<some address
>' :
'Assets:bankkonto
',
651 '<some address
>' :
'Assets:bankkonto
',
655 proc = subprocess.Popen(cmd,stdout=subprocess.PIPE)
656 j = json.loads(proc.communicate()[
0], parse_float=Decimal)
660 # get all transactions for all accounts / addresses
665 cmd = [
'bitcoin-cli
',
'listtransactions
',
'*
', str(limit)]
667 txs.extend(exec_json(cmd))
669 # Useful for debugging
670 with open(
'transactions.json
') as f:
671 txs.extend(json.load(f, parse_float=Decimal))
673 for tx in sorted(txs, key=lambda a: a[
'time
']):
674 # print tx[
'category
']
675 if
'abandoned
' in tx and tx[
'abandoned
']:
677 if
'confirmations
' in tx and
0 >= tx[
'confirmations
']:
679 when = time.strftime(
'%Y-%m-%d %H:%M
', time.localtime(tx[
'time
']))
680 if
'message
' in tx:
681 desc = tx[
'message
']
682 elif
'comment
' in tx:
683 desc = tx[
'comment
']
684 elif
'label
' in tx:
685 desc = tx[
'label
']
688 print(
"%s %s
" % (when, desc))
689 if
'address
' in tx:
690 print(
" ; to bitcoin address %s
" % tx[
'address
'])
692 print(
" ; missing address in transaction, txid=%s
" % tx[
'txid
'])
693 print(f
" ; amount={tx[
'amount
']}
")
694 if
'fee
'in tx:
695 print(f
" ; fee={tx[
'fee
']}
")
696 for f in accounts.keys():
697 if f in tx and Decimal(
0) != tx[f]:
699 print(
" %-
20s %s BTC
" % (accounts[f], format_float(amount)))
700 if
'fee
' in tx and Decimal(
0) != tx[
'fee
']:
701 # Make sure to list fee used in several transactions only once.
702 if
'fee
' in tx and tx[
'txid
'] in txidfee \
703 and tx[
'fee
'] == txidfee[tx[
'txid
']]:
706 fee = tx[
'fee
']
707 print(
" %-
20s %s BTC
" % (accounts[
'amount
'], format_float(fee)))
708 print(
" %-
20s %s BTC
" % (
'Expences:BTC-fee
', format_float(-fee)))
709 txidfee[tx[
'txid
']] = tx[
'fee
']
711 if
'address
' in tx and tx[
'address
'] in addresses:
712 print(
" %s
" % addresses[tx[
'address
']])
714 if
'generate
' == tx[
'category
']:
715 print(
" Income:BTC-mining
")
717 if amount
< Decimal(
0):
718 print(f
" Assets:unknown:sent:update-script-addr-{tx[
'address
']}
")
720 print(f
" Assets:unknown:received:update-script-addr-{tx[
'address
']}
")
724 print(
"# Found %d transactions
" % c)
726 print(f
"# Warning: Limit {limit} reached, consider increasing limit.
")
732 </pre
></blockquote
></p
>
734 <p
>It is more of a proof of concept, and I do not expect it to handle
735 all edge cases, but it worked for me, and perhaps you can find it
736 useful too.
</p
>
738 <p
>To get a more interesting result, it is useful to map accounts sent
739 to or received from to accounting accounts, using the
740 <tt
>addresses
</tt
> hash. As these will be very context dependent, I
741 leave out my list to allow each user to fill out their own list of
742 accounts. Out of the box,
'ledger reg BTC:main
' should be able to
743 show the amount of BTCs present in the wallet at any given time in the
744 past. For other and more valuable analysis, a account plan need to be
745 set up in the
<tt
>addresses
</tt
> hash. Here is an example
746 transaction:
</p
>
748 <p
><blockquote
><pre
>
749 2024-
03-
07 17:
00 Donated to good cause
750 Assets:BTC:main -
0.1 BTC
751 Assets:BTC:main -
0.00001 BTC
752 Expences:BTC-fee
0.00001 BTC
753 Expences:donations
0.1 BTC
754 </pre
></blockquote
></p
>
756 <p
>It need a running Bitcoin Core daemon running, as it connect to it
757 using
<tt
>bitcoin-cli listtransactions *
100000</tt
> to extract the
758 transactions listed in the Wallet.
</p
>
760 <p
>As usual, if you use Bitcoin and want to show your support of my
761 activities, please send Bitcoin donations to my address
762 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>