Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Localization files in /usr/lib/locale
@ 2020-12-28  4:47 ericonr
  2020-12-28  9:04 ` newbluemoon
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: ericonr @ 2020-12-28  4:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3023 bytes --]

New issue by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491

Description:
The correct `localedir` is `/usr/share/locale`, which is respected on all glibc packages. Unfortunately, on musl some packages perform their own detection of what `localedir` to use, due to some really weird mechanisms, and end up putting those files into `/usr/lib/locale`. Since locale data isn't arch specific, it should be stored in `/usr/share`. For multilib systems, this also makes it so locale data only has to be installed once, in `/usr/share`, by the native package.

@q66 scraped his repo for packages with files in `/usr/lib/locale`, which should be fixed, unless there are specific circumstances (`pcsx2` is one such example, since it can't be installed at all on 64-bit systems).

- [ ] appdata-tools
- [ ] ario
- [ ] brasero
- [ ] desmume
- [ ] dia
- [ ] exo
- [ ] garcon
- [ ] GConf
- [ ] gconf-editor
- [ ] gdmap
- [ ] geeqie
- [ ] gimp
- [ ] gimp-lqr-plugin
- [ ] gmpc
- [ ] gnome-doc-utils
- [ ] gnome-mime-data
- [ ] gnome-mplayer
- [ ] gnome-nettool
- [ ] gnome-screensaver
- [ ] gnome-system-log
- [ ] gnumeric
- [ ] goocanvas1 (will be removed in #27438 )
- [ ] gpicview
- [ ] gtk+
- [ ] gtk2-engines
- [ ] gtkpod
- [ ] gtksourceview2
- [ ] gtkspell
- [ ] gxmessage
- [ ] homebank
- [ ] leafpad
- [ ] libcryptui
- [ ] libglib-static
- [ ] libgnomecanvas
- [ ] libgnome-keyring
- [ ] libgpod
- [ ] libwnck2
- [ ] libxfce4ui
- [ ] libxfce4util
- [ ] lightdm-gtk-greeter
- [ ] lxappearance-obconf
- [ ] lxinput
- [ ] lxlauncher
- [ ] mousepad
- [ ] orage
- [ ] parcellite
- [ ] parole
- [ ] pcmanx-gtk2
- [ ] pidgin-libnotify
- [ ] pidgin-otr
- [ ] pidgin-privacy-please
- [ ] pmount
- [ ] polkit-gnome
- [ ] pragha
- [ ] ristretto
- [ ] seahorse-nautilus
- [ ] seahorse-sharing
- [ ] spacefm
- [ ] Thunar
- [ ] thunar-archive-plugin
- [ ] thunar-media-tags-plugin
- [ ] thunar-volman
- [ ] tilp2
- [ ] tumbler
- [ ] udevil
- [ ] ufraw
- [ ] uget
- [ ] viking
- [ ] volumeicon
- [ ] vte
- [ ] vte290
- [ ] xdg-user-dirs-gtk
- [ ] xfburn
- [ ] xfce4-appfinder
- [ ] xfce4-battery-plugin
- [ ] xfce4-clipman-plugin
- [ ] xfce4-cpufreq-plugin
- [ ] xfce4-cpugraph-plugin
- [ ] xfce4-dict
- [ ] xfce4-diskperf-plugin
- [ ] xfce4-fsguard-plugin
- [ ] xfce4-genmon-plugin
- [ ] xfce4-mailwatch-plugin
- [ ] xfce4-mpc-plugin
- [ ] xfce4-netload-plugin
- [ ] xfce4-notifyd
- [ ] xfce4-panel
- [ ] xfce4-places-plugin
- [ ] xfce4-power-manager
- [ ] xfce4-pulseaudio-plugin
- [ ] xfce4-screenshooter
- [ ] xfce4-sensors-plugin
- [ ] xfce4-session
- [ ] xfce4-settings
- [ ] xfce4-systemload-plugin
- [ ] xfce4-taskmanager
- [ ] xfce4-terminal
- [ ] xfce4-time-out-plugin
- [ ] xfce4-timer-plugin
- [ ] xfce4-verve-plugin
- [ ] xfce4-wavelan-plugin
- [ ] xfce4-weather-plugin
- [ ] xfce4-xkb-plugin
- [ ] xfconf
- [ ] xfdesktop
- [ ] xfwm4
- [ ] xnoise
- [ ] xournal
- [ ] xsane

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
@ 2020-12-28  9:04 ` newbluemoon
  2020-12-28  9:08 ` newbluemoon
                   ` (28 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-28  9:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751640784

Comment:
I did have a look at geeqie and assume most of the listed packages above share the same issue.
It seems the problems lies in `/usr/share/aclocal/glib-gettext.m4`, line 275:
```
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
			 return _nl_msg_cat_cntr],
	    [CATOBJEXT=.gmo 
             DATADIRNAME=share],
	    [case $host in
	    *-*-solaris*)
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
	    dnl GNU format message catalog is always supported,
            dnl since both are added to the libc all together.
	    dnl Hence, we'd like to go with DATADIRNAME=share and
	    dnl and CATOBJEXT=.gmo in this case.
            AC_CHECK_FUNC(bind_textdomain_codeset,
	      [CATOBJEXT=.gmo 
               DATADIRNAME=share],
	      [CATOBJEXT=.mo
               DATADIRNAME=lib])
	    ;;
	    *-*-openbsd*)
	    CATOBJEXT=.mo
            DATADIRNAME=share
	    ;;
	    *)
	    CATOBJEXT=.mo
            DATADIRNAME=lib
	    ;;
	    esac])
```

Musl doesn’t have `_nl_msg_cat_cntr`, the test fails, and so `CATOBJEXT` is set to `.mo`.

Then in line 451:
```
if test "x$CATOBJEXT" = "x.mo" ; then
  localedir=`eval echo "${libdir}/locale"`
else
  localedir=`eval echo "${datadir}/locale"`
fi
```

So the translations are put into `libdir`.
Even adding `--localedir=/usr/share/locale` to `configure_args` didn’t change this.

The easiest way to solve this might be to patch `glib-gettext.m4` and just change `${libdir}/locale` to `${datadir}/locale`.
However, no idea if there might me side effects. ;)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
  2020-12-28  9:04 ` newbluemoon
@ 2020-12-28  9:08 ` newbluemoon
  2020-12-28  9:25 ` newbluemoon
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-28  9:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751640784

Comment:
I did have a look at geeqie and assume most of the listed packages above share the same issue.
It seems the problems lies in `/usr/share/aclocal/glib-gettext.m4`, line 275:
```
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
			 return _nl_msg_cat_cntr],
	    [CATOBJEXT=.gmo 
             DATADIRNAME=share],
	    [case $host in
	    *-*-solaris*)
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
	    dnl GNU format message catalog is always supported,
            dnl since both are added to the libc all together.
	    dnl Hence, we'd like to go with DATADIRNAME=share and
	    dnl and CATOBJEXT=.gmo in this case.
            AC_CHECK_FUNC(bind_textdomain_codeset,
	      [CATOBJEXT=.gmo 
               DATADIRNAME=share],
	      [CATOBJEXT=.mo
               DATADIRNAME=lib])
	    ;;
	    *-*-openbsd*)
	    CATOBJEXT=.mo
            DATADIRNAME=share
	    ;;
	    *)
	    CATOBJEXT=.mo
            DATADIRNAME=lib
	    ;;
	    esac])
```

Musl doesn’t have `_nl_msg_cat_cntr`, the test fails, and so `CATOBJEXT` is set to `.mo`.

Then in line 451:
```
if test "x$CATOBJEXT" = "x.mo" ; then
  localedir=`eval echo "${libdir}/locale"`
else
  localedir=`eval echo "${datadir}/locale"`
fi
```

So the translations are put into `libdir`.
Even adding `--localedir=/usr/share/locale` to `configure_args` didn’t change this.

The easiest way to solve this might be to patch `glib-gettext.m4` and just change `${libdir}/locale` to `${datadir}/locale` in line 452.
However, no idea if there might me side effects. ;)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
  2020-12-28  9:04 ` newbluemoon
  2020-12-28  9:08 ` newbluemoon
@ 2020-12-28  9:25 ` newbluemoon
  2020-12-28 13:56 ` sgn
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-28  9:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 538 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751647131

Comment:
Patching `glib-gettext.m4` (alone) might not be that good an idea because it would require the package to regenerate the `configure` script which needs all the automake stuff added to `hostmakedepends` etc. It works for geeqie because it has to run an `autogen.sh` in `pre_configure()` and does it anyway.

Would a configure hook scanning for `localdir` in `configure` scripts be any good?

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (2 preceding siblings ...)
  2020-12-28  9:25 ` newbluemoon
@ 2020-12-28 13:56 ` sgn
  2020-12-28 13:56 ` sgn
                   ` (25 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-28 13:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751720491

Comment:
Maybe link to `libintl` unconditionally on musl?

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (3 preceding siblings ...)
  2020-12-28 13:56 ` sgn
@ 2020-12-28 13:56 ` sgn
  2020-12-28 16:15 ` ericonr
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-28 13:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751720491

Comment:
Maybe link to `libintl` unconditionally on musl? (I don't like this idea, though)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (4 preceding siblings ...)
  2020-12-28 13:56 ` sgn
@ 2020-12-28 16:15 ` ericonr
  2020-12-28 16:58 ` newbluemoon
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2020-12-28 16:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751769292

Comment:
I'm very much against forcing `libintl` when it isn't necessary...

@newbluemoon I believe `--with-localedir` was reported to work...

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (5 preceding siblings ...)
  2020-12-28 16:15 ` ericonr
@ 2020-12-28 16:58 ` newbluemoon
  2020-12-28 18:26 ` ericonr
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-28 16:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751786779

Comment:
At least for geeqie `--with-localedir` doesn’t work either. If it would it could just be added to `common/environment/configure/gnu-configure-args.sh`...

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (6 preceding siblings ...)
  2020-12-28 16:58 ` newbluemoon
@ 2020-12-28 18:26 ` ericonr
  2020-12-28 18:56 ` newbluemoon
                   ` (21 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2020-12-28 18:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751819962

Comment:
`--with-locale-dir`, actually. Sorry for the confusion.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (7 preceding siblings ...)
  2020-12-28 18:26 ` ericonr
@ 2020-12-28 18:56 ` newbluemoon
  2020-12-28 22:05 ` q66
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-28 18:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751828722

Comment:
No, doesn’t work with geeqie; `AM_GLIB_DEFINE_LOCALEDIR` doesn’t check if `$localedir` is already set – it just overwrites it regardless. But that might not be the case with the other packages; they might have added some more checks. I’ll do some testing.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (8 preceding siblings ...)
  2020-12-28 18:56 ` newbluemoon
@ 2020-12-28 22:05 ` q66
  2020-12-30 15:45 ` sgn
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-28 22:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-751878462

Comment:
`--with-locale-dir` is specific to xfce stuff

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (9 preceding siblings ...)
  2020-12-28 22:05 ` q66
@ 2020-12-30 15:45 ` sgn
  2020-12-30 15:49 ` sgn
                   ` (18 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-30 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752667753

Comment:
`--with-locale-dir` doesn't work for Thunar 4.16.1

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (10 preceding siblings ...)
  2020-12-30 15:45 ` sgn
@ 2020-12-30 15:49 ` sgn
  2020-12-30 15:52 ` newbluemoon
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-30 15:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752667753

Comment:
`--with-locale-dir` doesn't work for Thunar 4.16.1.

---

It's `--with-locales-dir` with an `s` after `locale`

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (11 preceding siblings ...)
  2020-12-30 15:49 ` sgn
@ 2020-12-30 15:52 ` newbluemoon
  2020-12-30 16:17 ` q66
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: newbluemoon @ 2020-12-30 15:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752669929

Comment:
I tried geeqie, dia, and leafpad. There `$localedir` is always hardcoded in the end. I have some fixes on a per package basis ready for those, but maybe a general approach is desired (maybe thats only feasible for the Xfce stuff)?

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (12 preceding siblings ...)
  2020-12-30 15:52 ` newbluemoon
@ 2020-12-30 16:17 ` q66
  2020-12-30 16:22 ` sgn
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-30 16:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752677658

Comment:
the m4 files causing this should be fixed either way since they may be used for user built stuff and we don't want that in there either

and then for packages we need to fix it on per-package basis (I see no other way) and introduce a pkglint check to add /usr/lib/locale into forbidden directories (except for glibc-locales)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (13 preceding siblings ...)
  2020-12-30 16:17 ` q66
@ 2020-12-30 16:22 ` sgn
  2020-12-30 17:18 ` q66
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-30 16:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752679569

Comment:
For xfce4 stuff, it's defined by `XDT_I18N` from `xfce4-dev-tools`, it can be fixed by `--with-locales-dir=/usr/share/locale`.
For other stuffs, I don't think we can fix in general, except patching `/usr/share/aclocal/glib-gettext.m4` from `glib-devel` and run `autoreconf -fi` for all problematic packages.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (14 preceding siblings ...)
  2020-12-30 16:22 ` sgn
@ 2020-12-30 17:18 ` q66
  2020-12-30 17:18 ` q66
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-30 17:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752695820

Comment:
so we should ix `xfce4-dev-tools` as well as `glib-devel`, then for xfce4 packages apply `--with-locales-dir`, for the others we can probably patch the right pattern in their configure scripts, don't have to necessarily re-generate everything

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (15 preceding siblings ...)
  2020-12-30 17:18 ` q66
@ 2020-12-30 17:18 ` q66
  2020-12-31  0:48 ` sgn
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-30 17:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752695820

Comment:
so we should fix `xfce4-dev-tools` as well as `glib-devel`, then for xfce4 packages apply `--with-locales-dir`, for the others we can probably patch the right pattern in their configure scripts, don't have to necessarily re-generate everything

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (16 preceding siblings ...)
  2020-12-30 17:18 ` q66
@ 2020-12-31  0:48 ` sgn
  2020-12-31  5:46 ` ericonr
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-31  0:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752804031

Comment:
Doing this and now I realized that we should just
```sh
vsed -i '/localedir =/s,=.*,= /usr/share/locale,' po/Makefile.in.in
```

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (17 preceding siblings ...)
  2020-12-31  0:48 ` sgn
@ 2020-12-31  5:46 ` ericonr
  2020-12-31 11:04 ` sgn
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2020-12-31  5:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752852821

Comment:
@sgn that only fixes install location, not where the programs will search for locale data.

If anything, my fix from #27511 might work better.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (18 preceding siblings ...)
  2020-12-31  5:46 ` ericonr
@ 2020-12-31 11:04 ` sgn
  2020-12-31 11:05 ` sgn
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-31 11:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752925689

Comment:
We need to run `autoreconf -fi` for:
```
-DPACKAGE_LOCALE_DIR=\"$(localedir)\"           \
```

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (19 preceding siblings ...)
  2020-12-31 11:04 ` sgn
@ 2020-12-31 11:05 ` sgn
  2020-12-31 11:52 ` sgn
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-31 11:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752925689

Comment:
We need to run `autoreconf -fi` for:
```
-DPACKAGE_LOCALE_DIR=\"$(localedir)\"           \
```

---
Actually, we need both. Run `autoreconf -fi` to have the macro defined correctly, and `sed` to correct installation directory.
I'll eject non-XFCE change for now.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (20 preceding siblings ...)
  2020-12-31 11:05 ` sgn
@ 2020-12-31 11:52 ` sgn
  2020-12-31 11:54 ` q66
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2020-12-31 11:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752936880

Comment:
I ended up patching more into `glib` https://github.com/void-linux/void-packages/pull/27558/commits/b5a894c02b2d3c5db86d8e5b4d804545bdd7c83c

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (21 preceding siblings ...)
  2020-12-31 11:52 ` sgn
@ 2020-12-31 11:54 ` q66
  2020-12-31 11:57 ` q66
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-31 11:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752937245

Comment:
we just need to patch configure scripts...

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (22 preceding siblings ...)
  2020-12-31 11:54 ` q66
@ 2020-12-31 11:57 ` q66
  2021-04-03  8:08 ` Justinizer
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: q66 @ 2020-12-31 11:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-752937245

Comment:
we just need to patch configure scripts... (instead of full autoreconf)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (23 preceding siblings ...)
  2020-12-31 11:57 ` q66
@ 2021-04-03  8:08 ` Justinizer
  2021-06-15 15:00 ` sgn
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: Justinizer @ 2021-04-03  8:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

New comment by Justinizer on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-812832065

Comment:
Gimp patch by ericonr worked for me in #29970

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (24 preceding siblings ...)
  2021-04-03  8:08 ` Justinizer
@ 2021-06-15 15:00 ` sgn
  2021-06-15 15:14 ` ericonr
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: sgn @ 2021-06-15 15:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-861573756

Comment:
I think everything has been done?

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (25 preceding siblings ...)
  2021-06-15 15:00 ` sgn
@ 2021-06-15 15:14 ` ericonr
  2021-06-15 15:16 ` ericonr
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-06-15 15:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-861586712

Comment:
It seems `gtk+` has no locale files at all? Why was it in that list? (or did we accidentally remove its locales?)

I guess the plan is to make `usr/locale` an error now?

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (26 preceding siblings ...)
  2021-06-15 15:14 ` ericonr
@ 2021-06-15 15:16 ` ericonr
  2022-05-01  2:14 ` github-actions
  2022-05-16  2:07 ` [ISSUE] [CLOSED] " github-actions
  29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-06-15 15:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-861588361

Comment:
Or not, pcsx2 requires those files (we could add an override tho)

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (27 preceding siblings ...)
  2021-06-15 15:16 ` ericonr
@ 2022-05-01  2:14 ` github-actions
  2022-05-16  2:07 ` [ISSUE] [CLOSED] " github-actions
  29 siblings, 0 replies; 31+ messages in thread
From: github-actions @ 2022-05-01  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/27491#issuecomment-1114104830

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [ISSUE] [CLOSED] Localization files in /usr/lib/locale
  2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
                   ` (28 preceding siblings ...)
  2022-05-01  2:14 ` github-actions
@ 2022-05-16  2:07 ` github-actions
  29 siblings, 0 replies; 31+ messages in thread
From: github-actions @ 2022-05-16  2:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3218 bytes --]

Closed issue by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27491

Description:
The correct `localedir` is `/usr/share/locale`, which is respected on all glibc packages. Unfortunately, on musl some packages perform their own detection of what `localedir` to use, due to some really weird mechanisms, and end up putting those files into `/usr/lib/locale`. Since locale data isn't arch specific, it should be stored in `/usr/share`. For multilib systems, this also makes it so locale data only has to be installed once, in `/usr/share`, by the native package.

@q66 scraped his repo for packages with files in `/usr/lib/locale`, which should be fixed, unless there are specific circumstances (`pcsx2` is one such example, since it can't be installed at all on 64-bit systems).

- [x] appdata-tools (removed in 1b2e92128ec7ba97e41bf7f41d91273253bea052)
- [x] ario
- [x] brasero
- [x] desmume #27782 
- [x] dia
- [x] exo
- [x] garcon
- [x] GConf
- [x] gconf-editor
- [x] gdmap
- [x] geeqie
- [x] gimp (can be fixed with 3.0 when it releases, since that supports meson)
- [x] gimp-lqr-plugin
- [x] gmpc
- [x] gnome-doc-utils
- [x] gnome-mime-data
- [x] gnome-mplayer
- [x] gnome-nettool
- [x] gnome-screensaver
- [x] gnome-system-log
- [x] gnumeric
- [x] goocanvas1 (will be removed in #27438 )
- [x] gpicview
- [ ] gtk+
- [x] gtk2-engines
- [x] gtkpod
- [x] gtksourceview2
- [x] gtkspell
- [x] gxmessage
- [x] homebank
- [x] leafpad
- [x] libcryptui
- [x] libglib-static (removed in 2c6bde11ad4fb27a752b8f9d73f928e28fe4934e)
- [x] libgnomecanvas
- [x] libgnome-keyring
- [x] libgpod
- [x] libwnck2
- [x] libxfce4ui
- [x] libxfce4util
- [x] lightdm-gtk-greeter
- [x] lxappearance-obconf
- [x] lxinput
- [x] lxlauncher
- [x] mousepad
- [x] orage
- [x] parcellite
- [x] parole
- [x] pcmanx-gtk2
- [x] pidgin-libnotify
- [x] pidgin-otr
- [x] pidgin-privacy-please
- [x] pmount
- [x] polkit-gnome
- [x] pragha
- [x] ristretto
- [x] seahorse-nautilus
- [x] seahorse-sharing
- [x] spacefm
- [x] Thunar
- [x] thunar-archive-plugin
- [x] thunar-media-tags-plugin
- [x] thunar-volman
- [x] tilp2
- [x] tumbler
- [x] udevil
- [x] ufraw
- [x] uget
- [x] viking
- [x] volumeicon
- [x] vte #27556 
- [x] vte290
- [x] xdg-user-dirs-gtk
- [x] xfburn
- [x] xfce4-appfinder
- [x] xfce4-battery-plugin
- [x] xfce4-clipman-plugin
- [x] xfce4-cpufreq-plugin
- [x] xfce4-cpugraph-plugin
- [x] xfce4-dict
- [x] xfce4-diskperf-plugin
- [x] xfce4-fsguard-plugin
- [x] xfce4-genmon-plugin
- [x] xfce4-mailwatch-plugin
- [x] xfce4-mpc-plugin
- [x] xfce4-netload-plugin
- [x] xfce4-notifyd
- [x] xfce4-panel
- [x] xfce4-places-plugin
- [x] xfce4-power-manager
- [x] xfce4-pulseaudio-plugin
- [x] xfce4-screenshooter
- [x] xfce4-sensors-plugin
- [x] xfce4-session
- [x] xfce4-settings
- [x] xfce4-systemload-plugin
- [x] xfce4-taskmanager
- [x] xfce4-terminal
- [x] xfce4-time-out-plugin
- [x] xfce4-timer-plugin
- [x] xfce4-verve-plugin
- [x] xfce4-wavelan-plugin
- [x] xfce4-weather-plugin
- [x] xfce4-xkb-plugin
- [x] xfconf
- [x] xfdesktop
- [x] xfwm4
- [x] xnoise
- [x] xournal
- [x] xsane

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2022-05-16  2:07 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28  4:47 [ISSUE] Localization files in /usr/lib/locale ericonr
2020-12-28  9:04 ` newbluemoon
2020-12-28  9:08 ` newbluemoon
2020-12-28  9:25 ` newbluemoon
2020-12-28 13:56 ` sgn
2020-12-28 13:56 ` sgn
2020-12-28 16:15 ` ericonr
2020-12-28 16:58 ` newbluemoon
2020-12-28 18:26 ` ericonr
2020-12-28 18:56 ` newbluemoon
2020-12-28 22:05 ` q66
2020-12-30 15:45 ` sgn
2020-12-30 15:49 ` sgn
2020-12-30 15:52 ` newbluemoon
2020-12-30 16:17 ` q66
2020-12-30 16:22 ` sgn
2020-12-30 17:18 ` q66
2020-12-30 17:18 ` q66
2020-12-31  0:48 ` sgn
2020-12-31  5:46 ` ericonr
2020-12-31 11:04 ` sgn
2020-12-31 11:05 ` sgn
2020-12-31 11:52 ` sgn
2020-12-31 11:54 ` q66
2020-12-31 11:57 ` q66
2021-04-03  8:08 ` Justinizer
2021-06-15 15:00 ` sgn
2021-06-15 15:14 ` ericonr
2021-06-15 15:16 ` ericonr
2022-05-01  2:14 ` github-actions
2022-05-16  2:07 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).