Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2020 19:36:18 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Stefan Esser <se@freebsd.org>, Mason Loring Bliss <mason@blisses.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Donation to Foundation for Poudriere /opt builds! (Bounty?)
Message-ID:  <TY2PR02MB401340F1EA1B4EC0B325494BFAEA0@TY2PR02MB4013.apcprd02.prod.outlook.com>
In-Reply-To: <4c43573c-9428-98a6-1b3e-e78ba3239575@freebsd.org>
References:  <20201101233032.GC6041@blisses.org> <20201108205008.GO31104@blisses.org> <TY2PR02MB40130B63CDCE0C2AAC0E515FFAEB0@TY2PR02MB4013.apcprd02.prod.outlook.com> <4c43573c-9428-98a6-1b3e-e78ba3239575@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried deeper.

Revert all changes. (reinstall poudriere, etc...)

Make a new jail as poudriere jail -c -j opt ...

Edit /usr/local/poudriere/jails/opt/etc/login.conf as shown in the
following diff and run cap_mkdb.
# Beware of extra line breaks due to emails.

--- /usr/local/poudriere/jails/opt/etc/login.conf.genbypoudriere
2020-11-09 09:37:31.946692000 +0000
+++ /usr/local/poudriere/jails/opt/etc/login.conf       2020-11-09
09:39:35.621802000 +0000
@@ -25,11 +25,11 @@
 default:\
        :passwd_format=sha512:\
        :copyright=/etc/COPYRIGHT:\
        :welcome=/etc/motd:\
-       :setenv=BLOCKSIZE=K,UNAME_r=12.2-STABLE,UNAME_v=FreeBSD
12.2-STABLE 1202504,OSVERSION=1202504:\
+
:setenv=LOCALBASE=/opt,BLOCKSIZE=K,UNAME_r=12.2-STABLE,UNAME_v=FreeBSD
12.2-STABLE 1202504,OSVERSION=1202504:\
        :mail=/var/mail/$:\
-       :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin
/usr/local/bin ~/bin:\
+       :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin
/usr/local/bin /opt/sbin /opt/bin ~/bin:\
        :nologin=/var/run/nologin:\
        :cputime=unlimited:\
        :datasize=unlimited:\
        :stacksize=unlimited:\

Create a new /usr/local/poudriere/jails/opt/etc/rc.conf as shown in the
following.

local_startup="/usr/local/etc/rc.d /opt/etc/rc.d"
ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
/opt/lib /opt/lib/compat/pkg"
ldconfigsoft_paths="/usr/libsoft /usr/libsoft/compat /usr/local/libsoft
/opt/libsoft"
ldconfig_paths_aout="/usr/lib/compat/aout /usr/local/lib/aout /opt/lib/aout"
ldconfig_local_dirs="/usr/local/libdata/ldconfig /opt/libdata/ldconfig"
ldconfig_local32_dirs="/usr/local/libdata/ldconfig32
/opt/libdata/ldconfig32"
ldconfig_localsoft_dirs="/usr/local/libdata/ldconfigsoft
/opt/libdata/ldconfigsoft"

That's all it takes to get ready.
I also make it in python37.

poudriere bulk -j opt -J 2 lang/python37

Check the operation of python37.

poudriere jail -s -j opt -p default
jexec opt-default-n env -i "TERM=$TERM" /usr/bin/login -f -p root
# (Enter the jail)
make -C /usr/ports/lang/python37/ pkg-depends
make -C /usr/ports/lang/python37/ install-package
/opt/bin/python3.7 -h
exit
# (Out of jail)
poudriere jail -k -j opt -p default

Sorry for the hard-to-read writing style :)
But I have had no problems so far.
What port do you build that cause problems?

Regards.




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