View previous topic :: View next topic |
Author |
Message |
dperik n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Apr 2006 Posts: 2
|
Posted: Wed Apr 19, 2006 3:24 pm Post subject: Installing dsniff without pulling in X |
|
|
When I went to emerge -pvuD world today on my headless Internet Gateway / router machine, for some reason it wanted to pull in X. Being a headless router/machine, I didn't want X installed. I found the culprit was an updated dsniff ebuild.
It seems the >=dsniff 2.3-r7 ebuilds want to depend on either X or libXmu. I didn't want an X server on this machine, so I went to figuring out how to get libXmu on there instead. Here's how I did it:
In /etc/portage/package.keywords:
Code: | # This is all for dsniff
=sys-apps/man-1.6b-r2 ~x86
=x11-misc/util-macros-1.0.1 ~x86
=x11-proto/kbproto-1.0.2 ~x86
=x11-proto/xextproto-7.0.2 ~x86
=x11-proto/xproto-7.0.4 ~x86
=x11-proto/xf86bigfontproto-1.1.2 ~x86
=x11-proto/inputproto-1.3.2 ~x86
=x11-libs/libXau-1.0.0 ~x86
=x11-proto/bigreqsproto-1.0.2 ~x86
=x11-libs/libXdmcp-1.0.0 ~x86
=x11-proto/xcmiscproto-1.1.2 ~x86
=x11-libs/xtrans-1.0.0 ~x86
=x11-libs/libX11-1.0.0-r2 ~x86
=x11-libs/libICE-1.0.0 ~x86
=x11-libs/libSM-1.0.0 ~x86
=x11-libs/libXt-1.0.0-r1 ~x86
=x11-libs/libXext-1.0.0-r1 ~x86
=x11-libs/libXmu-1.0.0 ~x86 |
That allows libXmu to be installed. Still, the order of dependency checks in the dsniff ebuild still wants to pull in virtual/x11. So we need to put this is /etc/portage/package.mask:
After that, and emerge of dsniff should pull in libXmu and required dependencies instead of X. I assume that at some point these dependent packages may change their version numbers and still be masked, which means an update later may break. But I like to put version numbers in my package.keywords to keep from using masked packages forever.
Hope this helps someone.
- Dan |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BasketCase n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/176505888445402deeb6103.gif)
Joined: 02 Sep 2003 Posts: 67 Location: Orlando, FL
|
Posted: Wed Apr 19, 2006 4:56 pm Post subject: |
|
|
I simply deleted the requirement from the ebuild file and it compiled fine. It didn't even complain that X wasn't installed.
Any special reason why this isn't a USE flag? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dperik n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Apr 2006 Posts: 2
|
Posted: Wed Apr 19, 2006 6:17 pm Post subject: |
|
|
Good point. I just searched bugs and saw this. I suppose they'll come out with the use flag soon enough: |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BasketCase n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/176505888445402deeb6103.gif)
Joined: 02 Sep 2003 Posts: 67 Location: Orlando, FL
|
Posted: Wed Apr 19, 2006 6:47 pm Post subject: |
|
|
I am pretty sure it used to have an X USE flag but for some reason that has been removed. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|