aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2020-12-31 12:08:16 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-12-31 12:22:35 +0000
commit67ac02f3abb1bacda57b6166662a1b526814225e (patch)
tree9f91fff6ecda6581eccfa52f508ebf7422a322f7 /crossdev
parentcrossdev: explicitly avoid USE=hardened for gcc on mingw targets (diff)
downloadcrossdev-67ac02f3abb1bacda57b6166662a1b526814225e.tar.gz
crossdev-67ac02f3abb1bacda57b6166662a1b526814225e.tar.bz2
crossdev-67ac02f3abb1bacda57b6166662a1b526814225e.zip
crossdev: stop maintaining /etc/portage/categories
portage uses profiles/categories from all overlays and we don't need to define them in /etc/portage/categories Closes: https://bugs.gentoo.org/762772 Signed-off-by: Sven Wegener <swegener@gentoo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'crossdev')
-rwxr-xr-xcrossdev16
1 files changed, 8 insertions, 8 deletions
diff --git a/crossdev b/crossdev
index 3f75778..d53a6e8 100755
--- a/crossdev
+++ b/crossdev
@@ -595,7 +595,7 @@ uninstall() {
done < <(find "${CONFIGROOT}"/repos.conf -type f -print0)
fi
# crossdev stopped creating 'package.keywords' in Jan 2020
- for f in categories package.{accept_keywords,env,mask,keywords,use} profile/package.use.{force,mask} ; do
+ for f in package.{accept_keywords,env,mask,keywords,use} profile/package.use.{force,mask} ; do
f="${CONFIGROOT}/${f}"
rm -f "${f}"/cross-${CTARGET}
rmdir "${f}" 2>/dev/null
@@ -1336,13 +1336,13 @@ set_metadata() {
fi
}
-xmkdir -p "${CONFIGROOT}" "${CROSSDEV_OVERLAY}"/{cross-${CTARGET},profiles}
-for f in "${CONFIGROOT}" "${CROSSDEV_OVERLAY}"/profiles ; do
- f+="/categories"
- check_trailing_newline "${f}"
- grep -qs "^cross-${CTARGET}$" "${f}" \
- || echo cross-${CTARGET} >> "${f}"
-done
+xmkdir -p "${CROSSDEV_OVERLAY}"/{cross-${CTARGET},profiles}
+f="${CROSSDEV_OVERLAY}"/profiles/categories
+check_trailing_newline "${f}"
+grep -qs "^cross-${CTARGET}$" "${f}" \
+ || echo cross-${CTARGET} >> "${f}"
+
+xmkdir -p "${CONFIGROOT}"
cd "${CONFIGROOT}" || die "wtf!?"
for f in package.{accept_keywords,env,mask,use} env/cross-${CTARGET} profile/package.use.{force,mask} ; do
[[ -f ${f} ]] && die "please convert ${CONFIGROOT}/${f} to a directory"