Commit dc7c3d9
committed
Skip python magic expectation on RHEL 8
RHEL 8 carries an older libmagic behavior for /usr/bin/python3 scripts. The file_type_detect_test expected text/x-script.python from the system magic database, but RHEL 8 reports text/x-python, which made the test fail even though that platform-specific result is acceptable for an old extended-support platform.
Configure now detects RHEL 8 from /etc/os-release in a subshell and defines FAPOLICYD_RHEL8. Keeping the os-release variables contained matters because os-release also defines VERSION, and clobbering Automake's VERSION breaks make dist on newer Fedora hosts.
The file type detection test includes config.h and skips only the full-python-usr-bin system-libmagic assertion when FAPOLICYD_RHEL8 is present, leaving the newer-platform expectation active everywhere else.1 parent 8ed94ea commit dc7c3d9
2 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
14 | 39 | | |
15 | 40 | | |
16 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
277 | 285 | | |
| 286 | + | |
278 | 287 | | |
279 | 288 | | |
280 | 289 | | |
| |||
0 commit comments