Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263671 - perl-module : pm_echovar seems ignored
Summary: perl-module : pm_echovar seems ignored
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 22:08 UTC by Matteo Azzali (RETIRED)
Modified: 2009-03-26 17:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Azzali (RETIRED) gentoo-dev 2009-03-24 22:08:26 UTC
pm_echovars has strange behaviour lately, looks like it's ignored or so.
xmltv ebuilds don't accept it anymore but works completely fine after bypassing perl-module, :

 src_compile() {
...
-       pm_echovar=`make_config`
-       perl-module_src_compile || die "error compiling"
+       make_config | perl Makefile.PL || die "error configuring"
+       make || die "error compiling"
 }

 src_install() {
...
-       perl-module_src_install || die "error installing"
+       make DESTDIR=${D} install || die "error installing"
...
 }

If someone can please be so kind to check this, then thanks.


Reproducible: Always
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2009-03-24 22:09:17 UTC
ouch, I missed "perl-module : " from the summary
Comment 2 Georgi Georgiev 2009-03-25 11:16:41 UTC
We need quotes around $pm_echovar
Comment 3 Georgi Georgiev 2009-03-26 00:19:42 UTC
OK, this really breaks every single ebuild that relies on pm_echovar. It was introduced by tove on Mar 6, and I would like to see if fixed quickly.

A dirty fix is to change <<< ${pm_echovar} with <<< "${pm_echovar}" so that the end of lines characters get passed to perl Makefile.PL (they are now ignored).
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2009-03-26 17:23:05 UTC
(In reply to comment #3)

Hm, maybe I am totally off.

> OK, this really breaks every single ebuild that relies on pm_echovar. It was
> introduced by tove on Mar 6, and I would like to see if fixed quickly.

Are you sure? I tried the old version and it didn't work too.
<http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/eclass/perl-module.eclass?rev=1.112>

> A dirty fix is to change <<< ${pm_echovar} with <<< "${pm_echovar}" so that the
> end of lines characters get passed to perl Makefile.PL (they are now ignored).

Did you try this? No difference here.
Comment 5 Torsten Veller (RETIRED) gentoo-dev 2009-03-26 17:42:15 UTC
Arggh. Fixed. Thanks.

BTW: Why do you think it is a "dirty fix"?