Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope:User not installable #1716

Closed
waghanza opened this issue Oct 20, 2024 · 4 comments
Closed

Scope:User not installable #1716

waghanza opened this issue Oct 20, 2024 · 4 comments

Comments

@waghanza
Copy link

Hi,

With the following dockerfile

FROM perl:5.41-slim

RUN apt-get -qq update && \
  apt-get -qy install --no-install-recommends build-essential

WORKDIR /usr/src/app
COPY cpanfile d2app.psgi ./
RUN cpanm --notest --installdeps .

CMD plackup -s Gazelle --port 3000 --env production --app d2app.psgi

I can not install Scope::Upper

71.56 --> Working on Scope::Upper
71.56 Fetching https://backpan.perl.org/authors/id/V/VP/VPIT/Scope-Upper-0.34.tar.gz ... OK
72.19 Configuring Scope-Upper-0.34 ... OK
72.32 Building Scope-Upper-0.34 ... ! Installing Scope::Upper failed. See /root/.cpanm/work/1729441177.7/build.log for details. Retry with --force to force install it.
72.67 FAIL
72.72 --> Working on Class::XSAccessor
72.72 Fetching https://backpan.perl.org/authors/id/S/SM/SMUELLER/Class-XSAccessor-1.19.tar.gz ... OK
73.28 Configuring Class-XSAccessor-1.19 ... OK
73.39 Building Class-XSAccessor-1.19 ... OK
74.73 Successfully installed Class-XSAccessor-1.19
74.82 --> Working on Math::Random::ISAAC::XS
74.82 Fetching https://backpan.perl.org/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-XS-1.004.tar.gz ... OK
75.44 Configuring Math-Random-ISAAC-XS-1.004 ... OK
75.63 ==> Found dependencies: Test::NoWarnings
75.69 --> Working on Test::NoWarnings
75.69 Fetching https://backpan.perl.org/authors/id/H/HA/HAARG/Test-NoWarnings-1.06.tar.gz ... OK
76.14 Configuring Test-NoWarnings-1.06 ... OK
76.25 Building Test-NoWarnings-1.06 ... OK
76.46 Successfully installed Test-NoWarnings-1.06
76.50 Building Math-Random-ISAAC-XS-1.004 ... OK
77.03 Successfully installed Math-Random-ISAAC-XS-1.004
77.07 ! Installing the dependencies failed: Module 'Scope::Upper' is not installed
77.07 ! Bailing out the installation for ..

any idea ?

Regards,

PS : I'm on ARM, mac m1

@SysPete
Copy link
Member

SysPete commented Oct 20, 2024

Hmm... Scope::Upper has not been used since Return::Multilevel was removed by 36edc18, part of release v0.208002, so looks like the cpanfile recommends line needs to be removed.

@waghanza
Copy link
Author

Thanks for the quick reply @SysPete .

Could you take a look and make some suggestions ?
https://github.com/the-benchmarker/web-frameworks/blob/master/perl%2Fdancer2%2Fcpanfile#L11

The idea is to represent how dancer2 could perform in production.

@veryrusty
Copy link
Member

I concur with @SysPete; the removal of Return::Multilevel should have removed the recommends on Scope::Upper.

@waghanza note that Scope::Upper broke as given/when/smartmatch has been removed from perl core in the development releases. If you really want to benchmark production performance, I wouldn't be using the development releases of perl. Stick to the even numbers; 5.40 being the latest.

@waghanza
Copy link
Author

You mean 5.40 is the latest perl stable ?

veryrusty added a commit that referenced this issue Oct 22, 2024
Ref #1716

Thanks to @waghanza for noting that Scope::Upper is failing to buidl on
devel perl releases.  Thanks to @SysPete for confirming we should have
removed the recommends on Scope::Upper when Return::MultiLevel was
removed.
cromedome pushed a commit that referenced this issue Oct 23, 2024
Ref #1716

Thanks to @waghanza for noting that Scope::Upper is failing to build on
devel perl releases.  Thanks to @SysPete for confirming we should have
removed the recommends on Scope::Upper when Return::MultiLevel was
removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants