Bug 184276

Summary: misc/help2man: Build fails on Locale::Gettext
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bernard Spil freebsd_committer freebsd_triage 2013-11-25 08:30:00 UTC
Build of misc/help2man fails with the following, seems like a mismatch in the INC path 5.16 vs 5.16.0???

/usr/ports/misc/help2man]# make
===>   help2man-1.43.3_1 depends on package: p5-Locale-gettext>=0 - found
===>   help2man-1.43.3_1 depends on executable: gmake - found
===>   help2man-1.43.3_1 depends on file: /usr/local/bin/perl5.16.3 - found
===>   help2man-1.43.3_1 depends on shared library: libintl.so - found
===>  Configuring for help2man-1.43.3_1
configure: loading site script /usr/ports/Templates/config.site
checking for perl... perl
checking for module Locale::gettext... no
checking for msgfmt... /usr/local/bin/msgfmt
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for library containing dlsym... none required
checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required
===>  Script "configure" failed unexpectedly.
Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the
"/usr/ports/misc/help2man/work/help2man-1.43.3/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/sbin/pkg_info -Ea).
*** Error code 1

Stop in /usr/ports/misc/help2man.
*** Error code 1

Stop in /usr/ports/misc/help2man.

Locale::Gettext is installed

p5-CPAN-Meta-2.132830
p5-CPAN-Meta-Requirements-2.125
p5-CPAN-Meta-YAML-0.010
p5-ExtUtils-CBuilder-0.2802.12,1
p5-ExtUtils-Install-1.54_2
p5-ExtUtils-ParseXS-3.22
p5-IO-Tty-1.10
p5-IPC-Cmd-0.84
p5-IPC-Run-0.92
p5-JSON-PP-2.27203
p5-Locale-Maketext-Simple-0.21
p5-Locale-gettext-1.05_3
p5-Module-Build-0.4202
p5-Module-CoreList-3.01
p5-Module-Load-0.24
p5-Module-Load-Conditional-0.58
p5-Module-Metadata-1.000019
p5-Params-Check-0.38
p5-Parse-CPAN-Meta-1.44.04
p5-Perl-OSType-1.006
p5-Test-Harness-3.30
p5-Test-Simple-1.001.002
p5-YAML-0.84
p5-YAML-Tiny-1.55
p5-version-0.99.04
pcre-8.33
perl5-5.16.3_3

From the configure log
configure:1832: checking for module Locale::gettext
Can't locate Locale/gettext.pm in @INC (@INC contains: /usr/local/lib/perl5/5.16/BSDPAN /usr/local/lib/perl5/site_perl/5.16/mach /usr/local/lib/perl5/site_perl/5.16 /usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.16 .).
BEGIN failed--compilation aborted.

# locate gettext.pm
/usr/local/lib/perl5/site_perl/5.16.0/mach/Locale/gettext.pm

Fix: 

rebuild all p5-* ports
This is a result of the 20130612 layout change 
The directory structure where Perl is installed has also been modified:
  "major.minor" is now used instead of "major.minor.patchlevel".
How-To-Repeat: $ cd /usr/ports/misc/help2man
$ make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-25 08:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-12-09 19:46:40 UTC
State Changed
From-To: open->closed

Thanks for your help!