From nobody Sun Aug 06 13:57:50 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RJgyC4QKnz4Tn6G for ; Sun, 6 Aug 2023 13:57:55 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJgyB2N6sz4cyQ for ; Sun, 6 Aug 2023 13:57:54 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.52.107] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSeGV-0006aI-UB for freebsd-current@freebsd.org; Sun, 06 Aug 2023 15:57:52 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 376DvoSr035954 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sun, 6 Aug 2023 15:57:50 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 376DvolR035953 for freebsd-current@freebsd.org; Sun, 6 Aug 2023 15:57:50 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 6 Aug 2023 15:57:50 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: make buildworld puts legacy tools into the /usr/obj/... tree Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.52.107 X-Spamd-Result: default: False [1.49 / 15.00]; NEURAL_SPAM_MEDIUM(0.58)[0.583]; MID_RHS_NOT_FQDN(0.50)[]; NEURAL_SPAM_LONG(0.40)[0.403]; NEURAL_SPAM_SHORT(0.31)[0.307]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[unixarea.de]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; BLOCKLISTDE_FAIL(0.00)[188.174.52.107:server fail,178.254.4.101:server fail]; REPLYTO_EQ_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; HAS_XOIP(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; MIME_TRACE(0.00)[0:+]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4RJgyB2N6sz4cyQ I did, based of a git clone of head, a clean compile of world and kernel with # cd /usr # rm -rf obj # mkdir obj # cd src # make -j8 buildworld # make -j8 buildkernel ... I installed the result and the system runs fine. For some test I wanted to do another installation to some DESTDIR with # make installworld DESTDIR=/home/... This failed with: --- installworld --- mkdir -p /tmp/install.j76anzU56j ... Required library libdialog.so.8 not found. *** [installworld] Error code 1 make[1]: stopped in /usr/src Investigating the problem it turned out that the 'make buildworld' puts a lot of legacy binaries in to some directory: # ls -l /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin total 36976 -r-xr-xr-x 1 root wheel 13304 Nov 30 2020 [ lrwxr-xr-x 1 root wheel 54 Aug 5 13:05 apropos -> /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin/mandoc -rwxr-xr-x 1 root wheel 1008512 Aug 5 13:05 asn1_compile -r-xr-xr-x 1 root wheel 217504 Nov 30 2020 awk -r-xr-xr-x 1 root wheel 9576 Nov 30 2020 basename -r-xr-xr-x 1 root wheel 195712 Nov 30 2020 bmake -r-xr-xr-x 1 root wheel 33848 Nov 30 2020 bunzip2 ... They are all from the system before updating it (from Nov 30 2020) and of course are missing shared libs when they get called in the actual system, for example # ldd /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin/tzsetup /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin/tzsetup: libdialog.so.8 => not found (0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ libncursesw.so.9 => /lib/libncursesw.so.9 (0xf283d7b4000) libc.so.7 => /lib/libc.so.7 (0xf283e729000) libtinfow.so.9 => /lib/libtinfow.so.9 (0xf283c93d000) [vdso] (0xf283c4a4000) # which tzsetup /usr/sbin/tzsetup # ldd /usr/sbin/tzsetup /usr/sbin/tzsetup: libprivatebsddialog.so.0 => /usr/lib/libprivatebsddialog.so.0 (0x1797fe45c000) libc.so.7 => /lib/libc.so.7 (0x1797fec89000) libncursesw.so.9 => /lib/libncursesw.so.9 (0x1798011df000) libtinfow.so.9 => /lib/libtinfow.so.9 (0x17980043d000) libformw.so.6 => /usr/lib/libformw.so.6 (0x17980164c000) [vdso] (0x1797fe2d9000) Why is this with the tools in /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin ? Or what I have done wrong or overlooked? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub