Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707284 - sci-chemistry/chemical-mime-data-0.1.94-r3 claims content-type chemical/x-turbomole-vibrational for all files with three character filenames
Summary: sci-chemistry/chemical-mime-data-0.1.94-r3 claims content-type chemical/x-tur...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-01-29 19:00 UTC by Markus Kaindl
Modified: 2020-02-07 18:41 UTC (History)
3 users (show)

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


Attachments
Patch to remove problematic mime-type (chemical-mime-data-0.1.94-turbomole_vibration.patch,934 bytes, patch)
2020-01-29 19:02 UTC, Markus Kaindl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Kaindl 2020-01-29 19:00:54 UTC
content-type chemical/x-turbomole-vibrational is assigned to all non-empty files, which have a filename containing only three characters

This causes unexpected behavior, e.g. https://bugs.gentoo.org/701900

I also reported Bug upstream: https://github.com/dleidert/chemical-mime/issues/1

I also attached a patch as workaround as long as it's not fixed upstream.

Reproducible: Always

Steps to Reproduce:
1.emerge sci-chemistry/chemical-mime-data
2.echo test > bcd
3.gio info -a 'standard::content-type' bcd
Actual Results:  
Adresse: file:///tmp/vibration/bcd
Attribute:
  standard::content-type: chemical/x-turbomole-vibrational


Expected Results:  
Adresse: file:///tmp/vibration/bcd
Attribute:
  standard::content-type: text/plain
Comment 1 Markus Kaindl 2020-01-29 19:02:33 UTC
Created attachment 608390 [details, diff]
Patch to remove problematic mime-type
Comment 3 Larry the Git Cow gentoo-dev 2020-02-07 18:41:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db812912bedf3a9abd4e24a9db087d3212638159

commit db812912bedf3a9abd4e24a9db087d3212638159
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2020-02-07 18:35:45 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2020-02-07 18:41:07 +0000

    sci-chemistry/chemical-mime-data: Drop problematic mime type
    
    Bug: https://bugs.gentoo.org/701900
    Closes: https://bugs.gentoo.org/707284
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 .../chemical-mime-data-0.1.94-r4.ebuild            | 53 ++++++++++++++++++++++
 ...me-data-0.1.94-drop-turbomole-vibrational.patch | 20 ++++++++
 2 files changed, 73 insertions(+)