Bug 1811741 - /usr/bin/perl is no longer pulled in by perl packages, making builds fail
Summary: /usr/bin/perl is no longer pulled in by perl packages, making builds fail
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-09 16:36 UTC by Nicolas Mailhot
Modified: 2020-03-10 06:43 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 06:43:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2020-03-09 16:36:09 UTC
INFO: mock.py version 2.0 starting (python version = 3.8.2)...
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux enabled

…

Installed size: 278 M
Downloading Packages:                                                                                                        407 kB/s |  57 kB     00:00    
(149/151): perl-overloading-0.02-451.fc33.noarch.rpm                                                                                                          174 kB/s |  24 kB     00:00    
(150/151): perl-vars-1.05-451.fc33.noarch.rpm                                                                                                                 172 kB/s |  24 kB     00:00    
(151/151): perl-libs-5.30.1-451.fc33.x86_64.rpm                                                                                                               2.4 MB/s | 2.0 MB     00:00    

…

/usr/bin/perl: bad interpreter: No such file or directory

Comment 1 Paul Howarth 2020-03-09 17:49:56 UTC
If your package needs the perl interpreter to build, it should BuildRequires: perl-interpreter

https://fedoraproject.org/wiki/Packaging:Perl#Build_Dependencies

Comment 2 Nicolas Mailhot 2020-03-09 18:04:21 UTC
The package explicitly installs a bunch of perl packages. What use are those without an interpreter?

Comment 3 Paul Howarth 2020-03-09 19:15:44 UTC
Perl modules can be used with an embedded perl via libperl.so and so don't need /usr/bin/perl.

Existing packages should have been fixed to support this arrangement as part of:
https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules
That was a change for Fedora 27.

Is this a new package you're working on?

Comment 4 Nicolas Mailhot 2020-03-09 19:42:22 UTC
No, that‘s a package that builds in F32, built in F33 a few days ago, but does not build today in F33 without a perl-interpreter BuildRequires

Comment 5 Paul Howarth 2020-03-09 21:56:25 UTC
It'll have started failing to build as a result of this change:

https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org/thread/UWJBPOBKLN6JD74AKQKZDOUO2DGUFL4H/

The fix is to BR: perl-interpreter as per the guidelines.

Comment 6 Petr Pisar 2020-03-10 06:43:17 UTC
This is an expected behavior. If your spec file executes /usr/bin/perl, build-require perl-interpreter RPM package. Please follow the packaging guidelines.


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