View previous topic :: View next topic |
Author |
Message |
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Wed Jul 30, 2003 6:27 pm Post subject: Worst Gentoo hacks you've had to do? |
|
|
For the longest time, for the weirdest fucking reason in the world, Gentoo tried to modprobe modules from the /dev directory. Correct me if I'm wrong, but modules don't usually go to the /dev directory, do they?
As a forced result, I had to make a script that was essentially this:
Code: |
export isdevthere=echo $* | grep /dev
if [ isdevthere == 1 ] then return 1;
else /sbin/modprobe-bin $*
|
This is not the actual script (it took me a while to make - bash is so damn confusing!).
Now I'm having problems when restarting, starting, or stopping an init script (i.e. /sbin/rc tries to do it twice...!?) but I am not going to screw around with rc, because sometimes it just fixes itself and when it does get fixed, my fix doesn't work anymore.
What's the worst Gentoo hack/fix you had to do? |
|
Back to top |
|
|
lisa Retired Dev
Joined: 01 Jun 2003 Posts: 273 Location: York, UK again! Horray!
|
Posted: Wed Jul 30, 2003 6:29 pm Post subject: Re: Worst Gentoo hacks you've had to do? |
|
|
FxChiP wrote: | What's the worst Gentoo hack/fix you had to do? |
Various games to get around gd 1.8 when I explicitly wanted 2.x installed.
x86 system and it thinks 1.8 is an upgrade. oi. no. _________________ Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think) |
|
Back to top |
|
|
Lovechild Advocate
Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Wed Jul 30, 2003 7:02 pm Post subject: |
|
|
to get software RAID working with baselayout on kernel 2.5/2.6 (before I started using EVMS) I had to remove the entire RAID logic in checkfs.. that was so ugly but I was to lazy to find the real reason why it failed. |
|
Back to top |
|
|
avenj Retired Dev
Joined: 11 Oct 2002 Posts: 495 Location: New Hampshire
|
Posted: Thu Jul 31, 2003 1:28 am Post subject: |
|
|
No, modules don't come from /dev, but some applications will try to modprobe a device name because the device name is (or can be) specified in /etc/modules.conf (aliased to a module). |
|
Back to top |
|
|
avenj Retired Dev
Joined: 11 Oct 2002 Posts: 495 Location: New Hampshire
|
Posted: Thu Jul 31, 2003 1:30 am Post subject: Re: Worst Gentoo hacks you've had to do? |
|
|
lisa wrote: | FxChiP wrote: | What's the worst Gentoo hack/fix you had to do? |
Various games to get around gd 1.8 when I explicitly wanted 2.x installed.
x86 system and it thinks 1.8 is an upgrade. oi. no. :) |
1.8 and 2.x are in different SLOT settings and can be installed side by side safely.
Portage uses U/D notification correctly - if it says U and the installed version is newer, they're in different SLOTs, otherwise it would say D. |
|
Back to top |
|
|
lisa Retired Dev
Joined: 01 Jun 2003 Posts: 273 Location: York, UK again! Horray!
|
Posted: Thu Jul 31, 2003 1:34 am Post subject: Re: Worst Gentoo hacks you've had to do? |
|
|
avenj wrote: | Portage uses U/D notification correctly - if it says U and the installed version is newer, they're in different SLOTs, otherwise it would say D. |
It had said UD and it would compile 1.x and then break mod_php. _________________ Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think) |
|
Back to top |
|
|
avenj Retired Dev
Joined: 11 Oct 2002 Posts: 495 Location: New Hampshire
|
Posted: Thu Jul 31, 2003 1:40 am Post subject: Re: Worst Gentoo hacks you've had to do? |
|
|
lisa wrote: | avenj wrote: | Portage uses U/D notification correctly - if it says U and the installed version is newer, they're in different SLOTs, otherwise it would say D. |
It had said UD and it would compile 1.x and then break mod_php. |
That's interesting...:
2.0.15-r1:
SLOT="2"
1.8.4-r2:
SLOT="0"
[avenj@cerberus libgd]$ epm -q libgd
libgd-1.8.4
libgd-2.0.15-r1
Wait.. do you mean GD rather than gd? |
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 993 Location: Quebec, Canada
|
Posted: Thu Jul 31, 2003 5:25 am Post subject: |
|
|
right the worst I had to do I'm still stuck with.
VMWare is being a bitch and will sometimes refuse to start a machine after giving me an error about DGA not being enabled (it is)
Found a way to fix it but it took me almost 10 minutes to do the whole thing by hand, so had to make a script that removed all the files in /tmp that had to do with vmware and re-do some of the configs.
still don't get why it does that. _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it. |
|
Back to top |
|
|
FxChiP Tux's lil' helper
Joined: 14 Apr 2003 Posts: 103
|
Posted: Thu Jul 31, 2003 6:06 pm Post subject: |
|
|
madchaz, care to tell me how to enable DGA (or how to make sure it's enabled)?
Anyway, one time, because of a date/time error, Gentoo wouldn't run ***ANY*** init scripts. So I ended up building all of the init script names into /sbin/rc. Then I fixed the date and time and it kept reloading everything until I removed the hardcoded names. |
|
Back to top |
|
|
|