svn commit: r429825 - in head/devel/libqtxdg: . files

Olivier Duchateau olivierd at FreeBSD.org
Wed Dec 28 20:52:52 UTC 2016


Author: olivierd
Date: Wed Dec 28 20:52:51 2016
New Revision: 429825
URL: https://svnweb.freebsd.org/changeset/ports/429825

Log:
  - Add patch, which allows to use real path (instead of symlink) in XDG user
  directories
  - Bump PORTREVISION
  
  Submitted by:	Jesper Schmitz Mouridsen (private email)

Added:
  head/devel/libqtxdg/files/
  head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp   (contents, props changed)
Modified:
  head/devel/libqtxdg/Makefile

Modified: head/devel/libqtxdg/Makefile
==============================================================================
--- head/devel/libqtxdg/Makefile	Wed Dec 28 20:33:04 2016	(r429824)
+++ head/devel/libqtxdg/Makefile	Wed Dec 28 20:52:51 2016	(r429825)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libqtxdg
 PORTVERSION=	2.0.0
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	LXQT/${PORTNAME}
 

Added: head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp	Wed Dec 28 20:52:51 2016	(r429825)
@@ -0,0 +1,15 @@
+--- qtxdg/xdgdirs.cpp.orig	2016-09-17 12:06:08 UTC
++++ qtxdg/xdgdirs.cpp
+@@ -178,9 +178,11 @@ bool XdgDirs::setUserDir(XdgDirs::UserDi
+     if (dir < XdgDirs::Desktop || dir > XdgDirs::Videos)
+         return false;
+ 
++    const QString home = QFile::decodeName(qgetenv("HOME"));
+     if (!(value.startsWith(QLatin1String("$HOME"))
+                            || value.startsWith(QLatin1String("~/"))
+-                           || value.startsWith(QFile::decodeName(qgetenv("HOME")))))
++                           || value.startsWith(home)
++                           || value.startsWith(QDir(home).canonicalPath())))
+         return false;
+ 
+     QString folderName = userDirectoryString[dir];


More information about the svn-ports-head mailing list