make a locale.conf and install patch