• Removing excessive files from staging directory

    From abi@abi@abinet.ru to muc.lists.freebsd.ports on Tue Feb 3 14:37:34 2026
    From Newsgroup: muc.lists.freebsd.ports

    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?



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From Matthias Fechner@idefix@fechner.net to muc.lists.freebsd.ports on Tue Feb 3 13:04:33 2026
    From Newsgroup: muc.lists.freebsd.ports

    Am 03.02.2026 um 12:37 schrieb abi:
    What is the best way to deal with it?

    you should add them to the plist of the port.

    Matthias



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From Ronald Klop@ronald-lists@klop.ws to muc.lists.freebsd.ports on Tue Feb 3 13:10:07 2026
    From Newsgroup: muc.lists.freebsd.ports

    ------=_Part_1570_1248562927.1770120606916
    Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit

    Van: abi <abi@abinet.ru>
    Datum: dinsdag, 3 februari 2026 12:37
    Aan: freebsd-ports@freebsd.org
    Onderwerp: Removing excessive files from staging directory

    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?







    Hi Abi,

    What is holding you back from removing these files from the staging area?

    There are examples of post-install in the ports tree.
    $ cd /usr/ports; find . -name Makefile | xargs grep -A 3 post-install:
    ...
    ./databases/mysql-connector-odbc/Makefile:post-install: ./databases/mysql-connector-odbc/Makefile- @${RM} ${STAGEDIR}${DOCSDIR}/INFO_BIN
    ./databases/mysql-connector-odbc/Makefile- @${RM} ${STAGEDIR}${DOCSDIR}/INFO_SRC
    ...

    Regards,
    Ronald.

    ------=_Part_1570_1248562927.1770120606916
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <html><head></head><body><br>
    <p><strong>Van:</strong> abi &lt;abi@abinet.ru&gt;<br>
    <strong>Datum:</strong> dinsdag, 3 februari 2026 12:37<br> <strong>Aan:</strong> freebsd-ports@freebsd.org<br>
    <strong>Onderwerp:</strong> Removing excessive files from staging directory</p>

    <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
    <div class="MessageRFC822Viewer" id="P">
    <div class="TextPlainViewer" id="P.P">Hello,<br>

    I'm porting a program that puts unnecessary stuff in the staging directory, for example<br>

    ====&gt; Checking for pkg-plist issues (check-plist)<br>
    ===&gt; Parsing plist<br>
    ===&gt; Checking for items in STAGEDIR missing from pkg-plist<br>
    Error: Orphaned: include/CxxUrl/string.hpp<br>
    Error: Orphaned: include/CxxUrl/url.hpp<br>
    Error: Orphaned: include/jwt-cpp/base.h<br>
    Error: Orphaned: include/jwt-cpp/jwt.h<br>
    Error: Orphaned: include/jwt-cpp/traits/boost-json/defaults.h<br>
    Error: Orphaned: include/jwt-cpp/traits/boost-json/traits.h<br>
    Error: Orphaned: include/jwt-cpp/traits/danielaparker-jsoncons/defaults.h<br> Error: Orphaned: include/jwt-cpp/traits/danielaparker-jsoncons/traits.h<br> Error: Orphaned: include/jwt-cpp/traits/defaults.h.mustache<br>
    Error: Orphaned: include/jwt-cpp/traits/kazuho-picojson/defaults.h<br>
    Error: Orphaned: include/jwt-cpp/traits/kazuho-picojson/traits.h<br>
    Error: Orphaned: include/jwt-cpp/traits/nlohmann-json/defaults.h<br>
    Error: Orphaned: include/jwt-cpp/traits/nlohmann-json/traits.h<br>
    Error: Orphaned: include/picojson/picojson.h<br>
    Error: Orphaned: lib/cmake/CxxUrl/CxxUrlConfig.cmake<br>
    Error: Orphaned: lib/cmake/CxxUrl/CxxUrlConfigVersion.cmake<br>
    Error: Orphaned: lib/cmake/CxxUrl/CxxUrlTargets-%%CMAKE_BUILD_TYPE%%.cmake<br> Error: Orphaned: lib/cmake/CxxUrl/CxxUrlTargets.cmake<br>
    Error: Orphaned: lib/libCxxUrl.a<br>
    Error: Orphaned: @dir cmake<br>


    What is the best way to deal with it?<br>

    &nbsp;</div>

    <hr></div>
    </blockquote>


    Hi Abi,<br>

    What is holding you back from removing these files from the staging area?<br>

    There are examples of post-install in the ports tree.<br>
    $ cd /usr/ports; find . -name Makefile | xargs grep -A 3 post-install:<br> ...<br>
    ./databases/mysql-connector-odbc/Makefile:post-install:<br> ./databases/mysql-connector-odbc/Makefile-&nbsp; &nbsp; @${RM} ${STAGEDIR}${DOCSDIR}/INFO_BIN<br>
    ./databases/mysql-connector-odbc/Makefile-&nbsp; &nbsp; @${RM} ${STAGEDIR}${DOCSDIR}/INFO_SRC<br>
    ...<br>

    Regards,<br>
    Ronald.<br>
    &nbsp;</body></html>
    ------=_Part_1570_1248562927.1770120606916--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From Robert Clausecker@fuz@fuz.su to muc.lists.freebsd.ports on Tue Feb 3 13:33:30 2026
    From Newsgroup: muc.lists.freebsd.ports

    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


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From abi@abi@abinet.ru to muc.lists.freebsd.ports on Tue Feb 3 16:01:01 2026
    From Newsgroup: muc.lists.freebsd.ports


    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



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21b-Linux NewsLink 1.2