maintainer-feedback requested: [Bug 265943] editors/libreoffice: upgrading via portmaster leads to conflict with existing installed port

From: <>
Date: Fri, 19 Aug 2022 11:26:54 UTC
Bugzilla Automation <> has asked FreeBSD Office Team
<> for maintainer-feedback:
Bug 265943: editors/libreoffice: upgrading via portmaster leads to conflict
with existing installed port

--- Description ---
- FreeBSD 12.3 latest
- ports latest
- Installed (amongst others): editors/libreoffice, french/libreoffice,
portuguese/libreoffice, editors/libreoffice-it
- upgrading ports using portmaster

- french/libreoffice starts being upgraded before editors/libreoffice
- because it is a dependency, editors/libreoffice gets upgrade before
french/libreoffice is installed
- the installation of editors/libreoffice proceeds without deinstalling the old
version first:

Install /usr/local/man/man1/loffice.1.gz
Install /usr/local/bin/unopkg
Install /usr/local/man/man1/unopkg.1.gz
Install /basis/program/java-set-classpath
SDK installation clean up
Generating package file lists for FreeBSD ports...
gmake[2]: Leaving directory
====> Compressing man pages (compress-man)
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):

Installed packages to be REMOVED:

Number of packages to be removed: 1

The operation will free 28 MiB.
[1/1] Deinstalling fr-libreoffice-
[1/1] Deleting files for fr-libreoffice- 100%

===>>> Starting check for runtime dependencies
===>>> Gathering dependency list for editors/libreoffice from ports
===>>> Dependency check complete for editors/libreoffice

===>>> All >> fr-libreoffice- (90/102)

===>  Installing for libreoffice-
===>  Checking if libreoffice is already installed
===>   An older version of libreoffice is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of libreoffice
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

make[1]: stopped in /net/hal/z/SRC/FreeBSD/ports/MBi/main/editors/libreoffice
*** Error code 1

make: stopped in /net/hal/z/SRC/FreeBSD/ports/MBi/main/editors/libreoffice

===>>> Installation of libreoffice- (editors/libreoffice) failed
===>>> Aborting update

===>>> Update for editors/libreoffice failed
===>>> Aborting update

===>>> There are messages from installed ports to display,
       but first take a moment to review the error messages
       above.  Then press Enter when ready to proceed. 

Expected result:
- The upgrade should proceed normally.

- This has been happening since a few months.
- The workaround is to deinstall all libreoffice ports first and then to run
"portmaster editors/libreoffice-i18n"
- See also bug #265936, but here neither editors/libreoffice-i18n nor
german/libreoffice were installed so that the bug described there does not
occur (infinite portmaster recursion).

-- Martin