Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fink cleanup --all fails to remove class-tiny-pm5184 and cpan-meta-requirements-pm5184 #1108

Open
cooljeanius opened this issue Nov 20, 2023 · 5 comments

Comments

@cooljeanius
Copy link

Not sure if this is an issue with base or the packages in question, but anyways, when I do fink cleanup --all, it currently fails with the following message:

$ fink cleanup --all 
Password:
Information about 15243 packages read in 5 seconds.
Collecting active source filenames...
Obsolete sources deleted from /opt/sw/src: 0

Scanning deb collection...
Obsolete deb packages deleted from fink trees: 0

Obsolete symlinks deleted: 0

Reading buildlock packages...
	All buildlocks accounted for.

The following 2 obsolete package(s) will be removed:
               class-tiny-pm5184  1.008-1  OBSOLETE: use class-tiny-pm
   cpan-meta-requirements-pm5184  2.143-1  OBSOLETE: use cpan-meta-requirements-pm

/opt/sw/bin/dpkg-lockwait --purge class-tiny-pm5184 cpan-meta-requirements-pm5184
dpkg: dependency problems prevent removal of class-tiny-pm5184:
 path-isdev-pm5184 depends on class-tiny-pm5184 (>= 0.010-1).
 path-finddev-pm5184 depends on class-tiny-pm5184 (>= 0.010-1).
 pod-spell-pm5184 depends on class-tiny-pm5184.
 test-file-sharedir-pm5184 depends on class-tiny-pm5184.
/opt/sw/bin/dpkg: error processing class-tiny-pm5184 (--purge):
 dependency problems - not removing
dpkg: dependency problems prevent removal of cpan-meta-requirements-pm5184:
 extutils-makemaker-pm5184 depends on cpan-meta-requirements-pm5184 (>= 2.121-1).
 cpan-pm5184 depends on cpan-meta-requirements-pm5184.
 cpan-meta-check-pm5184 depends on cpan-meta-requirements-pm5184 (>= 2.121).
 cpan-meta-pm5184 depends on cpan-meta-requirements-pm5184 (>= 2.121-1).
/opt/sw/bin/dpkg: error processing cpan-meta-requirements-pm5184 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 class-tiny-pm5184
 cpan-meta-requirements-pm5184
### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1

WARNING: not all obsolete packages could be removed.
/opt/sw/sbin/fink-dpkg-status-cleanup
/opt/sw/var/lib/dpkg/status cleanup:
	keep 4470
	omit 0

I guess the dependencies should be updated so that they no longer depend on obsolete packages? Either that or they should be obsoleted themselves, or the obsoletions should be reversed.

@cooljeanius
Copy link
Author

cc @danielj7 (maintainer for packages in question)

@nieder
Copy link
Member

nieder commented Nov 26, 2023

Something is up with only partially updated packages in your tree, but the deps should have been taken care of.

For example, this belongs to path-isdev-pm5184:

Depends: <<
class-tiny-pm (>= 0.010-1),
file-homedir-pm%type_pkg[perl],
module-runtime-pm%type_pkg[perl],
path-tiny-pm%type_pkg[perl] (>= 0.058),
perl%type_pkg[perl]-core,
role-tiny-pm,
sub-exporter-pm%type_pkg[perl]
<<

The unvarianted path-tiny-pm is on there, so path-isdev-pm5184 should not be needing path-tiny-pm5184 like your error message says.

@nieder
Copy link
Member

nieder commented Nov 26, 2023

Actually, the more I think about it, it might be that Fink sees path-tiny-pm5184 as obsolete, so cleanup tries to remove it, but you don't actually have path-tiny-pm installed yet (or the updated path-isdev-pm5184), so the removal fails on the dependency check. Have you tried to update the perlmods before running fink-cleanup?

@dmacks
Copy link
Member

dmacks commented Nov 26, 2023

The cleanup-obsolete is being blocked here solely at the dpkg level. The dependencies at the fink .info level all appear to be fixed, as nieder notes. But until the new version of the dependant package is installed, the obsolete dependency cannot be removed because the old version of the dependant package is currently installed. Check "fink list -ot" and make sure everything is actually installed at the current version: i not (i).

@cooljeanius
Copy link
Author

Ah ok, so I guess this is just a side-effect of #1075 still afflicting me, then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants