From nobody Tue Feb 3 12:10:07 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 4f52P43FJQz6PSMH for ; Tue, 03 Feb 2026 12:10:16 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int-backup.realworks.nl (smtp-relay-int-backup.realworks.nl [87.255.56.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4f52P34KSXz3RQJ for ; Tue, 03 Feb 2026 12:10:15 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Authentication-Results: mx1.freebsd.org; none Received: from smtp-relay-int-backup.realworks.nl (crmpreview7.colo2.realworks.nl [10.2.52.37]) by mailrelayint2.colo2.realworks.nl (Postfix) with ESMTP id 4f52Nv3N2vzJs; Tue, 3 Feb 2026 13:10:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1770120607; 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: in-reply-to:in-reply-to:references:references; bh=Q5wap+OQZ0Z4qiI4HwmiIPkD43yKJHiTvwK+K4DrFqQ=; b=BMuy7gT7awxqwYSLlBrZBY1cGT1irzP3AMZ24EF8vUsAJpmnfPF/PXxNUoxli6Ma6KWWM4 3UuDPzUW4C+eTRyZctgaqlARbClWTTZQBG5y1VgYzqdUkpfAk9DtETFQEKCaxFGuylg++V 42TKY8IR2h/9H3g0vxQCSULDQ0iAQMw0JEMS89BsOdI2jAkUqbowMMmcSDtQ0cNpwssEtf frTb/h7QRxnyoiEuNOUFfcWk5WEu/FqqUGB4dpPeSI/j8axtcrLcpG1WDnL1GtcQ6EPwZF PuA2/HhUWaKCOBg2OnxRi8bgzp3Rp4pyGVxONefer5DILdrAeLv6acMO98zLOg== Received: from crmpreview7.colo2.realworks.nl (localhost [127.0.0.1]) by crmpreview7.colo2.realworks.nl (Postfix) with ESMTP id 528E7180241; Tue, 3 Feb 2026 13:10:07 +0100 (CET) Date: Tue, 3 Feb 2026 13:10:07 +0100 (CET) From: Ronald Klop To: abi Cc: freebsd-ports@freebsd.org Message-ID: <870662484.1571.1770120607040@localhost> In-Reply-To: <998b14a2-5100-4a60-be51-b7dd6888e15e@abinet.ru> References: <998b14a2-5100-4a60-be51-b7dd6888e15e@abinet.ru> Subject: Re: Removing excessive files from staging directory 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 Content-Type: multipart/alternative; boundary="----=_Part_1570_1248562927.1770120606916" X-Mailer: Realworks (781.47) X-Originating-Host: from (83-81-213-118.cable.dynamic.v4.ziggo.nl [83.81.213.118]) by crmpreview7.colo2.realworks.nl [10.2.52.37] with HTTP; Tue, 03 Feb 2026 13:10:07 +0100 Importance: Normal X-Priority: 3 (Normal) X-Originating-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0 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:38930, ipnet:87.255.32.0/19, country:NL] X-Rspamd-Queue-Id: 4f52P34KSXz3RQJ X-Spamd-Bar: ---- ------=_Part_1570_1248562927.1770120606916 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: abi 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

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--