I was taken aback by the hundreds of ports (p5- mostly) which were installed (per the find below); but the man pages were often not found. It appeared most of these had a +CONTENTS.bak in /var/db/pkg
So...
One may wish to one-by-one reinstall non-perl ports in that file first, or delete them from the
file... YMMV. (I only worked out this method today, so only used it more or less this way.)
( BTW it may take many hours... despite working flawlessly ( unless I've made some typo in
the instructions))...
..../edit/
To restart more effortlessly (say if one's computer is off for the night, or
in case of some other glitch...), check the latest packages saved with that portmaster command to /usr/ports/packages/All, and delete them from the top
of the p5_replace.log file to rerun the command, which will thence
rebuild the smaller number of non-completed ports.
..../end edit/
I tentatively intend to run it after each version bump (major) of perl
(and/or maybe some other similar ports) from now on,
depending upon the number of .bak files found.
So...
Code:
cd /var/db/pkg
script -a /tmp/p5_replace.log find . -type f -name "*.bak" -exec cp -v {} /tmp \;
/bin/rm -v /tmp/+CONTENTS.bak
# (First, edit the p5_replace.log so just the lines with port names remain )
# Then, we can process it in a loop that derives the port names from the file, as the [FILE].log[/FILE]
# file has extraneous text in it...
cd /tmp
for i in $( cut -d / -f 2 p5_replace.log ); do ( portmaster -d -B -i -g /var/db/pkg/"$i"); done
# edited /var/db/pkg"$i" to /var/db/pkg/"$i" (typo...)
# BTW I've not checked the [FILE]cut[/FILE] command as precisely the same
# in other shells, the [FILE]script [/FILE] log may be different...
One may wish to one-by-one reinstall non-perl ports in that file first, or delete them from the
file... YMMV. (I only worked out this method today, so only used it more or less this way.)
( BTW it may take many hours... despite working flawlessly ( unless I've made some typo in
the instructions))...
..../edit/
To restart more effortlessly (say if one's computer is off for the night, or
in case of some other glitch...), check the latest packages saved with that portmaster command to /usr/ports/packages/All, and delete them from the top
of the p5_replace.log file to rerun the command, which will thence
rebuild the smaller number of non-completed ports.
..../end edit/
I tentatively intend to run it after each version bump (major) of perl
(and/or maybe some other similar ports) from now on,
depending upon the number of .bak files found.