X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fsdparm%2F0000-makefile-remove-host-headers-include.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fsdparm%2F0000-makefile-remove-host-headers-include.patch;h=765a81d16bc1cb0c814ac00eb3c89d10664c2590;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/sdparm/0000-makefile-remove-host-headers-include.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/sdparm/0000-makefile-remove-host-headers-include.patch new file mode 100644 index 0000000..765a81d --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/sdparm/0000-makefile-remove-host-headers-include.patch @@ -0,0 +1,19 @@ +src/Makefile.am: remove host headers incdlue + +Using host headers is bad for cross compilation. Instead, use the '=' prefix +which expands to the current sysroot. + +Signed-off-by: Baruch Siach +--- +diff -Nuar sdparm-1.09-orig/src/Makefile.am sdparm-1.09/src/Makefile.am +--- sdparm-1.09-orig/src/Makefile.am 2014-09-23 18:48:44.000000000 +0300 ++++ sdparm-1.09/src/Makefile.am 2015-02-06 09:33:43.693477667 +0200 +@@ -41,7 +41,7 @@ + ../lib/sg_pt_common.c + + if HAVE_SGUTILS +-INCLUDES = -I/usr/include/scsi ++INCLUDES = -I=/scsi + sdparm_LDADD = @GETOPT_O_FILES@ @os_libs@ @SGUTILS_LIBS@ + sdparm_DEPENDENCIES = @GETOPT_O_FILES@ + else