selinux/python
наб eb963a88b4 Insert -I../../libselinux/include and -L../../libselinux/src into subprograms where needed
These subprograms (sublibraries) use plain
  #include <selinux/selinux.h>
  cc ... -lselinux ...
&c. which includes/links to the system libselinux.

Naturally, this doesn't work if you don't have one.

All of these fell out of a plain make invocation,
yielding errors like
  cc  -O2 -Werror -Wall -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnull-dereference -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -fno-common -I../include -D_GNU_SOURCE -c -o boolean_record.o boolean_record.c
  boolean_record.c:26:10: fatal error: selinux/selinux.h: No such file or directory
     26 | #include <selinux/selinux.h>
        |          ^~~~~~~~~~~~~~~~~~~
  compilation terminated.

  make[2]: Entering directory '/tmp/selinux/policycoreutils/sestatus'
  cc -O2 -Werror -Wall -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnull-dereference -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -fno-common -D_FILE_OFFSET_BITS=64   -c -o sestatus.o sestatus.c
  sestatus.c:12:10: fatal error: selinux/selinux.h: No such file or directory
     12 | #include <selinux/selinux.h>
        |          ^~~~~~~~~~~~~~~~~~~
  compilation terminated.

Signed-off-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Acked-by: James Carter <jwcart2@gmail.com>
2025-04-07 11:37:37 -04:00
..
audit2allow Insert -I../../libselinux/include and -L../../libselinux/src into subprograms where needed 2025-04-07 11:37:37 -04:00
chcat Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
po Update translations 2023-11-07 16:27:38 -05:00
semanage python/semanage: Allow modifying records on "add" 2024-03-04 09:57:53 -05:00
sepolgen Update VERSIONs to 3.8.1 for release. 2025-03-05 19:59:06 +01:00
sepolicy Update VERSIONs to 3.8.1 for release. 2025-03-05 19:59:06 +01:00
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile Split po/ translation files into the relevant sub-directories 2022-04-06 10:52:41 +02:00
VERSION Update VERSIONs to 3.8.1 for release. 2025-03-05 19:59:06 +01:00