jreznik pushed to arts (epel7). "apply patch to fix #169631"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Apr 2 15:08:46 UTC 2015
>From 35194abc3a8c75eafbd2cc41e7cc87bfefd25130 Mon Sep 17 00:00:00 2001
From: Than Ngo <than at fedoraproject.org>
Date: Mon, 19 Dec 2005 19:25:04 +0000
Subject: apply patch to fix #169631
diff --git a/arts-1.5.0-check_tmp_dir.patch b/arts-1.5.0-check_tmp_dir.patch
new file mode 100644
index 0000000..a18f0ea
--- /dev/null
+++ b/arts-1.5.0-check_tmp_dir.patch
@@ -0,0 +1,17 @@
+--- arts-1.5.0/mcop/mcoputils.cc.orig 2005-12-19 20:19:50.000000000 +0100
++++ arts-1.5.0/mcop/mcoputils.cc 2005-12-19 20:18:18.000000000 +0100
+@@ -46,7 +46,13 @@
+ result = lstat(tmp_dir, &stat_buf);
+ if ((result == -1) && (errno == ENOENT))
+ {
+- return 1;
++ result = mkdir(tmp_dir, 0700);
++ if (result == -1)
++ {
++ arts_warning("Error: Can not create directory \"%s\".\n", tmp_dir);
++ return 1;
++ }
++ result = stat(tmp_dir, &stat_buf);
+ }
+ if ((result == -1) || (!S_ISDIR(stat_buf.st_mode)))
+ {
diff --git a/arts.spec b/arts.spec
index a1858d0..139e24f 100644
--- a/arts.spec
+++ b/arts.spec
@@ -10,7 +10,7 @@
%define disable_gcc_check_and_hidden_visibility 1
Version: 1.5.0
-Release: 0.1.rc2.1
+Release: 1
Summary: aRts (analog realtime synthesizer) - the KDE sound system
Name: arts
Group: System Environment/Daemons
@@ -25,6 +25,7 @@ Patch1: arts-1.1.4-debug.patch
Patch2: arts-1.3.92-glib2.patch
Patch5: arts-1.3.1-alsa.patch
Patch6: arts-1.4.0-glibc.patch
+Patch7: arts-1.5.0-check_tmp_dir.patch
Prereq: /sbin/ldconfig
Requires: audiofile
@@ -92,6 +93,7 @@ KDE applications using sound).
%patch2 -p1 -b .glib
%patch5 -p1 -b .alsa
%patch6 -p1 -b .glibc
+%patch7 -p1 -b .check_tmp_dir
%build
unset QTDIR && . /etc/profile.d/qt.sh
@@ -171,6 +173,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/artsc-config
%changelog
+* Mon Dec 19 2005 Than Ngo <than at redhat.com> 1.5.0-1
+- apply patch to fix #169631
+
* Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
- rebuilt
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/arts.git/commit/?h=epel7&id=35194abc3a8c75eafbd2cc41e7cc87bfefd25130
More information about the scm-commits
mailing list