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

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Aug 2022 11:26:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265943

            Bug ID: 265943
           Summary: editors/libreoffice: upgrading via portmaster leads to
                    conflict with existing installed port
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
             Flags: maintainer-feedback?(office@FreeBSD.org)
          Assignee: office@FreeBSD.org

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

Result:
- 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
/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/editors/libreoffice/work/libreoffice-7.4.0.3/bin/distro-install-sdk
SDK installation clean up
/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/editors/libreoffice/work/libreoffice-7.4.0.3/bin/distro-install-file-lists
Generating package file lists for FreeBSD ports...
gmake[2]: Leaving directory
'/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/editors/libreoffice/work/libreoffice-7.4.0.3'
====> 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:
        fr-libreoffice: 7.3.5.2

Number of packages to be removed: 1

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

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

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

===>  Installing for libreoffice-7.4.0.3
===>  Checking if libreoffice is already installed
===>   An older version of libreoffice is already installed
(libreoffice-7.3.5.2_2)
      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

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

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

===>>> Installation of libreoffice-7.4.0.3 (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.

Notes:
- 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

-- 
You are receiving this mail because:
You are the assignee for the bug.