From nobody Tue Feb 3 13:01:01 2026 X-Original-To: freebsd-ports@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 4f53Wq3BNSz6PWtY for ; Tue, 03 Feb 2026 13:01:11 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [109.167.144.131]) by mx1.freebsd.org (Postfix) with ESMTP id 4f53Wm1wNhz3X8l for ; Tue, 03 Feb 2026 13:01:08 +0000 (UTC) (envelope-from abi@abinet.ru) Authentication-Results: mx1.freebsd.org; none Received: from [10.2.80.199] (unknown [10.2.80.199]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id F2B92151DD; Tue, 03 Feb 2026 16:01:01 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abinet.ru; s=dkim; t=1770123662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KZnzeIVEzNVUmFx/PPahUwiZ03ktYwW7C95A1hQ39Pk=; b=SS9hyxyCbmXvmIkj8HMwu5ZLkFMZKdernC9CE5DjFUopNGKgotj8gncqawlIKpo2T8OdiL TisoF/jeyn/wtP11ZO+S0obMgsmRDA7iP9I978Q3J424fsQ58mnNNUXTSIHRD02WfUlSzI iBgk5xvF6xpsz0DIuoH+8B5/nS/aIpk= Message-ID: <6170e8de-a312-4921-86d3-041150168daa@abinet.ru> Date: Tue, 3 Feb 2026 16:01:01 +0300 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Removing excessive files from staging directory To: Robert Clausecker Cc: freebsd-ports@freebsd.org References: <998b14a2-5100-4a60-be51-b7dd6888e15e@abinet.ru> Content-Language: en-US From: abi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:41733, ipnet:109.167.128.0/18, country:RU] X-Rspamd-Queue-Id: 4f53Wm1wNhz3X8l X-Spamd-Bar: ---- On 2/3/26 15:33, Robert Clausecker wrote: > Hi Abi, > > Am Tue, Feb 03, 2026 at 02:37:34PM +0300 schrieb abi: >> Hello, >> >> I'm porting a program that puts unnecessary stuff in the staging directory, >> for example >> >> ====> Checking for pkg-plist issues (check-plist) >> ===> Parsing plist >> ===> Checking for items in STAGEDIR missing from pkg-plist >> Error: Orphaned: include/CxxUrl/string.hpp >> Error: Orphaned: include/CxxUrl/url.hpp >> Error: Orphaned: include/jwt-cpp/base.h >> Error: Orphaned: include/jwt-cpp/jwt.h >> Error: Orphaned: include/jwt-cpp/traits/boost-json/defaults.h >> Error: Orphaned: include/jwt-cpp/traits/boost-json/traits.h >> Error: Orphaned: include/jwt-cpp/traits/danielaparker-jsoncons/defaults.h >> Error: Orphaned: include/jwt-cpp/traits/danielaparker-jsoncons/traits.h >> Error: Orphaned: include/jwt-cpp/traits/defaults.h.mustache >> Error: Orphaned: include/jwt-cpp/traits/kazuho-picojson/defaults.h >> Error: Orphaned: include/jwt-cpp/traits/kazuho-picojson/traits.h >> Error: Orphaned: include/jwt-cpp/traits/nlohmann-json/defaults.h >> Error: Orphaned: include/jwt-cpp/traits/nlohmann-json/traits.h >> Error: Orphaned: include/picojson/picojson.h >> Error: Orphaned: lib/cmake/CxxUrl/CxxUrlConfig.cmake >> Error: Orphaned: lib/cmake/CxxUrl/CxxUrlConfigVersion.cmake >> Error: Orphaned: lib/cmake/CxxUrl/CxxUrlTargets-%%CMAKE_BUILD_TYPE%%.cmake >> Error: Orphaned: lib/cmake/CxxUrl/CxxUrlTargets.cmake >> Error: Orphaned: lib/libCxxUrl.a >> Error: Orphaned: @dir cmake >> >> >> What is the best way to deal with it? > Some of these are bundled dependencies it seems. > You should unbundle as many dependencies as possible when > writing a port so that the dependencies are installed only > once and can be kept up to date easily. > > You may need to add new ports for these unbundled dependencies. > For example, CxxUrl is an independent project [1] that should be > packaged and then the bundled copy should be replaced with a > dependency to that package. > > Yours, > Robert Clausecker > > [1]: https://github.com/chmike/CxxUrl > Aha, I knew something was fishy with the idea to delete excessive files. jwt-cpp is a bundled dependency as well [1] [1]: https://github.com/freebsd/freebsd-ports/blob/main/devel/jwt-cpp/pkg-plist