Makepkg/abs tutorial

Some people on irc have been wondering about the proper way to compile their own Arch packages using the Arch Build System (ABS).  This is a quick tutorial describing the steps I took to get myself setup to do this.  I don't claim to be an ABS/makepkg guru, but hopefully there will be enough info here to get people started.
Background info
>>  ABS is a system for compiling Arch packages from source code
>>  After installing ABS, the ABS tree resides in /var/abs
>>  Within /var/abs are directories for each package available to Arch users via pacman
>>  Within each of these directories is a file called PKGBUILD which contains the directions for compiling the package from source, including version info and urls to source files.
>>  The primary tool for invoking PKGBUILD scripts is the makepkg utility
>>  Most PKGBUILDs will successfully compile a package when used as a normal user using fakeroot.  This is conducive to maintaining a safe and secure environment when executing PKGBUILD scripts.
Obtaining the ABS tree
The first step is to obtain the ABS tree which contains all the PKGBULDs for the packages we wish to build from source.  This is as simple as running abs as root:
[root@limbo root]# abs
Installing fakeroot
Again, fakeroot is used to provide protection against accidently overwriting/deleting/creating files or directories. 
[root@limbo root]# pacman -S fakeroot
Setting up a directory in which to build our packages
*  This section can be omitted if you choose to build packages in a dedicated directory in a normal users home directory.  I chose this method to maintain some structure and organization for my packages.
>>  This section is open to opinion and personal preference. 
>>  For a normal user to be able to run makepkg on a PKGBUILD, they must have write access to the directory the PKGBUILD is contained in.  To accomplish this and maintain security, we do the following:
>>  Create an abs group and make a normal user a member of that group.  In this example, I want the user john to be able to write to the directory we are going to create for local packages.
[root@limbo root]# groupadd abs
[root@limbo root]# usermod -G users,slocate,abs john
>>  Just a note, the user must log out and log back in for group changes to take effect.
>>  Now, we edit the directory /var/abs/local so that members of the abs group will have write permissions to it:
[root@limbo root]# chown root.abs /var/abs/local
[root@limbo root]# chmod 775 /var/abs/local
Building a package from source using ABS
As an example, let's suppose we want to build the terminal emulator aterm using ABS.  Here are the steps we would take (the whoami's are not necessary, but are just there to emphasize which user is doing which parts):
[john@limbo john]$ whoami
john
[john@limbo john]$ cd /var/abs/local/
[john@limbo local]$ find /var/abs/ -iname "*aterm*"
/var/abs/x11/aterm
[john@limbo local]$ mkdir aterm
[john@limbo local]$ cp /var/abs/x11/aterm/* aterm/
[john@limbo local]$ cd aterm/
[john@limbo aterm]$ ls
PKGBUILD linuxkeys.patch
[john@limbo aterm]$ makepkg -c
** makepkg invokes the PKGBUILD script and created an Arch package which is suffixed with pkg.tar.gz. The -c cleans up a number of directories created by makepkg during the build process. **
[john@limbo aterm]$ ls
PKGBUILD aterm-0.4.2.tar.gz linuxkeys.patch aterm-0.4.2-3.pkg.tar.gz
[john@limbo aterm]$ su
Password:
[root@limbo aterm]# whoami
root
[root@limbo aterm]# pacman -A aterm-0.4.2-3.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
upgrading aterm... done.
If you are upgrading a package you already have installed on your system, use "pacman -U pkgname-pkgver.pkg.tar.gz" as opposed to "pacman -A pkgname-pkgvery.pkg.tar.gz" as shown above.
Well, I hope that helps some people.  It's late, so I have likely missed something, so please post feedback if something is not working properly. 
Good luck!

Nice methodology for packaging.  I thought I would try it out myself and these are my updates.  Times have changed, life moves on, and this is what happens:
root@boogie:/var/abs/local/aterm> makepkg -c
==> Making package: aterm 0.4.2-4 (Thu Jul 28 19:49:38 EDT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading aterm-0.4.2.tar.bz2
--19:49:38--  http://umn.dl.sourceforge.net/sourcefor … 4.2.tar.bz 2
           => `aterm-0.4.2.tar.bz2'
Resolving umn.dl.sourceforge.net... 128.101.240.209
Connecting to umn.dl.sourceforge.net|128.101.240.209|:80... failed: Connection r efused.
==> ERROR: Failed to download aterm-0.4.2.tar.bz2
==> Aborting...
root@boogie:/var/abs/local/aterm>
Let's go to aterm-1.0.0.tar.bz2.  No appropriate emoticons to indicate the fear!!
New PKGBUILD:
root@boogie:/var/abs/local/aterm> cat PKGBUILD
# $Id: PKGBUILD,v 1.8 2004/01/29 13:22:41 dale Exp $
# Maintainer: dale <[email protected]>
# Contributor: Tom Newsom <[email protected]>
# Modified by:
pkgname=aterm
pkgver=1.0.0
pkgrel=5
pkgdesc="An xterm replacement with transparency support"
depends=('xfree86')
url=http://aterm.sourceforge.net/
source=( http://easynews.dl.sourceforge.net/sour … er.tar.bz2 )
md5sums=('ceb64c62ae243a7fc3ddb0d6f9a19faa')
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-transparency=yes
    --enable-background-image --enable-fading --enable-menubar
    --enable-graphics
  make || return 1
  make prefix=$startdir/pkg/usr install
root@boogie:/var/abs/local/aterm>
Couldn't find the md5sums so I had to do them myself. 
root@boogie:/var/abs/local/aterm> makepkg -c
==> Making package: aterm 1.0.0-5 (Thu Jul 28 20:51:27 EDT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found aterm-1.0.0.tar.bz2 in build dir
==> Validating source files with MD5sums
    aterm-1.0.0.tar.bz2 ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=bzip2 -xf aterm-1.0.0.tar.bz2
==> Starting build()...
configuring for aterm 1.00.00
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for perl... /usr/bin/perl
checking for find... /usr/bin/find
checking for xargs... /usr/bin/xargs
checking for ldconfig... /sbin/ldconfig
checking for sed... /bin/sed
checking for wait3 that fills in rusage... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking for XShapeCombineMask in -lXext... yes
checking if distributed as part of AfterStep... no
checking installed libAfterImage... afterimage-config not found - no AfterStep i ntegration available.
AfterStep integration
To enable background image support you will need to download and install
libAfterImage from ftp://ftp.afterstep.org/stable/libAfterImage/ and then re-run  this script.
whoops, I don't care
make[1]: Leaving directory `/var/abs/local/aterm/src/aterm-1.0.0/src/graphics'
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Generating .FILELIST file...
==> Compressing package...
==> Cleaning up...
==> Finished making: aterm  (Thu Jul 28 20:51:43 EDT 2005)
root@boogie:/var/abs/local/aterm>
For those watching closely, I had to remove the patch:
Previous attempt:
==> Starting build()...
patching file src/feature.h
Hunk #1 FAILED at 123.
1 out of 1 hunk FAILED -- saving rejects to file src/feature.h.rej
Questions:
1.  Why dowload each time?  URLs come and go and change.  Informational?  It is smart enough not to actually download after the first time.
2.  xfree86 is not on my system.  Why work?  xorg good, xfree bad.

Similar Messages

  • Kernel The Arch Way

    Hi,
    after some problems with alsa and #archlinux irc talk I decided to try and build my own kernel. As I see it's lot of learning. I already read The Arch Way, ABS - The Arch Build System, The Arch package making HOW-TO - with guidelines, man makepkg, dependencies thread, makepkg/abs tutorial thread, PKGBUILD help, Arch CVS & SVN PKGBUILD guidelines, Arch Packaging Standards, Kernel Compilation, Kernel Compilation with ABS, Custom Kernel Compilation with ABS, Kernel Patches and Patchsets. And at last I read this thread and I feel the same... Btw I thing kernel compilation also has lots to do with mkinitcpio, right?
    I want to build kernel that would have all necessary stuff for my hw configuration built in. Thats the fastest boot, right? But actually all this wiki stuff got me more confused than I was before .
    What would be the best way? I know all the hw details, so just do 'make menuconfig' and select everything as built in (*), maybe add some patches and automate this using one of example PKGBUILDs?
    I'm still reading forums and googling but I believe some of you can point me faster.

    It is a bit of learning at first.  Once you understand how it works it's very simple.  There is no shortcut, I'm afraid, it seems like you're looking for one...  If there was one it would be outlined in the wiki most likely.
    As far as building kernel with all the hw stuff built in...  IMO, it's not a good idea.  This is something that needed to be done in the past when there was no way to autoload system specific modules at boot.  Boot time benefits would be negligible.  The kernel wouldn't be any faster either.  And you would have to recompile every time there is a kernel update if you wanted to keep up with Arch repos - the net result would be wasting time and speed.
    Kernel compilation itself has nothing to do with mkinitcpio - mkinitcpio is only necessary to generate boot image which happens after the kernel is already compiled; pacman will do it for you completely automatically if you customize the Arch kernel PKGBUILD instead of compiling manually.

  • Can't get X to work properly (ATI AIW 9800)

    Hello,
    I have a few problems. My first problem is this. The dpi was messed up when i first install, so i thought no big deal, I'll just go and configure the defaultserverargs setting in the startx script to "-dpi 75". This does not seem to work. Secondly,I can't get gnome to work as my default window manager. I put this line in my .xinitrc file in my home directory:
    exec gnome-session
    I also tried this:
    exec /opt/gnome/bin/gnome-session
    My last problem is that when i try to install the ati fglrx drivers with the stock kernel arch package but whenever the fglrx module is called, it says that the module doesn't exist. One thing i might mension which might be of importance is that i compiled a custom kernel during install without SMP and preemtivity so i could use my rt2500 wireless card. Thanks in advance for the help
    cheers,
    -Lukas

    sinisterguy:  You're going to need to build your own kernel module, afaik you can't just symlink a module built for another kernel and expect it to work.
    As root, run
    abs
    Once that's done (it'll check out a bunch of stuff from cvs), change to your normal user and either make a directory for the new package, or cd to some temp directory, then:
    cp /var/abs/extra/modules/ati-drivers-arch/* .
    vim PKGBUILD
    then make the following changes:
    pkgname=ati-drivers-arch
    to
    pkgname=ati-drivers-custom
    (or whatever you want to call the package)
    depends=('ati-drivers' 'kernel26')
    to
    depends=('ati-drivers')
    source=(https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm fireglcontrol.desktop)
    to
    source=(http://www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm fireglcontrol.desktop)
    (for some reason I can never get the source from the https address through makepkg.)
    and
    _kernel=2.6.15-ARCH
    to
    _kernel=`uname -r`
    Save and quit, then run
    makepkg
    - this'll make you a brand new kernel module package that you can install with
    pacman -A ati-drivers-custom-8.22.5-2.pkg.tar.gz
    You'll need to update this package every update to the ati-drivers in the same way you originally built it.
    If you need more information, ABS is a good place to look, as well as man makepkg. 
    </abs tutorial>

  • SOLVED: xserver crashing when trying to start Open Office.

    This is solved. It was my mistake. I had upgraded xserver by enabling testing repo earlier which is explained in my previous post. While downgrading xserver the upgraded libgl remained. I reinstalled xorg step by step once again and there are no crashes now. Sorry for the trouble.
    I have installed LXDE desktop on Archlinux after FTP installation. I am starting with startx after logging in Cli. I am using vesa driver since radeon is giving blank screen on external monitor.
    When I try to start Open Office xserver crashes and I am back at Cli. This also happens when I try to maximize youtube video to full screen, therefore, this may be related to Flash.
    Xorg.0.log before restarting xserver is as follows:
    X.Org X Server 1.4.2
    Release Date: 11 June 2008
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.26-ARCH i686
    Current Operating System: Linux myhost 2.6.26-ARCH #1 SMP PREEMPT Tue Sep 9 10:15:21 UTC 2008 i686
    Build Date: 17 August 2008  10:53:07AM
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    Module Loader present
    Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Mon Sep 22 06:19:10 2008
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) ServerLayout "Xorg Configured"
    (**) |-->Screen "Screen0" (0)
    (**) |   |-->Monitor "Monitor0"
    (**) |   |-->Device "Card0"
    (**) |-->Input Device "Keyboard0"
    (**) |-->Input Device "USB Mouse"
    (**) Option "AllowMouseOpenFail" "true"
    (==) Automatically adding devices
    (==) Automatically enabling devices
    (WW) The directory "/usr/share/fonts/PEX" does not exist.
        Entry deleted from font path.
    (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/cyrillic".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/cyrillic").
    (WW) The directory "/usr/share/fonts/Type1" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/ttf/western" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/ttf/decoratives" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype/openoffice" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype/ttf-bitstream-vera" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/latex-ttf-fonts" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/defoma/CID" does not exist.
        Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/defoma/TrueType" does not exist.
        Entry deleted from font path.
    (==) Including the default font path /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1.
    (**) FontPath set to:
        /usr/share/fonts/misc:unscaled,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi:unscaled,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/misc,
        /usr/share/fonts/100dpi:unscaled,
        /usr/share/fonts/75dpi:unscaled,
        /usr/share/fonts/TTF,
        /usr/share/fonts/Type1
    (**) RgbPath set to "/usr/share/X11/rgb"
    (**) ModulePath set to "/usr/lib/xorg/modules"
    (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    (II) No APM support in BIOS or kernel
    (II) Loader magic: 0x81e1f60
    (II) Module ABI versions:
        X.Org ANSI C Emulation: 0.3
        X.Org Video Driver: 2.0
        X.Org XInput driver : 2.0
        X.Org Server Extension : 0.3
        X.Org Font Renderer : 0.5
    (II) Loader running on linux
    (II) LoadModule: "pcidata"
    (II) Loading /usr/lib/xorg/modules//libpcidata.so
    (II) Module pcidata: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 2.0
    (--) using VT number 7
    (II) PCI: PCI scan (all values are in hex)
    (II) PCI: 00:00:0: chip 1002,cbb2 card 0000,0000 rev 02 class 06,00,00 hdr 00
    (II) PCI: 00:01:0: chip 1002,7010 card 0000,0000 rev 00 class 06,04,00 hdr 01
    (II) PCI: 00:06:0: chip 10b9,5451 card 103c,0850 rev 02 class 04,01,00 hdr 00
    (II) PCI: 00:07:0: chip 10b9,1533 card 10b9,1533 rev 00 class 06,01,00 hdr 00
    (II) PCI: 00:08:0: chip 10b9,5457 card 103c,0850 rev 00 class 07,03,00 hdr 00
    (II) PCI: 00:0a:0: chip 104c,ac50 card 1800,0000 rev 02 class 06,07,00 hdr 02
    (II) PCI: 00:0b:0: chip 1106,3038 card 103c,0850 rev 50 class 0c,03,00 hdr 80
    (II) PCI: 00:0b:1: chip 1106,3038 card 103c,0850 rev 50 class 0c,03,00 hdr 80
    (II) PCI: 00:0b:2: chip 1106,3104 card 103c,0850 rev 51 class 0c,03,20 hdr 80
    (II) PCI: 00:0c:0: chip 104c,8026 card 103c,0850 rev 00 class 0c,00,10 hdr 00
    (II) PCI: 00:10:0: chip 10b9,5229 card 103c,0850 rev c4 class 01,01,fa hdr 00
    (II) PCI: 00:11:0: chip 10b9,7101 card 103c,0850 rev 00 class 06,80,00 hdr 00
    (II) PCI: 00:12:0: chip 100b,0020 card 103c,0850 rev 00 class 02,00,00 hdr 00
    (II) PCI: 01:05:0: chip 1002,4337 card 103c,0850 rev 00 class 03,00,00 hdr 00
    (II) PCI: End of PCI scan
    (II) Host-to-PCI bridge:
    (II) Bus 0: bridge is at (0:0:0), (0,0,2), BCTRL: 0x0008 (VGA_EN is set)
    (II) Bus 0 I/O range:
        [0] -1    0    0x00000000 - 0x0000ffff (0x10000) IX[b]
    (II) Bus 0 non-prefetchable memory range:
        [0] -1    0    0x00000000 - 0xffffffff (0x0) MX[b]
    (II) Bus 0 prefetchable memory range:
        [0] -1    0    0x00000000 - 0xffffffff (0x0) MX[b]
    (II) PCI-to-PCI bridge:
    (II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x000c (VGA_EN is set)
    (II) Bus 1 I/O range:
        [0] -1    0    0x00009000 - 0x000090ff (0x100) IX[b]
        [1] -1    0    0x00009400 - 0x000094ff (0x100) IX[b]
        [2] -1    0    0x00009800 - 0x000098ff (0x100) IX[b]
        [3] -1    0    0x00009c00 - 0x00009cff (0x100) IX[b]
    (II) Bus 1 non-prefetchable memory range:
        [0] -1    0    0xd0300000 - 0xd03fffff (0x100000) MX[b]
    (II) Bus 1 prefetchable memory range:
        [0] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b]
    (II) PCI-to-ISA bridge:
    (II) Bus -1: bridge is at (0:7:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
    (II) PCI-to-CardBus bridge:
    (II) Bus 2: bridge is at (0:10:0), (0,2,5), BCTRL: 0x05c0 (VGA_EN is cleared)
    (II) Bus 2 I/O range:
        [0] -1    0    0x00001800 - 0x000018ff (0x100) IX[b]
        [1] -1    0    0x00001c00 - 0x00001cff (0x100) IX[b]
    (II) Bus 2 non-prefetchable memory range:
        [0] -1    0    0x34000000 - 0x37ffffff (0x4000000) MX[b]
    (II) Bus 2 prefetchable memory range:
        [0] -1    0    0x30000000 - 0x33ffffff (0x4000000) MX[b]
    (--) PCI:*(1:5:0) ATI Technologies Inc Radeon IGP 330M/340M/350M rev 0, Mem @ 0xd8000000/27, 0xd0300000/16, I/O @ 0x9000/8
    (II) Addressable bus resource ranges are
        [0] -1    0    0x00000000 - 0xffffffff (0x0) MX[b]
        [1] -1    0    0x00000000 - 0x0000ffff (0x10000) IX[b]
    (II) OS-reported resource ranges:
        [0] -1    0    0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
        [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
        [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
        [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
        [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
        [5] -1    0    0x00000000 - 0x000000ff (0x100) IX[b]
    (II) PCI Memory resource overlap reduced 0xd4000000 from 0xd7ffffff to 0xd3ffffff
    (II) PCI Memory resource overlap reduced 0xd0009000 from 0xd0009fff to 0xd0008fff
    (II) Active PCI resource ranges:
        [0] -1    0    0xd0008000 - 0xd0008fff (0x1000) MX[b]
        [1] -1    0    0xd0004000 - 0xd0007fff (0x4000) MX[b]
        [2] -1    0    0xd0003800 - 0xd0003fff (0x800) MX[b]
        [3] -1    0    0xd0003000 - 0xd00030ff (0x100) MX[b]
        [4] -1    0    0xd0001000 - 0xd0001fff (0x1000) MX[b]
        [5] -1    0    0xd0000000 - 0xd0000fff (0x1000) MX[b]
        [6] -1    0    0xd0009000 - 0xd0008fff (0x0) MX[b]O
        [7] -1    0    0xd4000000 - 0xd3ffffff (0x0) MX[b]O
        [8] -1    0    0xd0300000 - 0xd030ffff (0x10000) MX[b](B)
        [9] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b](B)
        [10] -1    0    0x00002400 - 0x000024ff (0x100) IX[b]
        [11] -1    0    0x00002040 - 0x0000204f (0x10) IX[b]
        [12] -1    0    0x00002020 - 0x0000203f (0x20) IX[b]
        [13] -1    0    0x00002000 - 0x0000201f (0x20) IX[b]
        [14] -1    0    0x00001400 - 0x000014ff (0x100) IX[b]
        [15] -1    0    0x00001000 - 0x000010ff (0x100) IX[b]
        [16] -1    0    0x00009000 - 0x000090ff (0x100) IX[b](B)
    (II) Active PCI resource ranges after removing overlaps:
        [0] -1    0    0xd0008000 - 0xd0008fff (0x1000) MX[b]
        [1] -1    0    0xd0004000 - 0xd0007fff (0x4000) MX[b]
        [2] -1    0    0xd0003800 - 0xd0003fff (0x800) MX[b]
        [3] -1    0    0xd0003000 - 0xd00030ff (0x100) MX[b]
        [4] -1    0    0xd0001000 - 0xd0001fff (0x1000) MX[b]
        [5] -1    0    0xd0000000 - 0xd0000fff (0x1000) MX[b]
        [6] -1    0    0xd0009000 - 0xd0008fff (0x0) MX[b]O
        [7] -1    0    0xd4000000 - 0xd3ffffff (0x0) MX[b]O
        [8] -1    0    0xd0300000 - 0xd030ffff (0x10000) MX[b](B)
        [9] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b](B)
        [10] -1    0    0x00002400 - 0x000024ff (0x100) IX[b]
        [11] -1    0    0x00002040 - 0x0000204f (0x10) IX[b]
        [12] -1    0    0x00002020 - 0x0000203f (0x20) IX[b]
        [13] -1    0    0x00002000 - 0x0000201f (0x20) IX[b]
        [14] -1    0    0x00001400 - 0x000014ff (0x100) IX[b]
        [15] -1    0    0x00001000 - 0x000010ff (0x100) IX[b]
        [16] -1    0    0x00009000 - 0x000090ff (0x100) IX[b](B)
    (II) OS-reported resource ranges after removing overlaps with PCI:
        [0] -1    0    0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
        [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
        [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
        [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
        [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
        [5] -1    0    0x00000000 - 0x000000ff (0x100) IX[b]
    (II) All system resource ranges:
        [0] -1    0    0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
        [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
        [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
        [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
        [4] -1    0    0xd0008000 - 0xd0008fff (0x1000) MX[b]
        [5] -1    0    0xd0004000 - 0xd0007fff (0x4000) MX[b]
        [6] -1    0    0xd0003800 - 0xd0003fff (0x800) MX[b]
        [7] -1    0    0xd0003000 - 0xd00030ff (0x100) MX[b]
        [8] -1    0    0xd0001000 - 0xd0001fff (0x1000) MX[b]
        [9] -1    0    0xd0000000 - 0xd0000fff (0x1000) MX[b]
        [10] -1    0    0xd0009000 - 0xd0008fff (0x0) MX[b]O
        [11] -1    0    0xd4000000 - 0xd3ffffff (0x0) MX[b]O
        [12] -1    0    0xd0300000 - 0xd030ffff (0x10000) MX[b](B)
        [13] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b](B)
        [14] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
        [15] -1    0    0x00000000 - 0x000000ff (0x100) IX[b]
        [16] -1    0    0x00002400 - 0x000024ff (0x100) IX[b]
        [17] -1    0    0x00002040 - 0x0000204f (0x10) IX[b]
        [18] -1    0    0x00002020 - 0x0000203f (0x20) IX[b]
        [19] -1    0    0x00002000 - 0x0000201f (0x20) IX[b]
        [20] -1    0    0x00001400 - 0x000014ff (0x100) IX[b]
        [21] -1    0    0x00001000 - 0x000010ff (0x100) IX[b]
        [22] -1    0    0x00009000 - 0x000090ff (0x100) IX[b](B)
    (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    (II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
    (II) "record" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
    (II) LoadModule: "ddc"(II) Module "ddc" already built-in
    (II) LoadModule: "dbe"
    (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension DOUBLE-BUFFER
    (II) LoadModule: "dri"
    (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
    (II) Module dri: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension XFree86-DRI
    (II) LoadModule: "extmod"
    (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension SHAPE
    (II) Loading extension MIT-SUNDRY-NONSTANDARD
    (II) Loading extension BIG-REQUESTS
    (II) Loading extension SYNC
    (II) Loading extension MIT-SCREEN-SAVER
    (II) Loading extension XC-MISC
    (II) Loading extension XFree86-VidModeExtension
    (II) Loading extension XFree86-Misc
    (II) Loading extension XFree86-DGA
    (II) Loading extension DPMS
    (II) Loading extension TOG-CUP
    (II) Loading extension Extended-Visual-Information
    (II) Loading extension XVideo
    (II) Loading extension XVideo-MotionCompensation
    (II) Loading extension X-Resource
    (II) LoadModule: "glx"
    (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
    (II) Module glx: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.3
    (==) AIGLX enabled
    (II) Loading extension GLX
    (II) LoadModule: "type1"
    (WW) Warning, couldn't open module type1
    (II) UnloadModule: "type1"
    (EE) Failed to load module "type1" (module does not exist, 0)
    (II) LoadModule: "freetype"
    (II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
    (II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
        compiled for 1.4.2, module version = 2.1.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.5
    (II) Loading font FreeType
    (II) LoadModule: "record"
    (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
    (II) Module record: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension RECORD
    (II) LoadModule: "vesa"
    (II) Loading /usr/lib/xorg/modules/drivers//vesa_drv.so
    (II) Module vesa: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 2.0
    (II) LoadModule: "kbd"
    (II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
    (II) Module kbd: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.3.1
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.0
    (II) LoadModule: "mouse"
    (II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
    (II) Module mouse: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.3.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.0
    (II) VESA: driver for VESA chipsets: vesa
    (II) Primary Device is: PCI 01:05:0
    (--) Assigning device section with no busID to primary device
    (--) Chipset vesa found
    (II) resource ranges after xf86ClaimFixedResources() call:
        [0] -1    0    0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
        [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
        [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
        [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
        [4] -1    0    0xd0008000 - 0xd0008fff (0x1000) MX[b]
        [5] -1    0    0xd0004000 - 0xd0007fff (0x4000) MX[b]
        [6] -1    0    0xd0003800 - 0xd0003fff (0x800) MX[b]
        [7] -1    0    0xd0003000 - 0xd00030ff (0x100) MX[b]
        [8] -1    0    0xd0001000 - 0xd0001fff (0x1000) MX[b]
        [9] -1    0    0xd0000000 - 0xd0000fff (0x1000) MX[b]
        [10] -1    0    0xd0009000 - 0xd0008fff (0x0) MX[b]O
        [11] -1    0    0xd4000000 - 0xd3ffffff (0x0) MX[b]O
        [12] -1    0    0xd0300000 - 0xd030ffff (0x10000) MX[b](B)
        [13] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b](B)
        [14] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
        [15] -1    0    0x00000000 - 0x000000ff (0x100) IX[b]
        [16] -1    0    0x00002400 - 0x000024ff (0x100) IX[b]
        [17] -1    0    0x00002040 - 0x0000204f (0x10) IX[b]
        [18] -1    0    0x00002020 - 0x0000203f (0x20) IX[b]
        [19] -1    0    0x00002000 - 0x0000201f (0x20) IX[b]
        [20] -1    0    0x00001400 - 0x000014ff (0x100) IX[b]
        [21] -1    0    0x00001000 - 0x000010ff (0x100) IX[b]
        [22] -1    0    0x00009000 - 0x000090ff (0x100) IX[b](B)
    (II) resource ranges after probing:
        [0] -1    0    0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
        [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
        [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
        [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
        [4] -1    0    0xd0008000 - 0xd0008fff (0x1000) MX[b]
        [5] -1    0    0xd0004000 - 0xd0007fff (0x4000) MX[b]
        [6] -1    0    0xd0003800 - 0xd0003fff (0x800) MX[b]
        [7] -1    0    0xd0003000 - 0xd00030ff (0x100) MX[b]
        [8] -1    0    0xd0001000 - 0xd0001fff (0x1000) MX[b]
        [9] -1    0    0xd0000000 - 0xd0000fff (0x1000) MX[b]
        [10] -1    0    0xd0009000 - 0xd0008fff (0x0) MX[b]O
        [11] -1    0    0xd4000000 - 0xd3ffffff (0x0) MX[b]O
        [12] -1    0    0xd0300000 - 0xd030ffff (0x10000) MX[b](B)
        [13] -1    0    0xd8000000 - 0xdfffffff (0x8000000) MX[b](B)
        [14] 0    0    0x000a0000 - 0x000affff (0x10000) MS[b]
        [15] 0    0    0x000b0000 - 0x000b7fff (0x8000) MS[b]
        [16] 0    0    0x000b8000 - 0x000bffff (0x8000) MS[b]
        [17] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
        [18] -1    0    0x00000000 - 0x000000ff (0x100) IX[b]
        [19] -1    0    0x00002400 - 0x000024ff (0x100) IX[b]
        [20] -1    0    0x00002040 - 0x0000204f (0x10) IX[b]
        [21] -1    0    0x00002020 - 0x0000203f (0x20) IX[b]
        [22] -1    0    0x00002000 - 0x0000201f (0x20) IX[b]
        [23] -1    0    0x00001400 - 0x000014ff (0x100) IX[b]
        [24] -1    0    0x00001000 - 0x000010ff (0x100) IX[b]
        [25] -1    0    0x00009000 - 0x000090ff (0x100) IX[b](B)
        [26] 0    0    0x000003b0 - 0x000003bb (0xc) IS[b]
        [27] 0    0    0x000003c0 - 0x000003df (0x20) IS[b]
    (II) Setting vga for screen 0.
    (II) Loading sub module "vbe"
    (II) LoadModule: "vbe"
    (II) Loading /usr/lib/xorg/modules//libvbe.so
    (II) Module vbe: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.1.0
        ABI class: X.Org Video Driver, version 2.0
    (II) Loading sub module "int10"
    (II) LoadModule: "int10"
    (II) Loading /usr/lib/xorg/modules//libint10.so
    (II) Module int10: vendor="X.Org Foundation"
        compiled for 1.4.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 2.0
    (II) VESA(0): initializing int10
    (II) VESA(0): Primary V_BIOS segment is: 0xc000
    (II) VESA(0): VESA BIOS detected
    (II) VESA(0): VESA VBE Version 2.0
    (II) VESA(0): VESA VBE Total Mem: 65472 kB
    (II) VESA(0): VESA VBE OEM: ATI RS200M 
    (II) VESA(0): VESA VBE OEM Software Rev: 1.0
    (II) VESA(0): VESA VBE OEM Vendor: ATI Technologies Inc.
    (II) VESA(0): VESA VBE OEM Product: MS2
    (II) VESA(0): VESA VBE OEM Product Rev: 01.00
    (**) VESA(0): Depth 16, (--) framebuffer bpp 16
    (==) VESA(0): RGB weight 565
    (==) VESA(0): Default visual is TrueColor
    (==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)
    (II) Loading sub module "ddc"
    (II) LoadModule: "ddc"(II) Module "ddc" already built-in
    (II) VESA(0): VESA VBE DDC supported
    (II) VESA(0): VESA VBE DDC Level 2
    (II) VESA(0): VESA VBE DDC transfer in appr. 2 sec.
    (II) VESA(0): VESA VBE DDC read successfully
    (II) VESA(0): Manufacturer: CPQ  Model: 1338  Serial#: 1093941302
    (II) VESA(0): Year: 1999  Week: 6
    (II) VESA(0): EDID Version: 1.1
    (II) VESA(0): Analog Display Input,  Input Voltage Level: 0.700/0.700 V
    (II) VESA(0): Sync:  Separate
    (II) VESA(0): Max H-Image Size [cm]: horiz.: 27  vert.: 20
    (II) VESA(0): Gamma: 2.85
    (II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
    (II) VESA(0): redX: 0.612 redY: 0.353   greenX: 0.293 greenY: 0.595
    (II) VESA(0): blueX: 0.149 blueY: 0.068   whiteX: 0.281 whiteY: 0.311
    (II) VESA(0): Supported VESA Video Modes:
    (II) VESA(0): 720x400@70Hz
    (II) VESA(0): 640x480@60Hz
    (II) VESA(0): 640x480@75Hz
    (II) VESA(0): 800x600@60Hz
    (II) VESA(0): 800x600@75Hz
    (II) VESA(0): 1024x768@60Hz
    (II) VESA(0): Manufacturer's mask: 0
    (II) VESA(0): Ranges: V min: 50  V max: 100 Hz, H min: 31  H max: 48 kHz,
    (II) VESA(0): Serial No: 906AB11KA486
    (II) VESA(0): Monitor name: COMPAQ V45
    (II) VESA(0): EDID (in hex):
    (II) VESA(0):     00ffffffffffff000e11381336383441
    (II) VESA(0):     06090101681b14b9e8d1629c5a4b9826
    (II) VESA(0):     11484fa5480001010101010101010101
    (II) VESA(0):     01010101010100000001000101010000
    (II) VESA(0):     00010001000a2020000000fd0032641f
    (II) VESA(0):     30ff000a202020202020000000ff0039
    (II) VESA(0):     3036414231314b413438360a000000fc
    (II) VESA(0):     00434f4d504151205634350a202000fd
    (II) VESA(0): EDID vendor "CPQ", prod id 4920
    (II) VESA(0): Using hsync ranges from config file
    (II) VESA(0): Using vrefresh ranges from config file
    (II) VESA(0): Printing DDC gathered Modelines:
    (II) VESA(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
    (II) VESA(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
    (II) VESA(0): Modeline "640x480"x0.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
    (II) VESA(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
    (II) VESA(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
    (II) VESA(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
    (II) VESA(0): Searching for matching VESA mode(s):
    Mode: 182 (320x200)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 320
        XResolution: 320
        YResolution: 200
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 10d (320x200)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 320
        YResolution: 200
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 10e (320x200)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 320
        YResolution: 200
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 10f (320x200)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 960
        XResolution: 320
        YResolution: 200
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 120 (320x200)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 320
        YResolution: 200
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 192 (320x240)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 320
        XResolution: 320
        YResolution: 240
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 193 (320x240)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 320
        YResolution: 240
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 194 (320x240)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 320
        YResolution: 240
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 195 (320x240)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 960
        XResolution: 320
        YResolution: 240
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 196 (320x240)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 320
        YResolution: 240
        XCharSize: 8
        YCharSize: 8
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 203
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1a2 (400x300)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 400
        XResolution: 400
        YResolution: 300
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1a3 (400x300)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 800
        XResolution: 400
        YResolution: 300
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 1a4 (400x300)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 800
        XResolution: 400
        YResolution: 300
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1a5 (400x300)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1200
        XResolution: 400
        YResolution: 300
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 169
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1a6 (400x300)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1600
        XResolution: 400
        YResolution: 300
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 126
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1b2 (512x384)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 512
        XResolution: 512
        YResolution: 384
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1b3 (512x384)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1024
        XResolution: 512
        YResolution: 384
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 169
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 1b4 (512x384)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1024
        XResolution: 512
        YResolution: 384
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 169
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1b5 (512x384)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1536
        XResolution: 512
        YResolution: 384
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 112
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1b6 (512x384)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2048
        XResolution: 512
        YResolution: 384
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 84
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1c2 (640x350)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 640
        YResolution: 350
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1c3 (640x350)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 350
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 145
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 1c4 (640x350)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 350
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 145
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1c5 (640x350)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1920
        XResolution: 640
        YResolution: 350
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 92
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 1c6 (640x350)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2560
        XResolution: 640
        YResolution: 350
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 72
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 100 (640x400)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 640
        YResolution: 400
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 254
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 183 (640x400)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 400
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 126
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 184 (640x400)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 400
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 126
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 185 (640x400)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1920
        XResolution: 640
        YResolution: 400
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 84
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 186 (640x400)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2560
        XResolution: 640
        YResolution: 400
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 62
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 101 (640x480)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 640
        XResolution: 640
        YResolution: 480
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 203
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 110 (640x480)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 480
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 101
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 111 (640x480)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 640
        YResolution: 480
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 101
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 112 (640x480)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1920
        XResolution: 640
        YResolution: 480
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 67
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 121 (640x480)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2560
        XResolution: 640
        YResolution: 480
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 52
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 103 (800x600)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 800
        XResolution: 800
        YResolution: 600
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 126
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 113 (800x600)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1600
        XResolution: 800
        YResolution: 600
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 67
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 114 (800x600)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1600
        XResolution: 800
        YResolution: 600
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 67
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 115 (800x600)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2400
        XResolution: 800
        YResolution: 600
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 45
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 122 (800x600)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 3200
        XResolution: 800
        YResolution: 600
        XCharSize: 8
        YCharSize: 14
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 33
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 105 (1024x768)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1024
        XResolution: 1024
        YResolution: 768
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 84
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 116 (1024x768)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2048
        XResolution: 1024
        YResolution: 768
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 41
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 117 (1024x768)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2048
        XResolution: 1024
        YResolution: 768
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 41
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 118 (1024x768)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 3072
        XResolution: 1024
        YResolution: 768
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 27
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 123 (1024x768)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 4096
        XResolution: 1024
        YResolution: 768
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 20
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 107 (1280x1024)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 1280
        XResolution: 1280
        YResolution: 1024
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 8
        NumberOfBanks: 1
        MemoryModel: 4
        BankSize: 0
        NumberOfImages: 50
        RedMaskSize: 0
        RedFieldPosition: 0
        GreenMaskSize: 0
        GreenFieldPosition: 0
        BlueMaskSize: 0
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 119 (1280x1024)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2560
        XResolution: 1280
        YResolution: 1024
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 15
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 24
        RedMaskSize: 5
        RedFieldPosition: 10
        GreenMaskSize: 5
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    *Mode: 11a (1280x1024)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 2560
        XResolution: 1280
        YResolution: 1024
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 16
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 24
        RedMaskSize: 5
        RedFieldPosition: 11
        GreenMaskSize: 6
        GreenFieldPosition: 5
        BlueMaskSize: 5
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 11b (1280x1024)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 3840
        XResolution: 1280
        YResolution: 1024
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 24
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 16
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 124 (1280x1024)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttributes: 0x0
        WinGranularity: 64
        WinSize: 64
        WinASegment: 0xa000
        WinBSegment: 0xa000
        WinFuncPtr: 0xc0004eb0
        BytesPerScanline: 5120
        XResolution: 1280
        YResolution: 1024
        XCharSize: 8
        YCharSize: 16
        NumberOfPlanes: 1
        BitsPerPixel: 32
        NumberOfBanks: 1
        MemoryModel: 6
        BankSize: 0
        NumberOfImages: 11
        RedMaskSize: 8
        RedFieldPosition: 16
        GreenMaskSize: 8
        GreenFieldPosition: 8
        BlueMaskSize: 8
        BlueFieldPosition: 0
        RsvdMaskSize: 0
        RsvdFieldPosition: 0
        DirectColorModeInfo: 0
        PhysBasePtr: 0xd8000000
    Mode: 140 (1400x1050)
        ModeAttributes: 0xbb
        WinAAttributes: 0x7
        WinBAttri

    it's the same bug like this :
    https://bugs.archlinux.org/task/41369#comment126681
    the solution is to rebuild the vlc package with the last version of ffmpeg, it's easy to do with makepkg/ABS,
    but the vlc maintener seems on holidays, still no new vlc package
    Last edited by Potomac (2014-08-21 13:29:49)

  • [SOLVED] New PKGBUILD for dvbcut. Please review.

    Bad English, sorry!
    I am a heavy user of dvbcut. It is really nice program to cut commercials out of dvb recordings.
    http://dvbcut.sourceforge.net/
    The problem was, i could not build dvbcut 0.5.4 on arch. Probably because of new compiler versions and scons problems. So i used an old binary in my home directory.
    The good news is, they changed the build system a few days ago:
    http://www.mail-archive.com/dvbcut-user … 01006.html
    Now i can build dvbcut and i adopted the packages on AUR.
    http://aur.archlinux.org/packages.php?ID=2793
    Before i update AUR, i want to make sure, that everything is ok. Is the svn solution appropriate?
    PKGBUILD
    # Contributor: AndyRTR <[email protected]>
    pkgname=dvbcut
    pkgver=0.5.4
    pkgrel=2
    pkgdesc="Qt application for cutting parts out of DVB streams"
    arch=('i686' 'x86_64')
    url="http://dvbcut.sourceforge.net/index.html"
    license="GPL"
    depends=('qt3' 'libao')
    makedepends=('autoconf' 'make' 'subversion')
    install=dvbcut.install
    source=(dvbcut.desktop)
    md5sums=('e41118aef010f3a19140f9fc2463d4ce')
    build() {
    cd ${srcdir}
    # 0.5.4 does not build anymore. Using svn until next release.
    msg "Connecting to SVN server...."
    if [ -d dvbcut/.svn ]; then
    (cd dvbcut && svn up -r 129)
    else
    svn co -r 129 --config-dir ./ https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk dvbcut
    fi
    msg "SVN checkout done or server timeout"
    msg "Starting make..."
    cp -r dvbcut dvbcut-build
    cd dvbcut-build
    autoconf || return 1
    ./configure --prefix=/usr --with-qt3=/opt/qt
    make || return 1
    install -Dm755 ${srcdir}/${pkgname}-build/bin/dvbcut ${pkgdir}/usr/bin/dvbcut
    install -Dm644 ${srcdir}/${pkgname}-build/dvbcut.1 ${pkgdir}/usr/share/man/man1/dvbcut.1
    install -Dm644 ${startdir}/dvbcut.desktop ${pkgdir}/usr/share/applications/dvbcut.desktop
    rm -rf ${srcdir}/dvbcut-build
    dvbcut.install
    post_install() {
    cat << 'EOF'
    ==> If you have "mplayer" installed on your machine,
    ==> you can play videos inside of DVBCUT.
    EOF
    op=$1
    shift
    $op $*
    dvbcut.desktop
    [Desktop Entry]
    Categories=Qt;Video;AudioVideo;AudioVideoEditing;
    Encoding=UTF-8
    Name=dvbcut
    GenericName=DVBCut
    Type=Application
    Exec=/usr/bin/dvbcut
    Icon=
    Last edited by sp42b (2008-06-18 20:45:13)

    Instead of using custom svn commands in the build() function, it would be wise to use something along these lines:
    _svntrunk=https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk
    _svnmod=dvbcut
    _revnumber=$pkgver
    before the build() function in the PKGBUILD.
    This functionality is built into makepkg/ABS already, so there is no need to reinvent it ;-).
    Last edited by xaw (2008-06-17 21:36:24)

  • MakePkg and ABS

    I've read all that I can find, but due to my inexperience with some terminology and general n00bness, I can't seem to get my head around abs.  I see people listing code like this for pkgbuilds:
    pkgname=submount
    pkgver=0.9
    pkgrel=1
    pkgdesc="System for automatic mounting/unmounting of removable devices"
    url="http://submount.sourceforge.net"
    depends=('glibc')
    install=install.submount
    source=(http://belnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
    md5sums=('f6abac328dbfb265eff18561065575c6')
    build() {
    cd $startdir/src/$pkgname-$pkgver/subfs-$pkgver
    make || return 1
    install -D -m644 -o 0 -g 0 $startdir/src/$pkgname-$pkgver/subfs-$pkgver/subfs.ko
    $startdir/pkg/lib/modules/`uname -r`/kernel/fs/subfs/subfs.ko
    cd $startdir/src/$pkgname-$pkgver/submountd-$pkgver
    ./configure
    make || return 1
    make DESTDIR=$startdir/pkg install
    Now I'm sure the answer's right in front of my face, but humor me. I know I need to copy and paste this somewhere (I don't know where), and then do something involving makepkg.  What exactly do I need to do to use makepkg?

    It can be done in any directory. Myself, I make a new directory in /var/abs/local/<my-pkg>.
    In the new directory paste your pkgbuild codes in a file and name it: "PKGBUILD". In same directory run "makepkg". If the pkgbuild is fine, that's all.
    To install new local package:
    pacman -A <pkg-name-x.x-x.pkg.tar.gz>
    To remove:
    pacman -R <pkg-name>

  • Build problem with makepkg of linux in the abs(core/linux)

    Hi,all
    I wanted to have a taste of systemtap, I read this page:https://wiki.archlinux.org/index.php/Systemtap,and followed the guide,but had problem like this:
    scripts/link-vmlinux.sh: line 135: ./.config: No such file or directory
    It looks like the configuration file is gone, I checked a little about PKGBUILD, and finded the .config was generated at almost the begining, and i didn't know why it comed this problem.
    Is there anyone have experience like this and help me ?
    PS: my current linux version is
    # pacman -Q linux
    linux 3.7.9-2
    and use the latest core/linux in abs repo

    hi ,
    for the ifconfig u will not get the settings done for the static address bcoz while installing linux i have configured for using the static address method and when i checked for connecting to internet i was not able to so using command line i changed for DHCP configuration and then internet worked
    i changed the following files
    1. /etc/sysconfig/network-scripts/ifcfg-eth0
    2. /etc/sysconfig/network
    3. ifup eth0
    4.ifconfig eth0 up
    5.chkconfig
    6.service network restart
    after doing all these i checked for connecting to internet and was successful
    why internet does not work in linux when configured for static address
    Can we go for dual boot
    plz answer for these also i will thankful
    [root@localhost ~]# ls -arlt /media/oracle10g
    total 12
    dr-xr-xr-x 1 root root 2048 Jul 22 22:55 database
    dr-xr-xr-x 1 root root 2048 Jul 23 00:06 .
    drwxr-xr-x 3 root root 4096 Aug 20 13:24 ..
    [root@localhost ~]# uname -a
    Linux localhost 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 15:11:19 EDT 2006 i686 i686 i386 GNU/Linux
    [root@localhost ~]# file cd /media/oracle10g/database/install/.oui
    cd: ERROR: cannot open `cd' (No such file or directory)
    /media/oracle10g/database/install/.oui: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
    [root@localhost ~]# ls -la /media/oracle10g/database/install/.oui
    -r-xr-xr-x 1 root root 163185 Jul 2 2005 /media/oracle10g/database/install/.oui
    [root@localhost ~]# ifconfig |cut -d" " -f1
    eth0
    lo
    peth0
    vif0.0
    xenbr0
    plz suggest me what i am supposed to do
    plz help me to successfully install oracle10g in linux(fedora core 6)

  • Custom kernel tutorial

    hi all,
    Im a arch newbie, and i want to create a custom kernel to turn on the traffic shaping. Is there some tutorial about it?

    eduac wrote:when he said (    *  Install your new pkg as normal.  ) to install a custom kernel with ABS,
                  what the command i must have to type? pacman -A PKGBUILD.custom_kernel??
    If you are unfamiliar with the Arch Build System, it is perhaps wise to check the ABS wiki first: http://wiki.archlinux.org/index.php/ABS
    The kernel is built like a normal package, although the PKGBUILD is somewhat complex. Basically, you are supposed to grab that long script from http://wiki.archlinux.org/index.php/Cus … n_with_ABS and save it as PKGBUILD to a directory where you are going to build the kernel. Edit the PKGBUILD so that 'pkgver' matches the kernel version you are building and uncomment the configuration method you prefer (menuconfig/xconfig/gconfig). I assume you are not adding any patches, it makes things simpler. Read the wiki page about other possible options to change.
    Then, run makepkg. You get to configure the kernel to your liking. When you're done, the kernel compilation starts. Grab some coffee.
    If the compilation was successful, there should be a file named kernel26*.pkg.tar.gz in the build directory. This is the package you want to install with pacman (pacman -A kernel26*.pkg.tar.gz).
    Do not forget to update your bootloader config after you have installed the new kernel. If you are using lilo, remember to run lilo afterwards.

  • Cannot build conky 1.8.2 (abs)

    [doctor@doctor abs]$ abs extra/conky
    ==> Starting ABS sync...
    receiving file list ... done
    extra/
    extra/conky/
    extra/conky/PKGBUILD
    extra/conky/PKGBUILD.cmake
    sent 124 bytes received 2993 bytes 890.57 bytes/sec
    total size is 2759 speedup is 0.89
    [doctor@doctor abs]$ cp ~/Desktop/PKGBUILD /var/abs/extra/conky/PKGBUILD
    [doctor@doctor abs]$ cd extra/conky/
    [doctor@doctor conky]$ makepkg
    ==> Making package: conky 1.8.2git20111107-1 (Tue Dec 20 13:58:28 EET 2011)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading conky-1.8.2git20111107.tar.xz...
    --2011-12-20 13:58:28-- ftp://ftp.archlinux.org/other/conky/conky-1.8.2git20111107.tar.xz
    => `conky-1.8.2git20111107.tar.xz.part'
    Resolving ftp.archlinux.org... 209.85.41.143, 209.85.41.144
    Connecting to ftp.archlinux.org|209.85.41.143|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done. ==> PWD ... done.
    ==> TYPE I ... done. ==> CWD (1) /other/conky ... done.
    ==> SIZE conky-1.8.2git20111107.tar.xz ... 244616
    ==> PASV ... done. ==> RETR conky-1.8.2git20111107.tar.xz ... done.
    Length: 244616 (239K) (unauthoritative)
    100%[========================================================================================================================================================>] 244,616 54.1K/s in 4.5s
    2011-12-20 13:58:36 (52.8 KB/s) - `conky-1.8.2git20111107.tar.xz.part' saved [244616]
    ==> Validating source files with sha1sums...
    conky-1.8.2git20111107.tar.xz ... Passed
    ==> Extracting Sources...
    -> Extracting conky-1.8.2git20111107.tar.xz with bsdtar
    ==> Starting build()...
    Running aclocal -I m4 ...
    Running libtoolize --force --copy ...
    libtoolize: putting auxiliary files in `.'.
    libtoolize: copying file `./ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
    libtoolize: copying file `m4/libtool.m4'
    libtoolize: copying file `m4/ltoptions.m4'
    libtoolize: copying file `m4/ltsugar.m4'
    libtoolize: copying file `m4/ltversion.m4'
    libtoolize: copying file `m4/lt~obsolete.m4'
    Running autoheader ...
    Running automake --add-missing --copy --gnu ...
    configure.ac:37: installing `./compile'
    configure.ac:33: installing `./config.guess'
    configure.ac:33: installing `./config.sub'
    configure.ac:17: installing `./install-sh'
    configure.ac:17: installing `./missing'
    lua/Makefile.am: installing `./depcomp'
    Running autoconf ...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking how to print strings... printf
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking whether gcc and cc understand -c and -o together... yes
    checking for pkg-config... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.19... yes
    checking for fopencookie... yes
    checking for funopen... no
    checking for X11... yes
    checking for LUA... yes
    checking for cairo... yes
    checking for cairo_xlib... yes
    checking for tolua++... tolua++
    checking for library containing tolua_error... -ltolua++
    checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking for shared library run path origin... done
    checking for iconv... yes
    checking for working iconv... yes
    checking for iconv declaration...
    extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
    checking for Xext... yes
    checking for XDamage... yes
    checking for Xft... yes
    checking for libcurl... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking for unistd.h... (cached) yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking for sys/stat.h... (cached) yes
    checking linux/soundcard.h usability... yes
    checking linux/soundcard.h presence... yes
    checking for linux/soundcard.h... yes
    checking alsa/asoundlib.h usability... yes
    checking alsa/asoundlib.h presence... yes
    checking for alsa/asoundlib.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking mcheck.h usability... yes
    checking mcheck.h presence... yes
    checking for mcheck.h... yes
    checking sys/statfs.h usability... yes
    checking sys/statfs.h presence... yes
    checking for sys/statfs.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking pthread.h usability... yes
    checking pthread.h presence... yes
    checking for pthread.h... yes
    checking semaphore.h usability... yes
    checking semaphore.h presence... yes
    checking for semaphore.h... yes
    checking assert.h usability... yes
    checking assert.h presence... yes
    checking for assert.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking for sys/mount.h... yes
    checking sys/inotify.h usability... yes
    checking sys/inotify.h presence... yes
    checking for sys/inotify.h... yes
    checking for calloc... yes
    checking for malloc... yes
    checking for free... yes
    checking for popen... yes
    checking for sysinfo... yes
    checking for getloadavg... yes
    checking for memrchr... yes
    checking for strndup... yes
    checking for gethostbyname_r... yes
    checking for library containing clock_gettime... -lrt
    checking for struct statfs.f_fstypename... no
    checking for db2x_xsltproc... db2x_xsltproc
    checking for db2x_manxml... db2x_manxml
    checking for xsltproc... xsltproc
    checking if /usr/bin/ld -m elf_x86_64 accepts -O1... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating data/Makefile
    config.status: creating doc/Makefile
    config.status: creating src/Makefile
    config.status: creating src/build.h
    config.status: creating lua/Makefile
    config.status: creating src/config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    conky 1.8.2_preNONE configured successfully:
    Installing into: /usr
    System config dir: /etc
    C compiler flags: -I/usr/include/freetype2 -Wall -W
    Libraries: -lX11 -llua -lm -ltolua++ -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lXext -lXdamage -lXfixes -lXft -lcurl -lrt -ltolua++ -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
    Linker flags: -Wl,-O1
    * X11:
    X11 support: yes
    XDamage support: yes
    XDBE support: yes
    Xft support: yes
    ARGB support yes
    * Music detection:
    Audacious: no
    BMPx: no
    MPD: no
    MOC: no
    XMMS2: no
    * General:
    math: no
    hddtemp: yes
    portmon: no
    RSS: no
    Curl: yes
    Weather
    METAR: no
    XOAP: no
    wireless: no
    IBM: no
    nvidia: no
    eve-online: no
    config-output: yes
    Imlib2: no
    ALSA mixer: no
    apcupsd: yes
    I/O stats: yes
    ncurses: no
    * Lua (yes) bindings:
    Cairo: yes
    Imlib2: no
    Making all in src
    make[1]: Entering directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
    sh ./../text2c.sh ./../data/conky.conf defconfig.h defconfig
    make all-am
    make[2]: Entering directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-conf_cookie.o -MD -MP -MF .deps/conky-conf_cookie.Tpo -c -o conky-conf_cookie.o `test -f 'conf_cookie.c' || echo './'`conf_cookie.c
    mv -f .deps/conky-conf_cookie.Tpo .deps/conky-conf_cookie.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-linux.o -MD -MP -MF .deps/conky-linux.Tpo -c -o conky-linux.o `test -f 'linux.c' || echo './'`linux.c
    linux.c: In function ‘get_battery_stuff’:
    linux.c:1908:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘get_acpi_ac_adapter’:
    linux.c:1405:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘get_acpi_fan’:
    linux.c:1329:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘update_load_average’:
    linux.c:825:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘update_threads’:
    linux.c:592:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘update_net_stats’:
    linux.c:364:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c:365:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘update_gateway_info’:
    linux.c:288:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘get_ioscheduler’:
    linux.c:230:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘get_laptop_mode’:
    linux.c:208:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘update_uptime’:
    linux.c:126:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    linux.c: In function ‘is_disk’:
    linux.c:2311:18: warning: ‘dev_last’ may be used uninitialized in this function [-Wuninitialized]
    mv -f .deps/conky-linux.Tpo .deps/conky-linux.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-users.o -MD -MP -MF .deps/conky-users.Tpo -c -o conky-users.o `test -f 'users.c' || echo './'`users.c
    mv -f .deps/conky-users.Tpo .deps/conky-users.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-sony.o -MD -MP -MF .deps/conky-sony.Tpo -c -o conky-sony.o `test -f 'sony.c' || echo './'`sony.c
    mv -f .deps/conky-sony.Tpo .deps/conky-sony.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-i8k.o -MD -MP -MF .deps/conky-i8k.Tpo -c -o conky-i8k.o `test -f 'i8k.c' || echo './'`i8k.c
    mv -f .deps/conky-i8k.Tpo .deps/conky-i8k.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-x11.o -MD -MP -MF .deps/conky-x11.Tpo -c -o conky-x11.o `test -f 'x11.c' || echo './'`x11.c
    mv -f .deps/conky-x11.Tpo .deps/conky-x11.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-fonts.o -MD -MP -MF .deps/conky-fonts.Tpo -c -o conky-fonts.o `test -f 'fonts.c' || echo './'`fonts.c
    mv -f .deps/conky-fonts.Tpo .deps/conky-fonts.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-hddtemp.o -MD -MP -MF .deps/conky-hddtemp.Tpo -c -o conky-hddtemp.o `test -f 'hddtemp.c' || echo './'`hddtemp.c
    mv -f .deps/conky-hddtemp.Tpo .deps/conky-hddtemp.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-ccurl_thread.o -MD -MP -MF .deps/conky-ccurl_thread.Tpo -c -o conky-ccurl_thread.o `test -f 'ccurl_thread.c' || echo './'`ccurl_thread.c
    mv -f .deps/conky-ccurl_thread.Tpo .deps/conky-ccurl_thread.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-llua.o -MD -MP -MF .deps/conky-llua.Tpo -c -o conky-llua.o `test -f 'llua.c' || echo './'`llua.c
    mv -f .deps/conky-llua.Tpo .deps/conky-llua.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-apcupsd.o -MD -MP -MF .deps/conky-apcupsd.Tpo -c -o conky-apcupsd.o `test -f 'apcupsd.c' || echo './'`apcupsd.c
    apcupsd.c: In function ‘update_apcupsd’:
    apcupsd.c:219:7: warning: ‘sock’ may be used uninitialized in this function [-Wuninitialized]
    mv -f .deps/conky-apcupsd.Tpo .deps/conky-apcupsd.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-iconv_tools.o -MD -MP -MF .deps/conky-iconv_tools.Tpo -c -o conky-iconv_tools.o `test -f 'iconv_tools.c' || echo './'`iconv_tools.c
    mv -f .deps/conky-iconv_tools.Tpo .deps/conky-iconv_tools.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-colours.o -MD -MP -MF .deps/conky-colours.Tpo -c -o conky-colours.o `test -f 'colours.c' || echo './'`colours.c
    mv -f .deps/conky-colours.Tpo .deps/conky-colours.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-combine.o -MD -MP -MF .deps/conky-combine.Tpo -c -o conky-combine.o `test -f 'combine.c' || echo './'`combine.c
    mv -f .deps/conky-combine.Tpo .deps/conky-combine.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-common.o -MD -MP -MF .deps/conky-common.Tpo -c -o conky-common.o `test -f 'common.c' || echo './'`common.c
    mv -f .deps/conky-common.Tpo .deps/conky-common.Po
    gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-conky.o -MD -MP -MF .deps/conky-conky.Tpo -c -o conky-conky.o `test -f 'conky.c' || echo './'`conky.c
    conky.c: In function ‘generate_text_internal’:
    conky.c:887:7: error: unknown type name ‘bool’
    conky.c:887:28: error: ‘false’ undeclared (first use in this function)
    conky.c:887:28: note: each undeclared identifier is reported only once for each function it appears in
    conky.c:892:17: error: ‘true’ undeclared (first use in this function)
    conky.c:742:19: warning: variable ‘needed’ set but not used [-Wunused-but-set-variable]
    conky.c: In function ‘draw_each_line_inner’:
    conky.c:2827:6: warning: variable ‘last_special_needed’ set but not used [-Wunused-but-set-variable]
    make[2]: *** [conky-conky.o] Error 1
    make[2]: Leaving directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
    make: *** [all-recursive] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGBUILD is
    # $Id: PKGBUILD 142242 2011-11-07 05:35:59Z bisson $
    # Contributor: Giovanni Scafora <[email protected]>
    # Contributor: James Rayner <[email protected]>
    # Contributor: Partha Chowdhury <[email protected]>
    # Maintainer: Gaetan Bisson <[email protected]>
    pkgname=conky
    pkgver=1.8.2git20111107
    pkgrel=1
    pkgdesc='Lightweight system monitor for X'
    url='http://conky.sourceforge.net/'
    license=('BSD' 'GPL')
    arch=('i686' 'x86_64')
    options=('!emptydirs')
    makedepends=('pkg-config' 'docbook2x')
    depends=('alsa-lib' 'libxml2' 'curl' 'libxft' 'glib2' 'libxdamage' 'imlib2')
    backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf')
    source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz")
    sha1sums=('133fc6fdc725162af9a98c72c1b7349efc22447c')
    # git clone git://git.omp.am/conky.git; cd conky; git archive --prefix=${pkgname}-${pkgver}/ origin/1.8.2 | xz > ../${pkgname}-${pkgver}.tar.xz
    replaces=('torsmo')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    sh autogen.sh
    CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --disable-ibm \
    --enable-curl \
    --enable-lua \
    --enable-lua-cairo \
    --disable-ncurses \
    --disable-math --disable-mpd --disable-moc --disable-xmms2 \
    --disable-weather-xoap --disable-portmon --disable-alsa
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

    Does it still segment fault without a .conkyrc?
    Also FWIW, heres my conky settings:
    # Use Xft?
    use_xft yes
    xftfont mono:size=9
    xftalpha 0.8
    text_buffer_size 2048
    # Update interval in seconds
    update_interval 1
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent no
    own_window_type override
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    minimum_size 1280 0
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Draw borders around graphs
    draw_graph_borders yes
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_margin 0
    # border width
    border_width 0
    # Default colors and also border colors
    default_color white
    color2 1994D1
    default_shade_color black
    default_outline_color 3c3c3c
    own_window_colour 3c3c3c
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 0
    gap_y 3
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer right
    TEXT

  • Makepkg fails on custom kernel.

    Hi.
    I'm trying to compile the arch kernel with a few added patches to increase battery life.
    What I have done is: Installed abs, and ran ABS as root. Then I made a directory called kernel, copied the kernel26 from ABS to that directory (so kernel had a subdirectory called kernel26).
    Then I ran this script (changed the name to mine) in the kernel (not kernel26) folder, which created a new kernel26-gigamo folder.
    What I did next was copy these four patches to that directory, and added them in to the pkgbuild:
    avoid-overflows-in-kernel-timec.patch
    clockevent-simplify-list-operations.patch
    uvesafb-small-cleanups.patch
    writeback-speed-up-writeback-of-big-dirty-files.patch
    (they come from here)
    My PKGBUILD:
    # $Id: PKGBUILD,v 1.294 2008/03/05 14:44:07 tpowa Exp $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgname=kernel26-gigamo
    _basekernel=2.6.24
    pkgver=2.6.24.3
    pkgrel=3
    pkgdesc="The Linux Kernel and modules"
    arch=(i686 x86_64)
    license=('GPL2')
    groups=('base')
    url="http://www.kernel.org"
    backup=('boot/kconfig26-gigamo' etc/mkinitcpio.d/${pkgname}.preset etc/mkinitcpio.d/${pkgname}-fallback.conf)
    depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.15')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26-gigamo now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-gigamo-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs')
    md5sums=('')
    install=kernel26-gigamo.install
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
    ### next two lines only needed for rc kernel building
    #http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.24-rc6.bz2
    #http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.24-rc6-git2.bz2
    # the main kernel config files
    config config.x86_64
    # the archlinux boot logos
    logo_linux_clut224.ppm
    logo_linux_mono.pbm
    logo_linux_vga16.ppm
    # standard config files for mkinitcpio ramdisk
    kernel26-gigamo.preset
    mkinitcpio-$pkgname.conf
    # add possibility to load your own dsdt acpi table
    acpi-dsdt-initrd-v0.8.4-2.6.21.patch
    # own patches
    avoid-overflows-in-kernel-timec.patch
    clockevent-simplify-list-operations.patch
    uvesafb-small-cleanups.patch
    writeback-speed-up-writeback-of-big-dirty-files.patch
    # fix bluetooth on some toshiba notebooks
    toshiba-bluetooth.patch
    # add additional unusual usb entry
    usb-storage-unusual-devs.patch
    # improve intel macintosh support
    mactel-linux-2.6.24.patch
    # fix broken acpi c states on buggy bioses, which violate acpi specification
    acpi-buggy-bios.patch
    # add squashfs and unionfs
    http://heanet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.3.tar.gz
    http://download.filesystems.org/unionfs/stable/unionfs-2.2.4_for_2.6.24.2.diff.gz
    # patch below for aufs compatibility
    lhash-2.6.24.patch
    put_filp-2.6.24.patch
    sec_perm-2.6.24.patch
    splice-2.6.24.patch
    #put_filp.patch
    # add possibility to undervolt certain cpus
    linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch
    # adding genpatches from gentoo
    2000_no-if-addrlabel.patch
    2100_sd-sr-medium-detection.patch
    2101_sr-follow-tray-status.patch
    2102_sr-test-unit-ready.patch
    2300_pci-use-conf1.patch
    2400_e1000e-crc-stripping.patch
    2405_sis190-eeprom-mac.patch
    2500_arcmsr-dma-coherent-warnings.patch
    2700_alsa-hda-lifebook-e8410.patch
    # fix Leadtek_WinFast_2000
    winfast-2000.patch
    # fix fuse
    fuse-2.6.24.patch
    # fix ata limit
    ata-2.6.24.patch
    # fix keymap
    keymap-2.6.24.patch
    # fix some sis agp ids
    sis671-intelgly-2.6.24.patch
    build() {
    [ "${CARCH}" = "i686" ] && KARCH=x86
    [ "${CARCH}" = "x86_64" ] && KARCH=x86
    cd $startdir/src/linux-$_basekernel
    # add upstream patch from 2.6.24 series
    patch -Np1 -i ../patch-$pkgver || return 1
    # add queued patches for 2.6.24 series
    #http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
    #patch -Np1 -i ../pre-2.6.24.3.patch || return 1
    ### next 2 lines are only needed for rc kernels
    #patch -Np1 -i ../patch-$pkgver-rc6 || return 1
    #patch -Np1 -i ../patch-2.6.24-rc6-git2 || return 1
    # add custom acpi dsdt patch, in reference to:
    # http://gaugusch.at/kernel.shtml
    # http://acpi.sourceforge.net
    patch -Np1 -i ../acpi-dsdt-initrd-v0.8.4-2.6.21.patch || return 1
    # fix enabling of bluetooth on some toshiba notebooks in reference to:
    # http://bugs.archlinux.org/task/5608
    # http://www.cwrose.de/toshiba/s5200.html#bluetooth
    patch -Np1 -i ../toshiba-bluetooth.patch || return 1
    # fix I/O errors with Teac HD-35PU devices
    patch -Np1 -i ../usb-storage-unusual-devs.patch || return 1
    # improve intel macintosh support, in reference to:
    # http://www.mactel-linux.org/wiki/Main_Page
    # http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/kernel/
    patch -Np1 -i ../mactel-linux-2.6.24.patch || return 1
    # add possibility to undervolt certain cpus, in reference to:
    # https://www.dedigentoo.org/trac/linux-phc/
    patch -Np1 -i ../linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch || return 1
    # fix buggy bios acpi to get c states, which violate acpi specification, in reference to:
    # http://bugzilla.kernel.org/show_bug.cgi?id=7578
    # http://bugs.archlinux.org/task/6875
    patch -Np1 -i ../acpi-buggy-bios.patch || return 1
    # fix Leadtek_WinFast_2000
    # in reference to:
    # http://www.linuxtv.org/v4lwiki/index.php/Leadtek_WinFast_2000
    patch -Np0 -i ../winfast-2000.patch || return 1
    # fix fuse
    # in reference to:
    # http://groups.google.com/group/linux.kernel/msg/20cd4e76b289d738
    patch -Np1 -i ../fuse-2.6.24.patch || return 1
    # fix keymaps
    # in reference to:
    # http://bugzilla.kernel.org/show_bug.cgi?id=10143
    # http://bugs.archlinux.org/task/9593
    patch -Np1 -i ../keymap-2.6.24.patch || return 1
    # fix sis ids
    # in reference to:
    # http://www.linuxconsulting.ro/xorg-drivers/
    # http://bugs.archlinux.org/task/9655
    patch -Np1 -i ../sis671-intelgly-2.6.24.patch || return 1
    # fix some ata limits
    # http://bugs.archlinux.org/task/9386
    # in reference to:
    # http://www.mail-archive.com/linux-ide%40vger.kernel.org/msg14722.html
    patch -Np2 -i ../ata-2.6.24.patch || return 1
    # adding some genpatches from gentoo, in reference to:
    # http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/trunk/2.6.24/
    patch -Np1 -i ../2000_no-if-addrlabel.patch || return 1
    patch -Np1 -i ../2100_sd-sr-medium-detection.patch || return 1
    patch -Np1 -i ../2101_sr-follow-tray-status.patch || return 1
    patch -Np1 -i ../2102_sr-test-unit-ready.patch || return 1
    patch -Np1 -i ../2300_pci-use-conf1.patch || return 1
    patch -Np1 -i ../2400_e1000e-crc-stripping.patch || return 1
    patch -Np1 -i ../2405_sis190-eeprom-mac.patch || return 1
    patch -Np1 -i ../2500_arcmsr-dma-coherent-warnings.patch || return 1
    patch -Np1 -i ../2700_alsa-hda-lifebook-e8410.patch || return 1
    # own patches
    patch -Np1 -i ../avoid-overflows-in-kernel-timec.patch || return 1
    patch -Np1 -i ../clockevent-simplify-list-operations.patch || return 1
    patch -Np1 -i ../uvesafb-small-cleanups.patch || return 1
    patch -Np1 -i ../writeback-speed-up-writeback-of-big-dirty-files.patch || return 1
    # add sqashfs support, in reference to:
    # http://squashfs.sourceforge.net/
    patch -Np1 -i ../squashfs3.3/kernel-patches/linux-2.6.24/squashfs3.3-patch || return 1
    # add unionfs support. in reference to:
    # http://www.fsl.cs.sunysb.edu/project-unionfs.html
    patch -Np1 -i ../unionfs-2.2.4_for_2.6.24.2.diff || return 1
    # add sec_perm-2.6.24.patch for aufs, in reference to:
    # http://aufs.sourceforge.net/
    patch -Np1 -i ../sec_perm-2.6.24.patch || return 1
    patch -Np0 -i ../put_filp-2.6.24.patch || return 1
    patch -Np1 -i ../lhash-2.6.24.patch || return 1
    patch -Np0 -i ../splice-2.6.24.patch || return 1
    # remove the extraversion from Makefile
    ### next line is only needed for rc kernels
    #sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =-rc6|g' Makefile
    sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
    # Arch logo!
    cp ../logo_linux_clut224.ppm drivers/video/logo/
    cp ../logo_linux_mono.pbm drivers/video/logo/
    cp ../logo_linux_vga16.ppm drivers/video/logo/
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    # build the full kernel version to use in pathnames
    . ./.config
    ### next line is only needed for rc kernels
    #_kernver="2.6.24-rc6${CONFIG_LOCALVERSION}"
    _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
    # configure kernel before build
    make menuconfig
    # load configuration
    yes "" | make config
    # build!
    # stop here
    #msg "Stopping build"
    #return 1
    make bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26-gigamo
    cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26-gigamo
    install -D -m644 Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    $startdir/pkg/usr/src/linux-${_kernver}/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26-gigamo
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
    cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
    #mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    cp arch/$KARCH/Makefile_32 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    cp arch/$KARCH/Makefile_64 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add dm headers
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
    # add CLUSTERIP file for iptables
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
    cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
    # add wireless headers
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
    # add xfs and shmem for aufs building
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    cp mm/shmem.c $startdir/pkg/usr/src/linux-${_kernver}/mm/shmem.c
    # add vmlinux
    cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
    done
    cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
    chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
    find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    cd $startdir/pkg/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
    install -m644 -D $startdir/src/mkinitcpio-$pkgname.conf $startdir/pkg/etc/mkinitcpio.d/$pkgname-fallback.conf || return 1
    # set correct depmod command for install
    sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26-gigamo.install
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
    # remove unneeded architectures
    rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    And the error I'm getting when running makepkg (in the kernel26-gigamo directory where my own pathces are added and the pkgbuild resides in):
    ~/kernel/kernel26-gigamo]: makepkg
    ==> Making package: kernel26-gigamo 2.6.24.3-3 (Tue Mar 11 23:02:49 CET 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found linux-2.6.24.tar.bz2 in build dir
    -> Found patch-2.6.24.3.bz2 in build dir
    -> Found config in build dir
    -> Found config.x86_64 in build dir
    -> Found logo_linux_clut224.ppm in build dir
    -> Found logo_linux_mono.pbm in build dir
    -> Found logo_linux_vga16.ppm in build dir
    -> Found kernel26-gigamo.preset in build dir
    -> Found mkinitcpio-kernel26-gigamo.conf in build dir
    -> Found acpi-dsdt-initrd-v0.8.4-2.6.21.patch in build dir
    -> Found avoid-overflows-in-kernel-timec.patch in build dir
    -> Found clockevent-simplify-list-operations.patch in build dir
    -> Found uvesafb-small-cleanups.patch in build dir
    -> Found writeback-speed-up-writeback-of-big-dirty-files.patch in build dir
    -> Found toshiba-bluetooth.patch in build dir
    -> Found usb-storage-unusual-devs.patch in build dir
    -> Found mactel-linux-2.6.24.patch in build dir
    -> Found acpi-buggy-bios.patch in build dir
    -> Found squashfs3.3.tar.gz in build dir
    -> Found unionfs-2.2.4_for_2.6.24.2.diff.gz in build dir
    -> Found lhash-2.6.24.patch in build dir
    -> Found put_filp-2.6.24.patch in build dir
    -> Found sec_perm-2.6.24.patch in build dir
    -> Found splice-2.6.24.patch in build dir
    -> Found linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch in build dir
    -> Found 2000_no-if-addrlabel.patch in build dir
    -> Found 2100_sd-sr-medium-detection.patch in build dir
    -> Found 2101_sr-follow-tray-status.patch in build dir
    -> Found 2102_sr-test-unit-ready.patch in build dir
    -> Found 2300_pci-use-conf1.patch in build dir
    -> Found 2400_e1000e-crc-stripping.patch in build dir
    -> Found 2405_sis190-eeprom-mac.patch in build dir
    -> Found 2500_arcmsr-dma-coherent-warnings.patch in build dir
    -> Found 2700_alsa-hda-lifebook-e8410.patch in build dir
    -> Found winfast-2000.patch in build dir
    -> Found fuse-2.6.24.patch in build dir
    -> Found ata-2.6.24.patch in build dir
    -> Found keymap-2.6.24.patch in build dir
    -> Found sis671-intelgly-2.6.24.patch in build dir
    ==> WARNING: Integrity checks (md5) are missing or incomplete.
    ==> Extracting Sources...
    -> bsdtar -x -f linux-2.6.24.tar.bz2
    -> bunzip2 -f patch-2.6.24.3.bz2
    -> bsdtar -x -f squashfs3.3.tar.gz
    -> gunzip -d -f unionfs-2.2.4_for_2.6.24.2.diff.gz
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    patching file Documentation/video4linux/CARDLIST.cx23885
    patching file Makefile
    patching file arch/powerpc/platforms/chrp/pci.c
    patching file arch/powerpc/platforms/powermac/feature.c
    patching file arch/s390/lib/uaccess_std.c
    patching file arch/sparc/lib/rwsem.S
    patching file arch/sparc64/lib/rwsem.S
    patching file arch/x86/kernel/Makefile_32
    patching file arch/x86/mm/pageattr_64.c
    patching file drivers/acpi/blacklist.c
    patching file drivers/acpi/osl.c
    patching file drivers/base/firmware_class.c
    patching file drivers/char/drm/drm_stub.c
    patching file drivers/char/drm/drm_vm.c
    patching file drivers/char/mspec.c
    patching file drivers/firmware/dmi_scan.c
    patching file drivers/macintosh/smu.c
    patching file drivers/media/video/cx23885/cx23885-cards.c
    patching file drivers/net/bonding/bond_main.c
    patching file drivers/net/dl2k.h
    patching file drivers/net/forcedeth.c
    patching file drivers/net/pcmcia/smc91c92_cs.c
    patching file drivers/net/sky2.c
    patching file drivers/net/wireless/b43/dma.c
    patching file drivers/net/wireless/b43/main.c
    patching file drivers/net/wireless/b43/xmit.c
    patching file drivers/net/wireless/b43/xmit.h
    patching file drivers/net/wireless/b43legacy/dma.c
    patching file drivers/net/wireless/b43legacy/main.c
    patching file drivers/net/wireless/b43legacy/pio.c
    patching file drivers/net/wireless/b43legacy/xmit.c
    patching file drivers/net/wireless/b43legacy/xmit.h
    patching file drivers/pci/hotplug/fakephp.c
    patching file drivers/scsi/gdth.c
    patching file drivers/scsi/sd.c
    patching file drivers/usb/class/usblp.c
    patching file drivers/usb/core/driver.c
    patching file drivers/usb/core/hub.c
    patching file drivers/usb/gadget/fsl_usb2_udc.c
    patching file drivers/usb/misc/usbtest.c
    patching file drivers/usb/serial/cp2101.c
    patching file drivers/usb/serial/ftdi_sio.c
    patching file drivers/usb/serial/ftdi_sio.h
    patching file drivers/usb/serial/keyspan.c
    patching file drivers/usb/serial/kobil_sct.c
    patching file drivers/usb/serial/option.c
    patching file drivers/usb/serial/pl2303.c
    patching file drivers/usb/serial/pl2303.h
    patching file drivers/usb/serial/sierra.c
    patching file drivers/usb/storage/unusual_devs.h
    patching file fs/eventpoll.c
    patching file fs/inotify_user.c
    patching file fs/ncpfs/mmap.c
    patching file fs/nfs/write.c
    patching file fs/splice.c
    patching file fs/xfs/linux-2.6/xfs_file.c
    patching file include/asm-powerpc/pmac_feature.h
    patching file include/linux/Kbuild
    patching file include/linux/dmi.h
    patching file include/linux/hrtimer.h
    patching file include/linux/hugetlb.h
    patching file include/linux/ktime.h
    patching file include/linux/wait.h
    patching file kernel/audit.c
    patching file kernel/compat.c
    patching file kernel/futex.c
    patching file kernel/futex_compat.c
    patching file kernel/hrtimer.c
    patching file kernel/irq/chip.c
    patching file kernel/posix-timers.c
    patching file kernel/relay.c
    patching file kernel/sched_fair.c
    patching file kernel/sysctl.c
    patching file mm/filemap.c
    patching file mm/fremap.c
    patching file mm/hugetlb.c
    patching file mm/memory.c
    patching file mm/mmap.c
    patching file mm/slab.c
    patching file mm/slub.c
    patching file net/bluetooth/hci_sysfs.c
    patching file net/ipv4/fib_hash.c
    patching file net/ipv4/fib_trie.c
    patching file net/ipv4/inet_diag.c
    patching file net/ipv4/ip_output.c
    patching file net/ipv4/ipcomp.c
    patching file net/ipv4/sysctl_net_ipv4.c
    patching file net/ipv4/xfrm4_tunnel.c
    patching file net/ipv6/ip6_output.c
    patching file net/ipv6/ipcomp6.c
    patching file net/netfilter/nf_conntrack_proto_tcp.c
    patching file net/sched/em_meta.c
    patching file net/sched/ematch.c
    patching file scripts/mod/file2alias.c
    patching file security/selinux/ss/services.c
    patching file sound/oss/via82cxxx_audio.c
    patching file sound/usb/usx2y/usX2Yhwdep.c
    patching file sound/usb/usx2y/usx2yhwdeppcm.c
    The next patch would create the file Documentation/dsdt-initrd.txt,
    which already exists! Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file Documentation/dsdt-initrd.txt.rej
    patching file drivers/acpi/Kconfig
    Hunk #1 succeeded at 274 (offset -24 lines).
    patching file drivers/acpi/osl.c
    Hunk #1 succeeded at 312 (offset 56 lines).
    patching file init/initramfs.c
    patching file init/main.c
    Hunk #1 succeeded at 91 with fuzz 1 (offset -6 lines).
    Hunk #2 succeeded at 650 (offset 13 lines).
    ==> ERROR: Build Failed.
    Aborting...
    Sorry for the long post and thanks for bothering with me.
    Last edited by Gigamo (2008-03-11 22:09:12)

    I removed the src/ directory and ran makepkg and it succeeded. Pacman -U kernel.pkg.tar.gz also worked. Now all that's left is rebooting and trying.
    Thanks everyone.
    OK, I guess it's not over yet. I rebooted in the new kernel, but it says it can't find /dev/sda3 (which is my / partition).
    This is my grub entry:
    title Arch Linux Gigamo
    root (hd0,2)
    kernel /boot/vmlinuz26 root=/dev/sda3 ro
    initrd /boot/kernel26-gigamo.img
    Okay well, I didnt realise there was a vmlinux26-gigamo as well. Will see if that fixes it.
    Last edited by Gigamo (2008-03-12 16:53:22)

  • [Solved] pcsx2 segfaults on run, can't build from ABS or AUR (x86_64)

    pcsx2 1.0.0-5 from multilib segfaults immediately after running the command.
    [alexis@cuddles ~]$ pcsx2
    Segmentation fault (core dumped)
    Trying to compile with ABS produces this:
    [alexis@cuddles pcsx2]$ makepkg -s
    ==> Making package: pcsx2 1.0.0-5 (Wed Jul 3 22:29:01 MDT 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Installing missing dependencies...
    resolving dependencies...
    looking for inter-conflicts...
    :: lib32-mesa-libgl and lib32-catalyst-utils are in conflict (lib32-libgl). Remove lib32-catalyst-utils? [y/N]
    I'm pretty sure (but not positive) that lib32-catalyst-utils should be providing lib32-libgl. If I patch the PKGBUILD to remove the dependency on lib32-mesa-libgl (might be a bad idea, but it doesn't seem to be causing the issue), it fails when linking, producing thousands of lines like:
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_tree_view_scroll_to_cell'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_widget_is_composited'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_widget_set_size_request'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_notebook_set_current_page'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_text_buffer_place_cursor'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_editable_delete_selection'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_text_iter_begins_tag'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_tree_view_new_with_model'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_entry_get_text'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_editable_get_position'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_toggle_button_set_active'
    /usr/lib32/libwx_gtk2u_core-2.8.so: undefined reference to `gtk_toolbar_remove_space'
    collect2: error: ld returned 1 exit status
    make[2]: *** [pcsx2/pcsx2] Error 1
    make[1]: *** [pcsx2/CMakeFiles/pcsx2.dir/all] Error 2
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    gtk packages I have installed:
    [alexis@cuddles pcsx2]$ sudo pacman -Q | grep gtk
    gtk-engines 2.21.0-1
    gtk-sharp-2 2.12.11-1
    gtk-update-icon-cache 2.24.19-1
    gtk2 2.24.19-1
    gtk3 3.8.2-1
    gtkmm 2.24.4-1
    gtkmm3 3.8.1-1
    lib32-gtk2 2.24.19-1
    lib32-wxgtk 2.8.12.1-5
    libdbusmenu-gtk2 12.10.2-1
    pygtk 2.24.0-3
    pywebkitgtk 1.1.8-2
    transmission-gtk 2.77-3
    webkitgtk2 1.10.2-7
    wireshark-gtk 1.10.0-3
    wxgtk 2.8.12.1-5
    wxgtk2.9 2.9.4-3
    Hope I provided enough info. Any help is appreciated :3.
    Edit: Oh, and the AUR package (the svn build) fails to compile a dependency, lib32-gtk-engines (another AUR package), with the following error:
    ==> Making package: lib32-gtk-engines 2.21.0-2 (Wed Jul 3 22:45:55 MDT 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found gtk-engines-2.21.0.tar.gz
    ==> Validating source files with md5sums...
    gtk-engines-2.21.0.tar.gz ... Passed
    ==> Extracting sources...
    -> Extracting gtk-engines-2.21.0.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... gcc -m32
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc -m32 accepts -g... yes
    checking for gcc -m32 option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc -m32... gcc3
    checking whether make sets $(MAKE)... (cached) yes
    checking whether gcc -m32 and cc understand -c and -o together... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -m32... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... dlltool
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -m32 object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -m32 -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -m32 supports -fno-rtti -fno-exceptions... no
    checking for gcc -m32 option to produce PIC... -fPIC -DPIC
    checking if gcc -m32 PIC flag -fPIC -DPIC works... yes
    checking if gcc -m32 static flag -static works... yes
    checking if gcc -m32 supports -c -o file.o... yes
    checking if gcc -m32 supports -c -o file.o... (cached) yes
    checking whether the gcc -m32 linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking whether NLS is requested... yes
    checking for intltool >= 0.31.0... 0.50.2 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.18.0
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GTK... no
    configure: error: GTK+-2.12 is required to compile gtk-engines
    ==> ERROR: A failure occurred in build().
    Aborting...
    edit #2: backtrace!
    Reading symbols from /usr/bin/pcsx2...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /usr/bin/pcsx2
    warning: Could not load shared library symbols for linux-gate.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    Program received signal SIGSEGV, Segmentation fault.
    0xf7fe6b43 in _dl_relocate_object () from /lib/ld-linux.so.2
    (gdb) bt
    #0 0xf7fe6b43 in _dl_relocate_object () from /lib/ld-linux.so.2
    #1 0xf7fe0508 in dl_main () from /lib/ld-linux.so.2
    #2 0xf7ff1013 in _dl_sysdep_start () from /lib/ld-linux.so.2
    #3 0xf7fe0a6b in _dl_start () from /lib/ld-linux.so.2
    #4 0xf7fdd097 in _start () from /lib/ld-linux.so.2
    Last edited by alexis_evo (2013-07-05 16:55:23)

    alexis_evo wrote:I wonder why pacman/makepkg is trying to install lib32-mesa-libgl over it. I am using Vi0L0's unofficial catalyst (and xorg) repositories, if it matters.
    Because pcsx2's PKGBUILD has "lib32-mesa-libgl" as makedepends, while I think it should be the virtual name "lib32-gl". It can cause pacman to uninstall nvidia (lib32-nvidia-libgl) or ATI (lib32-catalyst-utils) in order to install mesa files -- not good, I suppose.
    Please file a bug report against pcsx2 package.
    Last edited by josephg (2013-07-04 17:09:14)

  • Kernel debugging using git bisection method in combination with abs.

    Is there any way to use git bisection method for kernel debugging in combination with ABS for building the kernel via makepkg?

    Yes, but ABS for kernel uses some patches in order for the kernel to be successfully build.
    ftp://ftp.archlinux.org/other/kernel26/
    I wanted to know is if there is any way to distinguish what particular patch to use in every bisection point.

  • No modules found in kernel26 package compiled via ABS

    Hi,
    I have been experiencing problems building kernels recently.  I've used ABS and AUR pkgbuilds to build kernels since 2.6.30, mostly to enable the proper USB scheduler for my hub and to try outside kernel patches, see kernel26-ck.  However, since the release of 2.6.35.2, more likely a mere coincidence, I've been compiling small kernels (~4MB) from the default .configs without any modifcations to the PKGBUILDs or the config files.  Looking at the compiled packages, I noticed the omission of the kernel modules that are normally located in /lib/modules/[kernelname]/kernel.  The missing kernel modules obviously causes my machine to be unable to boot (https://bbs.archlinux.org/viewtopic.php … 15#p872215).  My makepkg.conf is below.  Any explanation on what is going on?  Thanks
    ~$ cat /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j2"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Last edited by ssri (2011-01-15 05:56:17)

    Ran linpack and noticed that my CPU temp peaked at 74C, well below the critical threshold of 100C (according to intel).  Usually, my CPU runs at arounr 48-55C unless I am doing some CPU-intensive task.  When that happens, it will run up to the upper 70s.
    ~ $ cat /etc/lininput_xeon64
    Sample Intel(R) LINPACK data file
    Intel(R) LINPACK data
    1 # number of tests
    21000 # problem sizes
    21000 # leading dimensions
    20 # times to run a test
    4 # alignment values (in KBytes)
    # Change the problem sizes and leading dimensions to suite your free physical memory
    # Memory use = 8 x (problem size)^2
    # or
    # Problem size = sqrt (memory use / 8)
    # For 1 GB use a problem size and leading dimensions of 7000
    # For 2 GB use a problem size and leading dimensions of 13700
    # For 4 GB use a problem size and leading dimensions of 21000
    # For 8 GB use a problem size and leading dimensions of 29600
    ~ $ cat lin_xeon64.txt
    Fri Dec 31 21:30:38 PST 2010
    Intel(R) LINPACK data
    Current date/time: Fri Dec 31 21:30:38 2010
    CPU frequency: 1.800 GHz
    Number of CPUs: 1
    Number of cores: 2
    Number of threads: 2
    Parameters are set to:
    Number of tests : 1
    Number of equations to solve (problem size) : 21000
    Leading dimension of array : 21000
    Number of trials to run : 20
    Data alignment value (in Kbytes) : 4
    Maximum memory requested that can be used = 3528424096, at the size = 21000
    ============= Timing linear equation system solver =================
    Size LDA Align. Time(s) GFlops Residual Residual(norm)
    21000 21000 4 666.408 9.2659 3.591869e-10 2.884103e-02

  • Makepkg signature verification

    when I issue makepkg, I get the following output:
    ==> Making package: abs 2.4.4-2 (Wed Jan 21 05:31:23 UTC 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found abs-2.4.4.tar.gz
    -> Found abs-2.4.4.tar.gz.sig
    ==> Validating source files with md5sums...
    abs-2.4.4.tar.gz ... Passed
    abs-2.4.4.tar.gz.sig ... Passed
    ==> Verifying source file signatures with gpg...
    abs-2.4.4.tar.gz ... FAILED (the public key 487EACC08557AD082088DABA1EB2638FF56C0C53 is not trusted)
    I have imported the key. I have signed the key. what is wrong?

    gpg --recv-key 1EB2638FF56C0C53
    fails to reach the server however using
    sudo gpg --recv-key 1EB2638FF56C0C53] yields [gpg: key F56C0C53: "Dave Reisner <[email protected]>"
    gpg: Total number processed: 1
    gpg: unchanged: 1
    however, this means the key is in root's keyring and I don't use makepkg as root. am I correct in this?
    Last edited by shoelesshunter (2015-01-21 11:55:33)

  • Makepkg: Record PKGBUILD sources in .PKGINFO files for maintenance

    To me, it seems like a good idea to record all the source files listed in PKGBUILD's to their accompanying .PKGINFO files; then, should the user have configured the $SRCDEST variable in his /etc/makepkg.conf, this would allow old source files to be (optionally) automatically removed when `pacman -Sc' is run, the package is upgraded, or uninstalled.  Such a feature would save (me) a lot of time and effort manually sorting through and cleaning them.
    Do you "concur"? ( )
    Of course, for this feature to be really useful, you would have to compile from source often.

    This script will parse all the PKGBUILD's in your $ABSROOT directory, collect all their sources into an array, and interactively remove each package NOT in the array from your $SRCDEST, although recording each pkg's source files into its .PKGINFO file would be SO much easier, faster, simpler, and safer (as no unwanted code -- such as little tid bits outside the build() method of PKGBUILD's -- is executed while the sources are being collected).
    #!/bin/bash
    . /etc/makepkg.conf
    . /etc/abs.conf
    if [[ "${SRCDEST}" != "" && "${ABSROOT}" != "" && -d "${SRCDEST}" && -d "${ABSROOT}" ]]; then
    # Holds the column width of the current terminal window
    COLS=$(tput cols)
    # Create an empty row of the width of the current terminal window
    #+ which will be used to erase the current row.
    for sp in $(seq $COLS); do
    empty_row="${empty_row} "
    done
    # Array to hold the sources
    sources=()
    # Array to hold the files to remove
    remove_files=()
    echo "Collecting sources..."
    for PKGBUILD in $(find "${ABSROOT}" -type f -name PKGBUILD); do
    echo -ne "${empty_row}\r${PKGBUILD:0:$COLS}\r"
    . "${PKGBUILD}" &> /dev/null # Silence is golden
    sources=(${sources[@]} ${source[@]##*/})
    done
    # Sort and prune the files
    sources=($(for src_file in ${sources[@]}; do echo "${src_file}"; done | sort | uniq))
    echo -e "${empty_row}\rExamining ${SRCDEST}..."
    for src_file in $(find "${SRCDEST}" -type f | sort); do
    # Show the status
    echo -ne "${empty_row}\r${src_file:0:$COLS}\r"
    # Copy the basename of the current source file for comparisons
    current=${src_file##*/}
    i=0
    j=${#sources[@]}
    k=$(( (i + j) / 2 ))
    # Perform a binary search for the current file
    for (( c = 0; c < ${#sources[@]}; c++ )); do
    let "k = (i + j) / 2"
    if [[ "${sources[k]}" < "${current}" ]]; then
    let "i = k + 1"
    elif [[ "${sources[k]}" > "${current}" ]]; then
    let "j = k - 1"
    else
    break
    fi
    done
    # If the file at ${sources[k]} isn't the one we're looking for,
    #+ check the element immediately before and after it.
    if [[ "${sources[k]}" < "${current}" ]]; then
    # Bash will let me slide when I try to print an element beyond its indices ...
    let "k += 1"
    elif [[ "${sources[k]}" > "${current}" && $k > 0 ]]; then
    # ... but complains when I try to print an element at an index < 0
    let "k -= 1"
    fi
    # If a match is not found ...
    if [[ "${sources[k]}" == "${current}" ]]; then
    # Since both arrays are sorted, I can remove all the elements
    #+ in ${sources[@]} up to index k.
    sources=(${sources[@]:k + 1})
    # Proceed to the next iteration
    continue
    fi
    # Else, add the file to the list of those to be removed
    remove_files=(${remove_files[@]} ${src_file})
    done
    echo -e "${empty_row}\rFound ${#remove_files[@]} files to remove:"
    if (( ${#remove_files[@]} )); then
    for index in $(seq ${#remove_files[@]}); do
    echo " ${index}) ${remove_files[index - 1]}"
    done
    echo -n | read # Clear the buffer (I had some issues)
    echo -n "Would you like to remove all these? [Y|n|c]"
    read ans # or `read -n 1 ans' if you prefer
    case "$ans" in
    ""|[Yy]|[Yy][Ee][Ss])
    for f2r in ${remove_files[@]}; do
    rm "$f2r" || echo "cannot remove $f2r"
    done
    [Cc]|[Cc][Hh][Oo][Ss][Ee])
    for f2r in ${remove_files[@]}; do
    echo -n "${f2r}? [Y|n] "
    echo -n | read # Clear the buffer, again
    read ans
    if [[ "$ans" == "" || "$ans" == [Yy] || "$ans" == [Yy][Ee][Ss] ]]; then
    rm "$f2r" || echo "cannot remove $f2r"
    fi
    done
    esac
    fi
    elif [[ "${SRCDEST}" == "" || ! -d "${SRCDEST}" ]]; then
    echo "Your \$SRCDEST variable is invalid" 1>&2
    echo "Be sure it's set correctly in your \`/etc/makepkg.conf'" 1>&2
    exit 1
    else
    echo "Your \$ABSROOT variable is invalid" 1>&2
    echo "Be sure you have \`abs' installed and that \`/etc/abs.conf' exists" 1>&2
    exit 1
    fi
    (06/02/2009) If we depended on many little scripts to handle our package management, what would then be the purpose of package managers?
    (06/02/2009) Minor edit -> changed `echo' to `echo -n'  on line 90 of my script (superficial modification).
    Last edited by deltaecho (2009-06-02 21:42:54)

Maybe you are looking for

  • How do I stop my MacBook Pro from trying to connect to a home Server?

    My Macbook Pro keeps trying to connection to an external harddrive server that I run at home when I am not home. I get an error that the server is not available. I checked the console and it gives an error of AFP_GetServerInfo - can not connect 64. I

  • DataGuard questions

    How to decide physical or logical database is better for dataguard? if we have to re-build standby db , what need to be stoped on primary while there is no standby? what are command to start/stop log shipping? Can i use Database control to check, fix

  • A/P Invoice Document Vendor Reference Number field..................

    Hi All,             I have a senario:         I have Posted A/P Invoice With Vendor XXX, Vendor Reference number is 111. I should be able to post another A/P Invoice using the same Vendor Reference number-111 but Vendor is YYY.     But I should not b

  • Canon EOS camera recognized but system can't access to new photos

    From some time I can't access to Canon EOS camera - DigiKam crashed when try to show camera flash content, konquerror shows empty space on the camera: pseudodevice.

  • Wind Gust noise on mic, what filter best to kill this ?

    Hi, Is there anything I can drag drop or other method onto the Audio to kill the noise of wind gust on mic ? Even a separate mic ( I have a Rode mic) sometimes is unable to eliminate such, but filming when only the inbuilt mic was available sees this