Summary: | app-portage/gentoolkit: revdep-rebuild does not understand symlinks | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ed Tomlinson <edt> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | tomaszg |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ed Tomlinson
2011-11-05 17:06:52 UTC
As a workaround, you could bind mount /mnt/sdb3/var to /var rather than using a symlink. This is just to confirm that using bind mounts works around the problem. quick patch @@ -512,7 +512,7 @@ # Dies when it can't change directories cd() { if builtin cd -P "$@"; then - if [[ $1 != $PWD ]]; then + if [[ $(readlink "$1") != $(readlink "$PWD") ]]; then # Some symlink malfeasance is going on die 1 "Working directory expected to be $1, but it is $PWD" fi Different issue under same description, may appear with crossdev-produced packages, i.e. in regular setups: ls -l /usr/lib lrwxrwxrwx 1 root root 5 Oct 6 2016 /usr/lib -> lib64 Result of a revdep-rebuild run: !!! Broken orphaned files: No installed package was found for the following: * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libstdc++.so.6.0.20 * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libitm.so.1.0.0 * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libgomp.so.1.0.0 * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libubsan.so.0.0.0 * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libasan.so.1.0.0 * /usr/lib64/gcc/armv7a-hardfloat-linux-gnueabi/4.9.4/libatomic.so.1.1.0 Package database refers to /usr/lib, while revdep-rebuild refers only to fully resolved path. |