Hi Craig,
Thank for the feedback.
I will check in more details later.
In my opinion, there is an issue with this package 2.84-5.
Who can fix it?
Indeed, What I did is the following.
I downloaded
perl-Alien-Build-2.84-4.fc44.src.rpm
This provides 5 files
perl-Alien-*2.84-4.fc44.rpm
It seems that it also requires perl-Alien-cmake3
I installed the rpm files with dnf install
This only removed the 5 2.84-5 similar files.
To avoid issues when updating, I do
dnf update --exclude=perl-Alien-Build* --exclude=perl-Alien-Base --exclude=perl-Alien-cmake3
===========================================================================
Patrick DUPRÉ | | email: [email protected]
===========================================================================
Patrick DUPRÉ | | email: [email protected]
===========================================================================
Sent: Wednesday, July 22, 2026 at 11:45 PM
From: "Thomas Cameron via users" <[email protected]>
CC: "Thomas Cameron" <[email protected]>
Subject: Re: rpmbuild -ba perl-Alien-Build.spec
> Hello,
>
> Can somebody help me?
> When I try to create the perl-Alien-Build rpm
> rpmbuild -ba perl-Alien-Build.spec
> It is fine until I get
> RPM build errors:
> File not found: /home/pdupre/rpmbuild/BUILD/perl-Alien-Build-2.84-
> build/BUILDROOT/usr/lib64/perl5/vendor_perl/auto/*
> File not found: /home/pdupre/rpmbuild/BUILD/perl-Alien-Build-2.84-
> build/BUILDROOT/usr/lib64/perl5/vendor_perl/Alien*
> I tried to work around
> %{perl_vendorarch}/auto/*
> %{perl_vendorarch}/Alien*
> but I did not get the solution
Patrick -
After digging into this a little more, I learned something which very
well may negate trying to build an RPM for perl-Alien-Build.
If you create an RPM for perl-Alien-Build, you're setting yourself up
for hassle once Fedora releases a new version. You'll be fighting
against the distro-provided package forever.
There's a better, or at least different, way to do this.
sudo dnf install perl-App-cpanminus perl-local-lib perl-CPAN make gcc
Add this to the end of your ~/.bashrc to set up the correct path for
your personalized version of perl-Alien-Build:
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
Reload your environment:
source ~/.bashrc
Or log out, and log back in. You will see this the first time:
Attempting to create directory /home/sysadmin/perl5
Install Alien::Build from CPAN AS YOUR USER, not using sudo or anything
like that:
cpanm Alien::Build
This will install Alien::Build into your home directory.
Verify you're getting the CPAN copy:
perl -MAlien::Build -e 'print $INC{"Alien/Build.pm"}, "\n"; print
Alien::Build->VERSION, "\n"'
The path that comes back should be something like this:
sysadmin@dev:~$ perl -MAlien::Build -e 'print $INC{"Alien/Build.pm"},
"\n"; print Alien::Build->VERSION, "\n"'
/home/sysadmin/perl5/lib/perl5/Alien/Build.pm
2.84
Now you'll have the upstream version of Alien::Build available for your
user, without conflicting with the system-installed version.
If you ever need to uninstall it, you can just nuke it with:
rm -rf ~/perl5/lib/perl5/Alien
Then remove the line from ~/.bashrc
You can also upgrade it by running cpanm Alien::Build again.
I personally hate using stuff installed into my home directory like
flatpaks or python venvs or whatever. It's just too easy to forget about
it and leave outdated/vulnerable versions installed that way. But
sometimes you gotta do what you gotta do.
--
Thanks!
Thomas Cameron, RHCA V, AWS SA-Pro
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
-- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
