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

Bug 38965

Summary: dev-perl/libwww-perl-5.69-r2 check for host-name in /etc/hosts
Product: Gentoo Linux Reporter: Larry Siden <lsiden>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lsiden, rac
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of build that failed because of described condition
This is the modified e-build that checks for the described condition

Description Larry Siden 2004-01-21 15:58:58 UTC
If the machine's hostname does not appear in /etc/hosts (for example, on a line of the form "127.0.0.1 localhost my-host-name"), the config script for this package will fail.  The last few lines of output look like this:

!!! ERROR: dev-perl/libwww-perl-5.69-r2 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! (no error message)

I will enter the complete output from the point of failure as an attachment.  I will also submit a modified e-build that checks for this condition and stops with a message if the needed entry in /etc/hosts is not found.  This enhancement may need to be applied to other versions of this package.
Comment 1 Larry Siden 2004-01-21 16:01:22 UTC
Created attachment 24208 [details]
Output of build that failed because of described condition
Comment 2 SpanKY gentoo-dev 2004-01-21 16:02:12 UTC
*** This bug has been marked as a duplicate of 36341 ***

*** This bug has been marked as a duplicate of 36341 ***
Comment 3 Larry Siden 2004-01-21 16:04:32 UTC
Created attachment 24209 [details]
This is the modified e-build that checks for the described condition

Added pkg_setup() to the e-build to check for the absence of the machine's
hostname in /etc/hosts (after filtering comments).  If absent, then dies with
message.
Comment 4 Larry Siden 2004-01-21 16:10:08 UTC
Added user "rac" to cc list as per suggestion on "Portage and Programming Forum".