Skip to contentSkip to conversation

libX11: patch configure.ac so a nios2 system is not seen as an os2 system.

PATCH In review Frans Meulenbroeks 3 participants 4 messages Nov 17, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libX11: patch configure.ac so a nios2 system is not seen as an os2 system.

The OS/2 platform requires some utility functions as well as having a non-32 bit wchar_t. Fix the configure check so that it doesn't also affect the nios2 cpu, which wouldn't influence these operating system issues.

This is already accepted upstream and will be in 1.4
http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=affc2488a7f2660a74dc8354fc3e0bff2c4f879c

---
 .../xorg-lib/libx11-1.1.5/configure.ac-nios2.patch |   33 ++++++++++++++++++++
 .../xorg-lib/libx11-1.3.2/configure.ac-nios2.patch |   33 ++++++++++++++++++++
 .../xorg-lib/libx11-1.3.6/configure.ac-nios2.patch |   33 ++++++++++++++++++++
 .../libx11-1.3.99.903/configure.ac-nios2.patch     |   33 ++++++++++++++++++++
 recipes/xorg-lib/libx11_1.1.5.bb                   |    3 +-
 recipes/xorg-lib/libx11_1.3.2.bb                   |    3 +-
 recipes/xorg-lib/libx11_1.3.6.bb                   |    3 +-
 recipes/xorg-lib/libx11_1.3.99.903.bb              |    3 +-
 8 files changed, 140 insertions(+), 4 deletions(-)
 create mode 100644 recipes/xorg-lib/libx11-1.1.5/configure.ac-nios2.patch
 create mode 100644 recipes/xorg-lib/libx11-1.3.2/configure.ac-nios2.patch
 create mode 100644 recipes/xorg-lib/libx11-1.3.6/configure.ac-nios2.patch
 create mode 100644 recipes/xorg-lib/libx11-1.3.99.903/configure.ac-nios2.patch
recipes/xorg-lib/libx11-1.1.5/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson <[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson <[email protected]>
+Tested-by: Frans Meulenbroeks <[email protected]>
+Reviewed-by: Alan Coopersmith <[email protected]>
+Reviewed-by: Julien Cristau <[email protected]>
+Signed-off-by: Alan Coopersmith <[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+ 
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.2/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson <[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson <[email protected]>
+Tested-by: Frans Meulenbroeks <[email protected]>
+Reviewed-by: Alan Coopersmith <[email protected]>
+Reviewed-by: Julien Cristau <[email protected]>
+Signed-off-by: Alan Coopersmith <[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+ 
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.6/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson <[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson <[email protected]>
+Tested-by: Frans Meulenbroeks <[email protected]>
+Reviewed-by: Alan Coopersmith <[email protected]>
+Reviewed-by: Julien Cristau <[email protected]>
+Signed-off-by: Alan Coopersmith <[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+ 
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.99.903/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson <[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson <[email protected]>
+Tested-by: Frans Meulenbroeks <[email protected]>
+Reviewed-by: Alan Coopersmith <[email protected]>
+Reviewed-by: Julien Cristau <[email protected]>
+Signed-off-by: Alan Coopersmith <[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+ 
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11_1.1.5.bb +2 -1
index e775585..b44dcc8 100644
@@ -1,7 +1,8 @@
 require libx11.inc
 DEPENDS = "${COMMON_DEPENDS}"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
+SRC_URI += " file://configure.ac-nios2.patch"
 SRC_URI[archive.md5sum] = "d1512d65dadd4f48c779d4749e7753a8"
 SRC_URI[archive.sha256sum] = "da9272900e41615e9c5dc25d84730b8966da6f5c8f4c40418dca2ad040fc8b82"
 
recipes/xorg-lib/libx11_1.3.2.bb +2 -1
index b3d48ab..189d1ff 100644
@@ -1,10 +1,11 @@
 require libx11.inc
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
 # gcc 4.5 ends up ICEing with thumb and -O1 with -fno-omit-framepointer
 # therefore if we are in thumb mode then we use -Os instead of -O1 for
 # DEBUG_OPTIMIZATION
 
 DEBUG_OPTIMIZATION_thumb_append = " -Os"
 SRC_URI += " file://dolt-fix.patch"
+SRC_URI += " file://configure.ac-nios2.patch"
 SRC_URI[archive.md5sum] = "001d780829f936e34851ef7cd37b4dfd"
 SRC_URI[archive.sha256sum] = "4def4d5c9fce85d690f1f29d675154594acdea3d3fe792d0cb513732c7b4bcb2"
recipes/xorg-lib/libx11_1.3.6.bb +2 -1
index 625f906..8d9f343 100644
@@ -1,6 +1,7 @@
 require libx11.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI += " file://dolt-fix.patch"
+SRC_URI += " file://configure.ac-nios2.patch"
 SRC_URI[archive.md5sum] = "8e0a8a466aa78f66e09fe06cb395319f"
 SRC_URI[archive.sha256sum] = "599826765c59a98b1e58b4f6c4ad50dca69eeb0e7bd78aea736ca815f45bea40"
recipes/xorg-lib/libx11_1.3.99.903.bb +2 -1
index 65ff63c..5ea3291 100644
@@ -2,7 +2,8 @@ require libx11.inc
 #--without-xcb is not an option anymore
 #http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=15e5eaf62897b3179d1fbe457cb19f886f0449f8
 DEPENDS_virtclass-native = "libxcb-native ${COMMON_DEPENDS}"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
+SRC_URI += " file://configure.ac-nios2.patch"
 SRC_URI[archive.md5sum] = "3e8ed7a91f70bb819b5dab9c124a7062"
 SRC_URI[archive.sha256sum] = "50205aad0646c0ab13aff8e8eaec7c5cddff416d3a012f83c5661ad98e49736f"
Signature · 1 line
1.7.0.4
Acked-by on v2 1/1
#1 lore raw
Quoted 1 line · Frans Meulenbroeks

The OS/2 platform requires some utility functions as well as having a non-32 bit wchar_t. Fix the configure check so that it doesn't also affect the nios2 cpu, which wouldn't influence these operating system issues.

Looks good

Thanks

#2 lore raw
In reply to Frans Meulenbroeks

I just noticed my test build halted on that exact error... I'll ack this one :)

Quoted 235 lines · Frans Meulenbroeks

The OS/2 platform requires some utility functions as well as having a non-32 bit wchar_t. Fix the configure check so that it doesn't also affect the nios2 cpu, which wouldn't influence these operating system issues.

This is already accepted upstream and will be in 1.4
http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=affc2488a7f2660a74dc8354fc3e0bff2c4f879c

---
  .../xorg-lib/libx11-1.1.5/configure.ac-nios2.patch |   33 ++++++++++++++++++++
  .../xorg-lib/libx11-1.3.2/configure.ac-nios2.patch |   33 ++++++++++++++++++++
  .../xorg-lib/libx11-1.3.6/configure.ac-nios2.patch |   33 ++++++++++++++++++++
  .../libx11-1.3.99.903/configure.ac-nios2.patch     |   33 ++++++++++++++++++++
  recipes/xorg-lib/libx11_1.1.5.bb                   |    3 +-
  recipes/xorg-lib/libx11_1.3.2.bb                   |    3 +-
  recipes/xorg-lib/libx11_1.3.6.bb                   |    3 +-
  recipes/xorg-lib/libx11_1.3.99.903.bb              |    3 +-
  8 files changed, 140 insertions(+), 4 deletions(-)

create mode 100644 recipes/xorg-lib/libx11-1.1.5/configure.ac-nios2.patch create mode 100644 recipes/xorg-lib/libx11-1.3.2/configure.ac-nios2.patch create mode 100644 recipes/xorg-lib/libx11-1.3.6/configure.ac-nios2.patch create mode 100644 recipes/xorg-lib/libx11-1.3.99.903/configure.ac-nios2.patch

recipes/xorg-lib/libx11-1.1.5/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson<[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson<[email protected]>
+Tested-by: Frans Meulenbroeks<[email protected]>
+Reviewed-by: Alan Coopersmith<[email protected]>
+Reviewed-by: Julien Cristau<[email protected]>
+Signed-off-by: Alan Coopersmith<[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.2/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson<[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson<[email protected]>
+Tested-by: Frans Meulenbroeks<[email protected]>
+Reviewed-by: Alan Coopersmith<[email protected]>
+Reviewed-by: Julien Cristau<[email protected]>
+Signed-off-by: Alan Coopersmith<[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.6/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson<[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson<[email protected]>
+Tested-by: Frans Meulenbroeks<[email protected]>
+Reviewed-by: Alan Coopersmith<[email protected]>
+Reviewed-by: Julien Cristau<[email protected]>
+Signed-off-by: Alan Coopersmith<[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11-1.3.99.903/configure.ac-nios2.patch new file +33 -0
new file mode 100644
index 0000000..2e2d475
@@ -0,0 +1,33 @@
+From affc2488a7f2660a74dc8354fc3e0bff2c4f879c Mon Sep 17 00:00:00 2001
+From: Dan Nicholson<[email protected]>
+Date: Sat, 06 Nov 2010 21:58:09 +0000
+Subject: config: Fix architecture check for OS/2 to skip nios2 cpu
+
+The OS/2 platform requires some utility functions as well as having a
+non-32 bit wchar_t. Fix the configure check so that it doesn't also
+affect the nios2 cpu, which wouldn't influence these operating system
+issues.
+
+Signed-off-by: Dan Nicholson<[email protected]>
+Tested-by: Frans Meulenbroeks<[email protected]>
+Reviewed-by: Alan Coopersmith<[email protected]>
+Reviewed-by: Julien Cristau<[email protected]>
+Signed-off-by: Alan Coopersmith<[email protected]>
+---
+diff --git a/configure.ac b/configure.ac
+index 1b4a8b7..01f43fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,8 +246,8 @@ dnl AC_PATH_XTRA
+
+ # arch specific things
+ WCHAR32="1"
+-case $target_alias in
+-  *os2*) os2="true" ; WCHAR32="0" ;;
++case $target_os in
++  os2*) os2="true" ; WCHAR32="0" ;;
+   *) ;;
+ esac
+ AC_SUBST(WCHAR32)
+--
+cgit v0.8.3-6-g21f6
recipes/xorg-lib/libx11_1.1.5.bb +2 -1
index e775585..b44dcc8 100644
@@ -1,7 +1,8 @@
  require libx11.inc
  DEPENDS = "${COMMON_DEPENDS}"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
+SRC_URI += " file://configure.ac-nios2.patch"
  SRC_URI[archive.md5sum] = "d1512d65dadd4f48c779d4749e7753a8"
  SRC_URI[archive.sha256sum] = "da9272900e41615e9c5dc25d84730b8966da6f5c8f4c40418dca2ad040fc8b82"
 
recipes/xorg-lib/libx11_1.3.2.bb +2 -1
index b3d48ab..189d1ff 100644
@@ -1,10 +1,11 @@
  require libx11.inc
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
  # gcc 4.5 ends up ICEing with thumb and -O1 with -fno-omit-framepointer
  # therefore if we are in thumb mode then we use -Os instead of -O1 for
  # DEBUG_OPTIMIZATION
 
  DEBUG_OPTIMIZATION_thumb_append = " -Os"
  SRC_URI += " file://dolt-fix.patch"
+SRC_URI += " file://configure.ac-nios2.patch"
  SRC_URI[archive.md5sum] = "001d780829f936e34851ef7cd37b4dfd"
  SRC_URI[archive.sha256sum] = "4def4d5c9fce85d690f1f29d675154594acdea3d3fe792d0cb513732c7b4bcb2"
recipes/xorg-lib/libx11_1.3.6.bb +2 -1
index 625f906..8d9f343 100644
@@ -1,6 +1,7 @@
  require libx11.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
  SRC_URI += " file://dolt-fix.patch"
+SRC_URI += " file://configure.ac-nios2.patch"
  SRC_URI[archive.md5sum] = "8e0a8a466aa78f66e09fe06cb395319f"
  SRC_URI[archive.sha256sum] = "599826765c59a98b1e58b4f6c4ad50dca69eeb0e7bd78aea736ca815f45bea40"
recipes/xorg-lib/libx11_1.3.99.903.bb +2 -1
index 65ff63c..5ea3291 100644
@@ -2,7 +2,8 @@ require libx11.inc
  #--without-xcb is not an option anymore
  #http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=15e5eaf62897b3179d1fbe457cb19f886f0449f8
  DEPENDS_virtclass-native = "libxcb-native ${COMMON_DEPENDS}"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
+SRC_URI += " file://configure.ac-nios2.patch"
  SRC_URI[archive.md5sum] = "3e8ed7a91f70bb819b5dab9c124a7062"
  SRC_URI[archive.sha256sum] = "50205aad0646c0ab13aff8e8eaec7c5cddff416d3a012f83c5661ad98e49736f"
#3 lore raw

2010/11/17 Walter Goossens <[email protected]>:

Quoted 2 lines

I just noticed my test build halted on that exact error... I'll ack this one :)

it is pushed :-)

Thanks for your acks.
I'm building console-image for nios as part of the testing branch. Seems there is also yet another issue left in the toolchain, but haven't had time to dig into that one.

Frans