Re: git: 5a4eeed2e2cd - main - x11/xkeyboard-config: Fix pkg-plist after e6f66fef0255

From: Jason E. Hale <jhale_at_freebsd.org>
Date: Sat, 11 Nov 2023 17:57:10 UTC
On Sat, Nov 11, 2023 at 2:50 AM Jan Beich <jbeich@freebsd.org> wrote:
>
> "Jason E. Hale" <jhale@FreeBSD.org> writes:
>
> > --- /dev/null
> > +++ b/x11/xkeyboard-config/files/patch-meson.build
> > @@ -0,0 +1,11 @@
> > +--- meson.build.orig 2023-11-11 04:37:00 UTC
> > ++++ meson.build
> > +@@ -7,7 +7,7 @@ dir_man7        = join_paths(get_option('prefix'), get
> > + dir_xkb_base    = join_paths(dir_data, 'X11', 'xkb')
> > + dir_xkb_rules   = join_paths(dir_xkb_base, 'rules')
> > + dir_man7        = join_paths(get_option('prefix'), get_option('mandir'), 'man7')
> > +-dir_pkgconfig   = join_paths(dir_data, 'pkgconfig')
> > ++dir_pkgconfig   = join_paths(get_option('prefix'), 'libdata', 'pkgconfig')
>
> Why not fix bogus *_DEPENDS in consumers? share/pkgconfig is common in ports/.
> See https://cgit.freebsd.org/ports/commit/?id=d48fab59daa5 and the following:
>
> $ rg -lg pkg-plist share/pkgconfig | sed s,/pkg-plist,,

I was unaware that share/pkgconfig was a thing on FreeBSD until now,
so thank you for that information. Just 22 ports install files there,
though, which is less than 1% of all ports that install pkgconfig
files, so it's really not that common. Since the pkgconfig file was
missing entirely from pkg-plist after the update and share/pkgconfig
looked funky to me when I initially remade pkg-plist, I just went with
the location it was installed to in the previous version. The build
system changed from autotools to meson, so I chalked it up to that and
didn't really look deeper into it, as I was primarily focused on
fixing the fallout in the 10 minutes I had before going to work
because building Plasma was pretty much b0rked. So basically, I
snatched someone else's pointy hat right off their head and flattened
it out a bit into my own Energy Dome. Although nothing is broken at
this point, improvements can be made, sure. We probably shouldn't be
depending on the pc file and just depend on the package.

-Jason