[Bug 1033018] New: syntax error in /etc/profile.d/perl-homedir.csh (perl-local-lib/perl-homedir)
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1033018
Bug ID: 1033018
Summary: syntax error in /etc/profile.d/perl-homedir.csh
(perl-local-lib/perl-homedir)
Product: Fedora
Version: rawhide
Component: perl-local-lib
Severity: low
Priority: high
Assignee: iarnell(a)gmail.com
Reporter: ppisar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: iarnell(a)gmail.com, jkachuck(a)redhat.com,
mmaslano(a)redhat.com,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
wgomerin(a)redhat.com
External Bug ID: CPAN 85667
+++ This bug was initially created as a clone of Bug #1032195 +++
Syntax error in /etc/profile.d/perl-homedir.csh
---Steps to Reproduce---
* Install perl-homedir
* Create a user with csh as login shell
* login with that user
The file /etc/profile.d/perl-homedir.csh, contained in perl-homedir,
contains a syntax error.
The command "eval `perl -Mlocal::lib`" fails with "Bad : modifier in $ (/).".
The processing of any login scripts stops at that error, resulting in an
incomplete environment for the user.
Fyi ...
.... looks like this is caused by missing {}:
ls3814:db2lin 8> perl -Mlocal::lib
setenv PERL_LOCAL_LIB_ROOT "$PERL_LOCAL_LIB_ROOT:/db2/db2lin/perl5";
setenv PERL_MB_OPT "--install_base /db2/db2lin/perl5";
setenv PERL_MM_OPT "INSTALL_BASE=/db2/db2lin/perl5";
setenv PERL5LIB "/db2/db2lin/perl5/lib/perl5:$PERL5LIB";
setenv PATH "/db2/db2lin/perl5/bin:$PATH";
ls3814:db2lin 9> setenv PERL_LOCAL_LIB_ROOT
"$PERL_LOCAL_LIB_ROOT:/db2/db2lin/perl5";
Bad : modifier in $ (/).
ls3814:db2lin 10> setenv PERL_LOCAL_LIB_ROOT
"${PERL_LOCAL_LIB_ROOT}:/db2/db2lin/perl5" ;
# no error
[...]
--- Additional comment from Petr Pisar on 2013-11-20 14:22:15 GMT ---
Thank your for this bug report and a suggestion how to fix. Unfortunately, this
is not enough.
If PERL_LOCAL_LIB_ROOT is not set, then tcsh will bail out with undefined
variable and the variable will not get set:
[test@rhel-7-0 ~]$ echo ${?PERL_LOCAL_LIB_ROOT}
0
[test@rhel-7-0 ~]$ setenv PERL_LOCAL_LIB_ROOT
"${PERL_LOCAL_LIB_ROOT}:/home/test/perl5" ;
PERL_LOCAL_LIB_ROOT: Undefined variable.
[test@rhel-7-0 ~]$ echo $?
1
[test@rhel-7-0 ~]$ echo ${?PERL_LOCAL_LIB_ROOT}
0
This is a know issue to the upstream
<https://rt.cpan.org/Public/Bug/Display.html?id=85667> with no ratified
solution yet.
--- Additional comment from Petr Pisar on 2013-11-21 10:50:37 GMT ---
Due to CSH limits on subcommand substitution and parsing if-then-else
statemens, appending to a variable FOO can be achieved this way:
test 1 == ${?FOO} && setenv FOO "a:${FOO}" || setenv FOO "a";
----
All Fedoras are affected.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=jn9WnmhloX&a=cc_unsubscribe
9 years, 10 months
[Bug 1085224] New: perl-Plack-Middleware-ReverseProxy-0.15-4.fc21 FTBFS
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1085224
Bug ID: 1085224
Summary: perl-Plack-Middleware-ReverseProxy-0.15-4.fc21 FTBFS
Product: Fedora
Version: rawhide
Component: perl-Plack-Middleware-ReverseProxy
Assignee: iarnell(a)gmail.com
Reporter: ppisar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: iarnell(a)gmail.com, perl-devel(a)lists.fedoraproject.org
perl-Plack-Middleware-ReverseProxy-0.15-4.fc21 fails to build in F21 and F20
due to tests:
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness"
"-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib',
'blib/arch')" t/*.t
t/00_compile.t .... ok
Can't locate Plack/Test.pm in @INC (you may need to install the Plack::Test
module) (@INC contains: t/lib
/builddir/build/BUILD/Plack-Middleware-ReverseProxy-0.15/inc
/builddir/build/BUILD/Plack-Middleware-ReverseProxy-0.15/blib/lib
/builddir/build/BUILD/Plack-Middleware-ReverseProxy-0.15/blib/arch
/usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
t/reverseproxy.t line 7.
BEGIN failed--compilation aborted at t/reverseproxy.t line 7.
# Looks like your test exited with 2 before it could output anything.
t/reverseproxy.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 39/39 subtests
Test Summary Report
-------------------
t/reverseproxy.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 39 tests but ran 0.
Files=2, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.10 cusr 0.00
csys = 0.13 CPU)
Result: FAIL
Failed 1/2 test programs. 0/1 subtests failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=HQzB901LUg&a=cc_unsubscribe
9 years, 10 months