Bug 242364

Summary: devel/p5-Locale-gettext: not compiling on FreeBSD 11.3-RELEASE-p5 (perl version not found)
Product: Ports & Packages Reporter: Emanuele <pixel>
Component: Individual Port(s)Assignee: Dmitry Sivachenko <demon>
Status: New ---    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (demon)
Version: Latest   
Hardware: Any   
OS: Any   

Description Emanuele 2019-12-02 11:53:17 UTC
On a fresh new FreeBSD installation, p5-Locale-gettext port does not compile & install correctly. The required perl version is not found on the system. The installed perl version on FreeBSD 11.3-RELEASE-p5 is perl5.31.5

----
root@freebsd:/usr/ports/devel/p5-Locale-gettext # make install clean
===>   p5-Locale-gettext-1.07 depends on executable: msgfmt - found
===>   p5-Locale-gettext-1.07 depends on package: perl5>=5.30.r1<5.31 - found
===>   p5-Locale-gettext-1.07 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Configuring for p5-Locale-gettext-1.07
env: /usr/local/bin/perl5.30.1: No such file or directory
*** Error code 127

Stop.
----
Comment 1 Dmitry Sivachenko freebsd_committer freebsd_triage 2019-12-02 12:06:33 UTC
Well, default perl version should not depend on FreeBSD version, it is defined in 
/usr/ports/Mk/bsd.default-version.mk and is 5.30.

5.31 is only in perl-devel port and it does not create /usr/local/bin/perl symlink.

Can you please provide more details how you configured your system and how you installed perl?
Comment 2 Emanuele 2019-12-02 12:19:09 UTC
I just did:
portsnap fetch
portsnap extract
cd /usr/ports/devel/p5-Locale-gettext && make install clean

The system is a FreeBSD jail on FreeBSD 11.3-RELEASE-p5 (that's the result of freebsd-version inside the jail).

I wanted to install the port of elasticsearch6 but it fails due to the fail of p5-Locale-gettext.
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2019-12-02 12:42:56 UTC
Can you please show your /etc/make.conf (if any) and output of 'pkg info'?
Comment 4 Emanuele 2019-12-02 12:56:25 UTC
I don't have any /rc.d/make.conf file.

The following is my pkg info:
---
ImageMagick7-nox11-7.0.8.57_1  Image processing tools
avahi-app-0.7_2                Service discovery on a local network
ca_root_nss-3.47.1             Root certificate bundle from the Mozilla Project
cclient-2007f_3,1              C-client mail access routines by Mark Crispin
cups-2.2.12                    Common UNIX Printing System
curl-7.66.0                    Command line tool and library for transferring data with URLs
dbus-1.12.12                   Message bus system for inter-application communication
dbus-glib-0.110                GLib bindings for the D-BUS messaging system
dialog4ports-0.1.6             Console Interface to configure ports
expat-2.2.8                    XML 1.0 parser written in C
fftw3-3.3.8_4                  Fast C routines to compute the Discrete Fourier Transform
fontconfig-2.12.6,1            XML-based font configuration API for X Windows
freetype2-2.10.1               Free and portable TrueType font rendering engine
gdbm-1.18.1_1                  GNU database manager
gettext-runtime-0.20.1         GNU gettext runtime libraries and programs
gettext-tools-0.20.1_1         GNU gettext development and translation tools
ghostscript9-agpl-base-9.27_2  PostScript and PDF interpreter
giflib-5.1.9                   Tools and library routines for working with GIF images
glib-2.56.3_6,1                Some useful routines of C programming (current stable version)
gmp-6.1.2_1                    Free library for arbitrary precision arithmetic
gnome_subr-1.0                 Common startup and shutdown subroutines used by GNOME scripts
gnutls-3.6.10                  GNU Transport Layer Security library
gobject-introspection-1.56.1,1 Generate interface introspection data for GObject libraries
gsfonts-8.11_8                 Standard Fonts for Ghostscript
icu-64.2,1                     International Components for Unicode (from IBM)
indexinfo-0.3.1                Utility to regenerate the GNU info page index
jbig2dec-0.16                  Decoder implementation of the JBIG2 image compression format
jbigkit-2.1_1                  Lossless compression for bi-level images such as scanned pages, faxes
jpeg-turbo-2.0.3               SIMD-accelerated JPEG codec which replaces libjpeg
lcms2-2.9                      Accurate, fast, and small-footprint color management engine
libICE-1.0.10,1                Inter Client Exchange library for X11
libSM-1.2.3,1                  Session Management library for X11
libX11-1.6.8,1                 X11 library
libXau-1.0.9                   Authentication Protocol library for X11
libXdmcp-1.1.3                 X Display Manager Control Protocol library
libargon2-20190702             Memory hard password hashing program and library
libdaemon-0.14_1               Lightweight C library that eases the writing of UNIX daemons
libedit-3.1.20190324,1         Command line editor library
libevent-2.1.11                API for executing callback functions on events or timeouts
libffi-3.2.1_3                 Foreign Function Interface
libgd-2.2.5_2,1                Graphics library for fast creation of images
libiconv-1.14_11               Character set conversion library
libidn-1.35                    Internationalized Domain Names command line tool
libidn2-2.2.0                  Implementation of IDNA2008 internationalized domain names
liblqr-1-0.4.2                 Easy to use C/C++ seam carving library
libltdl-2.4.6                  System independent dlopen wrapper
liblz4-1.9.2,1                 LZ4 compression library, lossless and very fast
libnghttp2-1.39.2              HTTP/2.0 C Library
libpaper-1.1.24.4              Library providing routines for paper size management
libpthread-stubs-0.4           This library provides weak aliases for pthread functions
libraw-0.19.2_1                Library for manipulating raw images
libtasn1-4.14                  ASN.1 structure parser library
libtextstyle-0.20.1            Text styling library
libunistring-0.9.10_1          Unicode string library
libunwind-20170615             Generic stack unwinding library
libwmf-nox11-0.2.8.4_15        Tools and library for converting Microsoft WMF (windows metafile)
libxcb-1.13.1                  The X protocol C-language Binding (XCB) library
libxml2-2.9.9                  XML parser library for GNOME
libzip-1.5.2                   C library for reading, creating, and modifying ZIP archives
mysql80-client-8.0.17          Multithreaded SQL database (client)
mysql80-server-8.0.17          Multithreaded SQL database (server)
nano-4.4                       Nano's ANOther editor, an enhanced free Pico clone
nettle-3.5.1_1                 Low-level cryptographic library
nginx-1.16.1_4,2               Robust and small WWW server
oniguruma-6.9.3                Regular expressions library compatible with POSIX/GNU/Perl
openjpeg-2.3.1                 Open-source JPEG 2000 codec
p11-kit-0.23.17                Library for loading and enumerating of PKCS#11 modules
pcre-8.43_2                    Perl Compatible Regular Expressions library
pcre2-10.33                    Perl Compatible Regular Expressions library, version 2
perl5-5.30.0                   Practical Extraction and Report Language
perl5-devel-5.31.4.270         Practical Extraction and Report Language
php73-7.3.12                   PHP Scripting Language
php73-bz2-7.3.12               The bz2 shared extension for php
php73-ctype-7.3.12             The ctype shared extension for php
php73-curl-7.3.12              The curl shared extension for php
php73-dom-7.3.12               The dom shared extension for php
php73-fileinfo-7.3.12          The fileinfo shared extension for php
php73-filter-7.3.12            The filter shared extension for php
php73-gd-7.3.12                The gd shared extension for php
php73-hash-7.3.12              The hash shared extension for php
php73-iconv-7.3.12             The iconv shared extension for php
php73-imap-7.3.12              The imap shared extension for php
php73-intl-7.3.12              The intl shared extension for php
php73-json-7.3.12              The json shared extension for php
php73-mbstring-7.3.12          The mbstring shared extension for php
php73-mysqli-7.3.12            The mysqli shared extension for php
php73-openssl-7.3.12           The openssl shared extension for php
php73-pdo-7.3.12               The pdo shared extension for php
php73-pdo_mysql-7.3.12         The pdo_mysql shared extension for php
php73-pecl-imagick-im7-3.4.4   PHP wrapper to the ImageMagick/GraphicsMagick library version 7
php73-posix-7.3.12             The posix shared extension for php
php73-readline-7.3.12          The readline shared extension for php
php73-session-7.3.12           The session shared extension for php
php73-simplexml-7.3.12         The simplexml shared extension for php
php73-xml-7.3.12               The xml shared extension for php
php73-xmlreader-7.3.12         The xmlreader shared extension for php
php73-xmlwriter-7.3.12         The xmlwriter shared extension for php
php73-zip-7.3.12               The zip shared extension for php
php73-zlib-7.3.12              The zlib shared extension for php
pkg-1.12.0                     Package manager
pkgconf-1.6.3,1                Utility to help to configure compiler and linker flags
png-1.6.37                     Library for manipulating PNG images
poppler-data-0.4.9             Poppler encoding data
portmaster-3.19_18             Manage your ports without external databases or languages
protobuf-3.9.2,1               Data interchange format library
python36-3.6.9                 Interpreted object-oriented programming language
re2-20190701_1                 Fast C++ regex library
readline-8.0.0                 Library for editing command lines as they are typed
sudo-1.8.28                    Allow others to run commands as root
tiff-4.0.10_1                  Tools and library routines for working with TIFF images
tpm-emulator-0.7.4_2           Trusted Platform Module (TPM) emulator
trousers-0.3.14_2              Open-source TCG Software Stack
webp-1.0.3_1                   Google WebP image format conversion tool
xorgproto-2019.1               xorg protocol headers
zip-3.0_1                      Create/update ZIP files compatible with PKZIP
Comment 5 Emanuele 2019-12-02 12:57:18 UTC
Sorry, I meant, I don't have any /etc/make.conf file.
Comment 6 Dmitry Sivachenko freebsd_committer freebsd_triage 2019-12-03 09:45:25 UTC
Fast solution is to update your lang/perl5.30 from current ports tree (it is 5.30.1).

Consistent solution needs to be implemented though.