Bug 215792

Summary: www/nuvolaplayer-8tracks: Comma as a decimal point prevents build
Product: Ports & Packages Reporter: Alexander Mishin <mishin>
Component: Individual Port(s)Assignee: Alberto Villa <avilla>
Status: Closed FIXED    
Severity: Affects Some People CC: avilla, tijl
Priority: --- Flags: vlad-fbsd: maintainer-feedback? (avilla)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 215882    
Bug Blocks:    

Description Alexander Mishin 2017-01-05 09:17:51 UTC
Port: www/nuvolaplayer-8tracks.
It builds 'textproc/lasem' ss dependensies  and uses 'lasem-render' for converting icons.
A converting script './svg-convert.sh' contains the following block:

case $CONVERT in
        lasem-render*)
                source_size=$($CONVERT --debug render "${source_file}" -o /dev/null | awk '/width/ { print $3 }')
                zoom_factor=$(divide ${dest_size} ${source_size})
                echo $CONVERT -z ${zoom_factor} "${source_file}" -o "${dest_file}"
                $CONVERT -z ${zoom_factor} "${source_file}" -o "${dest_file}"
                ;;

In case a russian locale (I belive that there are other) a decimal point is a comma (not a dot) and following variable gets a value in unacceptable format (with comma as a floating point):
zoom_factor=$(divide ${dest_size} ${source_size})

As a solution, I used: LC_NUMERIC=C make

But why not change the language temporarily in a './svg-convert.sh' or a Makefile directly?
Comment 1 Alexander Mishin 2017-01-05 12:01:56 UTC
Same for:
www/nuvolaplayer-amazon-cloud-player
www/nuvolaplayer-bandcamp
www/nuvolaplayer-google-play-music
www/nuvolaplayer-groove
www/nuvolaplayer-jango
www/nuvolaplayer-kexp
www/nuvolaplayer-logitech-media-server
www/nuvolaplayer-mixcloud
www/nuvolaplayer-plex
www/nuvolaplayer-soundcloud
www/nuvolaplayer-spotify
www/nuvolaplayer-tunein
www/nuvolaplayer-yandex-music
www/nuvolaplayer-youtube

LC_NUMERIC=C portmaster <port/name> - helps in all cases.
My language sets is only LANG=ru_RU.UTF-8, inherited by '/etc/login.conf' class:
russian|Russian Users Accounts:\
        :charset=UTF-8:\
        :lang=ru_RU.UTF-8:\
        :tc=default: