perl: warning: Please check that your locale settings #151

Closed
opened 2015-11-09 07:35:59 +00:00 by philm · 19 comments
philm commented 2015-11-09 07:35:59 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Seems we had removed the locale-gen for buildpkg. Question is why?

perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*Created by: philmmanjaro* Seems we had removed the locale-gen for **buildpkg**. Question is why? ``` perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). ```
philm commented 2015-11-09 11:47:21 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

What command did you use?

Any chance you did not create the chroot, but updated it?
locale-gen is run if you create a chroot.

*Created by: udeved* What command did you use? Any chance you did not create the chroot, but updated it? locale-gen is run if you create a chroot.
philm commented 2015-11-09 12:26:53 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Seems perl needs also LANGUAGE and LC_ALL set ...

*Created by: philmmanjaro* Seems **perl** needs also `LANGUAGE` and `LC_ALL` set ...
philm commented 2015-11-09 12:30:26 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Yes, seems perl package specific, but I think it doesn't hurt if we set more env vars on chroot creation.

*Created by: udeved* Yes, seems perl package specific, but I think it doesn't hurt if we set more env vars on chroot creation.
philm commented 2015-11-09 12:35:42 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

You can test it with any cinnamon package.

*Created by: philmmanjaro* You can test it with any **cinnamon** package.
philm commented 2015-11-25 23:42:51 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I can't reproduce it with cinnamon or cinnamon-session build.

*Created by: udeved* I can't reproduce it with cinnamon or cinnamon-session build.
philm commented 2015-11-26 19:09:01 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

This happens on your system if you build eg cinnamon-session?
Do you have a detail on the package that produced it?

*Created by: udeved* This happens on your system if you build eg cinnamon-session? Do you have a detail on the package that produced it?
philm commented 2015-11-26 19:58:50 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

I've to test it again. I just noticed that every perl compile cmd claims on my end that it doesn't know the locale. It doesn't break the build, the build goes thru. It is just a warning. That's all.

*Created by: philmmanjaro* I've to test it again. I just noticed that every perl compile cmd claims on my end that it doesn't know the locale. It doesn't break the build, the build goes thru. It is just a warning. That's all.
philm commented 2015-12-04 07:59:57 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

No, simply build manjaro-tools. Then you have that warning ...

*Created by: philmmanjaro* No, simply build **manjaro-tools**. Then you have that warning ...
philm commented 2015-12-08 20:34:53 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I don't get perl warnings when building manjaro-tools in chroot.
Could this be sonething systemd language related?

*Created by: udeved* I don't get perl warnings when building manjaro-tools in chroot. Could this be sonething systemd language related?
philm commented 2015-12-08 20:43:45 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Maybe. I'm using systemd.

*Created by: philmmanjaro* Maybe. I'm using **systemd**.
philm commented 2015-12-08 20:45:57 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Do you have a specific perl package that produces this warning right now?
Whats the perl depend?

Can you try with latest build? #157

*Created by: udeved* Do you have a specific perl package that produces this warning right now? Whats the perl depend? Can you try with latest build? #157
philm commented 2015-12-08 20:49:23 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

will check when I find time for it ...

*Created by: philmmanjaro* will check when I find time for it ...
philm commented 2015-12-08 20:51:17 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Would you consider it release blocker?

*Created by: udeved* Would you consider it release blocker?
philm commented 2015-12-08 20:52:04 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

No.

*Created by: philmmanjaro* No.
philm commented 2015-12-11 22:20:04 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

grub is also a package creating this warning for me ...

*Created by: philmmanjaro* **grub** is also a package creating this warning for me ...
philm commented 2015-12-11 22:32:40 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

grub build logs attached.

grub.zip

It seems to work, and I can't reproduce it. Strange.

*Created by: udeved* grub build logs attached. [grub.zip](https://github.com/manjaro/manjaro-tools/files/59905/grub.zip) It seems to work, and I can't reproduce it. Strange.
philm commented 2015-12-12 00:32:44 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Really strange. Here you go:

[phil@manjaro core]$ buildpkg -p grub -q
==> manjaro-tools
  -> version: 0.9.15rc1
  -> user_config: /home/phil/.config/manjaro-tools.conf
==> PROFILE:
  -> sets_dir_pkg: /etc/manjaro-tools/sets/pkg.d
  -> buildsets: default
  -> buildset_pkg: grub
  -> is_buildset: false
==> OPTIONS:
  -> arch: x86_64
  -> branch: unstable
  -> chroots_pkg: /var/lib/manjaro-tools/buildpkg
==> ARGS:
  -> clean_first: false
  -> wipe_clean: false
  -> namcap: false
  -> sign: false
  -> udev_root: false
  -> mkchroot_args: -C /usr/share/manjaro-tools/pacman-default.conf -M /usr/share/manjaro-tools/makepkg-x86_64.conf -S /usr/share/manjaro-tools/pacman-mirrors-unstable.conf -B http://mirror.netzspielplatz.de/manjaro/packages/unstable
==> PATHS:
  -> work_dir: /var/lib/manjaro-tools/buildpkg/unstable/x86_64
  -> cache_dir_pkg: /var/cache/manjaro-tools/pkg/unstable/x86_64
  -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable
==> BUILD QUEUE:
  -> grub
[phil@manjaro core]$ buildpkg -p grub
==> Updating chroot for [unstable] (x86_64)...
:: Synchronizing package databases...
 core is up to date
 extra                   1956.9 KiB  3.33M/s 00:01 [######################] 100%
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
 --> Time chroot_init: 0.03 minutes
==> Start building [grub]
==> Making package: grub 2.02.beta2-13 (Sat Dec 12 01:31:24 CET 2015)
==> Retrieving sources...
  -> Found grub-2.02-13.tar.gz
  -> Found grub-extras-2.02-13.tar.gz
  -> Found unifont-6.3.20131217.bdf.gz
  -> Found grub-add-GRUB_COLOR_variables.patch
  -> Found grub-manjaro-modifications.patch
  -> Found grub-intel-ucode.patch
  -> Found 60_memtest86+
  -> Found background.png
  -> Found grub.default
  -> Found grub.cfg
  -> Found update-grub
==> Validating source files with sha256sums...
    grub-2.02-13.tar.gz ... Passed
    grub-extras-2.02-13.tar.gz ... Passed
    unifont-6.3.20131217.bdf.gz ... Passed
    grub-add-GRUB_COLOR_variables.patch ... Passed
    grub-manjaro-modifications.patch ... Passed
    grub-intel-ucode.patch ... Passed
    60_memtest86+ ... Passed
    background.png ... Passed
    grub.default ... Passed
    grub.cfg ... Passed
    update-grub ... Passed
==> Making package: grub 2.02.beta2-13 (Sat Dec 12 00:31:25 UTC 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found grub-2.02-13.tar.gz
  -> Found grub-extras-2.02-13.tar.gz
  -> Found unifont-6.3.20131217.bdf.gz
  -> Found grub-add-GRUB_COLOR_variables.patch
  -> Found grub-manjaro-modifications.patch
  -> Found grub-intel-ucode.patch
  -> Found 60_memtest86+
  -> Found background.png
  -> Found grub.default
  -> Found grub.cfg
  -> Found update-grub
==> Validating source files with sha256sums...
    grub-2.02-13.tar.gz ... Passed
    grub-extras-2.02-13.tar.gz ... Passed
    unifont-6.3.20131217.bdf.gz ... Passed
    grub-add-GRUB_COLOR_variables.patch ... Passed
    grub-manjaro-modifications.patch ... Passed
    grub-intel-ucode.patch ... Passed
    60_memtest86+ ... Passed
    background.png ... Passed
    grub.default ... Passed
    grub.cfg ... Passed
    update-grub ... Passed
==> Extracting sources...
  -> Extracting grub-2.02-13.tar.gz with bsdtar
bsdtar: Failed to set default locale
  -> Extracting grub-extras-2.02-13.tar.gz with bsdtar
bsdtar: Failed to set default locale
  -> Extracting unifont-6.3.20131217.bdf.gz with gzip
==> Starting prepare()...
==> Patch to load Intel microcode
patching file util/grub.d/10_linux.in
patching file util/grub.d/30_os-prober.in
Hunk #1 succeeded at 201 (offset 1 line).

==> Patch to enable GRUB_COLOR_* variables in grub-mkconfig
patching file util/grub-mkconfig.in
Hunk #1 succeeded at 222 (offset 4 lines).
patching file util/grub.d/00_header.in

==> Patch to include Manjaro Linux Modifications
patching file util/grub-mkconfig_lib.in
patching file util/grub.d/10_linux.in
Hunk #5 succeeded at 195 (offset 2 lines).
Hunk #6 succeeded at 223 (offset 2 lines).
Hunk #7 succeeded at 268 (offset 2 lines).

==> Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme
==> Pull in latest language files
receiving incremental file list
./
ast.po
ca.po
da.po
de.po
eo.po
es.po
fi.po
fr.po
gl.po
hu.po
id.po
it.po
ja.po
lt.po
nb.po
nl.po
pa.po
pl.po
pt_BR.po
ru.po
sl.po
sr.po
sv.po
tr.po
uk.po
vi.po
zh_CN.po
zh_TW.po

sent 570 bytes  received 1,467,140 bytes  587,084.00 bytes/sec
total size is 5,745,270  speedup is 3.91

==> Remove not working langs which need LC_ALL=C.UTF-8
==> Avoid problem with unifont during compile of grub, http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847
==> Starting build()...
==> Build grub bios stuff
==> Set ARCH dependent variables for bios build
==> Copy the source for building the bios part
==> Add the grub-extra sources for bios build
==> Unset all compiler FLAGS for bios build
==> Run autogen.sh for bios build
Importing unicode...
Importing libgcrypt...
Generating Automake input...
Saving timestamps...
Running autoreconf...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
^Cautoreconf: aclocal terminated by signal: 2

==> ERROR: Aborted by user! Exiting...

[phil@manjaro core]$ 
*Created by: philmmanjaro* Really strange. Here you go: ``` [phil@manjaro core]$ buildpkg -p grub -q ==> manjaro-tools -> version: 0.9.15rc1 -> user_config: /home/phil/.config/manjaro-tools.conf ==> PROFILE: -> sets_dir_pkg: /etc/manjaro-tools/sets/pkg.d -> buildsets: default -> buildset_pkg: grub -> is_buildset: false ==> OPTIONS: -> arch: x86_64 -> branch: unstable -> chroots_pkg: /var/lib/manjaro-tools/buildpkg ==> ARGS: -> clean_first: false -> wipe_clean: false -> namcap: false -> sign: false -> udev_root: false -> mkchroot_args: -C /usr/share/manjaro-tools/pacman-default.conf -M /usr/share/manjaro-tools/makepkg-x86_64.conf -S /usr/share/manjaro-tools/pacman-mirrors-unstable.conf -B http://mirror.netzspielplatz.de/manjaro/packages/unstable ==> PATHS: -> work_dir: /var/lib/manjaro-tools/buildpkg/unstable/x86_64 -> cache_dir_pkg: /var/cache/manjaro-tools/pkg/unstable/x86_64 -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable ==> BUILD QUEUE: -> grub [phil@manjaro core]$ buildpkg -p grub ==> Updating chroot for [unstable] (x86_64)... :: Synchronizing package databases... core is up to date extra 1956.9 KiB 3.33M/s 00:01 [######################] 100% community is up to date :: Starting full system upgrade... there is nothing to do --> Time chroot_init: 0.03 minutes ==> Start building [grub] ==> Making package: grub 2.02.beta2-13 (Sat Dec 12 01:31:24 CET 2015) ==> Retrieving sources... -> Found grub-2.02-13.tar.gz -> Found grub-extras-2.02-13.tar.gz -> Found unifont-6.3.20131217.bdf.gz -> Found grub-add-GRUB_COLOR_variables.patch -> Found grub-manjaro-modifications.patch -> Found grub-intel-ucode.patch -> Found 60_memtest86+ -> Found background.png -> Found grub.default -> Found grub.cfg -> Found update-grub ==> Validating source files with sha256sums... grub-2.02-13.tar.gz ... Passed grub-extras-2.02-13.tar.gz ... Passed unifont-6.3.20131217.bdf.gz ... Passed grub-add-GRUB_COLOR_variables.patch ... Passed grub-manjaro-modifications.patch ... Passed grub-intel-ucode.patch ... Passed 60_memtest86+ ... Passed background.png ... Passed grub.default ... Passed grub.cfg ... Passed update-grub ... Passed ==> Making package: grub 2.02.beta2-13 (Sat Dec 12 00:31:25 UTC 2015) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found grub-2.02-13.tar.gz -> Found grub-extras-2.02-13.tar.gz -> Found unifont-6.3.20131217.bdf.gz -> Found grub-add-GRUB_COLOR_variables.patch -> Found grub-manjaro-modifications.patch -> Found grub-intel-ucode.patch -> Found 60_memtest86+ -> Found background.png -> Found grub.default -> Found grub.cfg -> Found update-grub ==> Validating source files with sha256sums... grub-2.02-13.tar.gz ... Passed grub-extras-2.02-13.tar.gz ... Passed unifont-6.3.20131217.bdf.gz ... Passed grub-add-GRUB_COLOR_variables.patch ... Passed grub-manjaro-modifications.patch ... Passed grub-intel-ucode.patch ... Passed 60_memtest86+ ... Passed background.png ... Passed grub.default ... Passed grub.cfg ... Passed update-grub ... Passed ==> Extracting sources... -> Extracting grub-2.02-13.tar.gz with bsdtar bsdtar: Failed to set default locale -> Extracting grub-extras-2.02-13.tar.gz with bsdtar bsdtar: Failed to set default locale -> Extracting unifont-6.3.20131217.bdf.gz with gzip ==> Starting prepare()... ==> Patch to load Intel microcode patching file util/grub.d/10_linux.in patching file util/grub.d/30_os-prober.in Hunk #1 succeeded at 201 (offset 1 line). ==> Patch to enable GRUB_COLOR_* variables in grub-mkconfig patching file util/grub-mkconfig.in Hunk #1 succeeded at 222 (offset 4 lines). patching file util/grub.d/00_header.in ==> Patch to include Manjaro Linux Modifications patching file util/grub-mkconfig_lib.in patching file util/grub.d/10_linux.in Hunk #5 succeeded at 195 (offset 2 lines). Hunk #6 succeeded at 223 (offset 2 lines). Hunk #7 succeeded at 268 (offset 2 lines). ==> Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme ==> Pull in latest language files receiving incremental file list ./ ast.po ca.po da.po de.po eo.po es.po fi.po fr.po gl.po hu.po id.po it.po ja.po lt.po nb.po nl.po pa.po pl.po pt_BR.po ru.po sl.po sr.po sv.po tr.po uk.po vi.po zh_CN.po zh_TW.po sent 570 bytes received 1,467,140 bytes 587,084.00 bytes/sec total size is 5,745,270 speedup is 3.91 ==> Remove not working langs which need LC_ALL=C.UTF-8 ==> Avoid problem with unifont during compile of grub, http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 ==> Starting build()... ==> Build grub bios stuff ==> Set ARCH dependent variables for bios build ==> Copy the source for building the bios part ==> Add the grub-extra sources for bios build ==> Unset all compiler FLAGS for bios build ==> Run autogen.sh for bios build Importing unicode... Importing libgcrypt... Generating Automake input... Saving timestamps... Running autoreconf... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). ^Cautoreconf: aclocal terminated by signal: 2 ==> ERROR: Aborted by user! Exiting... [phil@manjaro core]$ ```
philm commented 2015-12-13 14:52:35 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Importing unicode...
Importing libgcrypt...
Generating Automake input...
Saving timestamps...
Running autoreconf...
autoreconf: Entering directory `.'

The part where it throws a perl warning looks like this for me.

I think, it is safe to assume it is systemd related, and systemd does something different with locales.

*Created by: udeved* ``` Importing unicode... Importing libgcrypt... Generating Automake input... Saving timestamps... Running autoreconf... autoreconf: Entering directory `.' ``` The part where it throws a perl warning looks like this for me. I think, it is safe to assume it is systemd related, and systemd does something different with locales.
philm commented 2015-12-18 16:53:25 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I probably found something.

@philmmanjaro

Can you try a build and comment out in util-msg.sh on the very top the exports and see if it helps?

export LC_MESSAGES=C
export LANG=C
*Created by: udeved* I probably found something. @philmmanjaro Can you try a build and comment out in util-msg.sh on the very top the exports and see if it helps? ``` export LC_MESSAGES=C export LANG=C ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#151
No description provided.