Upgrading port with flavors misbehaviour (with `portmaster`)

I'm writing a port maintainer program and I seen a strange misbehaviour. I do not know if this has to do with portmaster.

This happen in a virtual machine in VirtualBox
Code:
root at elopao-vm
~> freebsd-version -kru
14.1-RELEASE-p5
14.1-RELEASE-p5
14.1-RELEASE-p6

I installed it a couple of months ago with kmod drivers graphics/gpu-firmware-kmod with the command

portmaster graphics/gpu-firmware-kmod

All the drivers (amd, intel and radeon) will be installed (I thought). And that's a fact.

Last week I upgraded the ports tree (with git), checked the stale ports ( pkg version -I -l '<') and run the upgrade with portmaster(8)

portmaster -a

In the list of ports to upgrade there was graphics/gpu-firmware-kmod too.

Today

In my program I display port information per flavor, and I check what flavor is installed, so (as a simple example) for the port devel/git it shows
Code:
devel
    git
        default
        lite
        tiny (installed)

for port graphics/gpu-firmware-intel-kmod it shows
Code:
graphics
    gpu-firmware-intel-kmod (installed)
        skylake (installed)
        broxton (installed)
        kabylake (installed)
        geminilake (installed)
        cannonlake (installed)
        icelake (installed)
        elkhartlake (installed)
        tigerlake (installed)
        rocketlake (installed)
        dg1 (installed)
        dg2
        alderlake (installed)
The `dg2` flavor is not installed. This I think is the anomaly. So I manually installed it.

make FLAVOR=dg2 -C /usr/ports/graphics/gpu-firmware-intel-kmod install clean

After the installation I re-run my command
Code:
graphics
    gpu-firmware-intel-kmod (installed)
        skylake (installed)
        broxton (installed)
        kabylake (installed)
        geminilake (installed)
        cannonlake (installed)
        icelake (installed)
        elkhartlake (installed)
        tigerlake (installed)
        rocketlake (installed)
        dg1 (installed)
        dg2 (installed)
        alderlake (installed)

I do not know if the flavor `dg2` was added after I installed the first time that port or it was never compiled.
 
Last edited by a moderator:
graphics/gpu-firmware-kmod doesn't include it.
Code:
.if ${ARCH} == amd64 || ${ARCH} == i386
RUN_DEPENDS+=	gpu-firmware-intel-kmod-skylake>0:graphics/gpu-firmware-intel-kmod@skylake \
		gpu-firmware-intel-kmod-broxton>0:graphics/gpu-firmware-intel-kmod@broxton \
		gpu-firmware-intel-kmod-kabylake>0:graphics/gpu-firmware-intel-kmod@kabylake \
		gpu-firmware-intel-kmod-geminilake>0:graphics/gpu-firmware-intel-kmod@geminilake \
		gpu-firmware-intel-kmod-cannonlake>0:graphics/gpu-firmware-intel-kmod@cannonlake \
		gpu-firmware-intel-kmod-icelake>0:graphics/gpu-firmware-intel-kmod@icelake \
		gpu-firmware-intel-kmod-elkhartlake>0:graphics/gpu-firmware-intel-kmod@elkhartlake \
		gpu-firmware-intel-kmod-tigerlake>0:graphics/gpu-firmware-intel-kmod@tigerlake \
		gpu-firmware-intel-kmod-rocketlake>0:graphics/gpu-firmware-intel-kmod@rocketlake \
		gpu-firmware-intel-kmod-dg1>0:graphics/gpu-firmware-intel-kmod@dg1 \
		gpu-firmware-intel-kmod-alderlake>0:graphics/gpu-firmware-intel-kmod@alderlake
.endif
 
Back
Top