Re: Conflict resolution (gtk, wayland)

2018-05-22 Thread Rutger Helling
I've just applied the patch to staging, thanks!

Regarding the Wayland issue, it seems to have something to do with the
Mesa update to the 18.x series. I've tried building master with a
cherry-picked Mesa update and had the same problem. Maybe the newer
wayland-egl is the problem. The problem's also still there after
applying this new staging patch.

That's why I speculate it has something to do with the mutter and
gnome-shell components being too old (not 100% sure).

On Tue, 22 May 2018 17:55:49 +0200
Marius Bakke  wrote:

> Rutger Helling  writes:
> 
> > I've created a patch to update Mesa on staging, along with removing
> > wayland-egl from it. I can confirm I can still start GNOME on
> > Wayland manually after rebuilding with this patch.  
> 
> Excellent, thanks!
> 
> > Should I apply this to staging now? It's been two weeks since the
> > last commit to staging, and a merge doesn't seem to be happening
> > anytime soon.  
> 
> Hydra is currently busy with 'core-updates'.  In the mean time, please
> queue up patches on 'staging' so we can start it as soon as
> core-updates is merged.  The patch LGTM!
> 
> > On an unpleasant side-note, certain things are completely broken on
> > GNOME on Wayland with staging. Menus and buttons don't work
> > anymore. I suspect this is because our mutter and gnome-shell
> > packages are too old (3.24.x instead of 3.28.x).  
> 
> Does GNOME on Wayland work on current 'master'?  The only real
> difference on staging (apart from this patch) is GTK+ 3.22.30, which
> is fairly uneventful:
> 
> https://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.news
> 
> But perhaps they removed some other interfaces when adding xdg-shell
> support?



pgp5dLJyN3KNi.pgp
Description: OpenPGP digital signature


Re: Conflict resolution (gtk, wayland)

2018-05-22 Thread Marius Bakke
Rutger Helling  writes:

> I've created a patch to update Mesa on staging, along with removing
> wayland-egl from it. I can confirm I can still start GNOME on Wayland
> manually after rebuilding with this patch.

Excellent, thanks!

> Should I apply this to staging now? It's been two weeks since the last
> commit to staging, and a merge doesn't seem to be happening anytime
> soon.

Hydra is currently busy with 'core-updates'.  In the mean time, please
queue up patches on 'staging' so we can start it as soon as core-updates
is merged.  The patch LGTM!

> On an unpleasant side-note, certain things are completely broken on
> GNOME on Wayland with staging. Menus and buttons don't work anymore. I
> suspect this is because our mutter and gnome-shell packages are too old
> (3.24.x instead of 3.28.x).

Does GNOME on Wayland work on current 'master'?  The only real
difference on staging (apart from this patch) is GTK+ 3.22.30, which is
fairly uneventful:

https://ftp.acc.umu.se/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.news

But perhaps they removed some other interfaces when adding xdg-shell
support?


signature.asc
Description: PGP signature


Re: Conflict resolution (gtk, wayland)

2018-05-22 Thread Rutger Helling
I've created a patch to update Mesa on staging, along with removing
wayland-egl from it. I can confirm I can still start GNOME on Wayland
manually after rebuilding with this patch.

Should I apply this to staging now? It's been two weeks since the last
commit to staging, and a merge doesn't seem to be happening anytime
soon.

On an unpleasant side-note, certain things are completely broken on
GNOME on Wayland with staging. Menus and buttons don't work anymore. I
suspect this is because our mutter and gnome-shell packages are too old
(3.24.x instead of 3.28.x).

On Thu, 17 May 2018 16:13:28 +0200
l...@gnu.org (Ludovic Courtès) wrote:

> Hi,
> 
> Rutger Helling  skribis:
> 
> > It's because Wayland recently absorbed libwayland-egl. See:
> > https://lists.freedesktop.org/archives/wayland-devel/2018-April/037767.html
> >
> > Specifically:
> > "libwayland-egl is now part of libwayland, and will presumably be
> > removed from mesa in the not too distant future."  
> 
> Thanks for the info.
> 
> On our next MESA update, we should probably explicitly remove
> libwayland-egl from MESA if upstream hasn’t done it yet.
> 
> Ludo’.

From b786aaa2f8353d6bf9fbcf3b8ce77af765392ed5 Mon Sep 17 00:00:00 2001
From: Rutger Helling 
Date: Tue, 22 May 2018 02:22:30 +0200
Subject: [PATCH] gnu: mesa: Update to 18.0.4.

* gnu/packages/gl.scm (mesa): Update to 18.0.4.
[source]: Remove mesa-wayland-egl-symbols-check-mips.patch.
[arguments]: Remove wayland from --with-platforms configure flag.
* gnu/local.mk: Remove mesa-wayland-egl-symbols-check-mips.patch.
* gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch: Remove file.
---
 gnu/local.mk  |  1 -
 gnu/packages/gl.scm   |  9 -
 .../mesa-wayland-egl-symbols-check-mips.patch | 15 ---
 3 files changed, 4 insertions(+), 21 deletions(-)
 delete mode 100644 gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 7b8ddad83..7b0de9e10 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -917,7 +917,6 @@ dist_patch_DATA =		\
   %D%/packages/patches/mcrypt-CVE-2012-4426.patch			\
   %D%/packages/patches/mcrypt-CVE-2012-4527.patch			\
   %D%/packages/patches/mesa-skip-disk-cache-test.patch		\
-  %D%/packages/patches/mesa-wayland-egl-symbols-check-mips.patch	\
   %D%/packages/patches/meson-for-build-rpath.patch		\
   %D%/packages/patches/metabat-fix-compilation.patch		\
   %D%/packages/patches/mhash-keygen-test-segfault.patch		\
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 441d4646e..dcd647202 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -224,7 +224,7 @@ also known as DXTn or DXTC) for Mesa.")
 (define-public mesa
   (package
 (name "mesa")
-(version "18.0.2")
+(version "18.0.4")
 (source
   (origin
 (method url-fetch)
@@ -236,10 +236,9 @@ also known as DXTn or DXTC) for Mesa.")
   version "/mesa-" version ".tar.xz")))
 (sha256
  (base32
-  "1cz7p4b4yy201djzv3s28zx27f5cqwv0zgzqp5lcaba8d2bibylq"))
+  "03wjlb5qy1mn8d6zm0q1pq35x60agrfxyh9bmq6w59ghrvkwyfqz"))
 (patches
- (search-patches "mesa-wayland-egl-symbols-check-mips.patch"
- "mesa-skip-disk-cache-test.patch"
+ (search-patches "mesa-skip-disk-cache-test.patch"
 (build-system gnu-build-system)
 (propagated-inputs
   `(;; The following are in the Requires.private field of gl.pc.
@@ -284,7 +283,7 @@ also known as DXTn or DXTC) for Mesa.")
   '("--with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,svga,swrast,virgl")))
  ;; Enable various optional features.  TODO: opencl requires libclc,
  ;; omx requires libomxil-bellagio
- "--with-platforms=x11,drm,wayland,surfaceless"
+ "--with-platforms=x11,drm,surfaceless"
  "--enable-glx-tls";Thread Local Storage, improves performance
  ;; "--enable-opencl"
  ;; "--enable-omx"
diff --git a/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch b/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch
deleted file mode 100644
index aa2278697..0
--- a/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Fix 'wayland-egl-symbols-check' on mips64el-linux, where an additional symbol
-(_ftext) is present in libwayland-egl.so.
-
-Patch by Mark H Weaver 
-
 mesa-12.0.1/src/egl/wayland/wayland-egl/wayland-egl-symbols-check.orig	2016-01-18 02:39:25.0 -0500
-+++ mesa-12.0.1/src/egl/wayland/wayland-egl/wayland-egl-symbols-check	2016-10-24 16:25:07.110721426 -0400
-@@ -7,6 +7,7 @@
- wl_egl_window_destroy
- wl_egl_window_get_attached_size
- _fini
-+_ftext
- _init
- EOF
- done)
-- 
2.17.0



pgpIdMjB462YE.pgp
Description: OpenPGP digital signature


Re: Conflict resolution (gtk, wayland)

2018-05-17 Thread Ludovic Courtès
Hi,

Rutger Helling  skribis:

> It's because Wayland recently absorbed libwayland-egl. See:
> https://lists.freedesktop.org/archives/wayland-devel/2018-April/037767.html
>
> Specifically:
> "libwayland-egl is now part of libwayland, and will presumably be
> removed from mesa in the not too distant future."

Thanks for the info.

On our next MESA update, we should probably explicitly remove
libwayland-egl from MESA if upstream hasn’t done it yet.

Ludo’.



Re: Conflict resolution (gtk, wayland)

2018-05-14 Thread Ludovic Courtès
Hello,

Pierre Neidhardt  skribis:

> Sometimes when updating or install packages, guix encounters conflicts.
> It's usually smart enough to fix it by itself.
>
> That said, conflicts seems to be a telltale sign of bad packaging
> (e.g. duplicate files in a package and its inputs).
>
> Presently guix reports 3 conflicts on my install:
>
> warning: collision encountered:
>   
> /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/pkgconfig/wayland-egl.pc
>   
> /gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib/pkgconfig/wayland-egl.pc
> warning: choosing 
> /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/pkgconfig/wayland-egl.pc
>
> warning: collision encountered:
>   
> /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/libwayland-egl.la
>   
> /gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib/libwayland-egl.la
> warning: choosing 
> /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/libwayland-egl.la
>
> warning: collision encountered:
>   
> /gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes/share/icons/hicolor/icon-theme.cache
>   
> /gnu/store/mg1ilfq7ajcsk12kanzsbb8jhgv7g5vm-gtk+-3.22.29/share/icons/hicolor/icon-theme.cache
> warning: choosing 
> /gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes/share/icons/hicolor/icon-theme.cache

[...]

> So if I get it right, gtk-icon-themes is an automatically generated
> store items for each profile and it duplicates a file found in
> gtk+-3.22.29.
> Is this a packaging mistake?

No, “icon-theme.cache” collisions can be ignored.  In fact, I think we
should not warn about them in the first place.

> Now to wayland:
>
>> guix gc -R /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8 | grep 
>> wayland
> /gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0
>
>> guix gc --referrers 
>> /gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0 | grep mesa
> /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8
>
> So mesa depends on wayland and wayland is properly referred to by mesa.
> So far so good.  Same question: is this a packaging mistake?

It could be.

Actually, the .so files are identical, but the .la files differ
trivially:

--8<---cut here---start->8---
$ cmp $(guix build mesa)/lib/libwayland-egl.so $(guix build 
wayland)/lib/libwayland-egl.so
$ diff -u $(guix build mesa)/lib/libwayland-egl.la $(guix build 
wayland)/lib/libwayland-egl.la
--- 
/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/libwayland-egl.la   
1970-01-01 01:00:01.0 +0100
+++ 
/gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib/libwayland-egl.la
1970-01-01 01:00:01.0 +0100
@@ -1,5 +1,5 @@
 # libwayland-egl.la - a libtool library file
-# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-2
+# Generated by libtool (GNU libtool) 2.4.6
 #
 # Please DO NOT delete this file!
 # It is necessary for linking the library.
@@ -38,4 +38,4 @@
 dlpreopen=''
 
 # Directory that this library needs to be installed in:
-libdir='/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib'
+libdir='/gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib'
--8<---cut here---end--->8---

I’m not familiar enough with these packages, and I’m not sure why they
both provide this library.

Ideas?  Rutger maybe?

Thanks,
Ludo’.



Conflict resolution (gtk, wayland)

2018-05-10 Thread Pierre Neidhardt

Sometimes when updating or install packages, guix encounters conflicts.
It's usually smart enough to fix it by itself.

That said, conflicts seems to be a telltale sign of bad packaging
(e.g. duplicate files in a package and its inputs).

Presently guix reports 3 conflicts on my install:

--8<---cut here---start->8---
warning: collision encountered:
  
/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/pkgconfig/wayland-egl.pc
  
/gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib/pkgconfig/wayland-egl.pc
warning: choosing 
/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/pkgconfig/wayland-egl.pc

warning: collision encountered:
  /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/libwayland-egl.la
  
/gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0/lib/libwayland-egl.la
warning: choosing 
/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8/lib/libwayland-egl.la

warning: collision encountered:
  
/gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes/share/icons/hicolor/icon-theme.cache
  
/gnu/store/mg1ilfq7ajcsk12kanzsbb8jhgv7g5vm-gtk+-3.22.29/share/icons/hicolor/icon-theme.cache
warning: choosing 
/gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes/share/icons/hicolor/icon-theme.cache
--8<---cut here---end--->8---

Let's lookup some referrers:

--8<---cut here---start->8---
> guix gc --referrers /gnu/store/mg1ilfq7ajcsk12kanzsbb8jhgv7g5vm-gtk+-3.22.29 
> | grep gtk-icon-themes$
/gnu/store/4mlzz64zl3a78xg9f2dxzmr1yyhkmif4-gtk-icon-themes
/gnu/store/bgrh681a53xci0736b3ljc4jxf59x3dq-gtk-icon-themes
/gnu/store/dvbbd7j5932638s3s60ajrk8sh9hvjwa-gtk-icon-themes
/gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes
/gnu/store/qmq2zkp9cm57ginsg3k1qy5p06cb904k-gtk-icon-themes
/gnu/store/w2pyc6x9vlb92w9wxjj0kn2464185h7d-gtk-icon-themes
/gnu/store/yxilw237d6k6fffyga26h1by4cldkxf1-gtk-icon-themes
/gnu/store/zizsh56zfj75xhgphn6myql3n1cnr8cm-gtk-icon-themes

> guix gc --referrers 
> /gnu/store/nf6py3ddvk8nsqxg7jlg0kmiqjigiqgw-gtk-icon-themes
/gnu/store/ki1c671fy8p1phvdlq9h6ff1nngynchj-profile
--8<---cut here---end--->8---

So if I get it right, gtk-icon-themes is an automatically generated
store items for each profile and it duplicates a file found in
gtk+-3.22.29.
Is this a packaging mistake?

Now to wayland:

--8<---cut here---start->8---
> guix gc -R /gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8 | grep 
> wayland
/gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0

> guix gc --referrers 
> /gnu/store/2w8lhl8hyvciy3hb0h2r0mbhx7pmniy1-wayland-1.15.0 | grep mesa
/gnu/store/9hddxnv7q3q819axyw0yngzppmrgmjfi-mesa-17.3.8
--8<---cut here---end--->8---

So mesa depends on wayland and wayland is properly referred to by mesa.
So far so good.  Same question: is this a packaging mistake?

Or, as a workaround, is it possible _not_ to install Wayland?

--
Pierre Neidhardt

When a fly lands on the ceiling, does it do a half roll or a half loop?


signature.asc
Description: PGP signature