# HG changeset patch # User Aleksej Bobylev # Date 1489760495 -7200 # Node ID 5d48570cca7279d4d2e14c6616bcc457c5c8b5f6 # Parent 9107c8697bd1d31eb65356a5e5889b4ca49f5907 sudo: add patch diff -r 9107c8697bd1 -r 5d48570cca72 sudo/receipt --- a/sudo/receipt Fri Mar 17 15:18:10 2017 +0100 +++ b/sudo/receipt Fri Mar 17 16:21:35 2017 +0200 @@ -11,9 +11,15 @@ WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" CONFIG_FILES="/etc/sudoers" +BUILD_DEPENDS="gettext" + # Rules to configure and make the package. compile_rules() { + # Fix error and rebuild .mo + patch -p1 -i $stuff/sr.po.patch + msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo + ./configure --sysconfdir=/etc \ --without-pam \ --with-editor=/bin/vi \ diff -r 9107c8697bd1 -r 5d48570cca72 sudo/stuff/sr.po.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sudo/stuff/sr.po.patch Fri Mar 17 16:21:35 2017 +0200 @@ -0,0 +1,10 @@ +--- a/plugins/sudoers/po/sr.po ++++ b/plugins/sudoers/po/sr.po +@@ -14,7 +14,6 @@ + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: 3\n" + "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + + #: confstr.sh:2