e921f6508b
1. With various (debug and/or tracing?) kernel options enabled it's possible for 'struct inode' and 'struct super_block' to exceed the default frame size, leaving errors like this in config.log: build/conftest.c:116:1: error: the frame size of 1048 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Fix this by removing the frame size warning for config checks 2. Without the correct headers included, it's possible for declarations to be missed, leaving errors like this in the config.log: build/conftest.c:131:14: error: ‘struct nameidata’ declared inside parameter list [-Werror] Fix this by adding appropriate headers. Note: Both these issues can result in silent config failures because the compile failure is taken to mean "this option is not supported by this kernel" rather than "there's something wrong with the config test". This can lead to something merely annoying (compile failures) to something potentially serious (miscompiled or misused kernel primitives or functions). E.g. the fixes included here resulted in these additional defines in zfs_config.h with linux v4.14.19: Also, drive-by whitespace fixes in config/* files which don't mention "GNU" (those ones look to be imported from elsewhere so leave them alone). Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chris Dunlop <chris@onthe.net.au> Closes #7169
33 lines
993 B
Plaintext
33 lines
993 B
Plaintext
tgz-local:
|
|
@(if test "${HAVE_ALIEN}" = "no"; then \
|
|
echo -e "\n" \
|
|
"*** Required util ${ALIEN} missing. Please install the\n" \
|
|
"*** package for your distribution which provides ${ALIEN},\n" \
|
|
"*** re-run configure, and try again.\n"; \
|
|
exit 1; \
|
|
fi)
|
|
|
|
tgz-kmod: tgz-local rpm-kmod
|
|
if CONFIG_KERNEL
|
|
name=${PACKAGE}; \
|
|
version=${VERSION}-${RELEASE}; \
|
|
arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
|
|
pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
|
|
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
|
|
$(RM) $$pkg1
|
|
endif
|
|
|
|
tgz-utils: tgz-local rpm-utils
|
|
if CONFIG_USER
|
|
name=${PACKAGE}; \
|
|
version=${VERSION}-${RELEASE}; \
|
|
arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
|
|
pkg1=$${name}-$${version}.$${arch}.rpm; \
|
|
pkg2=$${name}-devel-$${version}.$${arch}.rpm; \
|
|
pkg3=$${name}-test-$${version}.$${arch}.rpm; \
|
|
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
|
|
$(RM) $$pkg1 $$pkg2 $$pkg3
|
|
endif
|
|
|
|
tgz: tgz-kmod tgz-utils
|