On 01/04/17 11:34, Roman Lebedev wrote:
On Wed, Jan 4, 2017 at 3:08 AM, Urs Schütz <[email protected]> wrote:
Hi,
Thanks for the new release. Very nice work.

Today I tried a fresh build from git:

# rm -rf darktable
# git clone git://github.com/darktable-org/darktable.git
# cd darktable
# git submodule init
# git submodule update
# mkdir build
# cd build
# cmake -DCMAKE_BUILD_TYPE=Release ..
# make

Got an error with this output:
[ 92%] Checking validity of noiseprofiles.json
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR]
schema
jsonschema: error: argument -i/--instance: invalid _json_file value:
'/usr/local/src/darktable/data/noiseprofiles.json'
data/CMakeFiles/validate_noiseprofiles_json.dir/build.make:58: recipe for
target 'data/CMakeFiles/validate_noiseprofiles_json' failed
make[2]: *** [data/CMakeFiles/validate_noiseprofiles_json] Error 2
CMakeFiles/Makefile2:7637: recipe for target
'data/CMakeFiles/validate_noiseprofiles_json.dir/all' failed
make[1]: *** [data/CMakeFiles/validate_noiseprofiles_json.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Here the locale settings:
 # locale
LANG=C
LC_CTYPE=de_CH.UTF-8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

I did not find a way to set LC_ALL to "C.UTF-8" on Gentoo:
# export LC_ALL="C.UTF-8"
-bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such
file or directory

What can I try?
Thanks for any pointers.
I guess you disabled such locale in /etc/locale.gen?

Blame https://github.com/Julian/jsonschema/issues/299#issuecomment-250469699
I do not know how to fix this.


Gentoo has no locale named "C.UTF-8". As a workaround I did fake a C.UTF-8 locale on gentoo:
# localedef -i en_US -f UTF-8 C.UTF-8
Then darktable from git is compiling. Don't blame me for ugly side effects.
After compiling I did remove C.UTF-8 again:
# localedef --delete-from-archive C.utf8

Urs

--
Urs
Roman.

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to