[Notes added about: The problem seems to be specific to "pkg add":
"pkg install" worked okay. Also, with all the prerequisites
pre-installed, "pkg add" still gets the problem.]

On Apr 17, 2025, at 07:55, Mark Millard <[email protected]> wrote:

> On Apr 16, 2025, at 13:24, Mark Millard <[email protected]> wrote:
> 
>> 
>> 
>> ===>   Installing existing package /packages/All/glib-bootstrap-2.84.1,2.pkg
>> [aarch64PBase] Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] `-- Installing libiconv-1.17_1...
>> [aarch64PBase] `-- Extracting libiconv-1.17_1: .......... done
>> [aarch64PBase] `-- Installing libinotify-20240724...
>> [aarch64PBase] `-- Extracting libinotify-20240724: .......... done
>> [aarch64PBase] `-- Installing pcre2-10.45...
>> [aarch64PBase] `-- Extracting pcre2-10.45: .......... done
>> [aarch64PBase] `-- Installing py311-packaging-24.2...
>> [aarch64PBase] `-- Extracting py311-packaging-24.2: .......... done
>> [aarch64PBase] `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   | `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   | `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   | `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   | `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   `-- Installing glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   | `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   | `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   | `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   |   `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   |   | `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   |   |   `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> [aarch64PBase] |   |   |   |   |   |   |   |   |   | `-- Installing 
>> glib-bootstrap-2.84.1,2...
>> . . .
>> 
>> It eventually got:
>> 
>> . . .
>> pkg-static: 
>> archive_read_open_filename(/packages/All/glib-bootstrap-2.84.1,2.pkg): 
>> Failed to open '/packages/All/glib-bootstrap-2.84.1,2.pkg'
>> 
>> Failed to install the following 1 package(s): 
>> /packages/All/glib-bootstrap-2.84.1,2.pkg
>> =====
>> Message from libinotify-20240724:
>> 
>> --
>> You might want to consider increasing the kern.maxfiles tunable if you plan
>> to use this library for applications that need to monitor activity of a lot
>> of files.
>> *** Error code 1
> 
> I updated my alternate ports tree again to pick up
> the updated pkg-devel and retried. It still fails
> the same way . ..
> 
> [00:04:35] [10] [00:02:49] Finished   devel/gobject-introspection@bootstrap | 
> gobject-introspection-bootstrap-1.84.0,1: Failed: build-depends
> 
> with:
> 
> =======================<phase: pkg-depends    >============================
> ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
> ===>   gobject-introspection-bootstrap-1.84.0,1 depends on file: 
> /usr/local/sbin/pkg - not found
> ===>   Installing existing package /packages/All/pkg-2.1.99.2.pkg
> [aarch64PBase] Installing pkg-2.1.99.2...
> [aarch64PBase] Extracting pkg-2.1.99.2: .......... done
> ===>   gobject-introspection-bootstrap-1.84.0,1 depends on file: 
> /usr/local/sbin/pkg - found
> ===>   Returning to build of gobject-introspection-bootstrap-1.84.0,1
> . . .
> ===>   Installing existing package /packages/All/glib-bootstrap-2.84.1,2.pkg
> [aarch64PBase] Installing glib-bootstrap-2.84.1,2...
> [aarch64PBase] `-- Installing libiconv-1.17_1...
> [aarch64PBase] `-- Extracting libiconv-1.17_1: .......... done
> [aarch64PBase] `-- Installing libinotify-20240724...
> [aarch64PBase] `-- Extracting libinotify-20240724: .......... done
> [aarch64PBase] `-- Installing pcre2-10.45...
> [aarch64PBase] `-- Extracting pcre2-10.45: .......... done
> [aarch64PBase] `-- Installing py311-packaging-24.2...
> [aarch64PBase] `-- Extracting py311-packaging-24.2: .......... done
> [aarch64PBase] `-- Installing glib-bootstrap-2.84.1,2...
> [aarch64PBase] |   `-- Installing glib-bootstrap-2.84.1,2...
> [aarch64PBase] |   | `-- Installing glib-bootstrap-2.84.1,2...
> . . .
> pkg-static: 
> archive_read_open_filename(/packages/All/glib-bootstrap-2.84.1,2.pkg): Failed 
> to open '/packages/All/glib-bootstrap-2.84.1,2.pkg'
> 
> Failed to install the following 1 package(s): 
> /packages/All/glib-bootstrap-2.84.1,2.pkg
> =====
> Message from libinotify-20240724:
> 
> --
> You might want to consider increasing the kern.maxfiles tunable if you plan
> to use this library for applications that need to monitor activity of a lot
> of files.
> *** Error code 1
> 

Via looking using poudriere "bulk -i" and trying "pkg install"
instead of "pkg add" . . .

# pkg install glib-bootstrap
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
Updating local repository catalogue...
local repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 8 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
gettext-runtime: 0.23.1 [local]
glib-bootstrap: 2.84.1,2 [local]
libffi: 3.4.7 [local]
libiconv: 1.17_1 [local]
libinotify: 20240724 [local]
pcre2: 10.45 [local]
py311-packaging: 24.2 [local]
python311: 3.11.11 [local]

Number of packages to be installed: 8

The process will require 230 MiB more space.

Proceed with this action? [y/N]: y
[aarch64PBase] [1/8] Installing gettext-runtime-0.23.1...
[aarch64PBase] [1/8] Extracting gettext-runtime-0.23.1: 100%
[aarch64PBase] [2/8] Installing libffi-3.4.7...
[aarch64PBase] [2/8] Extracting libffi-3.4.7: 100%
[aarch64PBase] [3/8] Installing libiconv-1.17_1...
[aarch64PBase] [3/8] Extracting libiconv-1.17_1: 100%
[aarch64PBase] [4/8] Installing libinotify-20240724...
[aarch64PBase] [4/8] Extracting libinotify-20240724: 100%
[aarch64PBase] [5/8] Installing pcre2-10.45...
[aarch64PBase] [5/8] Extracting pcre2-10.45: 100%
[aarch64PBase] [6/8] Installing python311-3.11.11...
[aarch64PBase] [6/8] Extracting python311-3.11.11: 100%
[aarch64PBase] [7/8] Installing py311-packaging-24.2...
[aarch64PBase] [7/8] Extracting py311-packaging-24.2: 100%
[aarch64PBase] [8/8] Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] [8/8] Extracting glib-bootstrap-2.84.1,2: 100%
=====
Message from libinotify-20240724:

--
You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
=====
Message from python311-3.11.11:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py311-gdbm       databases/py-gdbm@py311
py311-sqlite3    databases/py-sqlite3@py311
py311-tkinter    x11-toolkits/py-tkinter@py311


But trying pkg add after a delete and autoremove does
repeat the problem.

For reference, after killing the "pkg add" process:

# pkg autoremove
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 10 packages:

Installed packages to be REMOVED:
gettext-runtime: 0.23.1
indexinfo: 0.3.1_1
libffi: 3.4.7
libiconv: 1.17_1
libinotify: 20240724
mpdecimal: 4.0.0
pcre2: 10.45
py311-packaging: 24.2
python311: 3.11.11
readline: 8.2.13_2

Number of packages to be removed: 10

The operation will free 215 MiB.

Proceed with deinstalling packages? [y/N]: y
[aarch64PBase] [1/10] Deinstalling gettext-runtime-0.23.1...
[aarch64PBase] [1/10] Deleting files for gettext-runtime-0.23.1: 100%
[aarch64PBase] [2/10] Deinstalling libffi-3.4.7...
[aarch64PBase] [2/10] Deleting files for libffi-3.4.7: 100%
[aarch64PBase] [3/10] Deinstalling libiconv-1.17_1...
[aarch64PBase] [3/10] Deleting files for libiconv-1.17_1: 100%
[aarch64PBase] [4/10] Deinstalling libinotify-20240724...
[aarch64PBase] [4/10] Deleting files for libinotify-20240724: 100%
[aarch64PBase] [5/10] Deinstalling mpdecimal-4.0.0...
[aarch64PBase] [5/10] Deleting files for mpdecimal-4.0.0: 100%
[aarch64PBase] [6/10] Deinstalling pcre2-10.45...
[aarch64PBase] [6/10] Deleting files for pcre2-10.45: 100%
[aarch64PBase] [7/10] Deinstalling py311-packaging-24.2...
[aarch64PBase] [7/10] Deleting files for py311-packaging-24.2: 100%
[aarch64PBase] [8/10] Deinstalling python311-3.11.11...
[aarch64PBase] [8/10] Deleting files for python311-3.11.11: 100%
[aarch64PBase] [9/10] Deinstalling readline-8.2.13_2...
[aarch64PBase] [9/10] Deleting files for readline-8.2.13_2: 100%
[aarch64PBase] [10/10] Deinstalling indexinfo-0.3.1_1...
[aarch64PBase] [10/10] Deleting files for indexinfo-0.3.1_1: 100%
pkg: Package database is busy while closing!

The following were not listed as installed by the earlier pkg
install test:

indexinfo: 0.3.1_1
mpdecimal: 4.0.0
readline: 8.2.13_2

But after their removal "pkg install" again does show them
as being installed:

# pkg install glib-bootstrap
Updating pkgbase repository catalogue...
pkgbase repository is up to date.
Updating local repository catalogue...
local repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 11 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
gettext-runtime: 0.23.1 [local]
glib-bootstrap: 2.84.1,2 [local]
indexinfo: 0.3.1_1 [local]
libffi: 3.4.7 [local]
libiconv: 1.17_1 [local]
libinotify: 20240724 [local]
mpdecimal: 4.0.0 [local]
pcre2: 10.45 [local]
py311-packaging: 24.2 [local]
python311: 3.11.11 [local]
readline: 8.2.13_2 [local]

Number of packages to be installed: 11

The process will require 233 MiB more space.

Proceed with this action? [y/N]: y
[aarch64PBase] [1/11] Installing indexinfo-0.3.1_1...
[aarch64PBase] [1/11] Extracting indexinfo-0.3.1_1: 100%
[aarch64PBase] [2/11] Installing gettext-runtime-0.23.1...
[aarch64PBase] [2/11] Extracting gettext-runtime-0.23.1: 100%
[aarch64PBase] [3/11] Installing libffi-3.4.7...
[aarch64PBase] [3/11] Extracting libffi-3.4.7: 100%
[aarch64PBase] [4/11] Installing libiconv-1.17_1...
[aarch64PBase] [4/11] Extracting libiconv-1.17_1: 100%
[aarch64PBase] [5/11] Installing libinotify-20240724...
[aarch64PBase] [5/11] Extracting libinotify-20240724: 100%
[aarch64PBase] [6/11] Installing mpdecimal-4.0.0...
[aarch64PBase] [6/11] Extracting mpdecimal-4.0.0: 100%
[aarch64PBase] [7/11] Installing pcre2-10.45...
[aarch64PBase] [7/11] Extracting pcre2-10.45: 100%
[aarch64PBase] [8/11] Installing readline-8.2.13_2...
[aarch64PBase] [8/11] Extracting readline-8.2.13_2: 100%
[aarch64PBase] [9/11] Installing python311-3.11.11...
[aarch64PBase] [9/11] Extracting python311-3.11.11: 100%
[aarch64PBase] [10/11] Installing py311-packaging-24.2...
[aarch64PBase] [10/11] Extracting py311-packaging-24.2: 100%
[aarch64PBase] [11/11] Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] [11/11] Extracting glib-bootstrap-2.84.1,2: 100%
=====
Message from libinotify-20240724:

--
You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
=====
Message from python311-3.11.11:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py311-gdbm       databases/py-gdbm@py311
py311-sqlite3    databases/py-sqlite3@py311
py311-tkinter    x11-toolkits/py-tkinter@py311

# pkg info | grep -v ^FreeBSD-
gettext-runtime-0.23.1         GNU gettext runtime libraries and programs
glib-bootstrap-2.84.1,2        Some useful routines of C programming (current 
stable version)
indexinfo-0.3.1_1              Utility to regenerate the GNU info page index
libffi-3.4.7                   Foreign Function Interface
libiconv-1.17_1                Character set conversion library
libinotify-20240724            Kevent based inotify compatible library
mpdecimal-4.0.0                C/C++ arbitrary precision decimal floating point 
libraries
pcre2-10.45                    Perl Compatible Regular Expressions library, 
version 2
pkg-2.1.99.2                   Package manager
py311-packaging-24.2           Core utilities for Python packages
python311-3.11.11              Interpreted object-oriented programming language
readline-8.2.13_2              Library for editing command lines as they are 
typed

So, likely the 3 were pre-installed by the "bulk -i".

So deleting only glib-bootstrap and then adding

# pkg delete glib-bootstrap
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:
glib-bootstrap: 2.84.1,2

Number of packages to be removed: 1

The operation will free 18 MiB.

Proceed with deinstalling packages? [y/N]: y
[aarch64PBase] [1/1] Deinstalling glib-bootstrap-2.84.1,2...
[aarch64PBase] [1/1] Deleting files for glib-bootstrap-2.84.1,2: 100%

# pkg add /packages/All/glib-bootstrap-2.84.1,2.pkg | less
[aarch64PBase] Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] `-- Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] |   `-- Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] |   | `-- Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] |   |   `-- Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] |   |   | `-- Installing glib-bootstrap-2.84.1,2...
[aarch64PBase] |   |   |   `-- Installing glib-bootstrap-2.84.1,2...
. . .

So it still happens when the prerequisites are already in place.

===
Mark Millard
marklmi at yahoo.com


Reply via email to