Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Worst Gentoo hacks you've had to do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
FxChiP
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 103

PostPosted: Wed Jul 30, 2003 6:27 pm    Post subject: Worst Gentoo hacks you've had to do? Reply with quote

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
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Wed Jul 30, 2003 6:29 pm    Post subject: Re: Worst Gentoo hacks you've had to do? Reply with quote

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
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Jul 30, 2003 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
avenj
Retired Dev
Retired Dev


Joined: 11 Oct 2002
Posts: 495
Location: New Hampshire

PostPosted: Thu Jul 31, 2003 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message
avenj
Retired Dev
Retired Dev


Joined: 11 Oct 2002
Posts: 495
Location: New Hampshire

PostPosted: Thu Jul 31, 2003 1:30 am    Post subject: Re: Worst Gentoo hacks you've had to do? Reply with quote

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
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Thu Jul 31, 2003 1:34 am    Post subject: Re: Worst Gentoo hacks you've had to do? Reply with quote

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
View user's profile Send private message
avenj
Retired Dev
Retired Dev


Joined: 11 Oct 2002
Posts: 495
Location: New Hampshire

PostPosted: Thu Jul 31, 2003 1:40 am    Post subject: Re: Worst Gentoo hacks you've had to do? Reply with quote

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
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 993
Location: Quebec, Canada

PostPosted: Thu Jul 31, 2003 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message
FxChiP
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 103

PostPosted: Thu Jul 31, 2003 6:06 pm    Post subject: Reply with quote

madchaz, care to tell me how to enable DGA (or how to make sure it's enabled)? :P

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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