freebsd / portmaster

FreeBSD port management script without external databases or languages
77 stars 40 forks source link

Working with FLAVOR #55

Closed Ishayahu closed 1 year ago

Ishayahu commented 6 years ago

===>>> The accessibility/py3-atspi port moved to accessibility/py-atspi@py36 ===>>> Reason: Moved to a flavored, generic, version

Now it doesn't works with ports moved to a flavored version

serge-vk commented 6 years ago

This is still the case with the latest portmaster 3.19_8. For any port with py27 and py36 flavours installed I get something like this:

      Package version: py36-cffi-1.11.5
       Latest version:  py27-cffi-1.11.5
    ===>>> py36-cffi-1.11.5.txz matches the installed version
    ===>>> Path: /var/ports/packages/All/py36-cffi-1.11.5.txz

    ===>>> Delete stale package: py36-cffi-1.11.5.txz? y/n [n]
Ishayahu commented 6 years ago

Last two month all upgrades with portmaster were without errors, I thougt it was done allready...

serge-vk commented 6 years ago

I am not sure where it breaks. Right now, I see this problem when running portmaster --clean-packages. Whenever there are more than one flavour of a package installed, I see this type of messages. I've just run it to check and here's a sample output:

# portmaster --clean-packages
...
===>>> protobuf-3.5.2,1.txz is up to date

===>>> psutils-1.17_5.txz is up to date

===>>> Package version: py27-Babel-2.5.3
       Latest version:  py36-Babel-2.5.3
    ===>>> py27-Babel-2.5.3.txz matches the installed version
    ===>>> Path: /var/ports/packages/All/py27-Babel-2.5.3.txz

    ===>>> Delete stale package: py27-Babel-2.5.3.txz? y/n [n]

When there are many py27+py36 packages, it becomes quite bothersome.

stesser commented 1 year ago

The port has been updated to version 3.26, which should fix this issue for ports with flavors. The fix does only apply to flavored ports (some have the issue due to an interpreter version prefix in the package name despite not using flavors) and it does not support the combination of --clean-packages with --index or --index-only, since the index does not contain any information about package flavors.