On 11/12/24 07:10, Dr. Peter Voigt wrote:
On Tue, 2024-11-12 at 08:20 +0100, Piotr Smyrak wrote:
On Mon, 11 Nov 2024 23:29:27 +0100
"Dr. Peter Voigt" <[email protected]> wrote:
I am unable to upgrade MariaDB from 10.11.9 to 10.11.10.
I am using FreeBSD 13.4-RELEASE-p2 and have tried to upgrade MariaDB
using portmaster and make install.
Build of MariaDB 10.11.10 completes just fine but I am unable to
install:
pkg-static: mariadb1011-server-10.11.10 conflicts with mariadb1011-
client-10.11.10 (installs files into the same place).
Problematic file: /usr/local/bin/mytop
*** Error code 1
I have not installed databases/mytop at all.
I've left a comment for closed bug report 266630:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266630
because it seems related to my issue. Starting with 10.11.10 MariaDB
shipped mytop is installed per default which seems to conflict with
server and client port.
Howver, bug report 266630 has status "closed" and my comment might not
be read at all.
Could anybody please give me a hint, how to upgrade to MariaDB
10.11.10 or should I place a new bug report?
You can patch locally databases/mariadb1011-server/pkg-plist by
reversing the latest delta to the file.
patch -R < attached_file
HTH,
Thanks, Piotr and Edward for pointing me into the right direction and informing
the port maintainer.
I was not aware how the package file list can be modified.
Editing the pkg-plist does not always alter what is installed for a port
as that is often a list recording what should have been installed with a
separate install step of building a port. Port maintainers create that
list to include only what is installed and packages later refer to that
list for what they do. Editing that list can lead to a port's install
stage not matching what a pkg installs/removes and should be considered
a bug if such a mistake is made. If you use a cleanroom environment to
build a package and install that package to your system then your system
should be fine but the cleanroom environment may have had otherwise
unexpected additional or missing files when you remove, add, or modify
pkg-plist lines. I think the `make stage` and `make stage-qa` steps are
designed to try to further detect/limit such changes but they don't seem
to always do as I'd expect.
I've upgraded now to MariaDB 10.11.10 now with the modified file list.