From Fedora Project Wiki
m (→‎Benefit to Fedora: formatting)
(→‎Release Notes: mark as not applicable)
Line 99: Line 99:


== Release Notes ==
== Release Notes ==
TODO
 
''not applicable'' as visibility for the user is low and developers need to know before the release.


----
----


[[Category:FeaturePageIncomplete]]
[[Category:FeaturePageIncomplete]]

Revision as of 10:02, 23 January 2009

Support Noarch Sub Packages in Fedora

Summary

Since some months RPM supports sub packages being noarch. Right now the Fedora infrastructure does not support this feature. This feature will provide the technical abilities to use noarch sub packages and also provide help to use them within packages all over the distribution.

Owner

Current status

  • Targeted release: Fedora 11
  • Last updated: --Ffesti 12:46, 8 January 2009 (UTC)
  • Percentage of completion: 20%

Detailed Description

There are several steps needed:

  • Support in rpm (100%)
  • Support in koji (25%)
  • Support in other parts of the infrastructure (unknown)
  • Support in test/verification tools (unknown)
    • rpmlint (?)
    • ... (?)
  • Get a list of possible candidates (sub packages) (90%)
  • Write a mail to f-d-l and package owners (0%)
  • Write best practise documentation (0%)
  • Get packaging policy adjusted (if needed) (0%)
  • Get the packages changed

Benefit to Fedora

Noarch packages have several benefits over arch dependent packages:

  • They can be shared between different architectures and thus use up less disk space and bandwidth on both the Fedora infrastructure and our mirrors
  • They avoid double installation of data for multilib packages.
  • They tell the user that the content of the package is arch independent.

By increasing the use of noarch packages we also increase the effect of these benefits.

Additionally we can get rid of some hacks that are used to generate noarch sub packages for very few packages right now.

Scope

A small statistic on Fedora rawhide x86_64 (2009-01-22) to give an idea how many packages/files/bytes could be affected:

The files are split into 3 groups:

  1. binary: files rpm knows that they are arch dependent
  2. libdir: files that are not binaries but reside in (/usr)/lib(64)
  3. noarch: everything else

So libdir files should be noarch in most cases. Sizes are (uncompressed) bytes in files and though do not directly represent size in within packages.

15204 packages (44 GB in 2.0 M files)
        41 k binary files (8.8 GB)
       298 k libdir files (7.1 GB)
       1.7 M noarch files (28 GB)

8762 x86_64 packages (25 GB in 1.0 M files)
        31 k binary files (6.7 GB)
       182 k libdir files (5.9 GB)
       826 k noarch files (12 GB)
3132 i386 packages (5.3 GB in 280 k files)
        10 k binary files (2.0 GB)
        32 k libdir files (551 MB)
       237 k noarch files (2.7 GB)
2 i686 packages (17 MB in 433  files)
        295  binary files (15 MB)
         44  libdir files (95 kB)
         94  noarch files (1.3 MB)
3308 noarch packages (13 GB in 755 k files)
         88  binary files (2.3 MB)
        84 k libdir files (635 MB)
       671 k noarch files (13 GB)

903 (sub) packages in 571 source packages could be directly switched to noarch (filtering out 32 bit packages): media:NoarchCandidates.txt

Test Plan

  1. Build one noarch subpackge and make sure it makes it into the distribution

User Experience

  • Slightly improved mirrors due to less transfer size
  • Only packages containing binaries will be arch dependent

Dependencies

  • None (all needed steps included in this Feature)

Contingency Plan

  • Move target to Fedora 12
  • As soon as the technical problems have been fixed moving more sub packages to noarch can be a continuing process.

Documentation

TODO: link to rpm docs describing noarch subpackages

Release Notes

not applicable as visibility for the user is low and developers need to know before the release.