Error: Orphaned: @unexec rmdir "/home" >/dev/null 2>&1 || : (PING)

Antoine Brodin antoine at FreeBSD.org
Mon Jun 30 17:59:34 UTC 2014


On Mon, Jun 30, 2014 at 6:48 PM, Gerald Pfeifer <gerald at pfeifer.com> wrote:
> On Fri, 20 Jun 2014, Antoine Brodin wrote:
>>> Build with a non-standard PREFIX and LOCALBASE in /home/gerald/10-i386,
>>> make ports builds have been failing with the following for a bit (for
>>> lang/gcc49 among others):
>>>
>>>   #### Running regression-test, checking for orphans, checking pkg-plist.
>>>   ====> Checking for pkg-plist issues (check-plist)
>>>   ===> Parsing plist
>>>   ===> Checking for items in STAGEDIR missing from pkg-plist
>>>   Error: Orphaned: @unexec rmdir "/home/gerald" >/dev/null 2>&1 || :
>>>   Error: Orphaned: @unexec rmdir "/home" >/dev/null 2>&1 || :
>>> Any ideas what is going on here?  And what is adding those interesting
>>> @unexec rmdir entries?
>> You can try to add NO_PREFIX_RMDIR=yes to your port when you test it.
>> Testing PREFIX!=LOCALBASE often produces strange results anyway,  in
>> most cases people should test PREFIX=LOCALBASE != /usr/local and not
>> PREFIX!=LOCALBASE.
>
> Yes, but this had been working without problems for many years. :-) And
> now only problem is this new (pkg-ng?) code and check-plist; apart from
> that things work.
>
> In my case PREFIX points to /scratch.  It's LOCALBASE that points to
> /home/gerald/10-i386, so I am really puzzled about those @unexec rmdir's
> that want to remove my LOCALBASE.
>
> Why should any port or package meddle with LOCALBASE??

Hi,

You can try attached patch.

Cheers,

Antoine
-------------- next part --------------
Index: Mk/Scripts/check-stagedir.sh
===================================================================
--- Mk/Scripts/check-stagedir.sh	(revision 359891)
+++ Mk/Scripts/check-stagedir.sh	(working copy)
@@ -157,6 +157,14 @@
 		fi
 		unset MTREE_FILE GNOME_MTREE_FILE
 
+		# Add LOCALBASE
+		a=${LOCALBASE}
+		while :; do
+			echo ${a}
+			a=${a%/*}
+			[ -z "${a}" ] && break
+		done
+
 		# Add in PREFIX if this port wants it
 		if [ ${NO_PREFIX_RMDIR} -eq 0 ]; then
 			a=${PREFIX}


More information about the freebsd-ports mailing list