git: xz(1): Remove the unneeded '${LZMADIR}/api/lzma' search path
Aaron LI
aly at crater.dragonflybsd.org
Mon Mar 23 00:40:18 PDT 2026
commit 61a7c08154906e6c583c0c08b2e0b4a73d7f704f
Author: Aaron LI <aly at aaronly.me>
Date: Thu Mar 19 09:47:32 2026 +0800
xz(1): Remove the unneeded '${LZMADIR}/api/lzma' search path
This search path is unneeded, as the API headers there must be included
via the public header '${LZMADIR}/api/lzma.h'.
In addition, it would cause conflict with other headers in
liblzma/{check,common} etc. directories. This happened when I tried
to adjust the per-group flags to override the default flags (e.g.,
CFLAGS). An example error log is:
```
In file included from /usr/src/usr.bin/xz/../../contrib/xz/src/liblzma/common/block_buffer_encoder.c:17:
/usr/src/usr.bin/xz/../../contrib/xz/src/liblzma/api/lzma/check.h:16:3: error: #error Never include this file directly. Use <lzma.h> instead.
# error Never include this file directly. Use <lzma.h> instead.
^~~~~
```
Summary of changes:
usr.bin/xz/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/61a7c08154906e6c583c0c08b2e0b4a73d7f704f
--
DragonFly BSD source repository
More information about the Commits
mailing list