Can't locate Digest/SHA.pm in @INC

Hello, I have this problem with all the Fedora machines : Can't locate Digest/SHA.pm in @INC (you may need to install the Digest::SHA module) (@INC contains: /.build /usr/local/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /.build/Build/Apk.pm line 26. For example : https://build.opensuse.org/public/build/home:jmnotin:TeXmacs/Fedora_38/x86_6... Does someone know how to solve this ? Best regards, Liza Belos -- *Liza Belos* *Laboratoire d'Informatique de l'École Polytechnique* *Mail Polytechnique : *belos@lix.polytechnique.fr *Mail CNRS : *liza.belos@cnrs.fr *Mail Mathrice : *liza.belos@math.cnrs.fr *Téléphone : *06 86 43 86 39 *Bureau : *1013

On Mon, Jan 20, 2025 at 8:02 AM Liza Belos <belos@lix.polytechnique.fr> wrote:
Hello,
I have this problem with all the Fedora machines :
Can't locate Digest/SHA.pm in @INC (you may need to install the Digest::SHA module) (@INC contains: /.build /usr/local/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /.build/Build/Apk.pm line 26.
For example : https://build.opensuse.org/public/build/home:jmnotin:TeXmacs/Fedora_38/x86_6...
Does someone know how to solve this ?
The Red Hat family has a modular Perl runtime, so virtually all Perl standard modules need to be pulled in via their CPAN names. For this one, you need to add "BuildRequires: perl(Digest::SHA)" to your spec file. -- 真実はいつも一つ!/ Always, there's only one truth!

On Mon, Jan 20, 2025 at 02:01:42PM +0100, Liza Belos wrote:
I have this problem with all the Fedora machines :
Can't locate Digest/SHA.pm in @INC (you may need to install the Digest::SHA module) (@INC contains: /.build /usr/local/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /.build/Build/Apk.pm line 26.
For example : https://build.opensuse.org/public/build/home:jmnotin:TeXmacs/Fedora_38/x86_6...
Does someone know how to solve this ?
I causes this whem I added Alpine apk support to obs-build. The new code had a hard Digest::SHA requirement. I now changed the code so that this is a soft requirement, i.e. it no longer breaks Fedora builds. Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Ivo Totev HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

On Mon, Jan 20, 2025 at 8:12 AM Michael Schroeder <mls@suse.de> wrote:
On Mon, Jan 20, 2025 at 02:01:42PM +0100, Liza Belos wrote:
I have this problem with all the Fedora machines :
Can't locate Digest/SHA.pm in @INC (you may need to install the Digest::SHA module) (@INC contains: /.build /usr/local/lib64/perl5/5.36 /usr/local/share/perl5/5.36 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /.build/Build/Apk.pm line 26.
For example : https://build.opensuse.org/public/build/home:jmnotin:TeXmacs/Fedora_38/x86_6...
Does someone know how to solve this ?
I causes this whem I added Alpine apk support to obs-build. The new code had a hard Digest::SHA requirement. I now changed the code so that this is a soft requirement, i.e. it no longer breaks Fedora builds.
Why not just add the runtime requirement? -- 真実はいつも一つ!/ Always, there's only one truth!
participants (3)
-
Liza Belos
-
Michael Schroeder
-
Neal Gompa