ports/<lang> directories

What is the purpose of those and could I get rid of them w/o interfering the work of portupgrade and portmanager?
 
/usr/ports/lang is a whopping 15 MB in size. Why complicate things? Just leave them in. You'll need /usr/ports/lang/perl* anyway, and quite likely quite a few others over time.
 
Oh, no! My bad.

By <lang> I had in mind arabic, chinese, french, german, hebrew, hungarian...etc

My "problem" with these directories is not the space they occupy but that they contain a number of ports with names which repeat in other "categories". This interferes with searching and changing in the correct directory. In example:
Code:
cd /usr/ports/*/mplayer
cd /usr/ports/*/aspell

The first will succeed, while the second will give an error.
 
Install psearch, then you won't need to resort to hackery like cd /usr/ports/*/whatever or surgically removing parts of the ports tree. And it's a lot simpler to find ports that you don't know the exact name of.
 
OK. I've removed those dirs, but it appears there were absolutely unneede dependencies in them that were installed on my system. :(
I'll get back with more info after investigating the problem. In the meantime I'll give psearch a try.

ADDENDUM:

It appears I have 2 unwanted ports installed:
polish/libgadu and hebrew/hspell.

The first one is a dependency of net/kdenetwork4:
Code:
# portsdb -r polish/libgadu
polish/ekg2
polish/ekg
net-im/centerim-devel
polish/gnugadu2
net/kdenetwork4
polish/kadu
x11/kde4

Why? I don't know. (I have kopete compiled w/o gadu protocol support). And what is a network protocol library doing in a localisation directory...

The second package is even better - it's a full mystery to me:
Code:
root@bsd /usr/ports/net/kdenetwork4
 # portsdb -r hebrew/hspell
root@bsd /usr/ports/net/kdenetwork4
 # portsdb -R hebrew/hspell
root@bsd /usr/ports/net/kdenetwork4
 # portsdb -M hebrew/hspell
root@bsd /usr/ports/net/kdenetwork4
 #
 
ports-mgmt/psearch is fine, but now that I've found about the two aforementioned packages, I'm turning this into a personal fight against those dirs. :)

Seriously, yesterday I managed to get rid of libgadu before I went to sleep. KDE4 needed rebuilding w/o kdenetworking. Today I'm going to hunt down which port is pulling hspell in.
 
[solved]

I used "grep -ri hspell /usr/ports".
kdelibs4 was the only installed port that was "depending" on hspell. I deleted the "offending" line from the Makefile and reinstalled kdelibs4. "portmagaer -slid" offered me to nuke hspell, what I did with pleasure. Now I deleted all language dirs and put their names in the REFUSE variable for portsnap. Everything seems ok for now.

Thanks, everyone!
 
Back
Top