Re: Removing perl from build root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31/03/16 14:10, Petr Pisar wrote:
Fedora's minimal build root contains perl. There is a reasonable request
<https://bugzilla.redhat.com/show_bug.cgi?id=1158860> to
remove the perl in order to minimize the build root. (The x86_64 F25 build
root occupies 527 MB now, 20 MB of that are perl packages.)

The reason why perl is there is the rpm-build package. The Requires dependency
tree looks like:

rpm-build
     perl-generators
         perl(:MODULE_COMPAT_5.22.1)
         perl(Fedora::VSP)
         perl
             perl-macros
     system-rpm-config   (a Provide)
         redhat-rpm-config
             perl-srpm-macros

While perl-srpm-macros's presence is intended, perl-generators' presence is
unwanted.

On technical level, the reason is the rpm-build binary package requires
perl-generators explicitely. It's there for backward compatibility. Simply
removing the dependency removes perl from minimal build root.

But the compatibility is important. Without perl-generators in a build root no
Perl dependencies are generated into binary packages. To fix it, every Perl
package must build-require perl-generators.

Might it not be easier to use the newly-allowed boolean dependencies, e.g. in rpm-build something like this:

Requires: (perl-generators if perl-libs)

Paul.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux