Page MenuHomeFreeBSD

devel/kiwix-tools: Depend on devel/libkiwix13
ClosedPublic

Authored by olce on Thu, Jan 9, 5:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 1:32 AM
Unknown Object (File)
Wed, Jan 15, 10:46 AM
Unknown Object (File)
Wed, Jan 15, 6:47 AM
Unknown Object (File)
Wed, Jan 15, 5:35 AM
Unknown Object (File)
Wed, Jan 15, 4:10 AM
Unknown Object (File)
Tue, Jan 14, 3:26 PM
Unknown Object (File)
Sun, Jan 12, 4:34 PM
Unknown Object (File)
Fri, Jan 10, 1:22 PM
Subscribers
None

Details

Summary

This will allow updating devel/libkiwix to 14.0.0 again without breaking
the build of devel/kiwix-tools, whose latest released version at time of
this writing requires libkiwix 13.

This is a maintainer update (olce.freebsd.ports@certner.fr).

Fixes: dafb538b3fd6 ("devel/libkiwix: Update to 14.0.0")

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Thu, Jan 9, 5:10 PM
olce created this revision.
UPDATING
21–26

Are you sure this is necessary? While the solver may have to do two passes, I think a simple pkg upgrade should suffice, but maybe there are corner cases that I'm missing.

UPDATING
21–26

I tested by:

  1. installing www/kiwix-tools built from main
  2. building www/kiwix-tools with the three reviews applied
  3. pkg upgrade

Other than the weirdness of pkg wanting to reinstall itself, it seems to do the right thing.

% sudo pkg upgrade
Updating ser repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01
Fetching data.pkg: 100%  329 KiB 336.8kB/s    00:01
Processing entries: 100%
The provides database is up-to-date.
ser repository update completed. 1408 packages processed.
All repositories are up to date.
Checking for upgrades (2 candidates): 100%
Processing candidates (2 candidates): 100%
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        libkiwix13: 13.1.0

Installed packages to be UPGRADED:
        kiwix-tools: 3.7.0 -> 3.7.0_1

Number of packages to be installed: 1
Number of packages to be upgraded: 1

The process will require 2 MiB more space.
644 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/2] Fetching kiwix-tools-3.7.0_1.pkg: 100%   43 KiB  44.2kB/s    00:01
[2/2] Fetching libkiwix13-13.1.0.pkg: 100%  601 KiB 615.3kB/s    00:01
Checking integrity... done (2 conflicting)
  - libkiwix13-13.1.0 conflicts with libkiwix-13.1.0 on /usr/local/bin/kiwix-compile-i18n
  - libkiwix13-13.1.0 conflicts with libkiwix-13.1.0 on /usr/local/bin/kiwix-compile-i18n
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 4 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        libkiwix: 13.1.0

New packages to be INSTALLED:
        libkiwix13: 13.1.0

Installed packages to be UPGRADED:
        kiwix-tools: 3.7.0 -> 3.7.0_1

Installed packages to be REINSTALLED:
        pkg-1.21.3

Number of packages to be removed: 1
Number of packages to be installed: 1
Number of packages to be upgraded: 1
Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/4] Deinstalling libkiwix-13.1.0...
[1/4] Deleting files for libkiwix-13.1.0: 100%
[2/4] Installing libkiwix13-13.1.0...
[2/4] Extracting libkiwix13-13.1.0: 100%
[3/4] Reinstalling pkg-1.21.3...
[3/4] Extracting pkg-1.21.3: 100%
[4/4] Upgrading kiwix-tools from 3.7.0 to 3.7.0_1...
[4/4] Extracting kiwix-tools-3.7.0_1: 100%
You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
UPDATING
21–26

Well, I had a different experience:

# pkg upgrade
Updating local repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01    
Fetching data.pkg: 100%  579 KiB 592.6kB/s    00:01    
Processing entries: 100%
local repository update completed. 2391 packages processed.
All repositories are up to date.
Checking for upgrades (5 candidates): 100%
Processing candidates (5 candidates): 100%
Checking integrity... done (2 conflicting)
  - libkiwix13-13.1.0 conflicts with libkiwix-14.0.0 on /usr/local/bin/kiwix-compile-i18n
  - libkiwix13-13.1.0 conflicts with libkiwix-13.1.0 on /usr/local/bin/kiwix-compile-i18n
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        kiwix-tools: 3.7.0

Installed packages to be UPGRADED:
        libkiwix: 13.1.0 -> 14.0.0

Installed packages to be REINSTALLED:
        ffmpeg4-4.4.4_12 (options changed)

Number of packages to be removed: 1
Number of packages to be upgraded: 1
Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: N

hence the comment in UPDATING, but I'm not sure why (perhaps I had also re-installed manually devel/libkiwix at some point, and so was not flag as "automatic"; the ffmpeg4 update is just unrelated noise and is due to a recent rebuild of mine with different options).

I solved this like that:

# pkg upgrade kiwix-tools
Updating local repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01    
Fetching data.pkg: 100%  579 KiB 592.6kB/s    00:01    
Processing entries: 100%
local repository update completed. 2391 packages processed.
All repositories are up to date.
Checking integrity... done (2 conflicting)
  - libkiwix13-13.1.0 conflicts with libkiwix-13.1.0 on /usr/local/bin/kiwix-compile-i18n
  - libkiwix13-13.1.0 conflicts with libkiwix-14.0.0 on /usr/local/bin/kiwix-compile-i18n
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        libkiwix: 13.1.0

New packages to be INSTALLED:
        libkiwix13: 13.1.0

Installed packages to be UPGRADED:
        kiwix-tools: 3.7.0 -> 3.7.0_1

Number of packages to be removed: 1
Number of packages to be installed: 1
Number of packages to be upgraded: 1

Proceed with this action? [y/N]: y
[1/3] Deinstalling libkiwix-13.1.0...
[1/3] Deleting files for libkiwix-13.1.0: 100%
[2/3] Installing libkiwix13-13.1.0...
[2/3] Extracting libkiwix13-13.1.0: 100%
[3/3] Upgrading kiwix-tools from 3.7.0 to 3.7.0_1...
[3/3] Extracting kiwix-tools-3.7.0_1: 100%

My pkg for these runs is 1.21.2, which seems to be almost the same as 1.21.3 according to https://github.com/freebsd/pkg/compare/1.21.2...1.21.3.

olce marked 2 inline comments as done.Fri, Jan 10, 9:22 AM
olce added inline comments.
UPDATING
21–26

I've retried in order to rule out a potential effect of incorrect "automatic" flags, and still see the same behavior:

# pkg upgrade
Updating local repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01    
Fetching data.pkg: 100%  579 KiB 592.5kB/s    00:01    
Processing entries: 100%
local repository update completed. 2391 packages processed.
All repositories are up to date.
Checking for upgrades (5 candidates): 100%
Processing candidates (5 candidates): 100%
Checking integrity... done (2 conflicting)
  - libkiwix13-13.1.0 conflicts with libkiwix-14.0.0 on /usr/local/bin/kiwix-compile-i18n
  - libkiwix13-13.1.0 conflicts with libkiwix-13.1.0 on /usr/local/bin/kiwix-compile-i18n
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        kiwix-tools: 3.7.0

Installed packages to be UPGRADED:
        libkiwix: 13.1.0 -> 14.0.0
        libzim: 9.2.1 -> 9.2.3

Number of packages to be removed: 1
Number of packages to be upgraded: 2

Proceed with this action? [y/N]:

I don't know why we don't see the same behavior, that worries me a little bit. In the meantime, having an entry in UPDATING is more prudent. Do you think it is OK or too alarming?

This revision is now accepted and ready to land.Fri, Jan 10, 9:29 AM
This revision was automatically updated to reflect the committed changes.