Improved create devx sfs in woofQ2
woofQ2 had woofq2/rootfs/2create-devx-sfs and 3post-populate-rootfs. The problem is that they really should be executed in reverse, so have renamed them to 2post-populate-rootfs and 3create-devx-sfs, with some modifications.
For installed .deb packages, say "audacious", we want to find a matching "-dev" package. In this case, there is package "audacious-dev"; however the naming of the -dev package may be different, which makes them hard to find.
2post-populate-rootfs creates rootfs/root/.packages/Packages-devuan-excalibur-* files, which are the Devuan package database in "Puppy format". Searching these files for matching -dev package(s) is easy, as they have a common generic name, in the 7th field. For example:
audacious-dev_4.4.2-1|audacious-dev|4.4.2-1||Multimedia;mediaplayer|235K|pool/DEBIAN/main/a/audacious|audacious-dev_4.4.2-1_amd64.deb|+libaudcore5t64&eq4.4.2-1,+libaudgui6&eq4.4.2-1,+libaudtag3t64&eq4.4.2-1,+libaudqt3&eq4.4.2-1,+libglib2.0-dev,+libgtk-3-dev,+qt6-base-dev|audacious development files|devuan|excalibur|0fc10863b8316b5dfec2e5e8e110567f||
audacious_4.4.2-1|audacious|4.4.2-1||Multimedia;mediaplayer|1574K|pool/DEBIAN/main/a/audacious|audacious_4.4.2-1_amd64.deb|+audacious-plugins&ge4.4,+default-dbus-session-bus,+libaudcore5t64&eq4.4.2-1,+libc6&ge2.34,+libgcc-s1&ge3.0,+libglib2.0-0t64&ge2.80.0,+libstdc++6&ge14|small and fast audio player which supports lots of formats|devuan|excalibur|a4aa4ee16384eec4c794b270bdf787df||
Previously, some -dev packages were getting missed. Haven't
tested it yet.
Tags: easy