Why does enscript-letter require postgresql-client?

I am installing enscript-letter in a special purpose jail. In this jail I am running postgresql-16. When I try to install the enscript-letter pkg I see this:
Code:
# pkg install enscript-letter
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    enscript-letter: 1.6.6_3
    postgresql15-client: 15.5

Number of packages to be installed: 2

The process will require 16 MiB more space.
3 MiB to be downloaded.

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

I have a work-around for this situation:
Code:
# pkg fetch enscript-letter
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following packages will be fetched:

New packages to be FETCHED:
    enscript-letter: 1.6.6_3 (321 KiB: 100.00% of the 321 KiB to download)

Number of packages to be fetched: 1

321 KiB to be downloaded.

Proceed with fetching packages? [y/N]: y
Fetching enscript-letter-1.6.6_3.pkg: 100%  321 KiB 328.8kB/s    00:01    

# ll /var/cache/pkg/*enscript*
lrwxr-xr-x  1 root  wheel      38 Mar 20 10:23 /var/cache/pkg/enscript-letter-1.6.6_3.pkg -> enscript-letter-1.6.6_3~967b225494.pkg
-rw-r--r--  1 root  wheel  328824 Feb 16 05:39 /var/cache/pkg/enscript-letter-1.6.6_3~967b225494.pkg

# pkg add -f /var/cache/pkg/enscript-letter-1.6.6_3~967b225494.pkg
[openxpki-3.internal.harte-lyne.ca.] Installing enscript-letter-1.6.6_3...
[openxpki-3.internal.harte-lyne.ca.] Extracting enscript-letter-1.6.6_3: 100%

But why does enscript-letter have a dependency on posgresql-client in the first place?
 
It's not print/enscript-letter that's pulling in the dependency.

In this jail I am running postgresql-16.
You likely have something else installed that does have a dependency on the Postgresql client. And because 15 is the default version it's going to try to install that.

Build from ports (or set up your own repository) and set DEFAULT_VERSIONS+= pgsql=16 if you want everything to depend on PostgreSQL 16.
 
Back
Top