Bug 21859

Summary: RFE: Support matching package names across different distributions to Mageia packages with DNF
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Low CC: ignatenko, marja11, ngompa13, rpmstack
Version: CauldronKeywords: UPSTREAM
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1265475
Whiteboard:
Source RPM: dnf-plugins-extras CVE:
Status comment:

Description Kristoffer Grundström 2017-10-14 03:00:23 CEST
Description of problem: I know that Ubuntu and Debian use deb to install packages from official repos. If I want to port a program/app to Mageia that only exists in Ubuntu and/or Debian but its dependancies are named for Ubuntu/Debian which makes it almost impossible and takes a longer time to find the right package to install. urpmi and/or dnf should be able to find the same package in Mageia and install it.

Like this example for instance:

urpmi kdevplatform-dev or dnf install kdevplatform-dev
Checking package content...
This package seems to come from Ubuntu/Debian.
Do you want me to find a package like this with similar content (example file name) in your medias?
Select [y/n]y
Searching for XXXXXXX in your medias.
Found 1 hit.
Installing package task-plasma5-devel....
Done!

Version-Release number of selected component (if applicable): 8.110
Comment 1 Kristoffer Grundström 2017-10-14 03:01:43 CEST
I hope you know what I mean.

I think there's an older package called distromatch that could be used instead if urpmi and/or dnf can't get this function.
Comment 2 Kristoffer Grundström 2017-10-14 03:02:20 CEST
Yes, here it is: https://github.com/spanezz/distromatch
Marja Van Waes 2017-10-14 12:29:45 CEST

Source RPM: urpmi => urpmi, dnf
CC: (none) => marja11, rpmstack

Comment 3 Neal Gompa 2017-10-14 12:58:55 CEST
So... This could be done with DNF, as it does have a plugin architecture that would allow for such a thing.

In fact, I made such a request two years ago for DNF: https://bugzilla.redhat.com/show_bug.cgi?id=1265475

Unfortunately, today, the service that provided the necessary metadata doesn't exist anymore (the URL is dead), so someone would need to regenerate that data and host it somewhere before this could be attempted again.

See Also: (none) => https://bugzilla.redhat.com/show_bug.cgi?id=1265475
CC: (none) => ngompa13

Neal Gompa 2017-10-14 12:59:48 CEST

Source RPM: urpmi, dnf => dnf
Summary: URPMI and/or DNF should be able to install a package even if it's named for Ubuntu/Debian to resolve issue with finding the right dependancies. => DNF should be able to install a package even if it's named for Ubuntu/Debian to resolve issue with finding the right dependancies.
Assignee: bugsquad => ngompa13

Neal Gompa 2017-10-14 13:00:09 CEST

Source RPM: dnf => dnf-plugins-extras

Comment 4 Neal Gompa 2017-10-14 17:34:30 CEST
Igor, do you think it would be possible for a Fedora service to provide this data to be set up so that something like this would work?

CC: (none) => ignatenko
Keywords: (none) => UPSTREAM

Comment 5 Igor Gnatenko 2017-10-14 17:51:10 CEST
I dont think so...
Comment 6 Marja Van Waes 2017-10-27 19:58:56 CEST
Mass-change status to NEW for all bugs that were filed as UNCONFIRMED between October 9 and now, and that still have that status now.

From now on all newly filed bugs will have the NEW status again, like before, regardless of who files the report.

Ever confirmed: 0 => 1
Status: UNCONFIRMED => NEW

Comment 7 Neal Gompa 2017-11-12 03:51:15 CET
I'm marking this as low priority for now.

Implementing something like this would be tricky without resources and the ability to sustain it, but after that, it's just a matter of writing a plugin that could reference it and match names across distributions.

It'd be tricky, but possible.

If someone wants to take it up, feel free to work with upstream dnf-plugins-extras to make it a thing. :)

Priority: Normal => Low

Neal Gompa 2017-11-12 03:51:47 CET

Summary: DNF should be able to install a package even if it's named for Ubuntu/Debian to resolve issue with finding the right dependancies. => RFE: Support matching package names across different distributions to Mageia packages with DNF

Comment 8 Kristoffer Grundström 2017-11-12 04:37:47 CET
(In reply to Neal Gompa from comment #7)
> I'm marking this as low priority for now.
> 
> Implementing something like this would be tricky without resources and the
> ability to sustain it, but after that, it's just a matter of writing a
> plugin that could reference it and match names across distributions.
> 
> It'd be tricky, but possible.
> 
> If someone wants to take it up, feel free to work with upstream
> dnf-plugins-extras to make it a thing. :)

A solution like that already exists:

https://github.com/spanezz/distromatch

We just need to implement it.
Comment 9 Neal Gompa 2017-11-12 05:40:05 CET
I'm aware of the solution, in fact, if you look at the linked redhat bug, I suggested that too.

The issue is that the distromatch data necessary that was hosted on dde.debian.net is no longer available. Indeed, dde.debian.net has disappeared entirely.
Comment 10 Kristoffer Grundström 2017-11-12 06:25:26 CET
https://web.archive.org/web/20130504223545/http://dde.debian.net/ shows me some files and directories. Are they useful?