Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2024 09:59:42 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        david@catwhisker.org, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   RE: Why does pkg insist on replacing "normal" ports with -nox11 ones? 
Message-ID:  <8012383A-000A-44F6-A0E7-D002F428FD46@yahoo.com>
References:  <8012383A-000A-44F6-A0E7-D002F428FD46.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Wolfskill <david_at_catwhisker.org> wrote on
Date: Tue, 24 Dec 2024 14:46:46 UTC  :

> As an experiment, I set up my newest laptop to update only via
> freebsd-update and installed only pre-built packages. (I am far more
> accustomed to building FreeBSD from source, as well as updating ports
> either via portmaster or by buidling my own packages, so there's a
> fairly high probability that I've rather lost the plot, here.)
>=20
> Now, the laptop is set up to run xdm at start-up; it's very much an
> "X11" setup.
>=20
> And for reference, it's running:
>=20
> FreeBSD g1-96.catwhisker.org 14.2-RELEASE FreeBSD 14.2-RELEASE =
releng/14.2-n269506-c8918d6c7412 GENERIC amd64
>=20
> And I run "pkg upgrade" on it every morning, to keep the packages
> up-to-date.
>=20
> A while back, I had decided that I wanted to use gimp, so I installed
> that. (via "pkg install ...") without fuss.
>=20
> This morning, I tried a script that I had cobbled up a while back (and
> used on an older laptop) which makes use of ImageMagik's "convert"
> utility -- and found that it wasn't installed on the newer laptop.
>=20
> So:
>=20
> | g1-96(14.2-R)[16] pkg install graphics/ImageMagick7
> . . .

Using this as an example for identifying the type of Makefile
notation involved to help predict from that . . .

# grep -E "(FLAVOR|PKG)" /usr/ports/graphics/ImageMagick7/Makefile
PKGNAMESUFFIX=3D 7
FLAVORS=3D x11 nox11
FLAVOR?=3D ${FLAVORS:[1]}
FLAVORS_SUB=3D yes
nox11_PKGNAMESUFFIX=3D 7-nox11
. . .

That "FLAVOR?=3D ${FLAVORS:[1]}" picks out the nox11 as the default.

More explicit but still in origin notation might be (presuming
it is accepted for install):

# pkg install graphics/ImageMagick7@x11

Seeing if there is a FLAVORS list and what its content is can be
helpful for knowing what to type.

The "nox11_PKGNAMESUFFIX=3D    7-nox11" is what made the package name
have -nox11 as part of its suffix. Nothing was set up to have a
-x11 in the package naming for the other case.

In package notation:

# pkg install ImageMagick7

will happen to pick out the x11 FLAVOR instead of the
ImageMagick7-nox11 FLAVOR.

It can be harder to identify the package notation for a
FLAVOR than to identify the origin @FLAVOR suffix to use.
This port's an example of that. Some ports always have
a suffix (or prefix) notation for each FLAVOR.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8012383A-000A-44F6-A0E7-D002F428FD46>