View previous topic :: View next topic |
Author |
Message |
SoreGums n00b


Joined: 21 Mar 2004 Posts: 57
|
Posted: Wed Jul 18, 2007 11:54 pm Post subject: Squid requires kernel sources? |
|
|
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 |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Jul 19, 2007 1:52 am Post subject: |
|
|
See if "emerge -pvt" shows the sources as an actual dep of squid. _________________ Thomas S. Howard |
|
Back to top |
|
 |
SoreGums n00b


Joined: 21 Mar 2004 Posts: 57
|
Posted: Thu Jul 19, 2007 1:54 am Post subject: |
|
|
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 |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Jul 19, 2007 2:20 am Post subject: |
|
|
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 |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jul 19, 2007 3:02 am Post subject: |
|
|
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 |
|
 |
SoreGums n00b


Joined: 21 Mar 2004 Posts: 57
|
Posted: Thu Jul 19, 2007 3:05 am Post subject: |
|
|
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 |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Jul 19, 2007 3:11 am Post subject: |
|
|
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 |
|
 |
SoreGums n00b


Joined: 21 Mar 2004 Posts: 57
|
Posted: Thu Jul 19, 2007 3:15 am Post subject: |
|
|
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 |
|
 |
|