summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-10 14:19:35 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-10 14:22:53 -0400
commit163fc1a8feb3da92b814baa2ee7b492506f4ae51 (patch)
treef03b31d038121e4d05f91c07a278a8276d110ed7 /eclass
parentsys-cluster/util-vserver: drop old coreutils/mktemp dep (diff)
downloadgentoo-163fc1a8feb3da92b814baa2ee7b492506f4ae51.tar.gz
gentoo-163fc1a8feb3da92b814baa2ee7b492506f4ae51.tar.bz2
gentoo-163fc1a8feb3da92b814baa2ee7b492506f4ae51.zip
convert `mktemp` to `emktemp` from eutils
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnome2-utils.eclass4
-rw-r--r--eclass/office-ext-r1.eclass2
2 files changed, 3 insertions, 3 deletions
diff --git a/eclass/gnome2-utils.eclass b/eclass/gnome2-utils.eclass
index 476fb288237..59ab5861c35 100644
--- a/eclass/gnome2-utils.eclass
+++ b/eclass/gnome2-utils.eclass
@@ -15,7 +15,7 @@
# * GConf schemas management
# * scrollkeeper (old Gnome help system) management
-inherit multilib
+inherit eutils multilib
case "${EAPI:-0}" in
0|1|2|3|4|5) ;;
@@ -431,7 +431,7 @@ gnome2_gdk_pixbuf_update() {
fi
ebegin "Updating gdk-pixbuf loader cache"
- local tmp_file=$(mktemp -t tmp.XXXXXXXXXX_gdkpixbuf)
+ local tmp_file=$(emktemp)
${updater} 1> "${tmp_file}" &&
chmod 0644 "${tmp_file}" &&
cp -f "${tmp_file}" "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache" &&
diff --git a/eclass/office-ext-r1.eclass b/eclass/office-ext-r1.eclass
index a7afb15e4d8..f9492a839f3 100644
--- a/eclass/office-ext-r1.eclass
+++ b/eclass/office-ext-r1.eclass
@@ -164,7 +164,7 @@ UNOPKG_BINARY="/usr/lib64/openoffice/program/unopkg"
office-ext-r1_add_extension() {
debug-print-function ${FUNCNAME} "$@"
local ext=$1
- local tmpdir=$(mktemp -d --tmpdir="${T}")
+ local tmpdir=$(emktemp -d)
debug-print "${FUNCNAME}: ${UNOPKG_BINARY} add --shared \"${ext}\""
ebegin "Adding office extension: \"${ext}\""