[mingw-orc] Update to 0.4.22

mooninite mooninite at fedoraproject.org
Fri Nov 28 17:40:33 UTC 2014


commit 1051349c9a85438828eba5253fe0160016be6ccc
Author: Michael Cronenworth <mike at cchtml.com>
Date:   Fri Nov 28 11:40:29 2014 -0600

    Update to 0.4.22

 .gitignore                    |    2 +-
 mingw-orc.spec                |   25 ++++++++++++++++-----
 orc-selinux-tmplocation.patch |   47 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    2 +-
 4 files changed, 68 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 33d7e59..4e99374 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/orc-0.4.16.tar.gz
+/orc-0.4.22.tar.bz2
diff --git a/mingw-orc.spec b/mingw-orc.spec
index bd896f8..bae08b2 100644
--- a/mingw-orc.spec
+++ b/mingw-orc.spec
@@ -1,14 +1,19 @@
 %{?mingw_package_header}
 
 Name:           mingw-orc
-Version:        0.4.16
-Release:        5%{?dist}
+Version:        0.4.22
+Release:        1%{?dist}
 Summary:        Cross compiled Oil Run-time Compiler
 
 Group:          System Environment/Libraries
 License:        BSD
 URL:            http://code.entropywave.com/projects/orc/
-Source0:        http://code.entropywave.com/download/orc/orc-%{version}.tar.gz
+# Source0:	http://code.entropywave.com/download/orc/orc-%{version}.tar.gz
+# Tarfile created using git
+# git clone git://anongit.freedesktop.org/gstreamer/orc
+# git archive --format=tar --prefix=orc-%{version}/ orc-%{version} | bzip2 > orc-%{version}.tar.bz2
+Source0:        orc-%{version}.tar.bz2
+Patch0:         orc-selinux-tmplocation.patch
 
 BuildArch:      noarch
 
@@ -17,6 +22,8 @@ BuildRequires:  mingw64-filesystem >= 95
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw64-gcc
 
+BuildRequires:  autoconf automake libtool
+
 
 %description
 Orc is a library and set of tools for compiling and executing
@@ -63,18 +70,21 @@ The Orc compiler, to produce optimized code.
 
 %prep
 %setup -q -n orc-%{version}
+%patch0 -p1
+NOCONFIGURE=1 autoreconf -vif
 
 
 %build
 %mingw_configure \
     --enable-shared \
     --disable-static \
-    --disable-gtk-doc
-%mingw_make %{?_smp_mflags}
+    --disable-gtk-doc \
+    --enable-user-codemem
+%mingw_make %{?_smp_mflags} V=1
 
 
 %install
-%mingw_make_install "DESTDIR=$RPM_BUILD_ROOT"
+%mingw_make_install "DESTDIR=$RPM_BUILD_ROOT" INSTALL="install -p"
 
 # Libtool files don't need to be bundled
 find $RPM_BUILD_ROOT -name "*.la" -delete
@@ -114,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc $RPM_BUILD_ROOT%{mingw64_datadi
 
 
 %changelog
+* Fri Nov 28 2014 Michael Cronenworth <mike at cchtml.com> - 0.4.22-1
+- Updated to 0.4.22
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.16-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/orc-selinux-tmplocation.patch b/orc-selinux-tmplocation.patch
new file mode 100644
index 0000000..d226a67
--- /dev/null
+++ b/orc-selinux-tmplocation.patch
@@ -0,0 +1,47 @@
+From 0e31d7fc6a03faf1076dfd51b49401539c3ebed9 Mon Sep 17 00:00:00 2001
+From: Fabian Deutsch <fabiand at fedoraproject.org>
+Date: Tue, 2 Sep 2014 10:38:17 +0200
+Subject: TMPDIR becomes the last option
+
+Previously $TMPDIR and /tmp were the first options to try to use for
+intermediate files. To prevent name collisions, now user specific dirs ($HOME
+and $XDG_RUNTIME_DIR) are prefered over the user unspecific dirs ($TMP and
+/tmp).
+
+https://bugzilla.gnome.org/show_bug.cgi?id=735871
+
+diff --git a/orc/orccodemem.c b/orc/orccodemem.c
+index 7bb78d2..8bc2a48 100644
+--- a/orc/orccodemem.c
++++ b/orc/orccodemem.c
+@@ -266,21 +266,21 @@ orc_code_region_allocate_codemem (OrcCodeRegion *region)
+ {
+   const char *tmpdir;
+ 
+-  tmpdir = getenv ("TMPDIR");
++  tmpdir = getenv ("XDG_RUNTIME_DIR");
+   if (tmpdir && orc_code_region_allocate_codemem_dual_map (region,
+         tmpdir, FALSE)) return;
+ 
+-  if (orc_code_region_allocate_codemem_dual_map (region,
+-        "/tmp", FALSE)) return;
+-
+-  tmpdir = getenv ("XDG_RUNTIME_DIR");
++  tmpdir = getenv ("HOME");
+   if (tmpdir && orc_code_region_allocate_codemem_dual_map (region,
+         tmpdir, FALSE)) return;
+ 
+-  tmpdir = getenv ("HOME");
++  tmpdir = getenv ("TMPDIR");
+   if (tmpdir && orc_code_region_allocate_codemem_dual_map (region,
+         tmpdir, FALSE)) return;
+ 
++  if (orc_code_region_allocate_codemem_dual_map (region,
++        "/tmp", FALSE)) return;
++
+   if (orc_code_region_allocate_codemem_anon_map (region)) return;
+   
+   ORC_ERROR("Failed to create write and exec mmap regions.  This "
+-- 
+cgit v0.10.2
+
diff --git a/sources b/sources
index 8fd1ff5..667f03e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e482932e544c847761449b106ecbc483  orc-0.4.16.tar.gz
+a130c227ded6e314f31a6fd75267d77a  orc-0.4.22.tar.bz2


More information about the scm-commits mailing list