Posts
4943
Following
327
Followers
492
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Edited 1 year ago

After couple of hours poking around I now know how to embed #typst markup from yaml to a typst document :-)

I’m working on resume made with typst (as I’m looking to find a new job by end of September), and in that I’m using #yaml file to separate presentation from the content. Job descriptions can involve links, and thus those entries need to be evaluated.

First observation was:

#eval(job.description, mode: "markup")

If mode-parameter is not defined, typst will try to parse the string as an expression (i.e. mode: "code" is the efault, which is feasible in this case.

Another problem was the use of the hash character for tags, which is used for comments in yaml.

I sorted that out by putting every description into double quotes after trying a few different approaches:

    description:
      "I first worked on Keystone Security Monitor for RISC-V by enabling it
      for CVA6 running on FPGA. This work was part of the EU funded
      #link(\"https://www.spirs-project.eu/\")[SPIRS project].
      It involved
      tuning the
      #link(\"https://buildroot.org/\")[BuildRoot]
      based embedded stack, and
      fixing various
      #link(\"https://github.com/keystone-enclave/keystone/issues/378\")[issues].
      in the OpenSBI firmware.
      For the second half of my contract I'm enabling Linux for the new SoC's
      developed by
      #link(\"https://sochub.fi/\")[SocHub project]."

The screenshot shows the end result.

Nothing too complicated but took some time to find working patterns so putting here as a #note for myself :-)

1
1
2

Jarkko Sakkinen

Edited 1 year ago
I've only recently discovered boot-time tracing using bootconfig and moved away from huge kernel command-line strings. This is the best tutorial on topic: https://www.youtube.com/watch?v=BjiC_a13e_k
0
1
1
@mpdesouza @sj @monsieuricon Yeah sure, I was not sure what to ask. I guess the thing to ask would be one dependency that at least suse does not seem to have: perl-Inline-C

OpenSUSE has perl-Inline and perl-Inline-Python packages only.

Flatpak package would be probably solution that would acceptable for most kernel developers because anyone can install it. The only glitch in that would be flatpak run prefix but that is not a big deal.
1
0
1
@mpdesouza @sj BTW, I went through all public inbox packages in OBS but none seem to work out of the box (tried locally both with osc and rpmbuild). I tried tune them various ways but without any mentionable success..

One working way would be probably to use OCI container, flatpak, appimage or something that containerizes all the perl shenanigans but gave up for the moment with this...
1
0
1
@sj @mpdesouza never heard but look worth of giving a shot!
0
0
1
BTW, thanks for the earlier busybox tip @ncopa! I might start using Alpine for testing x86 because for such a set n stone platform it is pretty efficient :-) I.e. the robustness that BuildRoot provides when working with SoC's, SBC's, FPGA's and that sort of stuff is not really required for x86.
1
0
1
For the record, for ad-hoc images I always use BuildRoot but it is nice to see also bigger features running as part of distribution kernel. In this case it is SGX cgroups which I have already smoked tested with kernel/busybox/notmuchelse style payload.
1
0
1

Jarkko Sakkinen

wondering that when compiling a Git tree that is packaged like distro kernel RPM packages for OpenSUSE is it enough to just point LINUX_GIT to a kernel tree clone?

I made this conclusion from: https://github.com/openSUSE/kernel-source/blob/master/scripts/linux_git.sh

But there's bunch of scripts so possibly something else needs also to be taken into account. I just thought that this is easier path to test a few patches vs using patch sequencing which would make more sense, if contributing to the downtstream kernel itself.
1
0
1

Jarkko Sakkinen

Cool story about 3M floppies https://spectrum.ieee.org/3m-floppy #floppy
0
2
2
@mpdesouza I've piped the pages a few times with wget, w3m and grep to check some info, ok maybe this does not count as "convenient" :-) does the job...

this would be something where rust port would be applauded given how many dependencies you need to process email properly...
0
0
1
@mpdesouza That said, I gotta say that I love the site's web design :-) Supported browsers include curl and wget. https://public-inbox.org/ #nojoke
2
0
0
@mpdesouza Yeah, it looks like awesome tool so it is a shame. Like something less involved than full subscription to a new subsystem ML.

Lately I helped a bit with tracing subsystem in Linux but otherwise it is not what I'm working on so in that sort of scenario lei would probably help somewhat...
1
0
1
@itaru @LWN For Linux kernel it is best thing to get bird eye view "what has been going on past week".. With the amount of traffic at LKML would be practically impossible to keep track of everything that way. So it is a necessity to exist, not just valuable :-)
0
0
3
Does not recognize any of the lei commands tho (tried ls-search, edit-search and up).
0
0
1

Took the symlink install route:

git clone https://public-inbox.org/public-inbox.git && cd public-inbox
perl Makefile.PL
make symlink-install prefix=$HOME/.local

There’s a spec file in OBS but no official package to this date (b4 has an official package).

1
0
0
@Aissen @liw clippy with all and pedantic for every commit.
0
0
2

Jarkko Sakkinen

Edited 1 year ago
Is there off-the-shelf OpenSUSE RPM package of local email interface (lei)?

I also tried to seek for the source code but it is not available here: https://git.kernel.org/pub/scm/utils
2
0
0

Jarkko Sakkinen

Edited 1 year ago

After trial and error (earlier post), I’ve found out that only three steps that are required to migrate SDDM/KDE to a Wayland-only system in OpenSUSE Tumbleweed:

# systemctl disable xdm.service
# systemctl enable sddm.service
# cat > /etc/sddm.conf.d/10-display-server.conf << EOF
[General]
DisplayServer=wayland

[Wayland]
CompositorCommand=kwin_wayland --drm --no-global-shortcuts --no-lockscreen --locale1
EOF

End result:

$ pstree `pidof sddm`
sddm─┬─sddm-helper───startplasma-way───{startplasma-way}
     └─{sddm}

Also sanity-checked ps aux | grep -i xorg. Makes sense now that I know the steps but was pretty hard to find the correct steps because did not really know what I was doing :-) The default value for DisplayServer is x11 and then default value for CompositorCommand is weston. Thus both need to be updated.

#OpenSUSE #Wayland #KDE

0
0
4
@Conan_Kudo @fedora that utpm error is weird and does not report where it tries access the accounting db so i just ignore it for now :-) no idea how to tackle the problem right now
0
0
0

@Conan_Kudo @fedora Deleted my own config. It seems to use /usr/lib/sddm/sddm.conf.d/11-kwin_wayland.conf as long as sddm.service is enabled instead of xdm.service.

1
0
0
Show older