kdelibs: unbreak musl

This commit is contained in:
jbu 2015-06-23 00:26:23 +02:00
parent 688effc53a
commit 5f89b61cb4
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