From nobody Fri Apr 8 11:57:57 2022 X-Original-To: freebsd-questions@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 0CF8C1A9619E for ; Fri, 8 Apr 2022 11:58:50 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZcGc5Wtcz3Hyb for ; Fri, 8 Apr 2022 11:58:48 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Fri, 08 Apr 2022 13:57:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1649419127; bh=BYRmmlX/KLMp3znMpxetRa3bVJRkprCQ1TUVJzUPIWU=; h=Date:Message-ID:From:To:Subject:MIME-Version:Content-Type; b=hnyrVpNHcxpVQPEHlQGDk1nuwkpPH8SeGF2KMEPzO6Phy2PV3Jzre0YlQOoX6kd47 z4TcJqNzgLj9S/UR1mdYVozcRa9apWgi/MljdQLM5NkZ4bH82KT333f4dh0m2Yibv9 Q0NUmES0jBUp0CT/zgnZ80AxwnnMPkdHO8M2OSlaAbilpnc6mQa0RZDZ3dFnA0vyUi ONuv3nYzrIAlmksWVk0bcIj9es2Kz76mUA9cZR7+c/izTDyiRH3Rd93VZIoYE61s8N 4xpHN/LgsoeVaBGAiXDp4K060NYz8aTMsTR7tE/mg77KDfnnPk99WI5dv+hmizPg6W taqARWAPxJDEg== Message-ID: <87r167948q.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: freebsd-questions@freebsd.org Subject: Re: why does "make delete-old" not delete some directories? In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/29.0 Mule/6.0 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4KZcGc5Wtcz3Hyb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=hnyrVpNH; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 94.130.200.20 as permitted sender) smtp.mailfrom=herbert@gojira.at X-Spamd-Result: default: False [-1.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:94.130.200.20]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gojira.at]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.998]; DKIM_TRACE(0.00)[gojira.at:+]; NEURAL_HAM_SHORT(-0.90)[-0.897]; MID_CONTAINS_FROM(1.00)[]; MLMMJ_DEST(0.00)[freebsd-questions]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24940, ipnet:94.130.0.0/16, country:DE] X-ThisMailContainsUnwantedMimeParts: N On Thu, 07 Apr 2022 19:46:03 +0200, tech-lists wrote: > > Hi, > > Why does 'make delete-old' seemingly fail with some dirs and not > others? > context is earlier stable/13 updated to stable/13 as of a few minutes > ago. > > root@redacted:/usr/src # yes | make delete-old > > [...] > rmdir: /usr/lib/debug/usr/lib/i18n: Directory not empty > /usr/lib/debug/usr/lib/flua > /usr/lib/debug/usr/lib/engines > rmdir: /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd: Directory not empty > rmdir: /usr/lib/debug/usr/lib/clang/13.0.0/lib: Directory not empty > rmdir: /usr/lib/debug/usr/lib/clang/13.0.0: Directory not empty > rmdir: /usr/lib/debug/usr/lib/clang: Directory not empty > rmdir: /usr/lib/debug/usr/lib: Directory not empty > /usr/lib/debug/usr/bin > rmdir: /usr/lib/debug/usr: Directory not empty > /usr/lib/debug/sbin > /usr/lib/debug/libexec > /usr/lib/debug/lib/nvmecontrol > /usr/lib/debug/lib/geom > rmdir: /usr/lib/debug/lib/casper: Directory not empty > rmdir: /usr/lib/debug/lib: Directory not empty > rmdir: /usr/lib/debug/boot: Directory not empty > /usr/lib/debug/bin > [...] > > root@redacted:/usr/src # file /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd > /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd: directory On my main and stable/13 systems after running make delete-old(-libs) I have only the following leftovers: % find /usr/lib/debug /usr/lib/debug /usr/lib/debug/boot /usr/lib/debug/boot/kernel /usr/lib/debug/boot/modules Because of /usr/src/tools/build/mk/OptionalObsoleteFiles.inc: 1646 .if ${MK_DEBUG_FILES} == no 1647 .if exists(${DESTDIR}/usr/lib/debug) 1648 DEBUG_DIRS!=find ${DESTDIR}/usr/lib/debug -mindepth 1 \ 1649 -type d \! -path "${DESTDIR}/usr/lib/debug/boot/*" \ 1650 | sed -e 's,^${DESTDIR}/,,'; echo 1651 DEBUG_FILES!=find ${DESTDIR}/usr/lib/debug \ 1652 \! -type d \! -path "${DESTDIR}/usr/lib/debug/boot/*" \! -name "lib*.so*" \ 1653 | sed -e 's,^${DESTDIR}/,,'; echo 1654 DEBUG_LIBS!=find ${DESTDIR}/usr/lib/debug \! -type d -name "lib*.so*" \ 1655 | sed -e 's,^${DESTDIR}/,,'; echo 1656 OLD_DIRS+=${DEBUG_DIRS} 1657 OLD_FILES+=${DEBUG_FILES} 1658 OLD_LIBS+=${DEBUG_LIBS} 1659 .endif 1660 .endif -- Herbert