Skip to contentSkip to conversation

shared-mime-info: Handle USE_NLS

PATCH In review AshishKumar Mishra 1 participant 4 messages Sep 19, 2025 – Oct 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 shared-mime-info: Handle USE_NLS

From: Philip Lorenz <[email protected]>

Skip building of translations when NLS is disabled.

(From OE-Core rev: b58a3f4e9c78522423a94821b7ba7a35eb18f75a)

---
 .../recipes-support/shared-mime-info/shared-mime-info_2.4.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb +4 -1
index b8a377e2b2..52daccc977 100644
@@ -17,7 +17,10 @@ S = "${WORKDIR}/git"
 
 inherit meson pkgconfig gettext python3native mime
 
-EXTRA_OEMESON = "-Dupdate-mimedb=true"
+EXTRA_OEMESON = " \
+                 -Dupdate-mimedb=true \
+                 -Dbuild-translations=${@'false' if d.getVar('USE_NLS') == 'no' else 'true'} \
+                "
 
 FILES:${PN} += "${datadir}/mime"
 FILES:${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
Signature · 1 line
2.43.0
#1 lore raw

Hi Team ,
Any feedback on this or if any suggestion

Thanks ,
Ashish

#2 lore raw

Hi Anuj,

Good morning.
These are backported patches from master.
Would request to please consider this patch for merge. If you have any feedback / suggestion, please feel free to share. I will work accordingly.

Thanks,
Ashish

#3 lore raw

Hi Anuj ,

Good Morning.
Would request to please consider this patch for merge. If any feedback / suggestion , i can rework accordingly.

Thanks ,
Ashish