Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squid requires kernel sources?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SoreGums
n00b
n00b


Joined: 21 Mar 2004
Posts: 57

PostPosted: Wed Jul 18, 2007 11:54 pm    Post subject: Squid requires kernel sources? Reply with quote

Code:
slice01 www # emerge -av squid

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-kernel/gentoo-sources-2.6.20-r8  USE="-build -symlink" 42,598 kB
[ebuild  N    ] net-proxy/squid-2.6.13-r1  USE="pam ssl (-ipf-transparent) -ldap -logrotate -nis (-pf-transparent) -qos -samba -sasl (-selinux) -snmp -zero-penalty-hit" 1,590 kB

Total: 2 packages (2 new), Size of downloads: 44,187 kB


Why do I need to have the kernel sources to install squid?
This is a vps on xen at slicehost...

weird...
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jul 19, 2007 1:52 am    Post subject: Reply with quote

See if "emerge -pvt" shows the sources as an actual dep of squid.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
SoreGums
n00b
n00b


Joined: 21 Mar 2004
Posts: 57

PostPosted: Thu Jul 19, 2007 1:54 am    Post subject: Reply with quote

didymos wrote:
See if "emerge -pvt" shows the sources as an actual dep of squid.

Code:
slice01 www # emerge -pvt squid

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] net-proxy/squid-2.6.13-r1  USE="pam ssl (-ipf-transparent) -ldap -logrotate -nis (-pf-transparent) -qos -samba -sasl (-selinux) -snmp -zero-penalty-hit" 1,590 kB
[ebuild  N    ]  sys-kernel/gentoo-sources-2.6.20-r8  USE="-build -symlink" 42,598 kB

Total: 2 packages (2 new), Size of downloads: 44,187 kB


weird - since its not really going to compile a kernel and just take up space there is no actual problem with this is there?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jul 19, 2007 2:20 am    Post subject: Reply with quote

Well, the ebuild uses the linux-info.eclass, and the hidden "kernel_linux" USE flag, so it looks like it requires configured kernel sources for something.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Jul 19, 2007 3:02 am    Post subject: Reply with quote

The answer is within the ebuild: /usr/portage/net-proxy/squid/squid-2.6.13-r1.ebuild
Code:
    if use kernel_linux; then
        myconf="${myconf} --enable-linux-netfilter"
        if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then
            myconf="${myconf} --enable-epoll"
Back to top
View user's profile Send private message
SoreGums
n00b
n00b


Joined: 21 Mar 2004
Posts: 57

PostPosted: Thu Jul 19, 2007 3:05 am    Post subject: Reply with quote

PaulBredbury wrote:
The answer is within the ebuild: /usr/portage/net-proxy/squid/squid-2.6.13-r1.ebuild
Code:
    if use kernel_linux; then
        myconf="${myconf} --enable-linux-netfilter"
        if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then
            myconf="${myconf} --enable-epoll"

Right ...
I'm no ebuild guru here - my knowledge starts at installing linux and pauses at inner workings of package installers and picks up again after the software is installed and needs to be setup/configured...
So what does that mean exactly?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jul 19, 2007 3:11 am    Post subject: Reply with quote

It checks to see if you've configured netfilter (iptables) and epoll I/O event notification, and enables support for them in squid. I only looked at the "inherit" and IUSE bits, mainly because I didn't really care what it needed the sources for, just that it needed them.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
SoreGums
n00b
n00b


Joined: 21 Mar 2004
Posts: 57

PostPosted: Thu Jul 19, 2007 3:15 am    Post subject: Reply with quote

didymos wrote:
It checks to see if you've configured netfilter (iptables) and epoll I/O event notification, and enables support for them in squid. I only looked at the "inherit" and IUSE bits, mainly because I didn't really care what it needed the sources for, just that it needed them.

Oh I see - now that makes sense, thanks :)

Aren't there other ways to find this out?

Like if I don't have any kernel sources installed, just a kernel - which is rare I guess since when you install Gentoo you do usually install a Kernel, except when said install is stripped and imaged to use in a xen(or other vsw)...
Even if I did have them installed they still don't actually reveal if these things are on or not...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum