Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1908373 - RFE: Support for susedata.xml in repodata
Summary: RFE: Support for susedata.xml in repodata
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libdnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: dnf-community
TreeView+ depends on / blocked
 
Reported: 2020-12-16 14:47 UTC by Neal Gompa
Modified: 2020-12-21 12:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Example susedata.xml from openSUSE Tumbleweed non-oss repo (60.62 KB, application/xml)
2020-12-16 14:51 UTC, Neal Gompa
no flags Details
Example susedata.es.xml from openSUSE Tumbleweed non-oss repo (4.32 KB, application/xml)
2020-12-16 14:52 UTC, Neal Gompa
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.