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>New lsdvd release
0.18 after ten years
</title>
11 <link>http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/New_lsdvd_release_0_18_after_ten_years.html
</guid>
13 <pubDate>Sat,
21 Dec
2024 10:
50:
00 +
0100</pubDate>
14 <description><p
>The rumors of the death of
15 <a href=
"https://sourceforge.net/projects/lsdvd/
">the lsdvd project
</a
>
16 is slightly exaggerated. And the last few months, we have been
17 working on fixing and improving it, culminating in a new release last
18 night. This is the list of changes in the new
0.18 release, as
19 <a href=
"https://sourceforge.net/p/lsdvd/mailman/message/
59108028/
">announced
20 on the project mailing list
</a
>:
</p
>
24 <li
>Simplified autoconf setup, dropped --enable-debug option.
</li
>
25 <li
>Improved video resolution reporting (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
8/
">Fixes #
8</a
>).
</li
>
26 <li
>Applied patches fetched from BSDs (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
7/
">Fixes #
7</a
>).
</li
>
27 <li
>Corrected Perl output (
<a href=
"https://sourceforge.net/p/lsdvd/patches/
1/
">Fixes #
1</a
>).
</li
>
28 <li
>Adjusted Pan and Scan entries to produce valid XML.
</li
>
29 <li
>Changed --help output from stderr to stdout.
</li
>
30 <li
>Corrected aspect ratio and audio format formatting.
</li
>
31 <li
>Avoid segfault when hitting a NULL pointer in the IFO structure.
</li
>
32 <li
>Change build rules to supress compiler flags, to make it easier to
33 spot warnings.
</li
>
34 <li
>Set default DVD device based on OS (Linux, *BSD, Darwin)
</li
>
35 <li
>Added libdvdread DVDDiscID to output.
</li
>
36 <li
>Corrected typo in longest track value in XML format.
</li
>
37 <li
>Switched XML output to use libxml to avoid string encoding issues.
</li
>
38 <li
>Added simple build time test suite.
</li
>
39 <li
>Cleaned up language code handling and adding missing mapping for
40 language codes
'nb
' and
'nn
'.
</li
>
41 <li
>Added JSON output support using -Oj.
</li
>
44 <p
>The most exciting news to me is easy access to the DVDDiscID, which
45 make it a lot easier to identify DVD duplicates across a large
46 collection of DVDs. During testing it has proved to be very effective
47 ad identifying when DVDs in a DVD box (say all Star Wars movies) is
48 identical to DVDs sold individually (like the same Star Wars movies
49 packaged individually).
</p
>
51 <p
>Because none of the current developers got access to do tarball
52 releases on Sourceforge any more, the release is only available as
53 <a href=
"https://sourceforge.net/p/lsdvd/git/ci/
0.18/tree/
">a git
54 tag
</a
> in the repository. Lets hope it do not take ten years for the
55 next release. The project are discussing to move away from
56 Sourceforge, but it has not yet concluded.
</p
>
58 <p
>As usual, if you use Bitcoin and want to show your support of my
59 activities, please send Bitcoin donations to my address
60 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
65 <title>More than
200 orphaned Debian packages moved to git,
216 to go
</title>
66 <link>http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</link>
67 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/More_than_200_orphaned_Debian_packages_moved_to_git__216_to_go.html
</guid>
68 <pubDate>Thu,
11 Jul
2024 12:
30:
00 +
0200</pubDate>
69 <description><p
><a href=
"https://people.skolelinux.org/pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
">In
70 April
</a
>, I started migrating orphaned Debian packages without any
71 version control system listed in debian/control to git. This morning,
72 my Debian QA page finally reached
200 QA packages migrated. In
73 reality there are a few more, as the packages uploaded by someone else
74 after my initial upload have disappeared from my QA uploads list. As
75 I am running out of steam and will most likely focus on other parts of
76 Debian moving forward, I hope someone else will find time to continue
77 the migration to bring the number of orphaned packages without any
78 version control system down to zero. Here is the updated recipe if
79 someone want to help out.
</p
>
81 <p
>To locate packages to work on, the following one-liner can be used:
</p
>
83 <blockquote
><pre
>
84 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
85 --username=udd-mirror udd -c
"select source from sources \
86 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
87 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
88 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
89 order by random() limit
10;
"
90 </pre
></blockquote
>
92 <p
>Pick a random package from the list and run the latest edition of
94 <tt
><a href=
"https://people.skolelinux.org/pere/blog/images/
2024-
07-
11-debian-snap-to-salsa.sh
">debian-snap-to-salsa
</a
></tt
>
95 with the package name as the argument to prepare a git repository with
96 the existing packaging. This will download old Debian packages from
97 <tt
>snapshot.debian.org
</tt
>. Note that very recent uploads will not
98 be included, so check out the package on
<tt
>tracker.debian.org
</tt
>.
99 Next, run
<tt
>gbp buildpackage --git-ignore-new
</tt
> to verify that
100 the package build as it should, and then visit
101 <a href=
"https://salsa.debian.org/debian/
">https://salsa.debian.org/debian/
</a
>
102 and make sure there is not already a git repository for the package
103 there. I also did
<tt
>git log -p debian/control
</tt
> and look for vcs
104 entries to check if the package used to have a git repository on
105 Alioth, and see if it can be a useful starting point moving forward.
106 If all this check out, I created a new gitlab project below the Debian
107 group on salsa, push the package source there and upload a new version.
108 I tend to also ensure build hardening is enabled, if it prove to be
109 easy, and check if I can easily fix any lintian issues or bug reports.
110 If the process took more than
20 minutes, I dropped it and moved on to
111 another package.
</p
>
113 <p
>If I found patches in debian/patches/ that were not yet passed
114 upstream, I would send an email to make sure upstream know about them.
115 This has proved to be a valuable step, and caused several new releases
116 for software that initially appeared abandoned. :)
</p
>
118 <p
>As usual, if you use Bitcoin and want to show your support of my
119 activities, please send Bitcoin donations to my address
120 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
125 <title>Some notes from the
2024 LinuxCNC Norwegian developer gathering
</title>
126 <link>http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
127 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Some_notes_from_the_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
128 <pubDate>Wed,
10 Jul
2024 14:
45:
00 +
0200</pubDate>
129 <description><p
>The Norwegian
<a href=
"https://linuxcnc.org/
">The LinuxCNC
</a
>
130 developer gathering
2024 is over. It was a great and productive
131 weekend, and I am sad that it is over.
</p
>
133 <p
>Regular readers probably still remember what LinuxCNC is, but her
134 is a quick summary for those that forgot? LinuxCNC is a free software
135 system for numerical control of machines such as milling machines,
136 lathes, plasma cutters, routers, cutting machines, robots and
137 hexapods. It eats G-code and produce motor movement and other changes
138 to the physical world, while reading sensor input.
</p
>
140 <p
>I am not quite sure about the total head count, as not all people
141 were present at the gathering the entire weekend, but I believe it was
142 close to
10 people showing their faces at the gathering. The
"hard
143 core
" of the group, who stayed the entire weekend, were two from
144 Norway, two from Germany and one from England. I am happy with the
145 outcome from the gathering. We managed to wrap up a new stable
146 LinuxCNC release
2.9.3 and even tested it on real hardware within
147 minutes of the release. The release notes for
2.9.3 are still being
148 written, but should show up on on the project site in the next few
149 days. We managed to go through around twenty pull requests and merge
150 then into either the stable release (
2.9) or the development branch
151 (master). There are still around thirty pull requests left to
152 process, so we are not out of work yet. We even managed to
153 fix/improve a slightly worn lathe, and experiment with running a
154 mechanical clock using G-code.
</p
>
156 <p
>The evening barbeque worked well both on Saturday and Sunday. It
157 is quite fun to light up a charcoal grill using compressed air. Sadly
158 the weather was not the best, so we stayed indoors most of the
161 <p
>This gathering was made possible partly with sponsoring from both
162 <a href=
"https://www.redpill-linpro.com/
">Redpill Linpro
</a
>,
163 <a href=
"https://debian.org/
">Debian
</a
> and
164 <a href=
"https://nuugfoundation.no/
">NUUG Foundation
</a
>, and we are
165 most grateful for the support. I would also like to thank the local
166 school for lending us some furniture, and of course the rest of the
167 members of the organizers team, Asle and Bosse, for their countless
168 contributions. The gathering was such success that we want to do it
169 again next year.
</p
>
171 <p
>We plan to organize the next Norwegian LinuxCNC developer gathering
172 at the end of June next year, the weekend Friday
27th to Sunday
29th
173 of June
2025. I recommend you reserve the dates on your calendar
174 today. Other related communities are also welcome to join in, for
175 example those working on systems like FreeCAD and opencamlib, as I am
176 sure we have much in common and sharing experiences would be very
177 useful to all involved. We are of course looking for sponsors for
178 this gathering already. The total budget for this gathering was
179 around NOK
25.000 (around EUR
2.300), so our needs are quite modest.
180 Perhaps a machine or tools company would like to help out the free
181 software manufacturing community by sponsoring food, lodging and
182 transport for such gathering?
</p
>
187 <title>«Møter vi liv eller død?», pamfletten som inspirerte
</title>
188 <link>http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</link>
189 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</guid>
190 <pubDate>Tue,
4 Jun
2024 11:
30:
00 +
0200</pubDate>
191 <description><img align=
"center
" src=
"https://people.skolelinux.org/pere/blog/images/
2024-
06-
04-bok-elsa-laula.svg
" width=
"20%
" align=
"center
" border=
"1"></a
>
193 <p
>Da jeg i høst hørte jeg et innslag på
194 <a href=
"https://radiorakel.no/
">radiOrakel
</a
> om en inspirerende dame
195 som levde for over hundre år siden, fikk jeg en vill ide. Elsa Laula
196 var en svensk samisk dame som ikke bare fikk utdannelsen finansiert av
197 den danske dronningen, men som gjorde så god jobb med å inspirere og
198 organisere den samiske befolkningen at det visstnok ble forslått i
199 Sverige å straffeforfølge henne for oppvigleri før hun flyttet fra
200 Sverige til Norge. Radiopraterne fortalte videre at da Elsa Laula ga
201 ut en pamflett for å inspirere samene til samling var dette den
202 første bok gitt ut av en samisk dame noensinne. Jeg fikk høre at
203 denne korte teksten kun fantes på originalspråket svensk under
204 tittelen «Inför lif eller död» og aldri var oversatt til norsk. Da
205 tenkte jeg, der jeg satt i bilen, at en norsk utgave kan vel jeg
206 fikse. Jeg har jo fått oversatt endel bøker, og en liten pamflett på
207 noen få sider burde jo være grei skuring.
</p
>
209 <p
>Den imponerende Elsa Laula, som senere la til etternavnet Renberg, har
210 blant annet fått dokumentaren
211 «
<a href=
"https://www.nrk.no/video/elsa-laula-renberg-kvinnen-som-samlet-sapmi_SAPP67002117
">Elsa
212 Laula Renberg, kvinnen som samlet Sápmi
</a
>» (
2017) av Per Kristian
213 Olsen på NRK, NRK-artikkelen
214 «
<a href=
"https://www.nrk.no/kultur/xl/et-liv-i-kamp-for-samefolkets-rettigheter-
1.13351401">Samenes
215 Jeanne d’Arc
</a
>» av Karen Brodshaug Sveen (
2017), oppgaven
216 «
<a href=
"https://nordligefolk.no/wp-content/uploads/
2020/
03/Elsa-Laulas-Info%CC%
88r-Lif-och-Do%CC%
88d.pdf
">Elsa
217 Laulas Innför lif och död – sanningsord i de lappska
218 förhållandena
</a
>» av Edel Olsen, biografien
219 «
<a href=
"https://www.siribrochjohansen.no/biografien-om-elsa-laula-renberg/
">Elsa
220 Laula Renberg - Historien om samefolkets store Minerva
</a
>» (
2015) av
221 Siri Broch Johansen og radiOrakel-podkasten
222 <a href=
"https://radiorakel.no/podcast/revolusjonen-har-et-kvinnelig-ansikt-elsa-laula/
">Revolusjonen
223 har et kvinnelig ansikt – Elsa Laula
</a
>, for å nevne de jeg har
224 finnet uten å lete spesielt hardt. En virkelig spennende dame, som i
225 tillegg til å inspirere til opprettelsen av samiske organisasjoner,
226 har inspirert til opprettelsen av Sametinget, og født seks barn der
227 fire vokste opp.
</p
>
229 <p
>I dag er jeg veldig glad for å kunne annonsere at
230 <a href=
"http://www.hungry.com/~pere/publisher/#infoerlifellerdoed2024
">bokmålsoversettelsen
231 er klar og tilgjengelig
</a
> for både bestilling på papir og
232 epub-utgave fra lulu.com, samt som nettside. Den kringkastede
233 bokinformasjonen ser slik ut:
</p
>
237 <p
>Den
27 år gamle sørsamiske kvinnen Elsa Laula ga i august
1904 ut
238 en pamflett i Stockholm. Opplaget var på
6000, finansiert av
239 Stockholmsredaktøren Gustav Hedenström, som også bidro i stiftelsen av
240 Lapparnes Centralforbund. Dette kampskriftet var den første boken gitt
241 ut av en samisk kvinne, og hadde som mål å inspirere til opprettelsen
242 av samiske foreninger over hele landet, samt skape blest om
243 sentralforbundet. Pamfletten er et politisk manifest som fortsatt
244 inspirerer i dag.
</p
>
246 <p
>Denne pamfletten er nå for første gang tilgjengelig på bokmål,
247 sammen med en nyutgivelse av originalteksten på svensk.
</p
>
251 <p
>Oversettelsen hadde ikke vært mulig uten gode hjelpere. En virkelig
252 stor innsats både i korrekturarbeidet og utforskning av arkaiske
253 svenske ord, står Axel Rosén bak. I tillegg har jeg fått innspill fra
254 Edel May Karlsen og flere andre både på språkføring og historisk
255 bakgrunn for å forstå teksten.
</p
>
257 <p
>En kuriositet som jeg oppdaget i arbeidet med oversettelsen er at
258 det ikke stemmer at denne boken ikke var oversatt til noen andre
259 språk. Anna Wuolab oversatte den til nordsamisk i
2017 i en utgave
260 gitt ut av samisk skribent- och författarförening (Bágu čálliid
261 searvi) under tittelen «Eallit vai jápmit? : duohtavuođasánit sámi
262 diliid birra = Inför lif eller död? : sanningsord i de lappska
263 förhållandena». Papirutgaven er så vidt jeg kan forstå utsolgt fra
264 forlaget og jeg har ikke klart å finne informasjonsside om boken på
265 Internett. Mulig den er mulig å få tak i som ebok, hvis en skal tro
266 <a href=
"https://search.worldcat.org/title/
1405213087">oppføring i
267 worldcat
</a
>.
</p
>
269 <p
>Oversetterrammeverket jeg har satt opp for å gjennomføre dette
270 oversettelsesprosjektet håndterer flere språk. Jeg er igang med
271 engelsk utgave, og er åpen for å også gi ut andre oversettelser hvis
272 noen er interessert i å gjøre jobben. Det hadde vært ekstra moro å gi
273 den ut på sørsamisk, det samiske språket i regionen der Elsa Laula kom
274 fra. Der er jeg som vanlig avhengig av frivillige som er også
275 interessert i å gjøre dette på dugnad.
</p
>
277 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
278 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
280 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
281 betaling med bitcoin er ikke anonymt. :)
</p
>
286 <title>The
2024 LinuxCNC Norwegian developer gathering
</title>
287 <link>http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
288 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
289 <pubDate>Fri,
31 May
2024 07:
45:
00 +
0200</pubDate>
290 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is still
291 going strong. And I believe this great software system for numerical control of
292 machines such as milling machines, lathes, plasma cutters, routers,
293 cutting machines, robots and hexapods, would do even better with more
294 in-person developer gatherings, so we plan to organise such gathering
295 this summer too.
</p
>
297 <p
>The Norwegian LinuxCNC developer gathering take place the weekend
298 Friday July
5th to
7th this year, and is open for everyone interested
299 in contributing to LinuxCNC and free software manufacturing. Up to
300 date information about the gathering can be found in
301 <a href=
"https://sourceforge.net/p/emc/mailman/emc-developers/thread/
123eaae0-f3b9-
4170-a251-b7d608f1e974%
40bofh.no/
">the
302 developer mailing list thread
</a
> where the gathering was announced.
303 Thanks to the good people at
305 <a href=
"https://www.debian.org/
">Debian
</a
> as well as leftover money
306 from last years gathering from
307 <a href=
"https://www.redpill-linpro.com/
">Redpill-Linpro
</a
> and
308 <a href=
"https://www.nuugfoundation.no/no/
">NUUG Foundation
</a
>, we
309 have enough sponsor funds to pay for food, and probably also shelter
310 for the people traveling from afar to join us. If you would like to
311 join the gathering, get in touch and add your details on
312 <a href=
"https://pad.efn.no/p/linuxcnc-
2024-norway
">the pad
</a
>.
</p
>
314 <p
>As usual, if you use Bitcoin and want to show your support of my
315 activities, please send Bitcoin donations to my address
316 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
321 <title>45 orphaned Debian packages moved to git,
391 to go
</title>
322 <link>http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</link>
323 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</guid>
324 <pubDate>Thu,
25 Apr
2024 22:
00:
00 +
0200</pubDate>
325 <description><p
>Nine days ago, I started migrating orphaned Debian packages with no
326 version control system listed in debian/control of the source to git.
327 At the time there were
438 such packages. Now there are
391,
328 according to the UDD. In reality it is slightly less, as there is a
329 delay between uploads and UDD updates. In the nine days since, I have
330 thus been able to work my way through ten percent of the packages. I
331 am starting to run out of steam, and hope someone else will also help
332 brushing some dust of these packages. Here is a recipe how to do it.
334 I start by picking a random package by querying the UDD for a list of
335 10 random packages from the set of remaining packages:
337 <blockquote
><pre
>
338 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
339 --username=udd-mirror udd -c
"select source from sources \
340 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
341 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
342 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
343 order by random() limit
10;
"
344 </pre
></blockquote
>
346 <p
>Next, I visit http://salsa.debian.org/debian and search for the
347 package name, to ensure no git repository already exist. If it does,
348 I clone it and try to get it to an uploadable state, and add the Vcs-*
349 entries in d/control to make the repository more widely known. These
350 packages are a minority, so I will not cover that use case here.
</p
>
352 <p
>For packages without an existing git repository, I run the
353 following script
<tt
>debian-snap-to-salsa
</tt
> to prepare a git
354 repository with the existing packaging.
</p
>
356 <blockquote
><pre
>
359 # See also https://bugs.debian.org/
804722#
31
363 # Move to this Standards-Version.
368 if [ -z
"$PKG
" ]; then
369 echo
"usage: $
0 <pkgname
>"
373 if [ -e
"${PKG}-salsa
" ]; then
374 echo
"error: ${PKG}-salsa already exist, aborting.
"
378 if [ -z
"ALLOWFAILURE
" ] ; then
382 # Fetch every snapshotted source package. Manually loop until all
383 # transfers succeed, as
'gbp import-dscs --debsnap
' do not fail on
385 until debsnap --force -v $PKG || $ALLOWFAILURE ; do sleep
1; done
386 mkdir ${PKG}-salsa; cd ${PKG}-salsa
389 # Specify branches to override any debian/gbp.conf file present in the
391 gbp import-dscs --debian-branch=master --upstream-branch=upstream \
392 --pristine-tar ../source-$PKG/*.dsc
394 # Add Vcs pointing to Salsa Debian project (must be manually created
396 if ! grep -q ^Vcs- debian/control ; then
397 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
398 git commit -m
"Updated vcs in d/control to Salsa.
" debian/control
401 # Tell gbp to enforce the use of pristine-tar.
402 inifile +inifile debian/gbp.conf +create +section DEFAULT +key pristine-tar +value True
403 git add debian/gbp.conf
404 git commit -m
"Added d/gbp.conf to enforce the use of pristine-tar.
" debian/gbp.conf
406 # Update to latest Standards-Version.
407 SV=
"$(grep ^Standards-Version: debian/control|awk
'{print $
2}
')
"
408 if [ $SV_LATEST != $SV ]; then
409 sed -i
"s/\(Standards-Version: \)\(.*\)/\
1$SV_LATEST/
" debian/control
410 git commit -m
"Updated Standards-Version from $SV to $SV_LATEST.
" debian/control
413 if grep -q pkg-config debian/control; then
414 sed -i s/pkg-config/pkgconf/ debian/control
415 git commit -m
"Replaced obsolete pkg-config build dependency with pkgconf.
" debian/control
418 if grep -q libncurses5-dev debian/control; then
419 sed -i s/libncurses5-dev/libncurses-dev/ debian/control
420 git commit -m
"Replaced obsolete libncurses5-dev build dependency with libncurses-dev.
" debian/control
422 </pre
></blockquote
>
424 Some times the debsnap script fail to download some of the versions.
425 In those cases I investigate, and if I decide the failing versions
426 will not be missed, I call it using ALLOWFAILURE=true to ignore the
427 problem and create the git repository anyway.
</p
>
429 <p
>With the git repository in place, I do a test build (gbp
430 buildpackage) to ensure the build is actually working. If it does not
431 I pick a different package, or if the build failure is trivial to fix,
432 I fix it before continuing. At this stage I revisit
433 http://salsa.debian.org/debian and create the project under this group
434 for the package. I then follow the instructions to publish the local
435 git repository. Here is from a recent example:
</p
>
437 <blockquote
><pre
>
438 git remote add origin git@salsa.debian.org:debian/perl-byacc.git
439 git push --set-upstream origin master upstream pristine-tar
441 </pre
></blockquote
>
443 <p
>With a working build, I have a look at the build rules if I want to
444 remove some more dust. I normally try to move to debhelper compat
445 level
13, which involves removing debian/compat and modifying
446 debian/control to build depend on debhelper-compat (=
13). I also test
447 with
'Rules-Requires-Root: no
' in debian/control and verify in
448 debian/rules that hardening is enabled, and include all of these if
449 the package still build. If it fail to build with level
13, I try
450 with
12,
11,
10 and so on until I find a level where it build, as I do
451 not want to spend a lot of time fixing build issues.
</p
>
453 <p
>Some times, when I feel inspired, I make sure debian/copyright is
454 converted to the machine readable format, often by starting with
455 'debhelper -cc
' and then cleaning up the autogenerated content until
456 it matches realities. If I feel like it, I might also clean up
457 non-dh-based debian/rules files to use the short style dh build
460 <p
>Once I have removed all the dust I care to process for the package,
461 I run
'gbp dch
' to generate a debian/changelog entry based on the
462 commits done so far, run
'dch -r
' to switch from
'UNRELEASED
' to
463 'unstable
' and get an editor to make sure the
'QA upload
' marker is in
464 place and that all long commit descriptions are wrapped into sensible
465 lengths, run
'debcommit --release -a
' to commit and tag the new
466 debian/changelog entry, run
'debuild -S
' to build a source only
467 package, and
'dput ../perl-byacc_2.0-
10_source.changes
' to do the
468 upload. During the entire process, and many times per step, I run
469 'debuild
' to verify the changes done still work. I also some times
470 verify the set of built files using
'find debian
' to see if I can spot
471 any problems (like no file in usr/bin any more or empty package). I
472 also try to fix all lintian issues reported at the end of each
473 'debuild
' run.
</p
>
475 <p
>If I find Debian specific patches, I try to ensure their metadata
476 is fairly up to date and some times I even try to reach out to
477 upstream, to make the upstream project aware of the patches. Most of
478 my emails bounce, so the success rate is low. For projects with no
479 Homepage entry in debian/control I try to track down one, and for
480 packages with no debian/watch file I try to create one. But at least
481 for some of the packages I have been unable to find a functioning
482 upstream, and must skip both of these.
</p
>
484 <p
>If I could handle ten percent in nine days, twenty people could
485 complete the rest in less then five days. I use approximately twenty
486 minutes per package, when I have twenty minutes spare time to spend.
487 Perhaps you got twenty minutes to spare too?
</p
>
489 <p
>As usual, if you use Bitcoin and want to show your support of my
490 activities, please send Bitcoin donations to my address
491 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
493 <p
><strong
>Update
2024-
05-
04:
</strong
> There is
494 <a href=
"https://people.skolelinux.org/pere/blog/images/
2024-
05-
04-debian-snap-to-salsa.sh
">an
495 updated edition of my migration script
</a
>, last updated
496 2024-
05-
04.
</p
>
501 <title>RAID status from LSI Megaraid controllers in Debian
</title>
502 <link>http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</link>
503 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</guid>
504 <pubDate>Wed,
17 Apr
2024 17:
00:
00 +
0200</pubDate>
505 <description><p
>I am happy to report that
506 <a href=
"https://github.com/namiltd/megactl
">the megactl package
</a
>,
507 useful to fetch RAID status when using the LSI Megaraid controller,
508 now is available in Debian. It passed NEW a few days ago, and is now
509 <a href=
"https://tracker.debian.org/pkg/megactl
">available in
510 unstable
</a
>, and probably showing up in testing in a weeks time. The
511 new version should provide Appstream hardware mapping and should
512 integrate nicely with isenkram.
</p
>
514 <p
>As usual, if you use Bitcoin and want to show your support of my
515 activities, please send Bitcoin donations to my address
516 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
522 <title>Time to move orphaned Debian packages to git
</title>
523 <link>http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</link>
524 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</guid>
525 <pubDate>Sun,
14 Apr
2024 09:
30:
00 +
0200</pubDate>
526 <description><p
>There are several packages in Debian without a associated git
527 repository with the packaging history. This is unfortunate and it
528 would be nice if more of these would do so. Quote a lot of these are
529 without a maintainer, ie listed as maintained by the
530 '<a href=
"https://qa.debian.org/developer.php?email=packages%
40qa.debian.org
">Debian
531 QA Group
</a
>' place holder. In fact,
438 packages have this property
532 according to UDD (
<tt
>SELECT source FROM sources WHERE release =
'sid
'
533 AND (vcs_url ilike
'%anonscm.debian.org%
' OR vcs_browser ilike
534 '%anonscm.debian.org%
' or vcs_url IS NULL OR vcs_browser IS NULL) AND
535 maintainer ilike
'%packages@qa.debian.org%
';
</tt
>). Such packages can
536 be updated without much coordination by any Debian developer, as they
537 are considered orphaned.
</p
>
539 <p
>To try to improve the situation and reduce the number of packages
540 without associated git repository, I started a few days ago to search
541 out candiates and provide them with a git repository under the
542 'debian
' collaborative Salsa project. I started with the packages
543 pointing to obsolete Alioth git repositories, and am now working my
544 way across the ones completely without git references. In addition to
545 updating the Vcs-* debian/control fields, I try to update
546 Standards-Version, debhelper compat level, simplify d/rules, switch to
547 Rules-Requires-Root: no and fix lintian issues reported. I only
548 implement those that are trivial to fix, to avoid spending too much
549 time on each orphaned package. So far my experience is that it take
550 aproximately
20 minutes to convert a package without any git
551 references, and a lot more for packages with existing git repositories
552 incompatible with git-buildpackages.
</p
>
554 <p
>So far I have converted
10 packages, and I will keep going until I
555 run out of steam. As should be clear from the numbers, there is
556 enough packages remaining for more people to do the same without
557 stepping on each others toes. I find it useful to start by searching
558 for a git repo already on salsa, as I find that some times a git repo
559 has already been created, but no new version is uploaded to Debian
560 yet. In those cases I start with the existing git repository. I
561 convert to the git-buildpackage+pristine-tar workflow, and ensure a
562 debian/gbp.conf file with
"pristine-tar=True
" is added early, to avoid
563 uploading a orig.tar.gz with the wrong checksum by mistake. Did that
564 three times in the begin before I remembered my mistake.
</p
>
566 <p
>So, if you are a Debian Developer and got some spare time, perhaps
567 considering migrating some orphaned packages to git?
</p
>
569 <p
>As usual, if you use Bitcoin and want to show your support of my
570 activities, please send Bitcoin donations to my address
571 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
576 <title>Plain text accounting file from your bitcoin transactions
</title>
577 <link>http://www.hungry.com/~pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</link>
578 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</guid>
579 <pubDate>Thu,
7 Mar
2024 18:
00:
00 +
0100</pubDate>
580 <description><p
>A while back I wrote a small script to extract the Bitcoin
581 transactions in a wallet in the
582 <ahref=
"https://plaintextaccounting.org/
">ledger plain text accounting
583 format
</a
>. The last few days I spent some time to get it working
584 better with more special cases. In case it can be useful for others,
585 here is a copy:
</p
>
587 <p
><blockquote
><pre
>
589 # -*- coding: utf-
8 -*-
590 # Copyright (c)
2023-
2024 Petter Reinholdtsen
592 from decimal import Decimal
599 def format_float(num):
600 return numpy.format_float_positional(num, trim=
'-
')
603 u
'amount
' :
'Assets:BTC:main
',
607 '<some address
>' :
'Assets:bankkonto
',
608 '<some address
>' :
'Assets:bankkonto
',
612 proc = subprocess.Popen(cmd,stdout=subprocess.PIPE)
613 j = json.loads(proc.communicate()[
0], parse_float=Decimal)
617 # get all transactions for all accounts / addresses
622 cmd = [
'bitcoin-cli
',
'listtransactions
',
'*
', str(limit)]
624 txs.extend(exec_json(cmd))
626 # Useful for debugging
627 with open(
'transactions.json
') as f:
628 txs.extend(json.load(f, parse_float=Decimal))
630 for tx in sorted(txs, key=lambda a: a[
'time
']):
631 # print tx[
'category
']
632 if
'abandoned
' in tx and tx[
'abandoned
']:
634 if
'confirmations
' in tx and
0 >= tx[
'confirmations
']:
636 when = time.strftime(
'%Y-%m-%d %H:%M
', time.localtime(tx[
'time
']))
637 if
'message
' in tx:
638 desc = tx[
'message
']
639 elif
'comment
' in tx:
640 desc = tx[
'comment
']
641 elif
'label
' in tx:
642 desc = tx[
'label
']
645 print(
"%s %s
" % (when, desc))
646 if
'address
' in tx:
647 print(
" ; to bitcoin address %s
" % tx[
'address
'])
649 print(
" ; missing address in transaction, txid=%s
" % tx[
'txid
'])
650 print(f
" ; amount={tx[
'amount
']}
")
651 if
'fee
'in tx:
652 print(f
" ; fee={tx[
'fee
']}
")
653 for f in accounts.keys():
654 if f in tx and Decimal(
0) != tx[f]:
656 print(
" %-
20s %s BTC
" % (accounts[f], format_float(amount)))
657 if
'fee
' in tx and Decimal(
0) != tx[
'fee
']:
658 # Make sure to list fee used in several transactions only once.
659 if
'fee
' in tx and tx[
'txid
'] in txidfee \
660 and tx[
'fee
'] == txidfee[tx[
'txid
']]:
663 fee = tx[
'fee
']
664 print(
" %-
20s %s BTC
" % (accounts[
'amount
'], format_float(fee)))
665 print(
" %-
20s %s BTC
" % (
'Expences:BTC-fee
', format_float(-fee)))
666 txidfee[tx[
'txid
']] = tx[
'fee
']
668 if
'address
' in tx and tx[
'address
'] in addresses:
669 print(
" %s
" % addresses[tx[
'address
']])
671 if
'generate
' == tx[
'category
']:
672 print(
" Income:BTC-mining
")
674 if amount
< Decimal(
0):
675 print(f
" Assets:unknown:sent:update-script-addr-{tx[
'address
']}
")
677 print(f
" Assets:unknown:received:update-script-addr-{tx[
'address
']}
")
681 print(
"# Found %d transactions
" % c)
683 print(f
"# Warning: Limit {limit} reached, consider increasing limit.
")
689 </pre
></blockquote
></p
>
691 <p
>It is more of a proof of concept, and I do not expect it to handle
692 all edge cases, but it worked for me, and perhaps you can find it
693 useful too.
</p
>
695 <p
>To get a more interesting result, it is useful to map accounts sent
696 to or received from to accounting accounts, using the
697 <tt
>addresses
</tt
> hash. As these will be very context dependent, I
698 leave out my list to allow each user to fill out their own list of
699 accounts. Out of the box,
'ledger reg BTC:main
' should be able to
700 show the amount of BTCs present in the wallet at any given time in the
701 past. For other and more valuable analysis, a account plan need to be
702 set up in the
<tt
>addresses
</tt
> hash. Here is an example
703 transaction:
</p
>
705 <p
><blockquote
><pre
>
706 2024-
03-
07 17:
00 Donated to good cause
707 Assets:BTC:main -
0.1 BTC
708 Assets:BTC:main -
0.00001 BTC
709 Expences:BTC-fee
0.00001 BTC
710 Expences:donations
0.1 BTC
711 </pre
></blockquote
></p
>
713 <p
>It need a running Bitcoin Core daemon running, as it connect to it
714 using
<tt
>bitcoin-cli listtransactions *
100000</tt
> to extract the
715 transactions listed in the Wallet.
</p
>
717 <p
>As usual, if you use Bitcoin and want to show your support of my
718 activities, please send Bitcoin donations to my address
719 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
724 <title>RAID status from LSI Megaraid controllers using free software
</title>
725 <link>http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_using_free_software.html
</link>
726 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/RAID_status_from_LSI_Megaraid_controllers_using_free_software.html
</guid>
727 <pubDate>Sun,
3 Mar
2024 22:
40:
00 +
0100</pubDate>
728 <description><p
>The last few days I have revisited RAID setup using the LSI
729 Megaraid controller. These are a family of controllers called PERC by
730 Dell, and is present in several old PowerEdge servers, and I recently
731 got my hands on one of these. I had forgotten how to handle this RAID
732 controller in Debian, so I had to take a peek in the
733 <a href=
"https://wiki.debian.org/LinuxRaidForAdmins
">Debian wiki page
734 "Linux and Hardware RAID: an administrator
's summary
"</a
> to remember
735 what kind of software is available to configure and monitor the disks
736 and controller. I prefer Free Software alternatives to proprietary
737 tools, as the later tend to fall into disarray once the manufacturer
738 loose interest, and often do not work with newer Linux Distributions.
739 Sadly there is no free software tool to configure the RAID setup, only
740 to monitor it. RAID can provide improved reliability and resilience in
741 a storage solution, but only if it is being regularly checked and any
742 broken disks are being replaced in time. I thus want to ensure some
743 automatic monitoring is available.
</p
>
745 <p
>In the discovery process, I came across a old free software tool to
746 monitor PERC2, PERC3, PERC4 and PERC5 controllers, which to my
747 surprise is not present in debian. To help change that I created a
748 <a href=
"https://bugs.debian.org/
1065322">request for packaging of the
749 megactl package
</a
>, and tried to track down a usable version.
750 <a href=
"https://sourceforge.net/p/megactl/
">The original project
751 site
</a
> is on Sourceforge, but as far as I can tell that project has
752 been dead for more than
15 years. I managed to find a
753 <a href=
"https://github.com/hmage/megactl
">more recent fork on
754 github
</a
> from user hmage, but it is unclear to me if this is still
755 being maintained. It has not seen much improvements since
2016. A
756 <a href=
"https://github.com/namiltd/megactl
">more up to date
757 edition
</a
> is a git fork from the original github fork by user
758 namiltd, and this newer fork seem a lot more promising. The owner of
759 this github repository has replied to change proposals within hours,
760 and had already added some improvements and support for more hardware.
761 Sadly he is reluctant to commit to maintaining the tool and stated in
762 <a href=
"https://github.com/namiltd/megactl/pull/
1">my first pull
763 request
</A
> that he think a new release should be made based on the
764 git repository owned by hmage. I perfectly understand this
765 reluctance, as I feel the same about maintaining yet another package
766 in Debian when I barely have time to take care of the ones I already
767 maintain, but do not really have high hopes that hmage will have time
768 to spend on it and hope namiltd will change his mind.
</p
>
770 <p
>In any case, I created
771 <a href=
"https://salsa.debian.org/debian/megactl
">a draft package
</a
>
772 based on the namiltd edition and put it under the debian group on
773 salsa.debian.org. If you own a Dell PowerEdge server with one of the
774 PERC controllers, or any other RAID controller using the megaraid or
775 megaraid_sas Linux kernel modules, you might want to check it out. If
776 enough people are interested, perhaps the package will make it into
777 the Debian archive.
</p
>
779 <p
>There are two tools provided, megactl for the megaraid Linux kernel
780 module, and megasasctl for the megaraid_sas Linux kernel module. The
781 simple output from the command on one of my machines look like this
782 (yes, I know some of the disks have problems. :).
</p
>
786 a0 PERC H730 Mini encl:
1 ldrv:
2 batt:good
787 a0d0
558GiB RAID
1 1x2 optimal
788 a0d1
3067GiB RAID
0 1x11 optimal
789 a0e32s0
558GiB a0d0 online errs: media:
0 other:
19
790 a0e32s1
279GiB a0d1 online
791 a0e32s2
279GiB a0d1 online
792 a0e32s3
279GiB a0d1 online
793 a0e32s4
279GiB a0d1 online
794 a0e32s5
279GiB a0d1 online
795 a0e32s6
279GiB a0d1 online
796 a0e32s8
558GiB a0d0 online errs: media:
0 other:
17
797 a0e32s9
279GiB a0d1 online
798 a0e32s10
279GiB a0d1 online
799 a0e32s11
279GiB a0d1 online
800 a0e32s12
279GiB a0d1 online
801 a0e32s13
279GiB a0d1 online
806 <p
>In addition to displaying a simple status report, it can also test
807 individual drives and print the various event logs. Perhaps you too
808 find it useful?
</p
>
810 <p
>In the packaging process I provided some patches upstream to
811 improve installation and ensure
812 <ahref=
"https://github.com/namiltd/megactl/pull/
2">a Appstream
813 metainfo file is provided
</a
> to list all supported HW, to allow
814 <a href=
"https://tracker.debian.org/isenkram
">isenkram
</a
> to propose
815 the package on all servers with a relevant PCI card.
</p
>
817 <p
>As usual, if you use Bitcoin and want to show your support of my
818 activities, please send Bitcoin donations to my address
819 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>