[acpica-tools] Clean up patches for the new upstream source.

Al Stone ahs3 at fedoraproject.org
Tue Nov 26 02:47:59 UTC 2013


commit a03e600febac34299bf3ca3a0fe9299c52684363
Author: Al Stone <ahs3 at redhat.com>
Date:   Mon Nov 25 18:44:48 2013 -0700

    Clean up patches for the new upstream source.
    
    Signed-off-by: Al Stone <ahs3 at redhat.com>

 aapits-linux.patch      |   56 ++++++------
 acpica-tools.spec       |    5 +-
 debian-big_endian.patch |    6 +-
 makefile-config.patch   |  219 -----------------------------------------------
 4 files changed, 34 insertions(+), 252 deletions(-)
---
diff --git a/aapits-linux.patch b/aapits-linux.patch
index 79bbaff..a40b14a 100644
--- a/aapits-linux.patch
+++ b/aapits-linux.patch
@@ -1,7 +1,7 @@
 diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapits/tests/aapits/atexec.c
 --- acpica-unix2-20130626/tests/aapits/atexec.c	2013-01-17 12:48:28.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atexec.c	2013-07-25 13:44:23.023894441 -0600
-@@ -530,6 +530,7 @@
+@@ -639,6 +639,7 @@
  }
  
  
@@ -9,7 +9,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
  /*******************************************************************************
   *
   * FUNCTION:    AtBuildLocalRSDT
-@@ -648,8 +649,9 @@
+@@ -757,8 +758,9 @@
          LocalRSDT->Header.Checksum = (UINT8)~LocalRSDT->Header.Checksum;
      }
  }
@@ -19,7 +19,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
  /*******************************************************************************
   *
   * FUNCTION:    AtBuildLocalXSDT
-@@ -1315,7 +1319,7 @@
+@@ -1424,7 +1426,7 @@
          ACPI_WARNING ((AE_INFO,
              "Request on [%4.4s] is beyond region limit Req-%X+%X, Base=%X, Len-%X\n",
              (RegionObject->Region.Node)->Name.Ascii, (UINT32) Address,
@@ -28,7 +28,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
  
          return (AE_AML_REGION_LIMIT);
      }
-@@ -1683,7 +1687,9 @@
+@@ -1792,7 +1796,9 @@
              Path, Obj.Integer.Value, Value);
  #else
          printf ("API Error: Value of %s is 0x%llx instead of expected 0x%llx\n",
@@ -39,7 +39,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
  #endif
          Status = AE_ERROR;
      }
-@@ -1762,7 +1768,7 @@
+@@ -1871,7 +1877,7 @@
      {
          TestErrors++;
          printf ("Test Error: cannot allocate buffer of %d bytes\n",
@@ -48,7 +48,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
          return (AE_NO_MEMORY);
      }
      Results.Pointer = Object;
-@@ -1843,7 +1849,8 @@
+@@ -1952,7 +1956,8 @@
      {
          printf ("AtCheckBuffer: unexpected length %d of Buffer vs"
              " calculated %d bytes\n",
@@ -58,7 +58,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
      }
  
      /* Initialize the return buffer structure */
-@@ -1852,7 +1859,7 @@
+@@ -1961,7 +1968,7 @@
      {
          TestErrors++;
          printf ("Test Error: cannot allocate buffer of %d bytes\n",
@@ -70,7 +70,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atexec.c acpica-unix2-20130626-aapi
 diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapits/tests/aapits/atinit.c
 --- acpica-unix2-20130626/tests/aapits/atinit.c	2013-01-17 12:48:28.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atinit.c	2013-07-25 13:20:19.706705960 -0600
-@@ -2915,7 +2915,7 @@
+@@ -3024,7 +3024,7 @@
              AapiErrors++;
              printf ("API Error: AcpiGetSystemInfo() returned"
                  " Length %d, expected %d\n",
@@ -79,7 +79,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapi
              return (AE_ERROR);
          }
  
-@@ -2937,7 +2937,7 @@
+@@ -3046,7 +3046,7 @@
              AapiErrors++;
              printf ("API Error: AcpiGetSystemInfo() returned"
                  " Length %d, expected %d\n",
@@ -88,7 +88,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapi
              return (AE_ERROR);
          }
  
-@@ -2957,7 +2957,7 @@
+@@ -3066,7 +3066,7 @@
              AapiErrors++;
              printf ("API Error: AcpiGetSystemInfo() returned"
                  " Length %d, expected %d\n",
@@ -97,7 +97,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapi
              return (AE_ERROR);
          }
          else if (OutBuffer.Pointer != &Info)
-@@ -3040,7 +3040,7 @@
+@@ -3149,7 +3149,7 @@
              AapiErrors++;
              printf ("API Error: AcpiGetSystemInfo() returned"
                  " Length %d, expected %d\n",
@@ -106,7 +106,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapi
              return (AE_ERROR);
          }
          else if (OutBuffer.Pointer != &Info)
-@@ -3105,7 +3105,7 @@
+@@ -3214,7 +3214,7 @@
              AapiErrors++;
              printf ("API Error: AcpiGetSystemInfo() returned"
                  " Length %d, expected %d\n",
@@ -118,7 +118,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atinit.c acpica-unix2-20130626-aapi
 diff -urN acpica-unix2-20130626/tests/aapits/atmain.c acpica-unix2-20130626-aapits/tests/aapits/atmain.c
 --- acpica-unix2-20130626/tests/aapits/atmain.c	2013-01-17 12:48:28.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atmain.c	2013-07-25 13:18:22.083323948 -0600
-@@ -206,7 +206,7 @@
+@@ -315,7 +315,7 @@
      {
          printf ("ACPICA API TS err: test num %ld of test case %ld"
              " is not implemented\n",
@@ -127,7 +127,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atmain.c acpica-unix2-20130626-aapi
          return (AtRetNotImpl);
      }
  
-@@ -321,7 +323,7 @@
+@@ -430,7 +432,7 @@
      if (test_case < 1 || test_case > AT_TEST_CASE_NUM)
      {
          printf ("ACPICA API TS err: test case %ld is out of range 1 - %d\n",
@@ -136,7 +136,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atmain.c acpica-unix2-20130626-aapi
          return (AtRetBadParam);
      }
  
-@@ -329,7 +331,7 @@
+@@ -438,7 +440,7 @@
      if (test_num < 0 || test_num > AtTestCase[test_case].TestsNum)
      {
          printf ("ACPICA API TS err: test num %ld is out of range 0 - %d\n",
@@ -148,7 +148,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atmain.c acpica-unix2-20130626-aapi
 diff -urN acpica-unix2-20130626/tests/aapits/atnamespace.c acpica-unix2-20130626-aapits/tests/aapits/atnamespace.c
 --- acpica-unix2-20130626/tests/aapits/atnamespace.c	2013-01-17 12:48:28.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atnamespace.c	2013-07-25 13:24:15.366466707 -0600
-@@ -2426,7 +2426,8 @@
+@@ -2535,7 +2535,8 @@
  #else
                  printf ("API Error: Address of %s (0x%llX) != (0x%llX)\n",
                      PathNames[2 * i + 1],
@@ -158,7 +158,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atnamespace.c acpica-unix2-20130626
  #endif
  #else
                  printf ("API Error: Address of %s (0x%X) != (0x%X)\n",
-@@ -2799,7 +2800,8 @@
+@@ -2908,7 +2909,8 @@
          TestErrors++;
          printf ("AtGetNextObjectTypeCommon: different numbers of entities"
              "in TypesNames (%d) and LevelTypes0000 (%d)\n",
@@ -168,7 +168,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atnamespace.c acpica-unix2-20130626
          return (AE_ERROR);
      }
  
-@@ -4083,7 +4085,9 @@
+@@ -4192,7 +4194,9 @@
              Pathname, Obj.Integer.Value, Value);
  #else
          printf ("API Error: Value of %s is 0x%llx instead of expected 0x%llx\n",
@@ -179,7 +179,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atnamespace.c acpica-unix2-20130626
  #endif
          Status = AE_ERROR;
      }
-@@ -5090,7 +5094,7 @@
+@@ -5199,7 +5203,7 @@
              {
                  AapiErrors++;
                  printf ("API Error: AcpiOsAllocate(%d) returned NULL\n",
@@ -191,7 +191,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atnamespace.c acpica-unix2-20130626
 diff -urN acpica-unix2-20130626/tests/aapits/atosxfctrl.c acpica-unix2-20130626-aapits/tests/aapits/atosxfctrl.c
 --- acpica-unix2-20130626/tests/aapits/atosxfctrl.c	2013-01-17 12:48:28.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atosxfctrl.c	2013-07-25 13:30:00.375492751 -0600
-@@ -622,13 +622,15 @@
+@@ -737,13 +737,15 @@
  #if ACPI_MACHINE_WIDTH == 64
  #ifdef    _MSC_VER
          printf("OsxfCtrlFingReg: unexpected Width %d of Reg 0x%I64x\n",
@@ -208,7 +208,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atosxfctrl.c acpica-unix2-20130626-
          return (NULL);
      }
  
-@@ -649,15 +651,19 @@
+@@ -764,15 +766,19 @@
  #ifdef    _MSC_VER
                  printf("OsxfCtrlFingReg: intersection Regs (0x%I64x: 0x%x)"
                      " and (0x%I64x: 0x%x)\n",
@@ -229,7 +229,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atosxfctrl.c acpica-unix2-20130626-
                  return (NULL);
              }
          }
-@@ -671,13 +677,15 @@
+@@ -786,13 +792,15 @@
  #if ACPI_MACHINE_WIDTH == 64
  #ifdef    _MSC_VER
              printf("OsxfCtrlFingReg: no memory for Reg (0x%I64x: 0x%x)\n",
@@ -246,7 +246,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atosxfctrl.c acpica-unix2-20130626-
              return (NULL);
          }
          Reg->Type = Type;
-@@ -817,14 +825,19 @@
+@@ -932,14 +940,19 @@
  #if ACPI_MACHINE_WIDTH == 64
  #ifdef    _MSC_VER
              printf("%.2u (%s Address 0x%I64x: Width %.2u) r/w counts: %u/%u\n",
@@ -270,7 +270,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atosxfctrl.c acpica-unix2-20130626-
 diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626-aapits/tests/aapits/atresource.c
 --- acpica-unix2-20130626/tests/aapits/atresource.c	2013-01-17 12:48:29.000000000 -0700
 +++ acpica-unix2-20130626-aapits/tests/aapits/atresource.c	2013-07-25 13:25:49.423565947 -0600
-@@ -65,7 +65,7 @@
+@@ -174,7 +174,7 @@
          AapiErrors++;
          printf ("API Error: AcpiGetCurrentResources(%s) returned Length %d,"
              " expected %d\n",
@@ -279,7 +279,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626-
          return (AE_ERROR);
      }
  
-@@ -381,7 +381,7 @@
+@@ -490,7 +490,7 @@
          AapiErrors++;
          printf ("API Error: AcpiGetCurrentResources(%s) returned Length %d,"
              " expected %d\n",
@@ -288,7 +288,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626-
          return (AE_ERROR);
      }
  
-@@ -580,7 +580,7 @@
+@@ -689,7 +689,7 @@
          AapiErrors++;
          printf ("Api Error: Resource->Length (%d) != %d\n",
              CurrentResource->Length,
@@ -297,7 +297,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626-
      }
  
      if (CurrentResource->Data.Irq.Triggering != 0) /* Level-Triggered */
-@@ -872,7 +872,7 @@
+@@ -981,7 +981,7 @@
          AapiErrors++;
          printf ("API Error: AcpiGetPossibleResources(%s) returned Length %d,"
              " expected %d\n",
@@ -306,7 +306,7 @@ diff -urN acpica-unix2-20130626/tests/aapits/atresource.c acpica-unix2-20130626-
          return (AE_ERROR);
      }
  
-@@ -1814,7 +1814,7 @@
+@@ -1923,7 +1923,7 @@
          AapiErrors++;
          printf ("API Error: AcpiGetIrqRoutingTable(%s) returned Length %d,"
              " expected %d\n",
diff --git a/acpica-tools.spec b/acpica-tools.spec
index 1d32444..0acaa6f 100644
--- a/acpica-tools.spec
+++ b/acpica-tools.spec
@@ -27,7 +27,6 @@ Patch0:         debian-big_endian.patch
 Patch1:         debian-unaligned.patch
 Patch2:         name-miscompare.patch
 Patch3:         aapits-linux.patch
-Patch4:         makefile-config.patch
 
 BuildRequires:  bison patchutils flex
 
@@ -82,7 +81,6 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
 %patch1 -p1 -b .debian-unaligned
 %patch2 -p1 -b .name-miscompare
 %patch3 -p1 -b .aapits-linux
-%patch4 -p1 -b .makefile-config
 
 cp -p %{SOURCE2} README.Fedora
 cp -p %{SOURCE3} iasl.1
@@ -189,6 +187,9 @@ fi
 %changelog
 * Mon Nov 25 2013 Al Stone <ahs3 at redhat.com> - 20131115-1
 - Update to latest upstream.  Closes BZ#1031255.
+- Add a little code to workaround build problems that can occur (the tests
+  will fail) when a build starts before midnight, but ends after midnight
+- Remove patch to include Makefile.config that was missing from tarball.
 
 * Wed Oct 09 2013 Al Stone <ahs3 at redhat.com> - 20130927-1
 - Update to latest upstream.  Closes BZ#1013090.
diff --git a/debian-big_endian.patch b/debian-big_endian.patch
index 78e4e90..00ee8cb 100644
--- a/debian-big_endian.patch
+++ b/debian-big_endian.patch
@@ -2458,7 +2458,7 @@ diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux
 index 3bc85bc..1bace7f 100644
 --- a/source/include/platform/aclinux.h
 +++ b/source/include/platform/aclinux.h
-@@ -81,13 +81,14 @@
+@@ -83,13 +83,14 @@
  #include <stdlib.h>
  #include <ctype.h>
  #include <unistd.h>
@@ -2467,14 +2467,14 @@ index 3bc85bc..1bace7f 100644
  /* Host-dependent types and defines for user-space ACPICA */
  
  #define ACPI_FLUSH_CPU_CACHE()
- #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (pthread))
+ #define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
  
 -#if defined(__ia64__) || defined(__x86_64__) || defined(__aarch64__)
 +#if __SIZEOF_LONG__ == 8
  #define ACPI_MACHINE_WIDTH          64
  #define COMPILER_DEPENDENT_INT64    long
  #define COMPILER_DEPENDENT_UINT64   unsigned long
-@@ -98,6 +99,10 @@
+@@ -100,6 +99,10 @@
  #define ACPI_USE_NATIVE_DIVIDE
  #endif
  


More information about the scm-commits mailing list