From owner-svn-ports-all@freebsd.org Sun Jan 10 15:33:04 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3CF9C4D0693; Sun, 10 Jan 2021 15:33:04 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDLSw1HvWz4nQV; Sun, 10 Jan 2021 15:33:04 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 14AAE2B0E; Sun, 10 Jan 2021 15:33:04 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10AFX3CH090244; Sun, 10 Jan 2021 15:33:03 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10AFX3ck090240; Sun, 10 Jan 2021 15:33:03 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <202101101533.10AFX3ck090240@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sun, 10 Jan 2021 15:33:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561081 - in head/sysutils/xfce4-settings: . files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/sysutils/xfce4-settings: . files X-SVN-Commit-Revision: 561081 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2021 15:33:04 -0000 Author: madpilot Date: Sun Jan 10 15:33:03 2021 New Revision: 561081 URL: https://svnweb.freebsd.org/changeset/ports/561081 Log: - Fix script used to extract themes to fallback to /tmp when both TMPDIR and XDG_CACHE_HOME environment variables are not defined [1] - Fix crash caused by null terminated list missing the terminating null element due to no allocating enough elements [2] Reported by: Andrea Venturoli [1] [2] Patch submitted by: Andrea Venturoli [2] MFH: 2021Q1 Added: head/sysutils/xfce4-settings/files/ head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_appearance-install-theme (contents, props changed) head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_main.c (contents, props changed) Modified: head/sysutils/xfce4-settings/Makefile Modified: head/sysutils/xfce4-settings/Makefile ============================================================================== --- head/sysutils/xfce4-settings/Makefile Sun Jan 10 15:03:59 2021 (r561080) +++ head/sysutils/xfce4-settings/Makefile Sun Jan 10 15:33:03 2021 (r561081) @@ -3,6 +3,7 @@ PORTNAME= xfce4-settings PORTVERSION= 4.16.0 +PORTREVISION= 1 CATEGORIES= sysutils xfce MASTER_SITES= XFCE DIST_SUBDIR= xfce4 Added: head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_appearance-install-theme ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_appearance-install-theme Sun Jan 10 15:33:03 2021 (r561081) @@ -0,0 +1,10 @@ +--- dialogs/appearance-settings/appearance-install-theme.orig 2015-08-01 08:43:16 UTC ++++ dialogs/appearance-settings/appearance-install-theme +@@ -104,6 +104,7 @@ fi + # we try $XDG_CACHE_HOME because it is more likely this is on the + # same partition, so moving the theme after extract is faster + if test x"`which mktemp 2>/dev/null`" != x""; then ++ TMPDIR="${TMPDIR:-/tmp}" + tmpdir=`TMPDIR="${XDG_CACHE_HOME:-$TMPDIR}" mktemp -d` + else + tmpdir="/tmp/tmp.$$.$RANDOM" Added: head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_main.c Sun Jan 10 15:33:03 2021 (r561081) @@ -0,0 +1,11 @@ +--- dialogs/appearance-settings/main.c.orig 2020-12-16 10:44:46 UTC ++++ dialogs/appearance-settings/main.c +@@ -994,7 +994,7 @@ appearance_settings_install_theme_cb (GtkButton *widge + gchar **uris; + GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog); + +- uris = g_new0 (gchar *, 1); ++ uris = g_new0 (gchar *, 2); + filename = gtk_file_chooser_get_filename (chooser); + uris[0] = g_filename_to_uri (filename, NULL, NULL); + install_theme (window, uris, builder);