On Fri, Feb 04, 2022 at 04:36:18PM -0800, Darrick J. Wong wrote: > On Fri, Feb 04, 2022 at 05:18:12PM -0600, Eric Sandeen wrote: > > On 1/19/22 6:21 PM, Darrick J. Wong wrote: > > > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > > > > > Move our private copy of the GETFSMAP definition into a libfrog header > > > file that (preferentially) uses the system header files. We have no > > > business shipping kernel headers in the xfslibs package, but this shim > > > is still needed to build fully functional xfsprogs on old userspace. > > > > Hm. Fine, but I wonder if we can get a bit more intentional about how > > we handle this kind of thing, I understand why we copy this stuff into > > xfsprogs early, but then we never know how to get rid of it. > > > > Do we /need/ to build fully functional xfsprogs on old userspace? > > (really: systems with old kernel headers?) How far back do we go, > > I wonder? Anyway... > > TBH we could probably get rid of these entirely, assuming nobody is > building xfsprogs with old kernel headers for a system with a newer > kernel? Just fiddle the autoconf rules to refuse to build if the system headers we need aren't present. It just means that build systems need to have the userspace they intend to target installed in the build environment. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx