Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2026 15:16:59 +0300
From:      abi <abi@abinet.ru>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Removing excessive files from staging directory
Message-ID:  <328a90c0-e7ca-4023-84fe-a4f0d4429dbd@abinet.ru>
In-Reply-To: <870662484.1571.1770120607040@localhost>
References:  <998b14a2-5100-4a60-be51-b7dd6888e15e@abinet.ru> <870662484.1571.1770120607040@localhost>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On 2/3/26 15:10, Ronald Klop wrote:
>
> *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.


Probably, nothing except their number and that they contain even 
unnecessary directories (like, cmake). I thought there is another way, 
because I haven't seen ports with big ${RM} section.


[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/3/26 15:10, Ronald Klop wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:870662484.1571.1770120607040@localhost"><br>
      <p><strong>Van:</strong> abi <a class="moz-txt-link-rfc2396E" href="mailto:abi@abinet.ru">&lt;abi@abinet.ru&gt;</a><br>
        <strong>Datum:</strong> dinsdag, 3 februari 2026 12:37<br>
        <strong>Aan:</strong> <a class="moz-txt-link-abbreviated" href="mailto:freebsd-ports@freebsd.org">freebsd-ports@freebsd.org</a><br>
        <strong>Onderwerp:</strong> Removing excessive files from
        staging directory</p>
      <blockquote>
        <div class="MessageRFC822Viewer" id="P">
          <div class="TextPlainViewer" id="P.P">Hello,<br>
            <br>
            I'm porting a program that puts unnecessary stuff in the
            staging directory, for example<br>
            <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>
            <br>
            <br>
            What is the best way to deal with it?<br>
            <br>
             </div>
          <hr></div>
      </blockquote>
      <br>
      <br>
      Hi Abi,<br>
      <br>
      What is holding you back from removing these files from the
      staging area?<br>
      <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-    @${RM}
      ${STAGEDIR}${DOCSDIR}/INFO_BIN<br>
      ./databases/mysql-connector-odbc/Makefile-    @${RM}
      ${STAGEDIR}${DOCSDIR}/INFO_SRC<br>
      ...<br>
      <br>
      Regards,<br>
      Ronald.<br>
       </blockquote>
    <p><br>
    </p>
    <p>Probably, nothing except their number and that they contain even
      unnecessary directories (like, cmake). I thought there is another
      way, because I haven't seen ports with big ${RM} section.</p>
    <p><br>
    </p>
  </body>
</html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?328a90c0-e7ca-4023-84fe-a4f0d4429dbd>