configure: Check if struct fsxattr is available from linux header
PATCH 1/1 configure: Check if struct fsxattr is available from linux header
Fixes build with new linux headers.
---
linux-headers-4.5 and xfsprogs-3.2.4 in my case
configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
configure +18 -0
@@ -4474,6 +4474,21 @@ if test "$fortify_source" != "no"; then fi fi +######################################## +# check if struct fsxattr is available + +have_fsxattr=no +cat > $TMPC << EOF +#include <linux/fs.h> +struct fsxattr foo; +int main(void) { + return 0; +} +EOF +if compile_prog "" "" ; then + have_fsxattr=yes +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs
@@ -5137,6 +5152,9 @@ fi if test "$have_ifaddrs_h" = "yes" ; then echo "HAVE_IFADDRS_H=y" >> $config_host_mak fi +if test "$have_fsxattr" = "yes" ; then + echo "HAVE_FSXATTR=y" >> $config_host_mak +fi if test "$vte" = "yes" ; then echo "CONFIG_VTE=y" >> $config_host_mak echo "VTE_CFLAGS=$vte_cflags" >> $config_host_mak
Signature · 1 line
2.7.3
Quoted 42 lines · Jan Vesely
Fixes build with new linux headers.
Signed-off-by Jan Vesely <[email protected]>---
linux-headers-4.5 and xfsprogs-3.2.4 in my caseconfigure | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)configure +0
-0@@ -4474,6 +4474,21 @@ if test "$fortify_source" != "no"; thenfi
ficonfigure +15
-0+######################################## +# check if struct fsxattr is available + +have_fsxattr=no +cat > $TMPC << EOF +#include <linux/fs.h> +struct fsxattr foo; +int main(void) { + return 0; +} +EOF +if compile_prog "" "" ; then + have_fsxattr=yes +fi +##########################################
# End of CC checks
# After here, no more $cc or $ld runsconfigure +0
-0@@ -5137,6 +5152,9 @@ fiif test "$have_ifaddrs_h" = "yes" ; then
echo "HAVE_IFADDRS_H=y" >> $config_host_mak
ficonfigure +3
-0+if test "$have_fsxattr" = "yes" ; then + echo "HAVE_FSXATTR=y" >> $config_host_mak +fi
Quoted 3 lines
if test "$vte" = "yes" ; then
echo "CONFIG_VTE=y" >> $config_host_mak echo "VTE_CFLAGS=$vte_cflags" >> $config_host_mak
gentle ping.
the docs say trivial patches are collected every week. yet the last one was in Feb.
Quoted 43 lines · Jan Vesely
Quoted 42 lines · Jan Vesely
Fixes build with new linux headers.
Signed-off-by Jan Vesely <[email protected]>---
linux-headers-4.5 and xfsprogs-3.2.4 in my caseconfigure | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)configure +0
-0@@ -4474,6 +4474,21 @@ if test "$fortify_source" != "no"; thenfi
ficonfigure +15
-0+######################################## +# check if struct fsxattr is available + +have_fsxattr=no +cat > $TMPC << EOF +#include <linux/fs.h> +struct fsxattr foo; +int main(void) { + return 0; +} +EOF +if compile_prog "" "" ; then + have_fsxattr=yes +fi +##########################################
# End of CC checks
# After here, no more $cc or $ld runsconfigure +0
-0@@ -5137,6 +5152,9 @@ fiif test "$have_ifaddrs_h" = "yes" ; then
echo "HAVE_IFADDRS_H=y" >> $config_host_mak
fi
+if test "$have_fsxattr" = "yes" ; then
+ echo "HAVE_FSXATTR=y" >> $config_host_mak
Quoted 9 lines
Quoted 4 lines
+fi
if test "$vte" = "yes" ; then
echo "CONFIG_VTE=y" >> $config_host_mak echo "VTE_CFLAGS=$vte_cflags" >> $config_host_makgentle ping.
the docs say trivial patches are collected every week. yet the last one
was in Feb.
gentle ping v2. Is there a maintainer for configure? get_maintainer.pl was not helpful.
Jan
Quoted 54 lines · Jan Vesely
Quoted 43 lines · Jan Vesely
Quoted 42 lines · Jan Vesely
Fixes build with new linux headers.
Signed-off-by Jan Vesely <[email protected]>---
linux-headers-4.5 and xfsprogs-3.2.4 in my caseconfigure | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)configure +0
-0@@ -4474,6 +4474,21 @@ if test "$fortify_source" != "no"; thenfi
ficonfigure +15
-0+######################################## +# check if struct fsxattr is available + +have_fsxattr=no +cat > $TMPC << EOF +#include <linux/fs.h> +struct fsxattr foo; +int main(void) { + return 0; +} +EOF +if compile_prog "" "" ; then + have_fsxattr=yes +fi +##########################################
# End of CC checks
# After here, no more $cc or $ld runsconfigure +0
-0@@ -5137,6 +5152,9 @@ fiif test "$have_ifaddrs_h" = "yes" ; then
echo "HAVE_IFADDRS_H=y" >> $config_host_mak
fi
+if test "$have_fsxattr" = "yes" ; then
+ echo "HAVE_FSXATTR=y" >> $config_host_makQuoted 9 lines
Quoted 4 lines
+fi
if test "$vte" = "yes" ; then
echo "CONFIG_VTE=y" >> $config_host_mak echo "VTE_CFLAGS=$vte_cflags" >> $config_host_makgentle ping.
the docs say trivial patches are collected every week. yet the last one
was in Feb.
Quoted 2 lines
gentle ping v2. Is there a maintainer for configure? get_maintainer.pl was not helpful.
This might be trivial if you explain what's broken without it in more detail. The explanation belongs into the commit message.
Now let's look for victims^Wreviewers:
$ scripts/get_maintainer.pl -f configure
get_maintainer.pl: No maintainers found, printing recent contributors.
get_maintainer.pl: Do not blindly cc: them on patches! Use common sense."Daniel P. Berrange" <[email protected]> (commit_signer:21/95=22%) Paolo Bonzini <[email protected]> (commit_signer:21/95=22%) Stefan Hajnoczi <[email protected]> (commit_signer:15/95=16%) Gerd Hoffmann <[email protected]> (commit_signer:11/95=12%) Peter Maydell <[email protected]> (commit_signer:11/95=12%) [email protected] (open list:All patches CC here) $ scripts/get_maintainer.pl -f --git-since "5-years-ago" configure get_maintainer.pl: No maintainers found, printing recent contributors. get_maintainer.pl: Do not blindly cc: them on patches! Use common sense. Peter Maydell <[email protected]> (commit_signer:135/686=20%) Anthony Liguori <[email protected]> (commit_signer:119/686=17%) Stefan Hajnoczi <[email protected]> (commit_signer:113/686=16%) Paolo Bonzini <[email protected]> (commit_signer:110/686=16%) Stefan Weil <[email protected]> (commit_signer:78/686=11%) [email protected] (open list:All patches CC here) $ scripts/get_maintainer.pl --git-blame -f configure Peter Maydell <[email protected]> (authored lines:611/5975=10%,commits:91/703=13%) Juan Quintela <[email protected]> (authored lines:486/5975=8%,commits:78/703=11%) "Daniel P. Berrange" <[email protected]> (authored lines:355/5975=6%) Anthony Liguori <[email protected]> (commits:178/703=25%) Paolo Bonzini <[email protected]> (commits:90/703=13%) Stefan Hajnoczi <[email protected]> (commits:88/703=13%) [email protected] (open list:All patches CC here)
Suggest to copy Paolo Bonzini, Peter Maydell, Stefan Hajnoczi on your respin.