Our long multimedia nightmare is over

So, for quite some time, I maintained mediatomb. I didn’t use it, but I kept it working for those who did.

As time passed, it more or less died upstream, and was replaced by Gerbera. So, naturally, I packaged it, and its dependencies, got the reviews in, etc. I retired mediatomb, and off we went. As of Fedora 29, there is no mediatomb, only Gerbera.

One minor issue.

With the initial version, I shipped a config based on mediatomb’s config. This didn’t work, because Gerbera’s config format is completely different.

I fixed it. 🙂 If you like, test and give karma.

As a side note, I now use Gerbera. It’s pretty cool.

Advertisements

Fedora 29 Beta

It’s Beta time again!

As is my habit, I upgraded my laptop at Beta time. dnf system-upgrade didn’t work for me because of some dependency issues. In the process of working through a dnf upgrade, I discovered that it was due to some odd homegrown Python RPMs I’d made and forgotten about, and gource, which was still FBTBS. After working those out, it was uneventful.

That was last night. Now I’ve been using it for several hours.

It’s still uneventful.

Great job, Fedora folx, I think GA should be smooth. (knock on wood)

Joe macros FTW

I’ve been using Linux for more years than I care to admit, but it’s been long enough that my choice of text editor was informed by what was available for the first Linux distribution I tried that:

  1. Had a gentler learning curve than vi/vim
  2. Had a binary package that fit on a single floppy (so no emacs)

Thus began my multi-decade love affair with Joe.

Fast forward to the beginning of my time editing RPM spec files; first for myself, then for Fedora Extras, then for Fedora at large, EPEL, employers, etc. One of the most common errors I see are bogus dates in changelogs. That, and people who manage to misspell their own names and/or email addresses. I’ve done it. If you’ve made any reasonable number of spec edits, you’ve almost certainly done it. So we’re careful. We check the date, the day of the week, and do our best. We copy/paste/edit when we can.

I shudder to think of the time I’ve lost taking care to get my changelog entries right.

This morning, I finally worked out a time-saver, and I think some of you might find it useful.

vi, emacs, and presumably other editors, allow you to insert the output of a script into the current buffer at the location of the cursor. Joe will only append to the end of the file, which is silly, and if someone knows how to insert at the current location, please let me know.

But at any rate, the following bash script:

#!/bin/bash
DATE=`date +%a\ %b\ %d\ %Y`
NAME=`git config --get user.name`
EMAIL=`git config --get user.email`
echo "* $DATE $NAME <$EMAIL>"

will output a usable string as follows:

* Wed Jul 25 2018 Your Name <youremail@example.com>

For joe, you need to pipe this to a file and then create a macro like:

Ctrl+K [ (choose a number
insf,"~/your/file",rtn
Ctrl+K ]

And then run it with:

Crtl+k <number>

And you’re set!

A personal python milestone

I’ve had a script for year that I use to make sure that my local yum/dnf repo has everything the updates emails suggest that it should. In the rare event that it finds something missing, I use my releng superpowers to re-tag the errand package and off we go.

Today I migrated the script from Python2 and yum to Python3 and dnf. First of all kudos to Seth Vidal, and secondly, kudos to the dnf team for putting together a worthy successor to yum, and more importantly, usable documentation of same.

Fedora 28 Beta – dnf system-upgrade

Yesterday, as is my usual custom, I upgraded my laptop from Fedora 27 to Fedora 28 Beta. I used DNF system upgrade, as I have in the past. The only hiccup was entirely my own fault. I forgot that while I’ve set GNOME to ignore the lid closing to prevent suspension, that setting doesn’t apply during system upgrade. 🙂 Oops.

Used DNF to remove duplicate rpms, reinstalled the new kernel and libwbclient, and corrected GNOME’s right-click behaviour, and all is well.