Re: How to change PATH setting of poudriere
From: Yasuhiro KIMURA 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. -- === ===> 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. -- === ===> 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 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to change PATH setting of poudriere
From: Bryan Drewery Subject: Re: How to change PATH setting of poudriere,Re: How to change PATH setting of poudriere Date: Thu, 14 May 2020 14:09:40 -0700 > But I think the make.conf method should work fine. PATH is passed down > in MAKE_ENV and CONFIGURE_ENV but exporting it might be needed. > > PATH:= ${PATH}:/opt/bin > .export PATH 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. In general what settings are necessary to build and install ports with non default LOCALBASE? I though following 2 settings are sufficient. 1. Set LOCALBASE in make.conf 2. Change setting of PATH environment variable so it includes ${LOCALBASE}/bin (and ${LOCALBASE}/sbin too?) However, in reality, some ports failed to build with them. Then are any other settings necessary or does it caused by any other reason (e.g. problme of failed ports, some other setting for poudriere specific, etc.)? Best Regards. --- Yasuhiro KIMURA ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to change PATH setting of poudriere
Hi, On Thu, May 14, 2020 at 05:04:14PM +0900, Yasuhiro KIMURA wrote: > Hello. > > I would like to test non-default LOCALBASE build with poudriere and > add 'LOCALBASE=/opt' in /usr/local/etc/poudriere.d/make.conf. But > build of some ports fails because /opt/bin is not included in value of > PATH environment variable. How do I change PATH setting of poudriere? I am not sure it is possible to set /opt precisely. If you simply want to test with a non standard LOCALBASE and PREFIX, you can use `poudriere testport -P` which will build with a non default PREFIX. -- Mathieu Arnold signature.asc Description: PGP signature
How to change PATH setting of poudriere
Hello. I would like to test non-default LOCALBASE build with poudriere and add 'LOCALBASE=/opt' in /usr/local/etc/poudriere.d/make.conf. But build of some ports fails because /opt/bin is not included in value of PATH environment variable. How do I change PATH setting of poudriere? Best Regards. --- Yasuhiro KIMURA ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"