Re: Removing excessive files from staging directory
abi <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
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