diff --git a/ext/src/mcde/pkgsrc/PLIST b/ext/src/mcde/pkgsrc/PLIST index 00c540f579..80a3ecb775 100644 --- a/ext/src/mcde/pkgsrc/PLIST +++ b/ext/src/mcde/pkgsrc/PLIST @@ -2140,6 +2140,8 @@ dt/appconfig/icons/C/McdeNetwork.l.pm dt/appconfig/icons/C/McdeNetwork.m.pm dt/appconfig/icons/C/McdeNetwork.t.pm dt/appconfig/icons/C/McdeNetworkOff.t.pm +dt/appconfig/icons/C/McdeSearch.t.pm +dt/appconfig/icons/C/McdeUser.t.pm dt/appconfig/icons/C/McdeVolumeHigh.t.pm dt/appconfig/icons/C/McdeVolumeLow.t.pm dt/appconfig/icons/C/McdeVolumeMuted.t.pm @@ -2540,7 +2542,9 @@ dt/bin/dtcm_delete dt/bin/dtcm_editor dt/bin/dtcm_insert dt/bin/dtcm_lookup +dt/bin/dtcmprefs ${PLIST.appbuilder}dt/bin/dtcodegen +dt/bin/dtconsole dt/bin/dtcreate dt/bin/dtdbcache dt/bin/dtdiskutility @@ -2564,6 +2568,7 @@ dt/bin/dthelpprint.sh ${PLIST.docs}dt/bin/dthelptag dt/bin/dthelpview dt/bin/dticon +dt/bin/dtimage dt/bin/dtimsstart dt/bin/dtinfo dt/bin/dtkeys @@ -2572,6 +2577,7 @@ dt/bin/dtlogin dt/bin/dtlpsetup dt/bin/dtmail dt/bin/dtmailpr +dt/bin/dtnetutility dt/bin/dtopen dt/bin/dtopen_image dt/bin/dtopen_pdf diff --git a/tools/mcde-plist.sh b/tools/mcde-plist.sh new file mode 100644 index 0000000000..55181f033d --- /dev/null +++ b/tools/mcde-plist.sh @@ -0,0 +1,60 @@ +#!/bin/sh +# License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. +# +# mcde-plist.sh -- put the files pkgsrc's PLIST check complains about into the +# PLIST of MCDE. +# +# usage: tools/mcde-plist.sh LOG +# +# When MCDE installs a file that ext/src/mcde/pkgsrc/PLIST does not list, the +# build stops with +# +# ERROR: The following files are in .../.destdir/usr/pkg but not in the PLIST: +# ERROR: .../.destdir/usr/pkg/dt/bin/dtnetutility +# +# (make userland stops there: build/logs/userland-2026-11-14p.log). This reads +# those lines from LOG, and puts each file into the PLIST at its place (the +# lines are sorted as `LC_ALL=C sort' sorts them; a line with a ${PLIST.x} +# prefix is compared without it). Nothing else in the PLIST changes. Look at +# `git diff' afterwards: a file that should not be installed at all is a bug of +# the program's Makefile.am, not a PLIST line. +# +# Then: tools/ext-sync.sh, and the build again (an install in pkgsrc/wm/mcde +# repeats only the install when the build is done). + +set -eu + +TOP=$(cd "$(dirname "$0")/.." && pwd) +PLIST=$TOP/ext/src/mcde/pkgsrc/PLIST + +[ $# -eq 1 ] && [ -f "$1" ] || { echo "usage: ${0##*/} LOG" >&2; exit 2; } + +tmp=${TMPDIR:-/tmp}/mcde-plist.$$ +trap 'rm -f "$tmp".*' EXIT HUP INT TERM + +# the files after "but not in the PLIST", relative to usr/pkg +sed -n '/but not in the PLIST:/,/^[^E]/p' "$1" | sed -n 's/^ERROR: *.*\.destdir\/usr\/pkg\///p' | + LC_ALL=C sort -u > "$tmp.new" +[ -s "$tmp.new" ] || { echo "mcde-plist: nothing to add in $1"; exit 0; } + +# the PLIST and the new lines, merged by the name without the ${PLIST.x} prefix +awk -v new="$tmp.new" ' +BEGIN { + while ((getline f < new) > 0) add[++n] = f + i = 1 +} +{ + name = $0 + sub(/^\$\{PLIST\.[a-z]*\}/, "", name) + while (i <= n && add[i] < name && substr(name, 1, 1) != "@") { + print add[i]; i++ + } + if (i <= n && add[i] == name) i++ # already there + print +} +END { while (i <= n) print add[i++] } +' "$PLIST" > "$tmp.plist" + +added=$(( $(wc -l < "$tmp.plist") - $(wc -l < "$PLIST") )) +cat "$tmp.plist" > "$PLIST" +echo "mcde-plist: $added line(s) added to ${PLIST#$TOP/}"