Re: Xen-4.16.0 + FreeBSD-13.1 dom0 fails on large ADM64 system

From: Roger Pau Monné <roger.pau_at_citrix.com>
Date: Fri, 10 May 2024 09:18:57 UTC
On Fri, May 10, 2024 at 01:43:21AM -0700, Brian Buhrow wrote:
> On May 10, 10:14am, Roger Pau =?utf-8?B?TW9ubsOp?= wrote:
> } Subject: Re: Xen-4.16.0 + FreeBSD-13.1 dom0 fails on large ADM64 system
> } On Sun, May 05, 2024 at 12:52:39AM -0700, Brian Buhrow wrote:
> } > 	hello Roger.  After some further investigation, I found a solution.  The first is a link
> } > to a bug report which demonstrates the problem. Then, I include the diff I made to the ports
> } I'm afraid with this applied I get:
> } 
> } ====> Checking for pkg-plist issues (check-plist)
> } ===> Parsing plist
> } ===> Checking for items in STAGEDIR missing from pkg-plist
> } Error: Orphaned: %%PYTHON_SITELIBDIR%%/pygrub-0.7-py%%PYTHON_VER%%.egg-info
> } Error: Orphaned: %%PYTHON_SITELIBDIR%%/xen-3.0-py%%PYTHON_VER%%.egg-info
> } ===> Checking for items in pkg-plist which are not in STAGEDIR
> } Error: Missing: %%PYTHON_SITELIBDIR%%/pygrub-0.7-py%%PYTHON_VER%%.egg-info/PKG-INFO
> } Error: Missing: %%PYTHON_SITELIBDIR%%/pygrub-0.7-py%%PYTHON_VER%%.egg-info/SOURCES.txt
> } Error: Missing: %%PYTHON_SITELIBDIR%%/pygrub-0.7-py%%PYTHON_VER%%.egg-info/dependency_links.txt
> } Error: Missing: %%PYTHON_SITELIBDIR%%/pygrub-0.7-py%%PYTHON_VER%%.egg-info/top_level.txt
> } Error: Missing: %%PYTHON_SITELIBDIR%%/xen-3.0-py%%PYTHON_VER%%.egg-info/PKG-INFO
> } Error: Missing: %%PYTHON_SITELIBDIR%%/xen-3.0-py%%PYTHON_VER%%.egg-info/SOURCES.txt
> } Error: Missing: %%PYTHON_SITELIBDIR%%/xen-3.0-py%%PYTHON_VER%%.egg-info/dependency_links.txt
> } Error: Missing: %%PYTHON_SITELIBDIR%%/xen-3.0-py%%PYTHON_VER%%.egg-info/top_level.txt
> } ===> Error: Plist issues found.
> } *** Error code 1
> } 
> } I've got not idea what's wrong here.
> } 
> } Roger.
> 
> 	That's interesting.  I think you said you're runing under FreeBSD-15, while I'm running
> FreeBSD-13.1.  You'vve already confirmed that the egg-info names point to files, rather than
> directories, but with the ports tree snapped to the latest version on 13.1, when I build python
> packages, the egg-info names point to directories with the files indicated in the patch inside them.
> That's regardless of whether I build python3.8 or python3.9.  
> I wonder why your copy of the ports tree is building the egg-info names as files?

I use poudriere with a pristine 15 jail and copy of the ports tree,
so everything is build from scratch based on the last snapshot of the
ports tree I have locally.

> Are you
> updating your entire ports tree, or just the packages you work on?

I update everything since that's how poudriere works.

> I wouldn't think the
> difference in the packaging would have to do with the different versions of FreeBSD, especially
> since under older versions of the ports tree, the egg-info names are built as files as well,
> while running on FreeBSD-13.1.  

I'm testing with a 13.2 jail now, let's see if that's different.  Are
you using a specific snapshot of the ports tree?

> With the patch I sent you, I can make package and make install successfully with the xen-tools
> port on 13.1, using the latest version of the ports tree.

FWIW, the xen-tools package as-is seems to also build fine in the pkg
builders for 13.2 and 13.3, so I'm really unsure of what's wrong with
your specific setup.

Regards, Roger.