Skip to contentSkip to conversation

freerdp: fix wayland client dependency chain failure

PATCH New Adam Duskett 3 participants 3 messages Nov 25, 2017 – Nov 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 freerdp: fix wayland client dependency chain failure

If the wayland client is selected, freerdp depends on libxkbcommon without depending on it in the mk file.

Fixes:
http://autobuild.buildroot.net/results/dc3/dc3e11f7076a8355f3d2f9cb49c6325dcf7084bd

---
Changes v1 -> v2:
- Changed dependency logic (Yann)

 package/freerdp/freerdp.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/freerdp/freerdp.mk +1 -1
index 29c35164c3..7415b8a299 100644
@@ -198,7 +198,7 @@ else
 FREERDP_CONF_OPTS += -DWITH_XV=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_WAYLAND),y)
+ifeq ($(BR2_PACKAGE_FREERDP_CLIENT_WL),y)
 FREERDP_DEPENDENCIES += wayland libxkbcommon
 FREERDP_CONF_OPTS += \
 	-DWITH_WAYLAND=ON \
Signature · 1 line
2.14.3
#1 lore raw

PATCH v2 1/1 freerdp: fix wayland client dependency chain failure

Adam, All,

On 2017-11-25 14:33 -0500, Adam Duskett spake thusly:

Quoted 2 lines

If the wayland client is selected, freerdp depends on libxkbcommon without depending on it in the mk file.

The explanations above are wrong. When the wayland client is enabled, then libxkbcommon is correctly enabled.

What fails is when the wayland client is disabled, but the wayland package is enabled. In that case, nothing selects libxkbcommon.

So, a good commit log would be:

package/freerdp: fix dependency on walyand

Currently, wayland support is enabled when the wayland package is enabled, not when the FreeRDP wayland client is enabled.

But the dependency on libxkbcomon is only enforced from Config.in when the FreeRDP wayland client is enabled., but is added to build dependencies when the wayland package is enabled.

As such, we can end up in a situation where the FreeRDP wayland client is disabled, the wayland package is enabled, and the libxkbcommon package is also disabled, which casues the build to fail with:

Makefile:539: *** libxkbcommon is in the dependency chain of freerdp that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop.

Change the build dependency to actually be on the FreeRDP client being enabled.

Fixes;
http://autobuild.buildroot.net/results/dc3/dc3e11f7076a8355f3d2f9cb49c6325dcf7084bd

Otherwise:

Regards,
Yann E. MORIN.

Quoted 30 lines

Fixes:
http://autobuild.buildroot.net/results/dc3/dc3e11f7076a8355f3d2f9cb49c6325dcf7084bd

---
Changes v1 -> v2:
- Changed dependency logic (Yann)

 package/freerdp/freerdp.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/freerdp/freerdp.mk +1 -1
index 29c35164c3..7415b8a299 100644
@@ -198,7 +198,7 @@ else
 FREERDP_CONF_OPTS += -DWITH_XV=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_WAYLAND),y)
+ifeq ($(BR2_PACKAGE_FREERDP_CLIENT_WL),y)
 FREERDP_DEPENDENCIES += wayland libxkbcommon
 FREERDP_CONF_OPTS += \
 	-DWITH_WAYLAND=ON \
Signature · 6 lines
2.14.3

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH v2 1/1 freerdp: fix wayland client dependency chain failure

In reply to Adam Duskett

Hello,

Quoted 9 lines · Adam Duskett

If the wayland client is selected, freerdp depends on libxkbcommon without depending on it in the mk file.

Fixes:
http://autobuild.buildroot.net/results/dc3/dc3e11f7076a8355f3d2f9cb49c6325dcf7084bd

---
Changes v1 -> v2:
- Changed dependency logic (Yann)

Applied to master after changing the commit log as suggested by Yann.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com