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

Packages with removed dependencies #9456

Open
Zopolis4 opened this issue Mar 9, 2024 · 2 comments
Open

Packages with removed dependencies #9456

Zopolis4 opened this issue Mar 9, 2024 · 2 comments

Comments

@Zopolis4
Copy link
Collaborator

Zopolis4 commented Mar 9, 2024

Came across this while trying to write a script-- I'm sure its indicative of a current lack of thorough testing, and tests could certainly be written to catch this.

Right now, let's just get the issue fixed.

Code I hacked together to get some nice error messages, could be used as the foundation of a test if need be. At some point I do have plans for comprehensive testing of packages themselves (as opposed to the in-progress crew unit tests), but there's no harm in increasing our spotty coverage until then.

#!/usr/bin/env ruby

# Add >LOCAL< lib to LOAD_PATH so that packages can be loaded
$LOAD_PATH.unshift '../lib'

require_relative '../lib/package'

Dir.glob('../packages/*.rb').each do |filename|
  pkg = Package.load_package(filename)
  begin
    dependencies = pkg.get_deps_list
  rescue Errno::ENOENT => e
    puts "#{pkg.name} depends on removed package #{e.to_s[/\/packages\/(\w+)\.rb/, 1]}"
  end
end

Affected packages:

dexed depends on removed package dub
obs depends on removed package qtsvg
plplot depends on removed package qtsvg
stellarium depends on removed package qtlocation

I ran the code on all architectures, so these should be the only broken packages.

@YeesterPlus

This comment was marked as spam.

@ghost

This comment was marked as spam.

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

2 participants