Nuno Teixeira <eduardo_at_freebsd.org> wrote on
Date: Thu, 25 Dec 2025 23:55:03 UTC :

> [At main ecb58f931d45d6]
> 
> After rebuilding system from scratch and install world successfully,
> upgrading poudriere jail from same src failed (also did install a fresh
> jail with same error):
> 
> # poudriere jail -u -j 16amd64
> or
> # poudriere jail -d -j 16amd64
> # poudriere jail -c -j 16amd64 -m src=/usr/src
> and
> # make -DBATCH_DELETE_OLD_FILES delete-old delete-old-libs
> # poudriere jail -c -j 16amd64 -m src=/usr/src
> 
> ```
> <snip>
> ===> lib/clang/libllvm (install)
> install: libprivatellvm.so.19: No such file or directory
> --- _libinstall ---
> *** [_libinstall] Error code 71
. . .

I build my own jail directory trees for such and then use METHOD null
for them:

# poudriere jail -l
JAILNAME                   VERSION         OSVERSION ARCH  METHOD      
TIMESTAMP           PATH
. . .
main-ZNV4                  16.0-CURRENT    1600007   amd64 null        
2025-02-12 16:03:46 /usr/obj/DESTDIRs/main-ZNV4-poud
main-ZNV4-bulk_a           16.0-CURRENT    1600007   amd64 null        
2025-02-12 16:03:46 /usr/obj/DESTDIRs/main-ZNV4-poud-bulk_a
main-ZNV4-dbg              16.0-CURRENT    1600007   amd64 null        
2025-04-02 09:20:08 /usr/obj/DESTDIRs/main-ZNV4-poud-dbg
. . .

 # man poudriere-jail
. . .
     -m method        Specify which method to use to create the jail.  The
                      default is http.

                      Pre-built distribution options:

                      . . .

                      null         This option can be used to import an
                                   existing directory that already contains an
                                   installed system.  The path must be
                                   specified with -M path.  It is expected
                                   that this directory be installed to with
                                   the following:

                                     # cd /usr/src
                                     # make installworld DESTDIR=PATH 
DB_FROM_SRC=1
                                     # make distrib-dirs DESTDIR=PATH 
DB_FROM_SRC=1
                                     # make distribution DESTDIR=PATH 
DB_FROM_SRC=1

                                   It will not be copied at the time of
                                   running “poudriere jail”.  Deleting the
                                   jail will attempt to revert any files
                                   changed by poudriere.
. . .

# cat ~/poud-jail-create-main-ZNV4-pouds.sh 
#! /bin/sh
poudriere jail -d -jmain-ZNV4
poudriere jail -c -jmain-ZNV4        -m null -M 
/usr/obj/DESTDIRs/main-ZNV4-poud        -S /usr/main-src -v 16.0-CURRENT

poudriere jail -d -jmain-ZNV4-bulk_a
poudriere jail -c -jmain-ZNV4-bulk_a -m null -M 
/usr/obj/DESTDIRs/main-ZNV4-poud-bulk_a -S /usr/main-src -v 16.0-CURRENT

poudriere jail -d -jmain-ZNV4-dbg
poudriere jail -c -jmain-ZNV4-dbg    -m null -M 
/usr/obj/DESTDIRs/main-ZNV4-poud-dbg    -S /usr/main-src -v 16.0-CURRENT

I've not had problems with WITH_LLVM_LINK_STATIC_LIBRARIES for
such so far.



===
Mark Millard
marklmi at yahoo.com


Reply via email to