Problems removing orphan packages
freebsd at edvax.de
Fri Jan 12 05:04:38 UTC 2018
On Fri, 12 Jan 2018 12:22:08 +0800, 方坤 wrote:
> Last week, I ran `cd /usr/ports/devel/git ; make install clean` to install
> the Git package,
> I found that the "/deve/bison", "/shells/bash" and "www/w3m" packages also
> as the "devel/git" package need them.
> Today I ran `portmaster -s` to uninstall unused packages, I found the
> "/shells/bash" and "www/w3m" packages were on the listed. So I uninstalled
> all the
> packages in that list.
> I didn't understand why portmaster thinks that the "/deve/bison",
> "/shells/bash" and
> "www/w3m" packages were unused packages. So I ran
> `cd /usr/ports/devel/git ; make install clean` again, I found that the
> "/shells/bash" and "www/w3m" packages installed again.
> Is anyone can teach me why?
This looks strange. Git's Makefile doesn't specify w3m, bison
or bash as a dependency directly (not for running and not for
building git, if I read it correctly), so those seem to come
from one of Git's dependencies, which are p5-Error, libpcre,
p5-Authen-SASL, curl, libexpat, p5-Term-ReadKey, xmlto, and
cvsps (depending on actual build configuration). Maybe if you
further follow "dependency hell", you'll finally find out
where the three port requirements in question originate from.
By the way, if you're building with the default configuration,
you could try to "pkg install git" and see if the three other
ports are installed (as dependencies), which I assume would
_not_ be the case.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions