Re: git: b68bef1f6425 - main - x11-wm/kwinft: unbreak build after 5d998836b36f

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 20:31:00 UTC
Emmanuel Vadot <manu@bidouilliste.com> writes:

> On Wed, 10 Nov 2021 10:58:46 GMT
> Jan Beich <jbeich@FreeBSD.org> wrote:
>
>> The branch main has been updated by jbeich:
>> 
>> URL: https://cgit.FreeBSD.org/ports/commit/?id=b68bef1f6425117cd0d0d95626178db4c4fb3073
>> 
>> commit b68bef1f6425117cd0d0d95626178db4c4fb3073
>> Author:     Jan Beich <jbeich@FreeBSD.org>
>> AuthorDate: 2021-11-10 09:24:08 +0000
>> Commit:     Jan Beich <jbeich@FreeBSD.org>
>> CommitDate: 2021-11-10 10:58:09 +0000
>> 
>>     x11-wm/kwinft: unbreak build after 5d998836b36f
>>     
>>     input/filters/window_selector.cpp:19:10: fatal error: 'linux/input.h' file not found
>>      #include <linux/input.h>
>>               ^~~~~~~~~~~~~~~
>>     
>>     Pointy hat to:  manu
>
>  So this is my fault that you didn't list a required build dependancy
> now ?

Not so simple:
- poudriere doesn't catch implicit build-only depenencies
- libmtdev API isn't usable without evdev-proto

$ poudriere jail -sj 122amd64
$ jexec 122amd64-default
$ pkg install libmtdev pkgconf
$ cat >a.c
#include <mtdev.h>

int main()
{
  mtdev_new_open(0);
  return 0;
}
^D
$ cc a.c $(pkg-config --cflags --libs mtdev)
In file included from a.c:1:
/usr/local/include/mtdev.h:36:10: fatal error: 'linux/input.h' file not found
#include <linux/input.h>
         ^~~~~~~~~~~~~~~
1 error generated.