From 5204be7e44b5b9cec11df8370d9520e0cadc248a Mon Sep 17 00:00:00 2001 From: Denis Leroy Date: Sat, 11 Aug 2007 19:30:29 +0000 Subject: [PATCH] Added patch to work around weird open() glibc macro thing --- brasero-0.6.0-open.patch | 11 +++++++++++ brasero.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 brasero-0.6.0-open.patch diff --git a/brasero-0.6.0-open.patch b/brasero-0.6.0-open.patch new file mode 100644 index 0000000..25824b3 --- /dev/null +++ b/brasero-0.6.0-open.patch @@ -0,0 +1,11 @@ +--- brasero-0.6.0/src/burn-transcode.c~ 2007-07-11 14:48:14.000000000 +0200 ++++ brasero-0.6.0/src/burn-transcode.c 2007-08-11 20:47:36.000000000 +0200 +@@ -1402,7 +1402,7 @@ + int fd; + gboolean result; + +- fd = open (transcode->priv->current->dest, O_WRONLY | O_CREAT | O_APPEND); ++ fd = (open)(transcode->priv->current->dest, O_WRONLY | O_CREAT | O_APPEND); + if (fd == -1) { + g_set_error (error, + BRASERO_BURN_ERROR, diff --git a/brasero.spec b/brasero.spec index be2265e..5a2200f 100644 --- a/brasero.spec +++ b/brasero.spec @@ -9,6 +9,7 @@ URL: http://www.gnome.org/projects/brasero/ Source0: http://ftp.gnome.org/pub/GNOME/sources/brasero/0.6/%{name}-%{version}.tar.bz2 Patch0: brasero-0.6.0-tooltips.patch Patch1: brasero-0.6.0-filterbug.patch +Patch2: brasero-0.6.0-open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext intltool @@ -45,6 +46,7 @@ desktop. %setup -q %patch0 -p1 -b .tooltips %patch1 -p1 -b .filter +%patch2 -p1 -b .open %build