|
Bugzilla – Full Text Bug Listing |
| Summary: | Migrate away from update-alternatives (phase 1) | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Martin Schreiner <martin.schreiner> |
| Component: | Other | Assignee: | Martin Schreiner <martin.schreiner> |
| Status: | IN_PROGRESS --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | dleuenberger, kstreitova, martin.schreiner |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
First report
Python script, V1 |
||
|
Description
Martin Schreiner
2024-01-23 21:35:15 UTC
I wrote a short Python script to analyse all spec files in openSUSE:Factory. It produces a report which contains the following information: The spec file name. The amount of alternatives is provides. A calculated MD5 hash for the set of alternatives, so that we can establish two spec files provide the same set of alternatives, by comparing its hash. The list of alternatives provided by said spec file. Note: The script isn't perfect, as finding the provided alternatives using regular expressions isn't a trivial problem. But it provides some basic guidance. The report is attached to this bug. Created attachment 872111 [details]
First report
Created attachment 872112 [details]
Python script, V1
Of all the packages we have to migrate, I thought we could start with an easy one. "transmission" is a single spec file which creates a few different packages, a few of them providing the "transmission" alternative. As such, I decided to migrate this package myself, to serve as a starting point and to illustrate how future packages may be migrated. A working build is available here: https://build.opensuse.org/package/show/home:mschreiner:alternatives/transmission I've tested it and it works well, of course we'll have many more checks once it's submitted to Factory. |