Archive

Archive for September, 2006

some news

September 29th, 2006 No comments

just to fill this space, some info whats going to be:

just discovered: Microsoft Fingerprint Reader Driver for Linux

i will create some sort of simple howto/tutorial how to write your own kernel module and how to write your own usb-device driver. stay tuned :-)

Categories: funstuff Tags:

howto distcc with different CFLAGS

September 27th, 2006 No comments

basics over there: http://www.gentoo.org/doc/en/distcc.xml

so simple but great:
Definitions:
Computer A has much more power than machine B.
Computer A has the following CFLGAS in make.conf : "-O2 -march=athlon-xp"
Computer B has the following CFLGAS in make.conf : "-O2 -march=pentium-m"

When you try to compile something (eg emerge system) on Computer B, it will fail, as A cannot understand the other parameter.

Solution to compile with distcc on Computer B:
CFLAGS="-O2 -march=i686" time emerge -v system

(
this is not the best solution as it will leave out optimizations for your computer, maybe someone has a better idea ...)

you should read this: http://linuxreviews.org/howtos/compiling/

Categories: gentoo Tags:

how to unmask everything to install a certain package

September 15th, 2006 No comments

use the script below:

usage: ./getmask.sh world
(add all masked packages to /etc/portage/package.keywords and repeats until no masks exists any more)

getmask.sh


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
echo "### edited by unmask-script below" >> /etc/portage/package.keywords

#LAST MASK
LM=""

while [ "$OK" != "OK" ]
do
echo "searching for masks ..."
#get emerge output
C=$(emerge -ptvND $1 | grep masked | grep keyword)

if [ "$C" = "" ] ; then
    OK="OK"
    echo "everythings fine, it should emerge now!"
else
    #get package name
    A=$(echo $C | awk '{ print $2 }')
   
    #get keyword
    KW=$(echo $C  | awk '{ print $(NF-1) }')
   
    #get package version number
    V=$(echo $A | awk -F"-" '{ print $(NF) }')
   
    #package without version number
    B=$(echo $A | awk -F"-$V" '{ print $1 }')

    if [ "$B" = "$LM" ] ; then
        echo "could not resolve symbol, try to unmask it by hand:"
        echo "$B"
        echo "(remove version in the keywords-file an rerun this script)"
        exit -1
    fi
    LM=$B
    echo "adding $B $KW ..."
    echo "$B $KW" >> /etc/portage/package.keywords
fi
done

for example:

1
2
3
4
5
6
7
# ./getmask.sh world
searching for masks ...
adding x11-drivers/xf86-video-fbdev ~x86 ...
searching for masks ...
adding x11-drivers/xf86-video-imstt ~x86 ...
searching for masks ...
everythings fine, it should emerge now!
Categories: funstuff Tags:

why enigmail and gpg does not work anymore after update

September 3rd, 2006 No comments
Categories: gentoo Tags: