Merge pull request #1888 from pullmoll/kdelibs

kdelibs: unbreak musl
This commit is contained in:
Jürgen Buchmüller 2015-06-23 08:49:42 +02:00
commit 83c18351ab
2 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,17 @@
--- kdecore/localization/kcatalog.cpp
+++ kdecore/localization/kcatalog.cpp
@@ -193,12 +193,14 @@ void KCatalogPrivate::setupGettextEnv ()
//kDebug() << "bindtextdomain" << name << localeDir;
bindtextdomain(name, localeDir);
+#if defined(__GLIBC__)
// Magic to make sure Gettext doesn't use stale cached translation
// from previous language.
#ifndef _MSC_VER
extern int _nl_msg_cat_cntr;
#endif
++_nl_msg_cat_cntr;
+#endif
}
}

View file

@ -1,10 +1,10 @@
# Template file for 'kdelibs'
pkgname=kdelibs
version=4.14.3
revision=1
revision=2
short_desc="KDE core libraries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL, LGPL, FDL"
license="GPL-2.0, LGPL-2.1, FDL"
homepage="http://www.kde.org"
distfiles="http://download.kde.org/stable/${version}/src/${pkgname}-${version}.tar.xz"
checksum=f8206da1106184ef0bd031b82701c4910b8dade331c4cdaf1cd9c6c5208cfd9e