It is not possible to open the DNGs created with libcamera-still -r -o test.jpg
The bug is already fixed upstream: Dng fixes by davidplowman · Pull Request #285 · raspberrypi/libcamera-apps · GitHub
I compiled the latest git version with this parameters:
cmake .. -DENABLE_DRM=1 -DENABLE_X11=1 -DENABLE_QT=1 -DENABLE_OPENCV=0 -DENABLE_TFLITE=0
And I can confirm, that the problem is fixed. Sadly this removes the autofocus functionality.
Please update your libcamera package with this fix.