summaryrefslogtreecommitdiff
path: root/app-portage/portage-utils/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-portage/portage-utils/files
reinit the tree, so we can have metadata
Diffstat (limited to 'app-portage/portage-utils/files')
-rw-r--r--app-portage/portage-utils/files/portage-utils-0.61-solaris.patch27
-rw-r--r--app-portage/portage-utils/files/post_sync8
-rw-r--r--app-portage/portage-utils/files/q-reinitialize3
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}
+: