Kernel PKGBUILD force make menuconfig (SOLVED)

Using an ABS kernel26 to build my own kernel package, but stuck on making menuconfig!
I have my kernel, patches, PKGBUILD, etc... all collected in a directory on my desktop (ALL SET, READY TO GO)
So, here's what i'd like to be able to do:
#makepkg... [[ when makepkg runs i'd like to get to a terminal and make menuconfig before the process continues ]]
Therefore i'd like the PKGBUILD file to specify that i complete make menuconfig myself before the makepkg continues:
Okay, got it the sources have to be available to the makepkg script in order to do a make menuconfig!
I'll collect all this together and produce a mini howto ASAP.
Last edited by Hongkongblue (2007-08-17 04:57:48)

There are already various wiki pages about this. If you would like to add to them, please feel free.

Similar Messages

  • [SOLVED] Compiling kernel PKGBUILD from ABS (2.6.34)

    So I'm currently compiling a kernel from ABS, and its been running som docbook stuff for 2-3 hours now which I've never seen before when compiling a kernel with ABS.
    I commented out the line that allowed me to edit the config with make menuconfig. I tweaked the kernel to 1000hz and set up my cpu family.
    Is this normal? Im pretty sure this didnt happen when I compiled 2.6.33.4 from ABS
    This is what its been spamming for the past ~2 hours:
    Note: Writing struct_usb_host_ss_ep_comp.9
    Warn: meta author : no refentry/info/author struct usb_host_endpoint
    Note: meta author : see http://docbook.sf.net/el/author struct usb_host_endpoint
    Warn: meta author : no author data, so inserted a fixme struct usb_host_endpoint
    Note: Writing struct_usb_host_endpoint.9
    Warn: meta author : no refentry/info/author struct usb_interface
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface
    Warn: meta author : no author data, so inserted a fixme struct usb_interface
    Note: Writing struct_usb_interface.9
    Warn: meta author : no refentry/info/author struct usb_interface_cache
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface_cache
    Warn: meta author : no author data, so inserted a fixme struct usb_interface_cache
    Last edited by XAM (2010-06-29 06:19:50)

    Coacher wrote:Since 2.6.34 there is also kernel26-manpages and kernel26-docs packages that also placed in kernel26 PKGBUILD.
    I've never compiled that docs stuff for myself so cant say how long it takes, but if you need only new kernel26 package you can safely wipe out that lines from PKGBUILD.
    wow, thats good to hear. Took ages compiling with it there.

  • Make menuconfig clarification(SOLVED)

    I'm trying to understand "make menuconfig" a little better.I know what driver i need for my wireless card: "Network device support --->/Wireless LAN --->/Ralink driver support --->/Ralink rt2501/rt61 (PCI/PCMCIA) support"
    So can i disable everything else under "Network device support",and all the sub directories.
    --- Network device support │ │
    │ │ <M> Intermediate Functional Block support │ │
    │ │ <M> Dummy net driver support │ │
    │ │ <M> Bonding driver support │ │
    │ │ <M> MAC-VLAN support (EXPERIMENTAL) │ │
    │ │ <M> MAC-VLAN based tap driver (EXPERIMENTAL) │ │
    │ │ <M> EQL (serial line load balancing) support │ │
    │ │ <M> Universal TUN/TAP device driver support │ │
    │ │ <M> Virtual ethernet pair device │ │
    │ │ <M> General Instruments Surfboard 1000 │ │
    │ │ < > ARCnet support ---> │ │
    │ │ {M} Generic Media Independent Interface device support │ │
    │ │ {M} PHY Device support and infrastructure ---> │ │
    │ │ [*] Ethernet (10 or 100Mbit) ---> │ │
    │ │ -*- Ethernet (1000 Mbit) ---> │ │
    │ │ [*] Ethernet (10000 Mbit) ---> │ │
    │ │ < > Token Ring driver support ---> │ │
    │ │ [*] Wireless LAN ---> │ │
    │ │ WiMAX Wireless Broadband devices ---> │ │
    │ │ USB Network Adapters ---> │ │
    │ │ [*] PCMCIA network device support ---> │ │
    │ │ [ ] Wan interfaces support ---> │ │
    │ │ [*] ATM drivers ---> │ │
    │ │ <M> IEEE 802.15.4 drivers ---> │ │
    │ │ *** CAIF transport drivers *** │ │
    │ │ <M> CAIF TTY transport driver │ │
    │ │ <M> CAIF SPI transport driver for slave interface │ │
    │ │ [*] Next command and length in start of frame │ │
    │ │ <M> Xen network device frontend driver | |
    | | < > FDDI driver support | |
    │ │ [ ] HIPPI driver support (EXPERIMENTAL) │ │
    │ │ <M> PLIP (parallel port) support │ │
    │ │ {M} PPP (point-to-point protocol) support │ │
    │ │ [*] PPP multilink support (EXPERIMENTAL) │ │
    │ │ [*] PPP filtering │ │
    │ │ <M> PPP support for async serial ports │ │
    │ │ <M> PPP support for sync tty ports │ │
    │ │ <M> PPP Deflate compression │ │
    │ │ <M> PPP BSD-Compress compression │ │
    │ │ <M> PPP MPPE compression (encryption) (EXPERIMENTAL) │ │
    │ │ <M> PPP over Ethernet (EXPERIMENTAL) │ │
    │ │ <M> PPP over IPv4 (PPTP) (EXPERIMENTAL) │ │
    │ │ <M> PPP over ATM │ │
    │ │ <M> PPP over L2TP (EXPERIMENTAL) │ │
    │ │ <M> SLIP (serial line) support │ │
    │ │ [ ] CSLIP compressed headers │ │
    │ │ [ ] Keepalive and linefill │ │
    │ │ [ ] Six bit SLIP encapsulation │ │
    │ │ [ ] Fibre Channel driver support │ │
    │ │ <M> Network console logging support │ │
    │ │ [*] Dynamic reconfiguration of logging targets │ │
    │ │ [ ] Netpoll traffic trapping │ │
    │ │ <M> Virtio network driver (EXPERIMENTAL) │ │
    │ │ <M> VMware VMXNET3 ethernet driver
    Last edited by unilx (2011-02-24 06:26:59)

    You might try:
    make localmodconfig
    before
    make menuconfig
    since localmodconfig will cull unneeded modules from the build, which makes it easier to sort the cruft from the cream in menuconfig.  localmodconfig automatically makes selections of needed modules based on what is running on your system when you run the command.

  • Making a kernel PKGBUILD

    Hello,
    I tried to make my own kernel package with the abs system. I studied the wiki documentation (http://wiki.archlinux.org/index.php/Cus … n_with_ABS)
    After making all configurations in the PKGBUILD, I copied the "kernel126.install", kernel-config-file and the patches in /var/abs/local/kernel26-sn-client-04"
    My PKGBUILD:
    # Contributor: Flasher <[email protected]>
    pkgname=kernel26-sn-client-04
    pkgver=2.6.13
    pkgrel=1
    pkgdesc="The Linux Kernel 2.6.13.4 for sn-client-04 withpatches for softcam"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    install=kernel26.install
    ##### add any patch sources to this section
    source=(config ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    dvb_demux.c.patch av7110_ca.c.patch )
    # Function to grab var from src
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    ##### Uncomment and apply any patches here
    patch -Np1 -i ../dvb_demux.c.patch || return 1
    patch -Np1 -i ../av7110_ca.c.patch || return 1
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    ##### Load config - uncomment your preferred config method
    #yes "" | make config
    #make oldconfig || return 1
    make menuconfig
    #make xconfig
    #make gconfig
    ##### NO USER CHANGES BELOW HERE #####
    # save the current pkgname
    old_pkgname=$pkgname
    # set pkgname for build purposes - DO NOT alter!
    pkgname=kernel26
    # save the updated config to build with today's date
    cp ./.config $startdir/config-$(date +%b%d-%Hh)
    # get EXTRAVERSION from Makefile to create a unique pkgname and /usr/src directory
    _kernextra=$(getvar "EXTRAVERSION")
    # grab the 2.6.x.y version suffix from pkgver
    _y="`echo $pkgver | cut --delim "." --fields 4`"
    # remove .y version suffix from _kernextra
    _kernextra="`echo $_kernextra | sed "s|.$_y||g"`"
    # Read the full kernel version info from new config to use in pathnames and pkgname
    . ./.config
    # Kernel custom - to create a unique pkgname (see below)
    _kerncust="${_kernextra}${CONFIG_LOCALVERSION}"
    # Kernel release - will be the same as Makefile
    _kernrel="${pkgver}${_kerncust}"
    # Get the pkgver suffix for unique pkgname and /boot file suffices
    _pkgversuf="`echo $pkgver | sed "s|2.6.||g" | sed "s|.||g"`"
    # Set /boot file suffices from kernel release and pkgver suffix
    _kernboot="${_pkgversuf}${_kerncust}"
    # Set a new pkgname from kernel release and pkgver suffix
    pkgname="${pkgname}${_pkgversuf}${_kerncust}"
    # build!
    echo
    echo -n "Do you want to make clean (default YES)? (YES/NO): "
    read choice
    echo
    echo -n "Press any key to start make or CTRL+C to quit"
    read anykey
    if [ "${choice}" = "NO" ] ; then
    make bzImage modules || return 1
    else
    make clean bzImage modules || return 1
    fi
    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${_kernboot}
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26${_kernboot}
    install -D -m644 Makefile
    $startdir/pkg/usr/src/linux-${_kernrel}/Makefile
    install -D -m644 .config
    $startdir/pkg/usr/src/linux-${_kernrel}/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26${_kernboot}
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/include
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernrel}/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers $startdir/pkg/usr/src/linux-${_kernrel}
    cp -a scripts $startdir/pkg/usr/src/linux-${_kernrel}
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/
    cp arch/i386/kernel/asm-offsets.s
    $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernrel}/$i
    done
    cd $startdir/pkg/usr/src/linux-${_kernrel}/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-${_kernrel}
    cd $startdir/pkg/lib/modules/${_kernrel} &&
    (rm -f source build; ln -sf /usr/src/linux-${_kernrel} build)
    # Correct the pkgname in our PKGBUILD - this allows correct gensync operation
    # NOTE: pkgname variable must be declared with first 10 lines of PKGBUILD!
    cd $startdir
    sed -i "1,11 s|pkgname=$old_pkgname|pkgname=$pkgname|" ./PKGBUILD
    # vim:syntax=sh
    When I execute the command "makepkg" I get the following error message:
    [root@sn-client-04 kernel26-sn-client-04]# makepkg
    : command not found
    : command not found:
    '/PKGBUILD: line 15: syntax error near unexpected token `{
    '/PKGBUILD: line 15: `getvar() {
    ) does not exist.l scriptlet (kernel26.install
    Does anybody know the mistake in my configuration?
    Thanks for your answers! 
    Greetings
    Flasher

    Sorry, but this wasn't the mistake  :?
    Now, all sources are located in one line:
    # Contributor: Flasher <xxxxxxxxxxxxxxxxxxxx>
    pkgname=kernel26-sn-client-04
    pkgver=2.6.13.4
    pkgrel=1
    pkgdesc="The Linux Kernel 2.6.13.4 for sn-client-04 with patches for softcam"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    install=kernel26.install
    ##### add any patch sources to this section
    source=(config ftp://ftp.kernel.org/pub/linux/kernel/v … er.tar.bz2 dvb_demux.c.patch av7110_ca.c.patch)
    # Function to grab var from src
    getvar() {
      old=$(cat Makefile | grep "^$1")
      echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
      return 0
    build() {
      cd $startdir/src/linux-$pkgver
      ##### Uncomment and apply any patches here
      patch -Np1 -i ../dvb_demux.c.patch || return 1
      patch -Np1 -i ../av7110_ca.c.patch || return 1
      # get rid of the 'i' in i686
      carch=`echo $CARCH | sed 's|i||'`
      cat ../config | sed "s|#CARCH#|$carch|g" >./.config
      ##### Load config - uncomment your preferred config method
      #yes "" | make config
      #make oldconfig || return 1
      make menuconfig
      #make xconfig
      #make gconfig
      ##### NO USER CHANGES BELOW HERE #####
    The error message is the same: (only line 14 instead of line 15)
    [root@sn-client-04 kernel26-sn-client-04]# makepkg
    : command not found
    : command not found:
    '/PKGBUILD: line 14: syntax error near unexpected token `{
    '/PKGBUILD: line 14: `getvar() {
    ) does not exist.l scriptlet (kernel26.install
    I think it must be correct  Any ideas?
    Greetings
    Flasher
    P.S.: Sorry for my german-english 

  • Make menuconfig

    Hey, I´m new to archlinux and I´m having some problem when it comes to configuring the kernel.
    When I go to /usr/src/linux-2.6.29-ARCH/ and type make menuconfig, this massage comes up:
    *** Unable to find the ncurses libraries or the
    *** required header files.
    *** 'make menuconfig' requires the ncurses libraries.
    *** Install ncurses (ncurses-devel) and try again.
    make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
    make: *** [menuconfig] Error 2
    I already have core/ncurses 5.7-2.1 (base) but it still won´t let me configure the kernel.
    Thanks for any response.

    Hi Iz0r,
    compiling kernel (and every other package) in arch is done with makepkg command.
    To use makepkg, you must have PKGBUILD script. In this script you specify package name, version, etc.
    The best way to compile kernel is to download PKGBUILD (and other needed files) from ABS.
    If you have yaourt installed, you can do yaourt -G kernel26, if you want to use abs switch to /var/abs/core/kernel26. Both ways will show you PKGBUILD, config, configx64 and other files needed to build.
    To configure kernel with menuconfig open PKGBUILD and find line
    #make menuconfig # CLI menu for configuration
    and uncomment this line.
    You can also use make xconfig (which uses Qt3 menus). Choose only one of them.
    Additionally you can change pkgname=kernel26 to your need (e.g. pkgname=kernel26-izor) so you end up with kernel26-izor package, and you can have this kernel alogside with the oficial arch stock kernel (just edit grub menu then).
    This is the most simple way (and the best) to compile your own kernel. But why do you need it? Perhaps it would be better to say us the reason for this. Or is it just learning?
    P.S. Don't forget that removing modules from kernel you need to boot can make your system unbootable. Therefore i suggest to change pkgname (so the arch kernel will survive on your system unless your new kernel will work).

  • Kernel PKGBUILD naming

    Hi archers!
    I finally managed building a working kernel config and building the kernel with this PKGBUILD and it works fine so far.
    The only thing that disturbs me, is that the custom kernel's "name" (uname -r) and the /lib/modules dir are named "kernel26-custom-custom-custom" (note the three "-custom"s).
    In the PKGBUILD I only set "_pkg_base" to "kernel26" and "_cfgname" to "custom".
    During kernel configuration, I set "LOCALVERSION" to "-custom" as well.
    /boot files and everything is named just fine, but as I said, the kernel name is always screwed up with the triple "-custom".
    I'm not really good in bash but I think it's caused by these lines in the PKBGUILD:
    # set EXTRAVERSION to help use unique /lib/modules/ subdirectories
    _ker_make_ver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    _ker_extraver=`echo $_idstr | sed "s|^$_ker_make_ver||"`
    # update EXTRAVERSION in the Makefile by adding our (for modules location)
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    cat Makefile | sed "s|$_oldline|EXTRAVERSION\ =\ $_ker_extraver$_patchset$_cfgname|" > tmpMake
    mv tmpMake Makefile
    now, is this behaviour intended, did I just make some input mistake or is there an error in the pkgbuild?
    Thanks very much in advance!

    All right, I figured out that the first two "-custom"s are caused by this line in the PKGBUILD:
    cat Makefile | sed "s|$_oldline|EXTRAVERSION\ =\ $_ker_extraver$_patchset$_cfgname|" > tmpMake
    ( $_ker_extraver contains one and $_cfgname, of course, the other)
    The third one seems to be appended by the LOCALVERSION config setting, which should actually be the only one to be added I think.
    So would it be possible to just omit all of the PKGBUILD code quoted in the post above and let the -LOCALVERSION do the work for a unique name?
    EDIT: This actually works quite well, but I suppose problems might occur in other places then. No bash expert here?
    EDIT 2: When trying to compile the nvidia module afterwards, I also found out that
    # copy files necessary for later builds, like nvidia and vmware
    cp arch/i386/Makefile.cpu $startdir/pkg/usr/src/linux-$_idstr/arch/i386/
    was missing, but exists in the stock kernel PKGBUILD.
    Is this one acutally somehow out-dated or am I just too stupid to make it work correctly?
    Last edited by Eradest (2007-10-27 15:45:21)

  • Where is make menuconfig?

    I finally got arch installed and booted. I'm using a pcmcia card for network connection, and would like to compile it into my kernel. I installed the 2.6.3 kernel off of the .6 iso. I change directories and try a make menuconfig (as I've become very accustomed to doing in gentoo and slackware) and I get this error:
    #cd /usr/src/linux
    #make menuconfig
    make: *** No rule to make target 'menuconfig'. Stop.
    I am very familiar with how to recompile a kernel, and have searched the forums and docs looking for arch's way to do it. Any suggestions?

    devfs is deprecated in the 2.6 series kernel yes, but arch is still configured to use it, so you need to compile that support in, regardless.
    Thereare threads around here somewhere with a howto on converting arch to udev (nontrivial) or to the "normal" /dev filesystem (nontrivial), but I'd suggest sticking with devfs support until the developers officially change Arch.
    Of course, its your computer, so you can do what you like. (try that with any other distro! )
    Dusty

  • Kernel options to make a laptop cooler (less warm)

    With just chromium with 6 tabs open (no flash) my Dell E5400 is cruising at 60ºC--70ºC.
    Other than chroium there is MonsterWM, dzen2 and netcfg in the background. So nothing too cpu intensive.
    With which options should I compile my kernel to make my laptop as cool as possible?
    Last edited by el mariachi (2012-04-19 15:37:37)

    ludwis wrote:Are you sure it is a software problem? These are not normal temperatures for idle state. Maybe you just need to remove dust from inside. If you got these tempertures right after you bought this laptop, then it is probably damaged. As to the software side, do you use any kind of power saving features (like cpu frequency scaling or disabling unused devices)? Have a look at http://www.lesswatts.org.
    Laptop is not new, but I cleaned it.
    Ondemand, PM PCI, the powerdown script, 300Mhz clock, pcie_aspm=force, phc-intel undervolting, and still get those temps idling. There was one version of the 3.x kernel series that gave 30-ish ºC idling but I long lost track of which

  • VirtualBox kernel 2.6.29 patch[SOLVED]

    Hi,
    I'm trying to build VirtualBox from AUR. I tried to apply the patch as instructed, got an error:
    Verifying archive integrity... MD5 checksums are OK. All good.
    patch: **** Can't open patch file /home/me/sandbox/abs/virtualbox_bin/src/virtualbox-kernel-2-6-29.patch : No such file or directory
    ==> ERROR: Build Failed.
        Aborting...
    There's no such file indeed. I suppose the trouble is due to my lack of skills; unwilling to contaminate the AUR thread with dumb questions, I post here .
    My PKGBUILD, modified according to instructions to the best of my ability :
    # Maintainer: thotypous <matiasΘarchlinux-br·org>
    # Contributor: Peter 'piie' Feuerer <peterΘpiie·net>
    # Contributor: Sascha Pfau <MrPeacockΘgmail·com>
    # Contributor: iggy <iggy.mfΘgmail·com>
    pkgname="virtualbox_bin"
    pkgver="2.1.4"
    _build="43001"
    pkgrel=2
    pkgdesc="Powerful x86 virtualization (Personal Use Binaries Edition)"
    url="http://www.virtualbox.org"
    license=('custom:PUEL')
    arch=('i686' 'x86_64')
    install=('vbox.install')
    md5sums=('8762a1c666af51e1b84f6b9ae53908dd'
    '9576c4ee3c362f7bc30525a4f07ea3ed')
    _architect='x86'
    [ "$CARCH" = "x86_64" ] && _architect='amd64'
    [ "$CARCH" = "x86_64" ] && md5sums[0]='c07e44702c330796eefd897143a245ae'
    source=("VirtualBox-${pkgver}-${_build}-Linux_${_architect}.run::http://download.virtualbox.org/virtualbox/${pkgver}/VirtualBox-${pkgver}-${_build}-Linux_${_architect}.run"
    'vbox_build_module')
    install=('vbox.install')
    depends=('libstdc++5' 'libxcursor' 'gcc' 'make')
    optdepends=("qt: For VirtualBox GUI"
    "sdl: For VBoxSDL")
    provides=("virtualbox=${pkgver}")
    conflicts=('virtualbox-ose' 'virtualbox-modules')
    build() {
    # Check package
    sh "VirtualBox-${pkgver}-${_build}-Linux_${_architect}.run" --check || return 1
    # Unpack
    echo yes | sh "VirtualBox-${pkgver}-${_build}-Linux_${_architect}.run" --target "$srcdir" \
    --nox11 --noexec &>/dev/null || return 1
    mkdir -p \
    "$pkgdir/opt/virtualbox" \
    "$pkgdir/usr/bin" \
    "$pkgdir/etc/udev/rules.d" \
    "$pkgdir/etc/vbox" \
    "$pkgdir/usr/share/applications" \
    "$pkgdir/usr/share/pixmaps" || return 1
    cd "$pkgdir/opt/virtualbox"
    tar -jxf "$srcdir/VirtualBox.tar.bz2" || return 1
    # Patch needed to build the virtualbox modules under kernel 2.6.29
    patch -Np3 -i "${srcdir}/virtualbox-kernel-2-6-29.patch" || return 1
    # Mark set-user-ID-on-execution if release is marked as a hardened build.
    if egrep '^HARDENED="1"' "$srcdir/install.sh" &> /dev/null; then
    chmod 4511 "VirtualBox" "VBoxSDL" "VBoxHeadless"
    for _n in "VBoxVMM.so" "VBoxREM.so" "VBoxRT.so" "VBoxDDU.so" "VBoxXPCOM.so"; do
    ln -sf "/opt/virtualbox/${_n}" "components"
    done
    chmod go-w .
    fi
    # Replace VirtualBox built-in Qt by system Qt libraries.
    # Fixes problems with some KDE themes reported by users.
    rm "libVBoxQtCore.so.4" "libVBoxQtGui.so.4" "libVBoxQtNetwork.so.4"
    ln -s "/usr/lib/libQtCore.so.4" "libVBoxQtCore.so.4"
    ln -s "/usr/lib/libQtGui.so.4" "libVBoxQtGui.so.4"
    ln -s "/usr/lib/libQtNetwork.so.4" "libVBoxQtNetwork.so.4"
    # Install vbox_build_module
    install -D -m744 "$srcdir/vbox_build_module" "$pkgdir/usr/bin/vbox_build_module"
    # NOTE: Comment the following line if you want the SDK.
    rm -Rf "$pkgdir/opt/virtualbox/sdk"
    # Symlink the launchers
    for _app in "VirtualBox" "VBoxHeadless" "VBoxManage" "VBoxSDL" "VBoxSVC" "VBoxTunctl" "rdesktop-vrdp"; do
    ln -s "/opt/virtualbox/${_app}" "$pkgdir/usr/bin/${_app}"
    done
    # Symlink the desktop icon
    ln -s "/opt/virtualbox/VBox.png" "$pkgdir/usr/share/pixmaps/VBox.png"
    ln -s "/opt/virtualbox/VirtualBox.desktop" "$pkgdir/usr/share/applications/VirtualBox.desktop"
    # Replace some init scripts by simplified stuff
    sed -i -e 's,sudo /etc/init.d/vboxdrv setup,/usr/bin/vbox_build_module,g' "$pkgdir/opt/virtualbox/VBox.sh"
    sed -i -e 's,sudo /etc/init.d/virtualbox restart,modprobe vboxdrv,g' "$pkgdir/opt/virtualbox/VBox.sh"
    # Add udev rules
    echo 'KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"' > \
    "$pkgdir/etc/udev/rules.d/60-vboxdrv.rules"
    # Point the installation directory to vbox
    echo '# VirtualBox installation directory' > "$pkgdir/etc/vbox/vbox.cfg"
    echo 'INSTALL_DIR="/opt/virtualbox"' >> "$pkgdir/etc/vbox/vbox.cfg"
    # Link the license
    mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
    ln -s "/opt/virtualbox/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/PUEL"
    # Link the directory because rdesktop-vrdp has a hardcoded path
    ln -s "/opt/virtualbox" "$pkgdir/opt/VirtualBox-${pkgver}"
    Last edited by Llama (2009-04-08 09:09:10)

    peart wrote:The patch file name is not in the source array, so it isn't being copied into the src directory.
    I suspected something like that, but the patch file is nowhere to be found (?).
    You should add the file name to the source array and regenerate the md5sums.
    How am I supposed to do this?
    Last edited by Llama (2009-04-08 07:51:00)

  • VFAT kernel module won't load [SOLVED]

    I'm running kernel version 3.7.5 and after the update that got me to that version, it appears to have completely borked VFAT and kernel modules in general. My system still runs fine, but the vfat module is missing and cannot be loaded with modprobe or insmod. Oddly, the kernel object exists in /usr/lib/modules, yet my system seems to be ignoring it. Upon further investigation, it appears that it is impossible to load or remove ANY modules using modprobe or insmod. I recently did a reinstall of Arch, following exactly the steps in the Beginner's Guide, if that makes any difference.
    Help? Please? I need the vfat module loaded before I can compile a custom kernel (my next big project)
    Last edited by ParanoidAndroid (2013-02-01 00:50:27)

    yup, that worked *facepalm* marking as solved.

  • PKGBUILD source conflict problem [solved]

    I'm making a PKGBUILD for a game called noiz2sa.  The problem is, it comes in two separate pieces - one is the binary and the other is some extra files and when extracted they both have the same name - noiz2sa.  Because of this, when I put the both in the source= section and run makepkg, one of them inevitably gets overwritten.  Is there a way to fix this?
    Edit: I couldn't find a delete option so I'm marking this solved - after reading the PKGBUILD man page again, the noextract option was what I needed to work around this issue.
    Last edited by Shirakawasuna (2007-05-07 07:56:21)

    I wrapped it with double quotes and it worked , I've also added a note on the wiki page.
    thanks

  • Missing kernel symlink following upgrade? [SOLVED]

    I just updated my system and went to change my /boot/grub/menu.lst to point to the new kernel images rather than the symlinks.
    following that I went to remove the symlinks but found that there wasn't one for the vmlinuz image (just the ramdisk ones)
    obviously this hasn't caused me any problems because I edited my bootloader before rebooting but I was wondering if this were the case for others who upgraded or it was some weird quirk on my system?
    Obviously if it's a bug it's pretty important but just wanted to check that I'm not missing something obvious? anyone else had this issue?
    Last edited by kennyd (2011-08-07 20:55:53)

    graysky wrote:
    This is by design.
    http://mailman.archlinux.org/pipermail/ … 21214.html
    ah, thanks.  silly me.  I had a custom 3.0 kernel installed :S  that explains that then, my bad. 
    I shall mark the thread solved then go beat myself up for being stoopid. 
    Last edited by kennyd (2011-08-07 20:56:23)

  • Skype freezes on closing, won't force close. (Solv...

    Skype freezes on closing, won't force close. I reinstalled, removed  temporary files etc.(In safe mode)
    I'm pretty sure that as administrator I should be able to close the process! But I can't. Why can't I close it?
    I can't sign in because the process is still running telling that I'm still online on my own computer.
    ===Solution===
    If you have the internet explorer feature disabled on your system try enabling it
    ===========
    Solved!
    Go to Solution.

    Reboot your computer in Safe mode and try again to reset all Skype settings.
    Quit Skype or use Go to Windows Start and in the Search/Run box type %appdata% and then press Enter or click the OK button. The Windows File Explorer will pop up. There locate a folder named “Skype”. Rename this folder to something different, e.g. Skype_old.
    Next go to Windows Start and in the Search/Run box type %temp%\skype and then press Enter or click the OK button. Delete the DbTemp folder.
    Reboot in normal mode and try to restart Skype.
    N.B. If needed, you will still be able to re-establish your call and chat history. All data is still saved in the Skype_old folder.

  • 2 kernel PKGBUILDs in wiki?

    Hi all
    I'm thinking of trying my first custom kernel (I'm after the hdaps_protect patch), so went to the wiki, and found these:
    http://wiki.archlinux.org/index.php/Ker … n_with_ABS
    http://wiki.archlinux.org/index.php/Cus … n_with_ABS
    Both pages give a PKGBUILD but I'm not sure which one is better, indeed both pages seem to be written as though the other doesn't exist.
    So, is there one page that supersedes the other, or are the two PKGBUILDs designed for different tasks? And in that case what's the difference?
    Jack

    Here the one I linked to you
    #DO NOT CHANGE INSIDE THIS BLOCK
    pkgver=$_kerver
    if [ ! -z "$_extraver" ]; then
    _scratch="_$_extraver"
    pkgver=$pkgver$_scratch
    _extraver=`echo "-$_extraver" | sed 's|_|-|'`
    fi
    pkgdesc="$_desc - ver: $_kerver$_extraver;"
    pkgname=$_pkg_base
    if [ ! -z "$_patchset" ]; then
    pkgdesc="$pkgdesc pset: $_patchset;"
    _patchset="-$_patchset"
    pkgname="$pkgname$_patchset"
    fi
    if [ ! -z "$_cfgname" ]; then
    pkgdesc="$pkgdesc cfg: $_cfgname;"
    _cfgname="-$_cfgname"
    pkgname="$pkgname$_cfgname"
    fi
    pkgdesc="$pkgdesc bld: $pkgrel"
    _idstr="$_kerver$_extraver$_patchset$_cfgname"
    Then after md5 check you get build() {
    Where as with the other one it enters build almost straight away, but as said I'm far from sure.
    build() {
    echo "_pkg_base: $_pkg_base"
    echo "_patchset: $_patchset"
    echo "_cfgname: $_cfgname"
    echo "_kerver: $_kerver"
    echo "_extraver: $_extraver"
    echo "pkgrel: $

  • Tvtime not working after upgrading to kernel-2.6.31-1 (Solved)

    Hello friends,
    When I am using kernel-2.6.30.8 it was everything ok with my system. tvtime has been working with least cpu utilization then. But after upgrading to kernel-2.6.31-1 I got following error messages when trying to open tvtime
    damu@station210 ~]$ tvtime
    Running tvtime 1.0.2.
    Reading configuration from /etc/tvtime/tvtime.xml
    Reading configuration from /home/damu/.tvtime/tvtime.xml
    xvoutput: No XVIDEO port found which supports YUY2 images.
    *** tvtime requires hardware YUY2 overlay support from your video card
    *** driver. If you are using an older NVIDIA card (TNT2), then
    *** this capability is only available with their binary drivers.
    *** For some ATI cards, this feature may be found in the experimental
    *** GATOS drivers: http://gatos.souceforge.net/
    *** If unsure, please check with your distribution to see if your
    *** X driver supports hardware overlay surfaces.
    What happened to driver and kernel? any way to go back to previous kernel version?
    Requesting help! Thanks
    Last edited by mvdvarrier (2009-10-14 06:26:14)

    Perry3D wrote:
    Are you using the xf86-video-ati/radeonhd driver?
    Try disabling KMS by appending nomodeset to the kernel parameters. At the moment kms ist not usable without upgrading some libs (mesa?, libdrm?). Search the forums for kms to get more information.
    Thanks Perry3D
    I disabled KMS as per http://wiki.archlinux.org/index.php/ATI. Now tvtime is working great. With the release of kernel 2.6.32 KMS can be enabled for ati card with radeon3200 chips
    mvdvarrier

Maybe you are looking for

  • How to call a bean method through javascript?

    Hi, i want to call a bean method using the javascript. thansk in advance.

  • How do i downgrade to IOS-5 last version?

    How do i downgrade to IOS-5 last version?

  • Difference in report of foreground n background

    Hi gurus,    If a run a report in foreground a report is getting generated and after that in the report there is a checkbox if i click it and press a item in the menu bar which i have designed using menu paniter further processing happens but if i ru

  • GROUP WISE REPORTS IN GL

    Dear All, Can you any body tell me how to get group wise reports in SAP. My Client presently using Tally and TRIO where they are getting the reports like: for example: Total Sundry Creditors is main group in that again Sub groups like: Sundry Credito

  • ABAP Programing help regarding function modules coding

    Hi, i'm currently creating a function module that retrieve a number from a table and add one to it and return back the value to the table. the codes are as follow: FUNCTION ZFM_NUMBER " * " Local Interface: " EXPORTING "      VALUE (ZZNUMBER) TYPE ZN