grantlee: don't canonicalize template paths

+28
+27
pkgs/development/libraries/grantlee/5/grantlee-no-canonicalize-filepath.patch
··· 1 + Index: grantlee-5.1.0/templates/lib/templateloader.cpp 2 + =================================================================== 3 + --- grantlee-5.1.0.orig/templates/lib/templateloader.cpp 4 + +++ grantlee-5.1.0/templates/lib/templateloader.cpp 5 + @@ -141,10 +141,6 @@ Template FileSystemTemplateLoader::loadB 6 + + QLatin1Char('/') + fileName); 7 + const QFileInfo fi(file); 8 + 9 + - if (file.exists() 10 + - && !fi.canonicalFilePath().contains( 11 + - QDir(d->m_templateDirs.at(i)).canonicalPath())) 12 + - return Template(); 13 + ++i; 14 + } 15 + 16 + @@ -173,11 +169,6 @@ FileSystemTemplateLoader::getMediaUri(co 17 + + QLatin1Char('/') + fileName); 18 + 19 + const QFileInfo fi(file); 20 + - if (!fi.canonicalFilePath().contains( 21 + - QDir(d->m_templateDirs.at(i)).canonicalPath())) { 22 + - ++i; 23 + - continue; 24 + - } 25 + 26 + if (file.exists()) { 27 + auto path = fi.absoluteFilePath();
+1
pkgs/development/libraries/grantlee/5/series
··· 1 1 grantlee-nix-profiles.patch 2 + grantlee-no-canonicalize-filepath.patch