Skip to contentSkip to conversation

package/kodi: propagate mariadb dependencies to BR2_PACKAGE_KODI_MYSQL

PATCH Applied Thomas Petazzoni via buildroot 1 participant 4 messages Sep 13 – Sep 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/kodi: propagate mariadb dependencies to BR2_PACKAGE_KODI_MYSQL

Even though kodi itself has architecture dependencies (expressed through BR2_PACKAGE_KODI_ARCH_SUPPORTS, the option BR2_PACKAGE_KODI_MYSQL selects BR2_PACKAGE_MARIADB, which has its own architecture dependencies as well. Make sure to propagate those to BR2_PACKAGE_KODI_MYSQL, which doesn't require adding a Config.in comment as these are purely architecture dependencies.

We haven't replicate all dependencies of BR2_PACKAGE_MARIADB because all the others are covered by the top-level BR2_PACKAGE_KODI, and propagating them would require adding a Config.in comment for BR2_PACKAGE_KODI_MYSQL.

---
We don't have a super clear/strong policy on whether dependencies need to be replicated to a sub-option when the package top-level option already has them. I haven't done so in this case, but if people feel like it should be done, I'll be happy to send an updated patch.

---
 package/kodi/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/kodi/Config.in +1 -0
index 08a7caae2c..0b13136d82 100644
@@ -202,6 +202,7 @@ comment "nfs support needs a toolchain w/ threads support"
 
 config BR2_PACKAGE_KODI_MYSQL
 	bool "mysql"
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8 # mariadb
 	select BR2_PACKAGE_MARIADB
 	help
 	  Enable MySQL support
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · Thomas Petazzoni via buildroot

Even though kodi itself has architecture dependencies (expressed through BR2_PACKAGE_KODI_ARCH_SUPPORTS, the option BR2_PACKAGE_KODI_MYSQL selects BR2_PACKAGE_MARIADB, which has its own architecture dependencies as well. Make sure to propagate those to BR2_PACKAGE_KODI_MYSQL, which doesn't require adding a Config.in comment as these are purely architecture dependencies.

Quoted 6 lines

We haven't replicate all dependencies of BR2_PACKAGE_MARIADB because all the others are covered by the top-level BR2_PACKAGE_KODI, and propagating them would require adding a Config.in comment for BR2_PACKAGE_KODI_MYSQL.

Applied to master, thanks.

Quoted 5 lines

---
We don't have a super clear/strong policy on whether dependencies need to be replicated to a sub-option when the package top-level option already has them. I haven't done so in this case, but if people feel like it should be done, I'll be happy to send an updated patch.

I think most packages are not replicating top-level options. When there is replication, it is sometime due to leftovers after changes. This is why I applied this patch.

If we decide another policy, we'll have to realign all package sub-options anyway.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 8 lines · Julien Olivain
Quoted 4 lines

We don't have a super clear/strong policy on whether dependencies need to be replicated to a sub-option when the package top-level option already has them. I haven't done so in this case, but if people feel like it should be done, I'll be happy to send an updated patch.

I think most packages are not replicating top-level options. When there is replication, it is sometime due to leftovers after changes. This is why I applied this patch.

The concern I have with not replicating is that then it's easy to miss re-adding dependency to sub-options when dependencies get removed from the top-level option for $whatever reason.

And of course the concern with replicating is that it adds a whole lot more of Config.in comments :)

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Thomas Petazzoni via buildroot

In reply of:

Quoted 7 lines

Even though kodi itself has architecture dependencies (expressed through BR2_PACKAGE_KODI_ARCH_SUPPORTS, the option BR2_PACKAGE_KODI_MYSQL selects BR2_PACKAGE_MARIADB, which has its own architecture dependencies as well. Make sure to propagate those to BR2_PACKAGE_KODI_MYSQL, which doesn't require adding a Config.in comment as these are purely architecture dependencies.

Quoted 6 lines

We haven't replicate all dependencies of BR2_PACKAGE_MARIADB because all the others are covered by the top-level BR2_PACKAGE_KODI, and propagating them would require adding a Config.in comment for BR2_PACKAGE_KODI_MYSQL.

Applied to 2025.02.x & 2026.08.x. Thanks

Quoted 28 lines

---
We don't have a super clear/strong policy on whether dependencies need to be replicated to a sub-option when the package top-level option already has them. I haven't done so in this case, but if people feel like it should be done, I'll be happy to send an updated patch.

---
 package/kodi/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/kodi/Config.in +1 -0
index 08a7caae2c..0b13136d82 100644
@@ -202,6 +202,7 @@ comment "nfs support needs a toolchain w/ threads support"
 
 config BR2_PACKAGE_KODI_MYSQL
 	bool "mysql"
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC || BR2_TOOLCHAIN_HAS_SYNC_8 # mariadb
 	select BR2_PACKAGE_MARIADB
 	help
 	  Enable MySQL support
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot