Bug 1908373

Summary: RFE: Support for susedata.xml in repodata
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: dnf5Assignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: dmach, jkolarik, jmracek, jrohel, lkocman, mblaha, nsella, pkratoch, ppisar, rpm-software-management, tbowling
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-09 15:44:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1665453    
Attachments:
Description Flags
Example susedata.xml from openSUSE Tumbleweed non-oss repo
none
Example susedata.es.xml from openSUSE Tumbleweed non-oss repo none

Description Neal Gompa 2020-12-16 14:47:24 UTC
Description of problem:
Zypper supports an extension to rpm-md known as the susedata.(lang.)xml file.

This extension offers a number of extra attributes, as noted here:

* https://pagure.io/rpm-metadata/blob/master/f/suse/yum-schema/susedata.rnc
* https://pagure.io/rpm-metadata/blob/master/f/suse/yum-schema/susedata.rng

This extra repodata file offers two main properties:

* A way to ship proprietary licenses for packages that need explicit user agreement via the EULA tag when the package is requested (susedata.xml)
* A way to ship translations of RPM tags (in susedata.$LANG.xml)

In order to make it possible for SUSE distributions to ship DNF instead of Zypper, we need this data handled if it exists in the repodata, and support for signaling EULA stuff out to frontends (e.g. PackageKit, which *does* support this with the Zypp backend too).

Comment 1 Neal Gompa 2020-12-16 14:51:18 UTC
Created attachment 1739663 [details]
Example susedata.xml from openSUSE Tumbleweed non-oss repo

Comment 2 Neal Gompa 2020-12-16 14:52:27 UTC
Created attachment 1739664 [details]
Example susedata.es.xml from openSUSE Tumbleweed non-oss repo

Comment 3 Neal Gompa 2020-12-16 14:52:51 UTC
I've attached some example metadata files to show what this looks like

Comment 4 Neal Gompa 2024-12-07 14:43:29 UTC
DNF5 is now where new feature development occurs, so moving this bug to there.

Comment 5 Petr Pisar 2024-12-09 15:44:04 UTC
I think you bark on a wrong tree. Fedora is not the right place for solving integration with SuSE distribution. I recommend you instead visiting DNF5 upstream <https://github.com/rpm-software-management/dnf5>.

Comment 6 Neal Gompa 2024-12-09 22:32:53 UTC
Migrated: https://github.com/rpm-software-management/dnf5/issues/1945