Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949547 - sci-geosciences/qgis installs mime-types file that breaks dev-ruby/ruby-gio2 tests
Summary: sci-geosciences/qgis installs mime-types file that breaks dev-ruby/ruby-gio2 ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2025-02-10 01:49 UTC by Jonathan Lovelace
Modified: 2025-02-10 02:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-ruby:ruby-gio2-4.2.4:20250209-153255.log (dev-ruby:ruby-gio2-4.2.4:20250209-153255.log,11.05 KB, text/plain)
2025-02-10 01:49 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,10.22 KB, text/plain)
2025-02-10 01:49 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2025-02-10 01:49:27 UTC
Created attachment 918519 [details]
dev-ruby:ruby-gio2-4.2.4:20250209-153255.log

When sci-geosciences/qgis is installed (unless I manually edit /usr/share/mime/packages/qgis.xml to remove the offending section), the test suite of dev-ruby/ruby-gio2 fails:

===============================================================================
Failure: test_icon(TestContentType)
/var/tmp/portage/dev-ruby/ruby-gio2-4.2.4/work/ruby32/ruby-gnome-4.2.4/gio2/test/test-content-type.rb:25:in `test_icon'
     22:   end
     23:
     24:   def test_icon
  => 25:     assert_equal("image-jpeg",
     26:                  @content_type.icon.names.first)
     27:   end
     28:
<"image-jpeg"> expected but was
<"qgis-mime">

diff:
? qgis-mimage-jpeg
===============================================================================

This is because /usr/share/mime/packages/qgis.xml includes, in lines 109-118, a <mime-type> definition for the type "image/jpeg" associating it with the icon "qgis-mime".

I don't know whether Gentoo should remove this <mime-type> from the file when building qgis, change the ruby-gio2 test to look for "qgis-mime" when qgis is installed, skip the test, or something else ...
Comment 1 Jonathan Lovelace 2025-02-10 01:49:51 UTC
Created attachment 918520 [details]
emerge-info.txt