summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@gentoo.org>2012-04-25 10:35:55 +0000
committerFabio Erculiani <lxnay@gentoo.org>2012-04-25 10:35:55 +0000
commit2cae41b565301233305833fd2157244b46ba22f2 (patch)
tree2cbd41c6e5005930db07cc4279322d5f612ad08e /app-emulation/emul-linux-x86-gtklibs
parentsync pango-querymodules usage with emul-linux-x86-gtklibs (diff)
downloadgentoo-2-2cae41b565301233305833fd2157244b46ba22f2.tar.gz
gentoo-2-2cae41b565301233305833fd2157244b46ba22f2.tar.bz2
gentoo-2-2cae41b565301233305833fd2157244b46ba22f2.zip
check if mktemp returned the expected path
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'app-emulation/emul-linux-x86-gtklibs')
-rw-r--r--app-emulation/emul-linux-x86-gtklibs/ChangeLog7
-rw-r--r--app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild14
-rw-r--r--app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild14
3 files changed, 32 insertions, 3 deletions
diff --git a/app-emulation/emul-linux-x86-gtklibs/ChangeLog b/app-emulation/emul-linux-x86-gtklibs/ChangeLog
index 66ca1a8c4a81..8a7519495744 100644
--- a/app-emulation/emul-linux-x86-gtklibs/ChangeLog
+++ b/app-emulation/emul-linux-x86-gtklibs/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/emul-linux-x86-gtklibs
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.101 2012/04/25 10:02:24 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.102 2012/04/25 10:35:55 lxnay Exp $
+
+ 25 Apr 2012; Fabio Erculiani <lxnay@gentoo.org>
+ emul-linux-x86-gtklibs-20110928.ebuild,
+ emul-linux-x86-gtklibs-20120127.ebuild:
+ check if mktemp returned the expected path
25 Apr 2012; Fabio Erculiani <lxnay@gentoo.org>
emul-linux-x86-gtklibs-20110928.ebuild,
diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild
index f41678a1c5fd..c8ca162d531e 100644
--- a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild
+++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild,v 1.10 2012/04/25 10:02:24 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20110928.ebuild,v 1.11 2012/04/25 10:35:55 lxnay Exp $
EAPI="4"
@@ -20,6 +20,10 @@ my_gdk_pixbuf_query_loaders() {
unset __GL_NO_DSO_FINALIZER
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_query_loaders)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if gdk-pixbuf-query-loaders32 > "${tmp_file}"; then
cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache"
@@ -36,6 +40,10 @@ my_pango_querymodules() {
mkdir -p "${PANGO_CONFDIR}"
local pango_conf="${PANGO_CONFDIR}/pango.modules"
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXpango_querymodules)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if pango-querymodules32 > "${tmp_file}"; then
cat "${tmp_file}" > "${pango_conf}"
@@ -52,6 +60,10 @@ my_gtk_query_immodules() {
mkdir -p "${GTK2_CONFDIR}"
local gtk_conf="${ROOT}${GTK2_CONFDIR}/gtk.immodules"
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if gtk-query-immodules-2.0-32 > "${tmp_file}"; then
cat "${tmp_file}" > "${gtk_conf}"
diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild
index 41868d08db30..a3c1a43fa931 100644
--- a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild
+++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild,v 1.8 2012/04/25 10:02:24 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20120127.ebuild,v 1.9 2012/04/25 10:35:55 lxnay Exp $
EAPI="4"
@@ -20,6 +20,10 @@ my_gdk_pixbuf_query_loaders() {
unset __GL_NO_DSO_FINALIZER
local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if gdk-pixbuf-query-loaders32 > "${tmp_file}"; then
cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache"
@@ -36,6 +40,10 @@ my_pango_querymodules() {
mkdir -p "${PANGO_CONFDIR}"
local pango_conf="${PANGO_CONFDIR}/pango.modules"
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXpango_querymodules)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if pango-querymodules32 > "${tmp_file}"; then
cat "${tmp_file}" > "${pango_conf}"
@@ -52,6 +60,10 @@ my_gtk_query_immodules() {
mkdir -p "${GTK2_CONFDIR}"
local gtk_conf="${ROOT}${GTK2_CONFDIR}/gtk.immodules"
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules)
+ if [ -z "${tmp_file}" ]; then
+ ewarn "Cannot create temporary file"
+ return 1
+ fi
if gtk-query-immodules-2.0-32 > "${tmp_file}"; then
cat "${tmp_file}" > "${gtk_conf}"