Skip to content

Convert perl to package problems #1419

Closed
donald opened this issue Oct 25, 2019 · 5 comments
Closed

Convert perl to package problems #1419

donald opened this issue Oct 25, 2019 · 5 comments

Comments

@donald
Copy link
Collaborator

donald commented Oct 25, 2019

  • After Convert perl to package #1406 /usr/local/bin/perl was no longer available, but known that many scripts might still use it, a wrapper has been installed manually:
#! /bin/bash
echo "warning: obsolete /usr/local/bin/perl called by" >&2
echo "   $*" >&2
echo "   replace with /usr/bin/perl or /usr/local/system/perl/bin/perl" >&2
exec /usr/bin/perl "$@"
  • Because the above warning produced to much noise in some logfiles, we want to use just a symlink or wrapper without warning the next time.
  • The wrapper or symlink should go into the perl-wrapper bee package and not be created manually.
  • Convert perl to package #1406 made an implicit update of /usr/bin/perl from 5.12.1 to 5.28.1 . A lot of software already uses 5.28.1 or even 5.30.0, so this was not assumed to create many problems and even so, this problems would typically just concern the admin not the users, because the later don't use archaic langugees. However, vacation and twiki failed, which is user visible. So Convert perl to package #1406 had to be undone temporarily
  • vacation failed, because omitting parentheses around the list used in a foreach-Loop when the list consisted of a qw-expression only, was historically allowed by the parser but deprecated in 5.14 and made illegal in 5.18 forbidding syntax like for $a qw(a b c) { ... } which needs to be changed to for $a (qw(a b c)) { ... }
donald added a commit that referenced this issue Oct 25, 2019
Undo merge PR #1406 because of issue #1419.

This reverts:

- "perl: Remove"
- "perl: Remove perl modules"
- "perl-wrapper: Install version 1.0"
@donald
Copy link
Collaborator Author

donald commented Oct 25, 2019

vacation is fixed, twiki is more than just a single qw(). Maybe do an update first.

@thomas
Copy link
Collaborator

thomas commented Oct 25, 2019

Some modules seem to be gone too. To me it looks like the missing Error.pm causes the initial trouble in elager.

Can't locate Error.pm in @INC (you may need to install the Error module) (@INC contains: /package/twiki/foswiki/lib /project/el
BEGIN failed--compilation aborted at /package/twiki/foswiki/lib/Foswiki.pm line 47.
Compilation failed in require at /project/elager/bin/ElagerTWiki.pm line 7.

@donald
Copy link
Collaborator Author

donald commented Oct 25, 2019

Yeah, we need to add elager to the list of things to check. But the dependency on Error.pm is from twiki, maybe if twiki is updated, this will go away.

donald added a commit that referenced this issue Apr 27, 2020
As noted in [#1419], several scripts still use `/usr/local/bin/perl` as a
shebang so provide a symlink.

[#1419]:  #1419
@donald
Copy link
Collaborator Author

donald commented Apr 28, 2020

twiki is fixed (hopefully) shebangs of scripts changed from #! /usr\/bin\/perl to #! /usr/bin/prun perl-5.12.1-0 perl.

@donald
Copy link
Collaborator Author

donald commented Apr 28, 2020

Elager also fixed (hopefully): Shebang of /project/elager/htdocs/login.pl changed from #! /usr/local/bin/perl to #! /usr/bin/prun perl-5.12.1-0 perl.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants