linux-libc-headers: Delete include/scsi/scsi.h
authorTom Rini <tom_rini@mentor.com>
Wed, 28 Apr 2010 17:09:11 +0000 (10:09 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 18 Jul 2014 01:06:31 +0000 (04:06 +0300)
With 2.6.31, the kernel started exporting certain SCSI headers again and
in particular scsi/scsi.h.  After talking with Christoph Hellwig and
James Bottemley (scsi maintainer) the kernel shouldn't export
scsi/scsi.h.  Removing this from the kernel, rather than trying to clean
it up to be userland parseable is the right way to go.

We bump the libc INC_PRs to make sure the end user has a sane
<scsi/scsi.h> again.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Acked-By: Koen Kooi <k-kooi@ti.com>
recipes/eglibc/eglibc.inc
recipes/glibc/glibc.inc
recipes/linux-libc-headers/linux-libc-headers-2.6.31/scsi-use-__u8.patch [deleted file]
recipes/linux-libc-headers/linux-libc-headers-2.6.32/scsi-use-__u8.patch [deleted file]
recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb
recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb
recipes/uclibc/uclibc.inc

index 5c06ae6..10a4a23 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.eglibc.org/home"
 SECTION = "libs"
 PRIORITY = "required"
 LICENSE = "LGPL"
-INC_PR = "r9"
+INC_PR = "r10"
 # nptl needs unwind support in gcc, which can't be built without glibc.
 DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
 #this leads to circular deps, so lets not add it yet
index 6741b21..19b5524 100644 (file)
@@ -11,7 +11,7 @@ PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
 PROVIDES += "virtual/libintl virtual/libiconv"
 
 # INC_PR for glibc.inc, glibc-initial.inc and glibc-stage.inc
-INC_PR = "r35"
+INC_PR = "r36"
 
 inherit autotools
 
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.31/scsi-use-__u8.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.31/scsi-use-__u8.patch
deleted file mode 100644 (file)
index b754879..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-This patch is from 
-http://patchwork.kernel.org/patch/38102/
-It seems its still under discussion and it will involve glibc to get it fixed correctly.
-for now OE uses scsi headers from kernel and not from glibc.
-
--Khem
-
-Index: linux-2.6.31/include/scsi/scsi.h
-===================================================================
---- linux-2.6.31.orig/include/scsi/scsi.h      2010-03-11 19:44:49.134590561 -0800
-+++ linux-2.6.31/include/scsi/scsi.h   2010-03-11 19:45:12.744466326 -0800
-@@ -142,10 +142,10 @@ struct scsi_cmnd;
- /* defined in T10 SCSI Primary Commands-2 (SPC2) */
- struct scsi_varlen_cdb_hdr {
--      u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
--      u8 control;
--      u8 misc[5];
--      u8 additional_cdb_length;         /* total cdb length - 8 */
-+      __u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
-+      __u8 control;
-+      __u8 misc[5];
-+      __u8 additional_cdb_length;         /* total cdb length - 8 */
-       __be16 service_action;
-       /* service specific data follows */
- };
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.32/scsi-use-__u8.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.32/scsi-use-__u8.patch
deleted file mode 100644 (file)
index b754879..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-This patch is from 
-http://patchwork.kernel.org/patch/38102/
-It seems its still under discussion and it will involve glibc to get it fixed correctly.
-for now OE uses scsi headers from kernel and not from glibc.
-
--Khem
-
-Index: linux-2.6.31/include/scsi/scsi.h
-===================================================================
---- linux-2.6.31.orig/include/scsi/scsi.h      2010-03-11 19:44:49.134590561 -0800
-+++ linux-2.6.31/include/scsi/scsi.h   2010-03-11 19:45:12.744466326 -0800
-@@ -142,10 +142,10 @@ struct scsi_cmnd;
- /* defined in T10 SCSI Primary Commands-2 (SPC2) */
- struct scsi_varlen_cdb_hdr {
--      u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
--      u8 control;
--      u8 misc[5];
--      u8 additional_cdb_length;         /* total cdb length - 8 */
-+      __u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
-+      __u8 control;
-+      __u8 misc[5];
-+      __u8 additional_cdb_length;         /* total cdb length - 8 */
-       __be16 service_action;
-       /* service specific data follows */
- };
index f01af4e..5ec15b3 100644 (file)
@@ -2,13 +2,12 @@ require linux-libc-headers.inc
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS += "unifdef-native"
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
            file://0001-implement-TIF_RESTORE_SIGMASK-support-and-enable-the.patch;patch=1 \
-           file://scsi-use-__u8.patch;patch=1 \
          "
 S = "${WORKDIR}/linux-${PV}"
 
@@ -44,4 +43,5 @@ do_compile () {
 do_install() {
        set_arch
        oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
+       rm -f ${D}${exec_prefix}/include/scsi/scsi.h
 }
index 29d52cf..8115609 100644 (file)
@@ -2,13 +2,12 @@ require linux-libc-headers.inc
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS += "unifdef-native"
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
           file://export_sa_family_t.patch;patch=1 \
-           file://scsi-use-__u8.patch;patch=1 \
          "
 S = "${WORKDIR}/linux-${PV}"
 
@@ -44,4 +43,5 @@ do_compile () {
 do_install() {
        set_arch
        oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
+       rm -f ${D}${exec_prefix}/include/scsi/scsi.h
 }
index a2332e9..2391671 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "C library for embedded systems"
 LICENSE = "LGPL"
 SECTION = "libs"
 PRIORITY = "required"
-INC_PR = "r33"
+INC_PR = "r34"
 #
 # For now, we will skip building of a gcc package if it is a uclibc one
 # and our build is not a uclibc one, and we skip a glibc one if our build