Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] xserver_xorg-server: apply modesettings patch for 1.18.3 only
@ 2016-06-04 21:15 Stanislas Bach
  2016-06-05 20:14 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Stanislas Bach @ 2016-06-04 21:15 UTC (permalink / raw)
  To: buildroot

We currently have two choices for the server's version (1.18.3, and 1.14.7)
but the following patch will only apply for versions >= 1.17.2.

If 1.14.7 is selected the build will fail with the following error:

Applying 0001-modesettings-needs-dri2.patch using patch:
patching file configure.ac
Hunk #1 FAILED at 2036

So move this patch to an appropriate version folder in the package's
directory. It should be good enough until this package provides more
versions >= 1.17.2.

Signed-off-by: Stanislas Bach <sbach@0g.re>

diff --git 
a/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch 
b/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch
deleted file mode 100644
index 4ef95ef..0000000
--- a/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Kernel modesettings support also depends on dri2, see
-http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/drivers/modesetting/Makefile.am#n46
-
-Patch sent upstream: https://bugs.freedesktop.org/show_bug.cgi?id=91584
-
-Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
-
-diff -uNr xorg-server-1.17.2.org/configure.ac 
xorg-server-1.17.2/configure.ac
---- xorg-server-1.17.2.org/configure.ac	2015-06-16 17:42:40.000000000 +0200
-+++ xorg-server-1.17.2/configure.ac	2015-08-08 10:44:59.702382624 +0200
-@@ -2036,7 +2036,7 @@
- 	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
- 	fi
- --	if test "x$DRM" = xyes; then
-+	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
- 		dnl 2.4.46 is required for cursor hotspot support.
- 		PKG_CHECK_EXISTS(libdrm >= 2.4.46)
- 		XORG_DRIVER_MODESETTING=yes
diff --git 
a/package/x11r7/xserver_xorg-server/1.18.3/0001-modesettings-needs-dri2.patch 
b/package/x11r7/xserver_xorg-server/1.18.3/0001-modesettings-needs-dri2.patch
new file mode 100644
index 0000000..4ef95ef
--- /dev/null
+++ 
b/package/x11r7/xserver_xorg-server/1.18.3/0001-modesettings-needs-dri2.patch
@@ -0,0 +1,19 @@
+Kernel modesettings support also depends on dri2, see
+http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/drivers/modesetting/Makefile.am#n46
+
+Patch sent upstream: https://bugs.freedesktop.org/show_bug.cgi?id=91584
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr xorg-server-1.17.2.org/configure.ac 
xorg-server-1.17.2/configure.ac
+--- xorg-server-1.17.2.org/configure.ac	2015-06-16 17:42:40.000000000 +0200
++++ xorg-server-1.17.2/configure.ac	2015-08-08 10:44:59.702382624 +0200
+@@ -2036,7 +2036,7 @@
+ 	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
+ 	fi
+ +-	if test "x$DRM" = xyes; then
++	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
+ 		dnl 2.4.46 is required for cursor hotspot support.
+ 		PKG_CHECK_EXISTS(libdrm >= 2.4.46)
+ 		XORG_DRIVER_MODESETTING=yes
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] xserver_xorg-server: apply modesettings patch for 1.18.3 only
  2016-06-04 21:15 [Buildroot] [PATCH] xserver_xorg-server: apply modesettings patch for 1.18.3 only Stanislas Bach
@ 2016-06-05 20:14 ` Peter Korsgaard
  2016-06-05 22:54   ` Stanislas Bach
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2016-06-05 20:14 UTC (permalink / raw)
  To: buildroot

>>>>> "Stanislas" == Stanislas Bach <sbach@0g.re> writes:

 > We currently have two choices for the server's version (1.18.3, and 1.14.7)
 > but the following patch will only apply for versions >= 1.17.2.

 > If 1.14.7 is selected the build will fail with the following error:

 > Applying 0001-modesettings-needs-dri2.patch using patch:
 > patching file configure.ac
 > Hunk #1 FAILED at 2036

 > So move this patch to an appropriate version folder in the package's
 > directory. It should be good enough until this package provides more
 > versions >= 1.17.2.

 > Signed-off-by: Stanislas Bach <sbach@0g.re>

 > diff --git
 > a/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch
 > b/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch

Thanks! Your mailer unfortunately corrupted the patch so I couldn't
apply this directly. It would also be helpful for reviews if you
configure git to detect renames (git config --global diff.renames copy -
Or simply upgrade your git version, as it is enabled by default
nowadays).

Committed with the patch fixed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] xserver_xorg-server: apply modesettings patch for 1.18.3 only
  2016-06-05 20:14 ` Peter Korsgaard
@ 2016-06-05 22:54   ` Stanislas Bach
  0 siblings, 0 replies; 3+ messages in thread
From: Stanislas Bach @ 2016-06-05 22:54 UTC (permalink / raw)
  To: buildroot

Hello Peter,

To give more details about this patch, I found the error while trying to 
configure/compile a root-filesystem for a Tegra2 platform:
When enabling BR2_PACKAGE_NVIDIA_TEGRA23, one must select 
BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14 causing the issue.

On 06/05/2016 01:14 PM, Peter Korsgaard wrote:
>>>>>> "Stanislas" == Stanislas Bach <sbach@0g.re> writes:
>
>   > We currently have two choices for the server's version (1.18.3, and 1.14.7)
>   > but the following patch will only apply for versions >= 1.17.2.
>
>   > If 1.14.7 is selected the build will fail with the following error:
>
>   > Applying 0001-modesettings-needs-dri2.patch using patch:
>   > patching file configure.ac
>   > Hunk #1 FAILED at 2036
>
>   > So move this patch to an appropriate version folder in the package's
>   > directory. It should be good enough until this package provides more
>   > versions >= 1.17.2.
>
>   > Signed-off-by: Stanislas Bach <sbach@0g.re>
>
>   > diff --git
>   > a/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch
>   > b/package/x11r7/xserver_xorg-server/0001-modesettings-needs-dri2.patch
>
> Thanks! Your mailer unfortunately corrupted the patch so I couldn't
> apply this directly. It would also be helpful for reviews if you
> configure git to detect renames (git config --global diff.renames copy -
> Or simply upgrade your git version, as it is enabled by default
> nowadays).

Sorry, and thank you for the advice, I will be careful next time in 
order to ease your work.

> Committed with the patch fixed, thanks.

Thanks for accepting it!

-- 
Stanislas Bach
GPG / D0B7 1846 5B5F 224F AF81

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-05 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-04 21:15 [Buildroot] [PATCH] xserver_xorg-server: apply modesettings patch for 1.18.3 only Stanislas Bach
2016-06-05 20:14 ` Peter Korsgaard
2016-06-05 22:54   ` Stanislas Bach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox