diff options
Diffstat (limited to 'app-portage/portage-utils/files')
-rw-r--r-- | app-portage/portage-utils/files/portage-utils-0.61-solaris.patch | 27 | ||||
-rw-r--r-- | app-portage/portage-utils/files/post_sync | 8 | ||||
-rw-r--r-- | app-portage/portage-utils/files/q-reinitialize | 3 |
3 files changed, 38 insertions, 0 deletions
diff --git a/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch b/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch new file mode 100644 index 000000000000..8bcc9c1b0bad --- /dev/null +++ b/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch @@ -0,0 +1,27 @@ +qcache: work around missing d_type/DT_DIR + +--- qcache.c ++++ qcache.c +@@ -750,13 +750,21 @@ + + xasprintf(&catpath, "%s/dep/%s", portedb, data->overlay); + dir = opendir(catpath); +- while ((de = readdir(dir))) ++ while ((de = readdir(dir))) { ++#ifndef DT_DIR ++ struct stat s; ++ if (stat(de->d_name, &s)) ++ continue; ++ if (S_ISDIR(s.st_mode) && de->d_name[0] != '.') { ++#else + if (de->d_type == DT_DIR && de->d_name[0] != '.') { ++#endif + bool ok; + allcats = add_set_unique(de->d_name, allcats, &ok); + if (ok) + ++numcat; + } ++ } + closedir(dir); + free(catpath); + diff --git a/app-portage/portage-utils/files/post_sync b/app-portage/portage-utils/files/post_sync new file mode 100644 index 000000000000..e94ea5d0257a --- /dev/null +++ b/app-portage/portage-utils/files/post_sync @@ -0,0 +1,8 @@ +#!/bin/sh +# Copyright 2006-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +for f in /etc/portage/postsync.d/* ; do + [ -x "${f}" ] && "${f}" +done +: diff --git a/app-portage/portage-utils/files/q-reinitialize b/app-portage/portage-utils/files/q-reinitialize new file mode 100644 index 000000000000..7bca1a86b3ae --- /dev/null +++ b/app-portage/portage-utils/files/q-reinitialize @@ -0,0 +1,3 @@ +#!/bin/sh +[ -x /usr/bin/q ] && /usr/bin/q -r ${PORTAGE_QUIET:+-q} +: |