Bug 215792 - www/nuvolaplayer-8tracks: Comma as a decimal point prevents build
Summary: www/nuvolaplayer-8tracks: Comma as a decimal point prevents build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alberto Villa
URL:
Keywords:
Depends on: 215882
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-05 09:17 UTC by Alexander Mishin
Modified: 2017-01-18 13:24 UTC (History)
2 users (show)

See Also:
vlad-fbsd: maintainer-feedback? (avilla)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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: