Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911534 - dev-libs/glib always built with libmount and nls
Summary: dev-libs/glib always built with libmount and nls
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-31 19:20 UTC by stefan11111
Modified: 2023-07-31 23:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefan11111 2023-07-31 19:20:34 UTC
See: https://forums.gentoo.org/viewtopic-t-1164350.html
Glib is always built with support for libmount and nss.
This compiles 100 extra files.
This is about one fifth of what glib compiles.
Can a USE flag to toggle the corresponding build options be added?
Comment 1 Mart Raudsepp gentoo-dev 2023-07-31 20:00:57 UTC
libmount from util-linux is used to figure out more reliably the list of already mounted filesystems and mountable filesystems. It's only use is within gio/gunixmounts.c and by disabling libmount you still compile exactly the same amount of files.
glib does not depend on NSS, nor has any references to it whatsoever.

In conclusion, I'm not sure what benefit it would have to cripple some of the API a little bit to avoid a dependency that everyone on linux already has installed in practice.
Comment 2 stefan11111 2023-07-31 20:11:22 UTC
Sorry, it was nls instead of nss.

I have MYMESONARGS="-Dlibmount=disabled -Dnls=disabled" in my portage env.
With this, glib compiles 443 files.
Without this, glib compiles 543 files
With only this, glib compiles 443 files. MYMESONARGS="-Dnls=disabled"
With only this, glib compiles 543 files. MYMESONARGS="-Dlibmount=disabled"
Comment 3 Mart Raudsepp gentoo-dev 2023-07-31 21:42:54 UTC
Translations is not optional for it, as far as I'm concerned. The amount of extra "compiled" files is 100 *.po files getting converted to *.mo files that get installed.
Having LINGUAS work at build time for meson is an open issue, in practice dependent on someone writing a ninja feature to make a sane solution, meanwhile you have your INSTALL_MASK and other ways if you really don't want translations for some languages.
Comment 4 stefan11111 2023-07-31 22:03:24 UTC
Got it.
It's all fine if it doesn't have a runtime impact.
Thank you for clarifying.