Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937918 - perl-module.eclass: not correctly picking up on CC variable
Summary: perl-module.eclass: not correctly picking up on CC variable
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 15:18 UTC by Esteve Varela Colominas
Modified: 2024-08-15 02:40 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 Esteve Varela Colominas 2024-08-14 15:18:18 UTC
In perl-module.eclass, it calls 'perl Makefile.PL CC="$(tc-getCC)"' (along with a bunch more parameters), with the intention of using the compiler returned with tc-getCC.

However, with a very simple experiment using the dev-perl/Locale-gettext package, we can determine that this isn't exactly correct:

    $ perl Makefile.PL CC=false         
    checking for gettext... yes
    checking for dgettext... yes
    checking for ngettext... yes
    checking for bind_textdomain_codeset... yes
    Generating a Unix-style Makefile
    Writing Makefile for Locale::gettext
    Writing MYMETA.yml and MYMETA.json

    $ CC=false perl Makefile.PL
    checking for gettext... no
    checking for gettext in -lintl... no
    gettext function not found. Please install libintl at Makefile.PL line 18.

It turns out, it grabs the CC variable from the environment, not from the command line arguments. I'm not sure if it's possible to pass it through the command-line environments, but I am sure that it's currently not working as intended.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-14 15:20:56 UTC
It's more complicated than that. It depends on which build system is being used (Perl has many with the same interface, even).

Anyway, it indeed looks wrong for locale-gettext.