Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 604518

Summary: mail-filter/spamassassin-3.4.1-r8 src_configure requires user interaction
Product: Gentoo Linux Reporter: Bodo Graumann <mail>
Component: Current packagesAssignee: Philippe Chaintreuil <gentoo_bugs_peep>
Status: RESOLVED FIXED    
Severity: normal CC: bug, jstein, mail, mjo, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bodo Graumann 2017-01-03 15:41:20 UTC
During a regular world update, when building spamassassin-3.4.1-r8, I got the following query for user input:

>>> Starting src_configure
What email address or URL should be used in the suspected-spam report
text for users who want more information on your filter installation?
(In particular, ISPs should change this to a local Postmaster contact)
default text: [the administrator of that system] 

This goes contrary to my assumption / experience, that all installations should work without any direct user-interaction.

My previous spamassassin version was 3.4.0-r1 and I am using paludis-2.6.0.
Comment 1 Michael Orlitzky gentoo-dev 2017-01-10 20:08:28 UTC
SpamAssassin uses Perl's MakeMaker, so the line

  PERL_MM_USE_DEFAULT=1 emake

is intended to avoid exactly what you're experiencing. I've grepped through the tree, and the only other usage like that is when perl-module eclass does,

  export PERL_MM_USE_DEFAULT=1
  <blah blah blah>

Maybe there's a difference in the way that Paludis and Portage handle passing variables to emake. Can you try to change

  PERL_MM_USE_DEFAULT=1 emake

to either

  emake PERL_MM_USE_DEFAULT=1

or

  export PERL_MM_USE_DEFAULT=1
  emake

in the ebuild, and see if that helps? If it does, I'll fix it in a new revision.
Comment 2 Bodo Graumann 2017-01-30 15:26:43 UTC
Indeed the variable PERL_MM_USE_DEFAULT does yield the correct behavior. But the problem I reported occurs not in src_compile, but in src_configure. More specifically in the lines

    perl Makefile.PL \
        PREFIX=[...]

So putting

    export PERL_MM_USE_DEFAULT=1

at the beginning of src_configure, solves the problem.
Comment 3 Michael Orlitzky gentoo-dev 2017-01-31 03:33:27 UTC
The fact that this worked in portage was a lucky coincidence. It's now exporting PERL_MM_USE_DEFAULT=1 earlier so it disables the prompts regardless of the controlling TTY and STDIN:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0507ac8482881f315fc92b4b6f89fc58bd4b1f9

I made the change in-place to the -r10 ebuild, so you might have to wait a few hours for the fix to show up. Please let me know if you still have any problems.

Thanks to Kent Fredric who pointed out that the interactive prompt was dependent on the controlling TTY and file descriptors.