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 -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments
