Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2020 14:23:00 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: How to change PATH setting of poudriere
Message-ID:  <20200515.142300.28161559058609585.yasu@utahime.org>
In-Reply-To: <20200515.100032.2170535329108358923.yasu@utahime.org>
References:  <20200514.170414.2224930171617974842.yasu@utahime.org> <1b409d0c-9e70-ba1a-c1dc-98f332d5f169@FreeBSD.org> <20200515.100032.2170535329108358923.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Yasuhiro KIMURA <yasu@utahime.org>
Subject: Re: How to change PATH setting of poudriere
Date: Fri, 15 May 2020 10:00:32 +0900 (JST)

> Thank you for reply. I added above lines to make.conf but resulted in
> error that "Variable PATH is recursive". So I changed as follwing.
> 
>     PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin:${HOME}/bin
>     .export PATH
> 
> Then build progressed but failed in other port. And error seems to be
> nothing to do with PATH setting. So let me change my question.

Let me provide detail of the problem.

Environments:
  Host: 12.1-RELEASE-p5 amd64
  Poudriere: 3.3.4
  Jail: 12.1-RELEASE-p5 amd64
  Ports tree: head r535191

I'm maintainer of security/clamav and would like to test attached
patch of this bug report.

Bug 246059 - security/clamav: fix build with non-default LOCALBASE, PREFIX
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246059

I added following lines in /usr/local/etc/poudriere.d/make.conf,
applied the patch to ports tree and tried test build of
security/clamav from scratch.

----------------------------------------------------------------------
LOCALBASE=/opt
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin:${HOME}/bin
.export PATH
----------------------------------------------------------------------

Then test build failed with configure error of
misc/help2man. And URL below is build log.

https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/121amd64-test/2020-05-15_13h43m34s/logs/help2man-1.47.15.log

According to it build failed because configure script couldn't find
Locale::gettext perl module.

----------------------------------------------------------------------
=======================<phase: configure      >============================
===>  Configuring for help2man-1.47.15
configure: loading site script /usr/ports/Templates/config.site
checking for perl... perl
checking for module Locale::gettext... no
checking for msgfmt... /opt/bin/msgfmt
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for library containing dlsym... none required
checking for library containing bindtextdomain... -lintl
configure: error: perl module Locale::gettext required
===>  Script "configure" failed unexpectedly.
Rebuild lang/perl5.30 and devel/p5-Locale-gettext manually before contacting
maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/help2man
----------------------------------------------------------------------

But p5-Locale-gettext is surely installed at build-depends phase.

----------------------------------------------------------------------
=======================<phase: build-depends  >============================
===>   help2man-1.47.15 depends on package: p5-Locale-gettext>=0 - not found
===>   Installing existing package /packages/All/p5-Locale-gettext-1.07.txz
[121amd64-test-job-01] Installing p5-Locale-gettext-1.07...
[121amd64-test-job-01] `-- Installing gettext-runtime-0.20.2...
[121amd64-test-job-01] |   `-- Installing indexinfo-0.3.1...
[121amd64-test-job-01] |   `-- Extracting indexinfo-0.3.1: .... done
[121amd64-test-job-01] `-- Extracting gettext-runtime-0.20.2: .......... done
[121amd64-test-job-01] `-- Installing perl5-5.30.2...
[121amd64-test-job-01] `-- Extracting perl5-5.30.2: .......... done
[121amd64-test-job-01] Extracting p5-Locale-gettext-1.07: ........ done
=====
Message from perl5-5.30.2:

--
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
===>   help2man-1.47.15 depends on package: p5-Locale-gettext>=0 - found
===>   Returning to build of help2man-1.47.15
----------------------------------------------------------------------

So it seems something other than PATH setting causes this build error.

---
Yasuhiro KIMURA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200515.142300.28161559058609585.yasu>