[SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

Hi all,
I am trying to save automatically the package PKGBUILD when I install a package with an aur helper. I use packer and aurget.
I modified makepkg.conf and set this relevant variables:
# 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
PKGDEST=/var/cache/pacman/pkg/aur
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
SRCDEST=/var/cache/pacman/pkg/aur/src
The PKGDEST works fine and packages are saved in the specified path.
However SRCDEST variable doesn't seem to work, as I expected the PKBUILDs and other sources to be saved there, but there are no files in the path.
In the end what I am trying to emulate is something similar to ABS but for installed packages from AUR.
Last edited by adrianbs (2012-01-29 12:18:41)

adrianbs wrote:
jasonwryan wrote:
Cower (as awesome as it is) doesn't open the PKGBUILD in vim, build the package and then ask if you want to keep the build directory.
I reckon my 10 lines are pretty well spent...
Cower doesn't but pacaur (which wraps it) does
It has an option it the config file to keep the build dir.
And for only an extra 872 lines of code...

Similar Messages

  • [SOLVED] Possible issue with makepkg or gnupg 2.1???

    I am quite willing to admit that it's possible I'm totally stupid and missing something basic, but I just wanted to see if this makes any sense to you folks. Basically, I'm wondering if there's a regression in makepkg or gpg-agent with GnuPG 2.1.
    Step 1: Verify the condition of my personal keyring.
    gpg -k | grep Xyne
    No results. Good.
    Step 2: Verify the condition of pacman's keyring.
    sudo pacman-key --list-keys | grep Xyne
    No results. Good
    Step 3: Use pacman-key (NOT my local GPG keyring) to import Xyne's key and trust it.
    sudo pacman-key --recv-key EC3CBE7F607D11E663149E811D1F0DC78F173680
    sudo pacman-key --lsign-key EC3CBE7F607D11E663149E811D1F0DC78F173680
    sudo pacman-key -u
    Step 4: Try to install pm2ml, signed by Xyne, and use makepkg to verify that yaourt is NOT the problem. This will not work.
    yaourt -G pm2ml
    cd pm2ml
    makepkg -s
    ==> Verifying source file signatures with gpg...
    pm2ml-2014.12.31.tar.xz ... FAILED (unknown public key 1D1F0DC78F173680)
    Step 5: Check that I'm not crazy.
    sudo gpg --homedir=/etc/pacman.d/gnupg --verify pm2ml-2014.12.31.tar.xz.sig
    gpg: WARNING: unsafe permissions on homedir '/etc/pacman.d/gnupg'
    gpg: assuming signed data in 'pm2ml-2014.12.31.tar.xz'
    gpg: Signature made Tue 30 Dec 2014 05:55:07 PM MST using RSA key ID 8F173680
    gpg: Good signature from "Xyne. (key #3) <[email protected]>" [full]
    Step 6: Import Xyne's key into my local GnuPG keyring, which I should definitely not have to do:
    gpg --recv-key EC3CBE7F607D11E663149E811D1F0DC78F173680
    gpg --lsign-key EC3CBE7F607D11E663149E811D1F0DC78F173680
    makepkg -s
    Makepkg will work at this point. I have tried this three times, and I can duplicate it 100% of the time.
    Is my configuration messed up, or can anybody else duplicate this? I'm wondering if the gpg-agent since GnuPG 2.1 doesn't switch home directories or something and refuses to see a new key even though I just imported it? It seems like the key and the signature are both clearly valid, but I can only get Xyne's package to verify using makepkg if I import his key into my ~/.gnupg keyring.
    Again, I could be totally stupid, but I legitimately do think there might be a bigger issue.
    Thanks.
    Last edited by AdrianCohea (2015-01-31 21:27:30)

    Okay, sorry! I didn't know that was intended behavior. That actually makes me a lot happier.
    It just didn't seem intuitive to me that I would have to add the developer's public key to my own keyring rather than to pacman's keyring. Almost guides I had previously read previously said I needed to use pacman-key to import the public key.
    This thread can be marked as solved, because there is no issue.

  • (SOLVED) 1st PKGBUILD & submission to AUR, cant do "makepkg --source"

    I'm trying to add my own Live kernel to AUR
    it is kernel 2.6.35.6 patched with Tuxonice, BFS, BFQ, Aufs2 and squashfs-lzma
    however, when I do  "makepkg --source"
    it fails saying
    PKGBUILD: line 34: syntax error near unexpected token `('
    heres my PKGBUILD; mostly taken from the AUR's kernel26-pf PKGBUILD
    # Original PKGBUILD from kernel26-pf
    # Maintainer: <thepenandpaper at gmail dot com>
    _basekernel=2.6.35
    _pkgname=kernel26-livez
    _pfrel=1
    pkgname=kernel26-livez
    pkgver=${_basekernel}
    pkgrel=${_pfrel}
    _kernelname=-livez
    arch=(i686 x86_64)
    _pkgdesc="Linux kernel and modules with patches (BFS included), tuxonice, BFQ]. Also included: aufs2 and squashfs-lzma."
    pkgdesc=${_pkgdesc}
    license=('GPL2')
    groups=('base')
    backup=(etc/mkinitcpio.d/${_pkgname}.preset)
    depends=('coreutils' 'module-init-tools' 'linux-firmware' 'mkinitcpio>=0.5.20')
    optdepends=('crda: to set the correct wireless channels of your country'
    'pm-utils: utilities and scripts for suspend and hibernate power management'
    'tuxonice-userui: TuxOnIce userspace user interface'
    'hibernate-script: set of scripts for managing TuxOnIce, hibernation and suspend to RAM')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 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-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'aufs' 'rt2500')
    install='kernel26.install'
    source=(http://multidistro.com/downloads/kernel26-livez/linux-2.6.35.6.tar.bz2
    config config.x86_64 # the main kernel config files
    kernel26.preset # standard config files for mkinitcpio ramdisk
    sha256sums=('e25123d1397806015c9b480d9809834461af0aa90179d0404eae87db3598ae5e'
    provides=(${_pkgname}=${_basekernel}) # for $pkgname-optimized
    #provides=('kernel26-headers' 'kernel26=$pkgver') # for when you have no other kernel (which is a bad idea anyway)
    build() {
    KARCH=x86
    cd ${srcdir}/linux-${_basekernel}
    bzip2 -dk ${startdir}/logo_linux_*.bz2
    mv -f ${startdir}/logo_linux_*.p?m drivers/video/logo/
    bzip2 -dc ${srcdir}/${_pfpatchname} | patch -Np1
    patch -Np1 < ${srcdir}/aufs2-sqlzma.patch
    sed -i "s/EXTRAVERSION = -${_pfrel}/EXTRAVERSION = ${_kernelname}/" Makefile
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    _arch=$CARCH
    echo
    echo "==================================================="
    echo "You might be prompted below for some config options"
    echo "==================================================="
    echo
    echo "Do you want to use your running kernel's config? (y/N)"
    echo "(needs IKCONFIG and IKCONFIG_PROC, run 'modprobe configs'"
    echo " as root before hitting <Y>, if uncertain)"
    read answer
    shopt -s nocasematch
    if [[ "$answer" = "y" ]]; then
    if [[ -s /proc/config.gz ]]; then
    echo "Extracting config from /proc/config.gz..."
    modprobe configs
    zcat /proc/config.gz > ./.config
    else
    echo "You kernel was not compiled with IKCONFIG_PROC. Using stock ARCH kernel .config (with BFS and TuxOnIce enabled)"
    fi
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"\"|g" ./.config
    fi
    # Make some good use of MAKEFLAGS
    MAKEFLAGS=`grep -v '#' /etc/makepkg.conf | grep MAKEFLAGS= | sed s/MAKEFLAGS=// | sed s/\"//g`
    # get kernel version
    make ${MAKEFLAGS} prepare
    # uncomment to decrease kernel size and compilation time. However, be prepared to deal with missing modules :P
    # make localmodconfig
    # allows you to edit config
    # make menuconfig && cp -v .config ${startdir}/config && msg "Stopping build"
    # load configuration
    # yes "" | make config
    # This allows building cpu-optimized packages with according package names.
    # Useful for repo maintainers.
    CPU=`egrep "MK8=y|MCORE2=y|MPSC=y|MATOM=y|MPENTIUMII=y|MPENTIUMIII=y|MPENTIUMM=y|MPENTIUM4=y|MK7=y|CONFIG_GENERIC_CPU=y|CONFIG_X86_GENERIC=y" ./.config`
    CPU=`sed -e "s/CONFIG_M\(.*\)=y/\1/" <<<$CPU`
    case $CPU in
    CORE2)
    pkgname="${_pkgname}-core2"
    pkgdesc="${_pkgdesc} Intel Core2 optimized."
    K8)
    pkgname="${_pkgname}-k8"
    pkgdesc="${_pkgdesc} AMD K8 optimized."
    PSC)
    pkgname="${_pkgname}-psc"
    pkgdesc="${_pkgdesc} Intel Pentium4/D/Xeon optimized."
    ATOM)
    pkgname="${_pkgname}-atom"
    pkgdesc="${_pkgdesc} Intel Atom optimized."
    K7)
    pkgname="${_pkgname}-k7"
    pkgdesc="${_pkgdesc} AMD K7 optimized."
    PENTIUMII)
    pkgname="${_pkgname}-p3"
    pkgdesc="${_pkgdesc} Intel Pentium3 optimized."
    PENTIUMIII)
    pkgname="${_pkgname}-p2"
    pkgdesc="${_pkgdesc} Intel Pentium2 optimized."
    PENTIUMM)
    pkgname="${_pkgname}-pm"
    pkgdesc="${_pkgdesc} Intel Pentium-M optimized."
    PENTIUM4)
    pkgname="${_pkgname}-p4"
    pkgdesc="${_pkgdesc} Intel Pentium4 optimized."
    default)
    pkgname="${_pkgname}"
    pkgdesc="Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), tuxonice, BFQ, IMQ]. Also included: aufs2 and squashfs-lzma."
    esac
    # build!
    _kernver="$(make kernelrelease)"
    make ${MAKEFLAGS} bzImage modules
    ### package_kernel26
    mkdir -p ${pkgdir}/{lib/modules,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # add vmlinux
    # cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.preset
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i ${startdir}/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${_pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${_pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.kver
    ### package_kernel26-headers
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    [[ -e include/config/dvb/ ]] && cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers for virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm ${pkgdir}/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace ${pkgdir}/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    cd ${pkgdir}/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    # eof
    line #34 is the sha256sum line
    heres the contents of the source folder "kernel26-livez"
    config
    config.x86_64
    kernel26.install
    kernel26.preset
    PKGBUILD
    can anyone tell me whats wrong,etc?
    I reall hate the syntax error issues as no matter how I have edited it, the same error?
    thanks
    Last edited by 72linus (2010-09-30 00:08:28)

    yep
    thanks guys I got it!
    PKGBUILD
    # Original PKGBUILD from kernel26-pf
    # Maintainer: <thepenandpaper at gmail dot com>
    _basekernel=2.6.35
    _pkgname=kernel26-livez
    _pfrel=1
    pkgname=kernel26-livez
    pkgver=${_basekernel}
    pkgrel=${_pfrel}
    _kernelname=-livez
    arch=(i686 x86_64)
    _pkgdesc="Linux kernel and modules with patches (BFS included), tuxonice, BFQ]. Also included: aufs2 and squashfs-lzma."
    pkgdesc=${_pkgdesc}
    license=('GPL2')
    groups=('base')
    backup=(etc/mkinitcpio.d/${_pkgname}.preset)
    depends=('coreutils' 'module-init-tools' 'linux-firmware' 'mkinitcpio>=0.5.20')
    optdepends=('crda: to set the correct wireless channels of your country'
    'pm-utils: utilities and scripts for suspend and hibernate power management'
    'tuxonice-userui: TuxOnIce userspace user interface'
    'hibernate-script: set of scripts for managing TuxOnIce, hibernation and suspend to RAM')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 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-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'aufs' 'rt2500')
    install='kernel26.install'
    source=(http://multidistro.com/downloads/kernel26-livez/linux-2.6.35.6.tar.bz2
    config config.x86_64 # the main kernel config files
    kernel26.preset) # standard config files for mkinitcpio ramdisk
    sha256sums=('e25123d1397806015c9b480d9809834461af0aa90179d0404eae87db3598ae5e')
    provides=(${_pkgname}=${_basekernel}) # for $pkgname-optimized
    #provides=('kernel26-headers' 'kernel26=$pkgver') # for when you have no other kernel (which is a bad idea anyway)
    build() {
    KARCH=x86
    cd ${srcdir}/linux-${_basekernel}
    bzip2 -dk ${startdir}/logo_linux_*.bz2
    mv -f ${startdir}/logo_linux_*.p?m drivers/video/logo/
    bzip2 -dc ${srcdir}/${_pfpatchname} | patch -Np1
    patch -Np1 < ${srcdir}/aufs2-sqlzma.patch
    sed -i "s/EXTRAVERSION = -${_pfrel}/EXTRAVERSION = ${_kernelname}/" Makefile
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    _arch=$CARCH
    echo
    echo "==================================================="
    echo "You might be prompted below for some config options"
    echo "==================================================="
    echo
    echo "Do you want to use your running kernel's config? (y/N)"
    echo "(needs IKCONFIG and IKCONFIG_PROC, run 'modprobe configs'"
    echo " as root before hitting <Y>, if uncertain)"
    read answer
    shopt -s nocasematch
    if [[ "$answer" = "y" ]]; then
    if [[ -s /proc/config.gz ]]; then
    echo "Extracting config from /proc/config.gz..."
    modprobe configs
    zcat /proc/config.gz > ./.config
    else
    echo "You kernel was not compiled with IKCONFIG_PROC. Using stock ARCH kernel .config (with BFS and TuxOnIce enabled)"
    fi
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"\"|g" ./.config
    fi
    # Make some good use of MAKEFLAGS
    MAKEFLAGS=`grep -v '#' /etc/makepkg.conf | grep MAKEFLAGS= | sed s/MAKEFLAGS=// | sed s/\"//g`
    # get kernel version
    make ${MAKEFLAGS} prepare
    # uncomment to decrease kernel size and compilation time. However, be prepared to deal with missing modules :P
    # make localmodconfig
    # allows you to edit config
    # make menuconfig && cp -v .config ${startdir}/config && msg "Stopping build"
    # load configuration
    # yes "" | make config
    # This allows building cpu-optimized packages with according package names.
    # Useful for repo maintainers.
    CPU=`egrep "MK8=y|MCORE2=y|MPSC=y|MATOM=y|MPENTIUMII=y|MPENTIUMIII=y|MPENTIUMM=y|MPENTIUM4=y|MK7=y|CONFIG_GENERIC_CPU=y|CONFIG_X86_GENERIC=y" ./.config`
    CPU=`sed -e "s/CONFIG_M\(.*\)=y/\1/" <<<$CPU`
    case $CPU in
    CORE2)
    pkgname="${_pkgname}-core2"
    pkgdesc="${_pkgdesc} Intel Core2 optimized."
    K8)
    pkgname="${_pkgname}-k8"
    pkgdesc="${_pkgdesc} AMD K8 optimized."
    PSC)
    pkgname="${_pkgname}-psc"
    pkgdesc="${_pkgdesc} Intel Pentium4/D/Xeon optimized."
    ATOM)
    pkgname="${_pkgname}-atom"
    pkgdesc="${_pkgdesc} Intel Atom optimized."
    K7)
    pkgname="${_pkgname}-k7"
    pkgdesc="${_pkgdesc} AMD K7 optimized."
    PENTIUMII)
    pkgname="${_pkgname}-p3"
    pkgdesc="${_pkgdesc} Intel Pentium3 optimized."
    PENTIUMIII)
    pkgname="${_pkgname}-p2"
    pkgdesc="${_pkgdesc} Intel Pentium2 optimized."
    PENTIUMM)
    pkgname="${_pkgname}-pm"
    pkgdesc="${_pkgdesc} Intel Pentium-M optimized."
    PENTIUM4)
    pkgname="${_pkgname}-p4"
    pkgdesc="${_pkgdesc} Intel Pentium4 optimized."
    default)
    pkgname="${_pkgname}"
    pkgdesc="Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), tuxonice, BFQ, IMQ]. Also included: aufs2 and squashfs-lzma."
    esac
    # build!
    _kernver="$(make kernelrelease)"
    make ${MAKEFLAGS} bzImage modules
    ### package_kernel26
    mkdir -p ${pkgdir}/{lib/modules,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # add vmlinux
    # cp vmlinux ${pkgdir}/usr/src/linux-${_kernver}
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.preset
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i ${startdir}/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${_pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${_pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.kver
    ### package_kernel26-headers
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    [[ -e include/config/dvb/ ]] && cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers for virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm ${pkgdir}/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace ${pkgdir}/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    cd ${pkgdir}/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    # eof
    kernel26.preset
    # mkinitcpio preset file for kernel26
    # DO NOT EDIT THIS LINE:
    source /etc/mkinitcpio.d/kernel26-livez.kver
    ALL_config="/etc/mkinitcpio.conf"
    PRESETS=('default' 'fallback')
    #default_config="/etc/mkinitcpio.conf"
    default_image="/boot/kernel26-livez.img"
    #default_options=""
    #fallback_config="/etc/mkinitcpio.conf"
    fallback_image="/boot/kernel26-livez-fallback.img"
    fallback_options="-S autodetect"
    kernel26.install
    # arg 1: the new package version
    # arg 2: the old package version
    KERNEL_NAME=-livez
    KERNEL_VERSION=2.6.35-livez
    post_install () {
    # updating module dependencies
    echo ">>> Updating module dependencies. Please wait ..."
    depmod $KERNEL_VERSION
    # generate init ramdisks
    echo ">>> MKINITCPIO SETUP"
    echo ">>> ----------------"
    echo ">>> If you use LVM2, Encrypted root or software RAID,"
    echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
    echo ">>> More information about mkinitcpio setup can be found here:"
    echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
    echo ""
    echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
    /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
    post_upgrade() {
    pacman -Q grub &>/dev/null
    hasgrub=$?
    pacman -Q grub2 &>/dev/null
    hasgrub2=$?
    pacman -Q lilo &>/dev/null
    haslilo=$?
    # reminder notices
    if [ $haslilo -eq 0 ]; then
    echo ">>>"
    if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
    echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
    else
    echo ">>> You appear to be using the LILO bootloader. You should run"
    echo ">>> 'lilo' before rebooting."
    fi
    echo ">>>"
    fi
    if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
    if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
    echo "WARNING: /boot appears to be a seperate partition but is not mounted"
    echo " This is most likely not what you want. Please mount your /boot"
    echo " partition and reinstall the kernel unless you are sure this is OK"
    fi
    fi
    if [ "`vercmp $2 2.6.13`" -lt 0 ]; then
    # important upgrade notice
    echo ">>>"
    echo ">>> IMPORTANT KERNEL UPGRADE NOTICE"
    echo ">>> -------------------------------"
    echo ">>> As of kernel 2.6.13, DevFS is NO LONGER AVAILABLE!"
    echo ">>> If you still use DevFS, please make the transition to uDev before"
    echo ">>> rebooting. If you really need to stay with DevFS for some reason,"
    echo ">>> then you can manually downgrade to an older version:"
    echo ">>>"
    echo ">>> # pacman -U http://archlinux.org/~judd/kernel/kernel26-scsi-2.6.12.2-1.pkg.tar.gz"
    echo ">>>"
    echo ">>> If you choose to downgrade, don't forget to add kernel26-scsi to your"
    echo ">>> IgnorePkg list in /etc/pacman.conf"
    echo ">>>"
    echo ">>> (NOTE: The following portion applies to uDev users as well!)"
    echo ">>>"
    echo ">>> If you use any DevFS paths in your GRUB menu.lst, then you will not"
    echo ">>> be able to boot! Change your root= parameter to use the classic"
    echo ">>> naming scheme."
    echo ">>>"
    echo ">>> EXAMPLES:"
    echo ">>> - change root=/dev/discs/disc0/part3 to root=/dev/sda3"
    echo ">>> - change root=/dev/md/0 to root=/dev/md0"
    echo ">>>"
    fi
    # generate new init ramdisk
    if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
    echo ">>> --------------------------------------------------------------"
    echo ">>> | WARNING: |"
    echo ">>> |mkinitrd is not supported anymore in kernel >=2.6.18 series!|"
    echo ">>> | Please change to Mkinitcpio setup. |"
    echo ">>> --------------------------------------------------------------"
    echo ">>>"
    fi
    # updating module dependencies
    echo ">>> Updating module dependencies. Please wait ..."
    depmod $KERNEL_VERSION
    echo ">>> MKINITCPIO SETUP"
    echo ">>> ----------------"
    if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
    echo ">>> Please change your bootloader config files:"
    echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf"
    echo "------------------------------------------------"
    echo "| - initrd26.img to kernel26${KERNEL_NAME}.img |"
    echo "| - initrd26-full.img to kernel26${KERNEL_NAME}-fallback.img |"
    echo "------------------------------------------------"
    fi
    if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
    echo ""
    echo ">>> New PATA/IDE subsystem - EXPERIMENTAL"
    echo ">>> ----------"
    echo ">>> To use the new pata drivers, change the 'ide' hook "
    echo ">>> to 'pata' in /etc/mkinicpio.conf HOOKS="
    echo ">>> The new system changes: /dev/hd? to /dev/sd?"
    echo ">>> Don't forget to modify GRUB, LILO and fstab to the"
    echo ">>> new naming system. "
    echo ">>> eg: hda3 --> sda3, hdc8 --> sdc8"
    echo ""
    echo ">>> piix/ata_piix (Intel chipsets) - IMPORTANT"
    echo "----------"
    echo ">>> If you have enabled ide/pata/sata HOOKs in /etc/mkinitcpio.conf"
    echo ">>> the 'ata_piix' module will be used."
    echo ">>> This may cause your devices to shift names, eg:"
    echo ">>> - IDE: devices from hd? to sd?"
    echo ">>> - SATA: sda might shift to sdc if you have 2 other disks on a PIIX IDE port."
    echo ">>> To check if this will affect you, check 'mkinitcpio -M' for piix/ata_piix"
    echo ""
    fi
    echo ">>> If you use LVM2, Encrypted root or software RAID,"
    echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
    echo ">>> More information about mkinitcpio setup can be found here:"
    echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
    echo ""
    echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
    if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
    /sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below
    and are using an Intel chipset, append 'earlymodules=piix' to the
    kernel commandline"
    else
    /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
    fi
    if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
    echo ""
    echo "Important ACPI Information:"
    echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
    echo ">>> The modules are located at:"
    echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
    echo ">>> For more information about ACPI modules check this wiki page:"
    echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"
    fi
    post_remove() {
    rm -f /boot/kernel26${KERNEL_NAME}.img
    rm -f /boot/kernel26${KERNEL_NAME}-fallback.img
    so, I just tar.gz the kernel26-livez folder which contains
    config
    config.x86_64
    kernel26.install
    kernel26.preset
    PKGBUILD
    and submit to AUR??
    first, I'm going to run it thru the motions on my 32bit and x86_64 arch installs to test it
    as I already have compiled it successfully, and now want to package it,etc
    thanks for all your help!
    PS
    I also have to make a AUR package for the linux-live-6.30_x86 and linux-live-6.3.0x86_64 remaster kits which this kernel is meant for
    and gotta figure out how to do that too...
    Last edited by 72linus (2010-09-27 20:26:04)

  • [SOLVED] Can't install linuxwacom from AUR with latest X Server

    I am unable to reinstall linuxwacom, which I had reinstalled perfectly the day before the big update from testing yesterday, which, among many other things, updated X Server to 1.7.0.901-1.
    Here is the error output (am installing linuxwacom 0.8.4-6 from the AUR). I'm including everything that apears (to me) to be associated with the error, but if there should be more or less, let me know:
    In file included from /usr/include/xorg/xf86str.h:38,
    from /usr/include/xorg/xf86.h:46,
    from ./xf86Wacom.h:68,
    from ./xf86Wacom.c:93:
    /usr/include/xorg/input.h:79:1: warning: this is the location of the previous definition
    ./xf86Wacom.c: In function 'xf86WcmInitialCoordinates':
    ./xf86Wacom.c:368: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:395: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c: In function 'xf86WcmRegisterX11Devices':
    ./xf86Wacom.c:630: warning: passing argument 3 of 'InitButtonClassDeviceStruct' from incompatible pointer type
    /usr/include/xorg/input.h:274: note: expected 'Atom *' but argument is of type 'CARD8 *'
    ./xf86Wacom.c:630: error: too few arguments to function 'InitButtonClassDeviceStruct'
    ./xf86Wacom.c:670: warning: passing argument 3 of 'InitValuatorClassDeviceStruct' makes pointer from integer without a cast
    /usr/include/xorg/input.h:280: note: expected 'Atom *' but argument is of type 'int'
    ./xf86Wacom.c:670: error: too few arguments to function 'InitValuatorClassDeviceStruct'
    ./xf86Wacom.c:712: warning: implicit declaration of function 'InitKeyClassDeviceStruct'
    ./xf86Wacom.c:720: warning: implicit declaration of function 'InitKbdFeedbackClassDeviceStruct'
    ./xf86Wacom.c:751: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:756: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:757: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:765: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:766: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:772: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:773: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:781: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:786: error: too few arguments to function 'InitValuatorAxisStruct'
    ./xf86Wacom.c:790: error: too few arguments to function 'InitValuatorAxisStruct'
    make[2]: *** [xf86Wacom.o] Error 1
    make[2]: Leaving directory `/tmp/yaourt-tmp-sara/aur-linuxwacom/linuxwacom/src/linuxwacom-0.8.4-3/src/xdrv'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/yaourt-tmp-sara/aur-linuxwacom/linuxwacom/src/linuxwacom-0.8.4-3/src'
    make: *** [all-recursive] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build linuxwacom package.
    Error: unable to update linuxwacom
    Because of this, I can no longer use my pen or touchscreen. My tablet is a Lenovo X61t.
    This is probably due to the testing repo as the package's maintainer (gwash) was unable to reproduce this with the latest updates from core and extra installed.
    [edit] Perhaps this is because this package is designed to be compatible with version 1.6 of X Server, and I'm using 1.7 (the latest in testing). Are any other tablet users in testing experiencing this problem? [/edit]
    [edit] And as I thought, downgrading xorg-server to 1.6 fixed this (this also required downgrading evdev and the intel driver). So it's just linuxwacom's incompatibility with verison 1.7, which will hopefully be fixed soon. Marking the subject line as SOLVED, though the real solution is an update to linuxwacom. [/edit]
    Last edited by Sara (2011-06-08 22:43:19)

    N30N wrote:
    schuschu wrote:Could someone put a PKGBUILD with patch into the AUR please?
    I've added the patch to the linuxwacom-cvs package.
    Thanks, but I still can't build it:
    patching file src/xdrv/xf86Wacom.c
    Hunk #1 succeeded at 100 with fuzz 2 (offset 10 lines).
    Hunk #2 succeeded at 367 (offset -36 lines).
    Hunk #3 succeeded at 397 (offset -33 lines).
    Hunk #4 succeeded at 555 (offset -33 lines).
    Hunk #5 succeeded at 611 (offset -22 lines).
    Hunk #6 succeeded at 649 (offset -22 lines).
    Hunk #7 succeeded at 667 (offset -22 lines).
    Hunk #8 succeeded at 683 (offset -22 lines).
    Hunk #9 succeeded at 723 (offset -22 lines).
    Hunk #10 succeeded at 750 (offset -22 lines).
    Hunk #11 succeeded at 781 (offset -22 lines).
    Hunk #12 succeeded at 791 (offset -22 lines).
    Hunk #13 succeeded at 823 (offset -22 lines).
    Hunk #14 succeeded at 849 (offset -22 lines).
    Hunk #15 FAILED at 881.
    1 out of 15 hunks FAILED -- saving rejects to file src/xdrv/xf86Wacom.c.rej

  • [SOLVED]I can build a package with "make install" but not with makepkg

    I'm quite new to Arch and it's my first PKGBUILD.
    I successfully built the software lhapdf http://www.hepforge.org/archive/lhapdf/ … 3.1.tar.gz with the traditional system:
    1) I do a patch for compatibility with gcc 4.3
    cd lhapdf-5.3.1
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    and then
    ./configure --prefix=/usr
    make
    sudo make install
    Then I tried to write a PKGBUILD
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=()
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=() #generate with 'makepkg -g'
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    and it doesn't work. The last lines of the output of makepkg are:
    g++ -march=nocona -O2 -pipe -o .libs/test-lhapdf-ccwrap test-lhapdf-ccwrap.o -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src -lLHAPDFWrap /home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src/.libs/libLHAPDF.so -Wl,--rpath -Wl,/usr/lib
    /usr/bin/ld: cannot find -lLHAPDFWrap
    collect2: ld returned 1 exit status
    make[1]: *** [test-lhapdf-ccwrap] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap'
    make: *** [all-recursive] Error 1
    ==> ERRORE: Compilazione interrotta.
    L'operazione sta per essere interrotta...
    Any idea?
    Last edited by alcafar (2008-04-09 11:03:00)

    Thank you Snowman, it works with options=('!makeflags'). The changes in the paths were not needed, I copied them from /usr/share/pacman/PKGBUILD.proto, probably is some new feature.
    Now, I'd like to post the PKGBUILD to AUR. This is currently my PKGBUILD:
    # Contributor: My name <[email protected]>
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=(gcc-libs)
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=('!makeflags')
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=('df667840071996d2c58a125567be26b2')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    I have the following output from namcap:
    $ namcap lhapdf-5.3.1-1-x86_64.pkg.tar.gz
    lhapdf W: File (usr/lib/libLHAPDFWrap.la) is a libtool file.
    lhapdf W: File (usr/lib/libLHAPDF.la) is a libtool file.
    $ namcap PKGBUILD
    PKGBUILD (lhapdf) W: Missing Maintainer tag
    PKGBUILD (lhapdf) W: Missing CVS Id tag
    and this output from ldd
    $ ldd libLHAPDF.so
    linux-vdso.so.1 => (0x00007fff86dfe000)
    libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00002b70367fe000)
    libm.so.6 => /lib/libm.so.6 (0x00002b7036ace000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b7036d52000)
    libc.so.6 => /lib/libc.so.6 (0x00002b7036f69000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    $ ldd libLHAPDFWrap.so
    linux-vdso.so.1 => (0x00007fffeeffe000)
    libLHAPDF.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b11bbd53000)
    libm.so.6 => /lib/libm.so.6 (0x00002b11bc060000)
    libc.so.6 => /lib/libc.so.6 (0x00002b11bc2e3000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b11bc636000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    What should I add to PKGBUILD?
    The program is in fortran, so I'm surprised that namcap did not add gcc-fortran in the dependencies. Should I add it to depends or makedepends? Or maybe it is included in gcc-libs?

  • Error with makepkg - no error without [solved]

    When compiling audacity with the standard PKGBUILD but with other configure options (./ configure --prefix=/usr --with-portaudio=v19 --without-portmixer), configure exits with the following error:
    $ configure: warning: CC=gcc: invalid host type
    $ configure: warning: CXX=g++: invalid host type
    $ configure: error: can only configure for one host and one target at a time
    $ configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19
    if run outside makepkg, the configure command runs fine.
    This configure file contains a call to another configure located in a subdirectory and it's when this second one is called that the error occurs.
    Is there a bug here or is it by design supposing that this kind of nested configure files should not be written like this?

    Thanks for the tip. After playng with makepkg.conf, it appears that the rror occurs when audacity is compiled with the standard options:
    export CFLAGS="-march=i686 -O2 -pipe"
    export CXXFLAGS="-march=i686 -O2 -pipe"
    Without them, it compiles well.

  • [SOLVED] Unable to install gpodder3 from AUR

    I am a linux and arch newbie and about 3 weeks into my arch experience. I really like it so far, finding and fixing errors and getting all of my (laptop) hardware working is interesting.
    One program I am having real problems to install is gpodder. This worked flawlessly for me on mint and I really enjoyed using it to sync my podcasts with my ipod nano and would love arch even more if I could get it working. I enjoy simple GUIs where using the terminal seems a bit laborious.
    In the AUR there is a gpodder3 package available however when I attempt
    user@arch ~/Downloads/gpodder3 $ makepkg -s
    ==> Making package: gpodder3 3.5.1-1 (Sun 19 May 06:19:45 BST 2013)
    ==> WARNING: Using a PKGBUILD without a package() function is deprecated.
    ==> Checking runtime dependencies...
    ==> Installing missing dependencies...
    error: target not found: python2-mygpoclient
    ==> ERROR: 'pacman' failed to install missing dependencies.
    All of my packages and mirrors are up-to-date using
    pacman -Syyu
    I tried installing 'python2-mygpoclient' manually but no luck there either. Has anyone got gpodder on arch working under xfce?
    Would anyone please help me to get this installed?
    Last edited by cdrjameson (2013-05-19 06:40:50)

    Thanks for the advice on the AUR helpers. As I am so new to Arch and linux really I think I'll stick to vanilla pacman until I feel comfortable. I have read plenty of posts and blogs decrying the use of AUR helpers for novices.
    My search always starts with -Ss and then I investigate further using the ArchWiki - seems to work for me so far. Although I think I have been a bit like a kid in a candy shop and I have downloaded loads of different packages to see what they are like and now I am faced with removing some (getting back to the Arch way) and working out what their dependencies are/were. This is not a question as such just a request for your good will( I think i'll need it!) as I try to navigate the package manamgement between removing xfce and installing e17.

  • [SOLVED] make fails but makepkg works fine (when building zathura git)

    Hello,
    when I build the "zathura-girara-git" AUR package with makepkg everything works fine, but if I try to build zathura after cloning the git repo make fails with some errors.
    make output from makepkg:
    zathura build options:
    CFLAGS = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
    LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread -lm
    DFLAGS = -g
    CC commands.c
    CC = cc
    CC document.c
    CC render.c
    CC zathura.c
    CC completion.c
    CC bookmarks.c
    CC utils.c
    CC shortcuts.c
    CC config.c
    CC callbacks.c
    CC print.c
    CC database-plain.c
    CC -o zathura
    installing executable file
    installing header files
    installing manual pages
    which: no rst2man in (/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin/:/home/bexie/bin)
    installing desktop file
    installing pkgconfig file
    make output:
    zathura build options:
    CFLAGS = -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
    LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lsqlite3 -ldl -lpthread -lm
    DFLAGS = -g
    CC = cc
    CC commands.c
    In file included from commands.c:3:0:
    commands.h:7:20: fatal error: girara.h: No such file or directory
    compilation terminated.
    make: *** [commands.o] Error 1
    I tried exporting the enviroment variables from /etc/makepkg.conf, to no avail. I also tried adding the girara include files to CFLAGS, but it throws the same kind of error about some gtk dependency.
    I don't know if this is a general issue, but as I can compile it through makepkg I don't think this is due to zathura.
    Does anyone have a clue on what could be wrong here?
    Last edited by donbex (2012-01-22 12:56:59)

    In the PKGBUILD, they are cloning the repo by doing :
    _gitroot="git://pwmt.org/zathura.git"
    _gitname="zathura"
    git clone $_gitroot
    cd $_gitname && git checkout --track -b develop origin/develop
    Are you doing the same ?

  • [SOLVED] need help with virtualbox install

    I'm a relative n00b to Arch, haging migrated from Ubuntu (pha!!). Arch rocks!
    However, my beloved virtualbox isnt playing ball!
    After many hours of getting arch up and running I now need some assitance please with VirtualBox PEUL. I've googled and search these wikis and found:
    http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
    http://www.mail-archive.com/vbox-users% … 02889.html
    http://wiki.archlinux.org/index.php/VirtualBox
    but, I dont know how to install.
    I used yaourt (having spent another many hours trying to get to speed with what Arch AUR is and yaourt!!)
    This is what I did:
    1. Visited http://wiki.archlinux.org/index.php/VirtualBox and followed PEUL instructions...
    2. Click on AUR link and then click on PKGBUILD and it downloaded a PKGBUILD from here http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
    3. Then went back to the wiki http://wiki.archlinux.org/index.php/VirtualBox  and clicked on VirtualBox_1.5.6-1_Linux_x86.run and downloaded the file.
    4. In accordance with the instructions on the wiki, I ran makepkg
    HOWEVER, I get errors!!:
    # makepkg --asroot
    ==> Making package: virtualbox_bin 1.5.6-1 (Thu May 1 20:06:33 BST 2008)
    ==> WARNING: Running makepkg as root...
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found VirtualBox_1.5.6-1_Linux_x86.run in build dir
    -> Found vbox.install in build dir
    -> Found vbox_build_module in build dir
    -> Found vboxnet.patch in build dir
    -> Found interfaces in build dir
    ==> Validating source files with md5sums...
    VirtualBox_1.5.6-1_Linux_x86.run ... FAILED
    vbox.install ... Passed
    vbox_build_module ... Passed
    vboxnet.patch ... Passed
    interfaces ... Passed
    ==> ERROR: One or more files did not pass the validity check!
    This is what is in the downloaded files dir:-
    ls -l
    total 48
    -rw-r--r-- 1 daz users 3642 2008-05-01 20:06 PKGBUILD
    -rw-r--r-- 1 daz users 26055 2008-05-01 20:05 VirtualBox_1.5.6-1_Linux_x86.run
    -rwxrwxrwx 1 nobody nobody 217 2008-01-08 20:58 interfaces
    drwxrwxrwx 2 root root 125 2008-05-01 20:06 src
    -rwxrwxrwx 1 nobody nobody 2717 2008-02-22 18:22 vbox.install
    -rwxrwxrwx 1 nobody nobody 174 2008-02-22 17:45 vbox_build_module
    -rwxrwxrwx 1 nobody nobody 2179 2007-12-30 12:31 vboxnet.patch
    Can anyone help please? In Ubuntu all this was just installed with dpkg -i VirtualBox.deb
    I'm sure Arch is just as "simple" :-)
    Last edited by keratos (2008-05-04 07:54:14)

    grave wrote:Or try the bin file no problem here  yaourt -S virtualbox_bin
    Good idea, I checked this out originally but it didnt work so I went for "manual" install.
    The download from yaourt never starts, just hangs - the server is dead or something?? ...
    # yaourt -S virtualbox_bin
    ==> WARNING: Building unsupported package as root is dangerous.
    Please run yaourt as a non-privileged user.
    ==> Downloading virtualbox_bin PKGBUILD from AUR...
    ==> Last 5 comments ordered by date (asc):
    Comment by: chris_es on 20080414 [17:02:11]
    Hello!
    Thanks a lot for this package :o)
    Just a quick comment about where to copy the Sun .run package. It should be put to where the tarball from AUR was extracted.
    In my case, it is /home/[users]/virtualbox-bin/
    Cheers
    Chris
    Comment by: fi-dschi on 20080419 [22:46:37]
    You may download the run-file at
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=innotek-1.5.6-G-F@CDS-CDS_SMI
    Comment by: GGLucas on 20080421 [00:40:38]
    Can't get the kernel module working in 2.6.25, vbox_build_module completes fine, but I get the following error:
    $ sudo modprobe vboxdrv
    FATAL: Error inserting vboxdrv (/lib/modules/2.6.25-ARCH/misc/vboxdrv.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    with these messages in dmesg:
    vboxdrv: Unknown symbol change_page_attr
    vboxdrv: Unknown symbol change_page_attr
    Comment by: Geekosaurio on 20080422 [03:54:09]
    Maybe you could find this instructions helpful
    http://www.mail-archive.com/[email protected]/msg02889.html
    I've not tried this myself but I will do it soon and post the info here. Maybe create a separate package for 2.6.25 kernels it's a good idea.
    Comment by: ise on 20080429 [18:12:57]
    The vboxdrv from the mailinglist of virtualbox runs here without problems on 2.6.25 with vbox 1.5.6
    First Submitted: Sun, 11 Mar 2007 00:52:22 +0000
    Last Updated: Fri, 22 Feb 2008 18:26:15 +0000
    virtualbox_bin 1.5.6-1 (Unsupported): Powerful x86 virtualization - binary version (non GPL - free for personal use and evaluation)
    ==> virtualbox_bin dependencies:
    - libidl2 (already installed)
    - libxslt (already installed)
    - qt3 (already installed)
    - e2fsprogs (already installed)
    - sdl (already installed)
    - libstdc++5 (already installed)
    - patch (already installed)
    ==> Edit the PKGBUILD (recommended) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    vbox.install
    ==> Edit vbox.install (recommended) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of 'virtualbox_bin'? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building and installing package
    ==> Making package: virtualbox_bin 1.5.6-1 (Fri May 2 06:06:28 BST 2008)
    ==> WARNING: Running makepkg as root...
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading VirtualBox_1.5.6-1_Linux_x86.run...
    --2008-05-02 06:06:29-- http://195.34.175.98/download/1.5.6/VirtualBox_1.5.6-1_Linux_x86.run
    Connecting to 195.34.175.98:80...
    Last edited by keratos (2008-05-02 05:52:33)

  • [SOLVED] Different outcome running makepkg vs running the commands.

    Hi all,
    I'm trying to build fatback, for blackarch mainly but I'll upload to AUR too, and I'm having some weird outcomes.
    If I run makepkg -sfic on this, it fails with a load of compiler errors, but if I run the configure & make separately, it works fine, only complaining about flex library missing. See here
    What gives?
    Makepkg log
    Command output 1
    Command output 2
    Command output 3
    EDIT: Solution was a mix of environment variables for me, and the original dev making some mistakes, see last post.
    Last edited by elken (2014-05-26 14:52:04)

    Thanks for the text version.
    I think we missed some makepkg flags.  I just tried this PKGBUILD - I get the same error you do with makepkg.  When I build manually I also get the flex errors that you just posted *unless* I export the makepkg variables - then I get the same error as with makepkg.  But above I missed "CPPFLAGS" - so try the following in the (clean) source directory:
    source /etc/makepkg.conf
    export CFLAGS
    export LDFLAGS
    export CPPFLAGS
    export CXXFLAGS
    ./configure
    make
    This produces the same error as the makepkg for me.
    EDIT: and I found the problem.  The upstream source was trying to pass definitions of data types through compiler "DEF" flags (eg -Dsize_t=unsigned)  This conflicted with the internal typdefs for these types included from header files.  Removing these absurd definitions allows it to compile.  Stand by for a patch/sed command for the PKGBUILD.
    EDIT: Insert this in the PKGBUILD after the configure command and before make in the build function:
    sed -i 's/-Doff_t=long -Dpid_t=int -Dsize_t=unsigned//' Makefile
    For explanation: the DEF flag defined "size_t" as "unsigned" so anytime the former was encountered in the code, it was replaced with the latter.  But in the code, included header files had lines like "typedef size_t unsigned;" which the preprocessor then turned into "typdedef unsigned unsigned;" which doesn't make any sense to the compiler.
    Last edited by Trilby (2014-05-26 14:42:41)

  • [Solved] Building vboxdrv with custom kernel

    I noticed a Loading Modules     [FAIL] during boot yesterday so I decided to investigate it.
    [siegemachine@Siege-LapLinux ~]$ sudo modprobe vboxdrv
    Password:
    FATAL: Module vboxdrv not found.
    [siegemachine@Siege-LapLinux ~]$ sudo /etc/rc.d/vboxdrv setup
    :: Removing VirtualBox kernel modules [DONE]
    :: Compiling VirtualBox kernel modules [BUSY] Look at /tmp/vbox-install.log to find out what went wrong
    Look at /tmp/vbox-install.log to find out what went wrong
    Look at /tmp/vbox-install.log to find out what went wrong
    [siegemachine@Siege-LapLinux ~]$ yaourt -S kernel26-headers
    warning: kernel26-headers-2.6.39.1-1 is up to date -- reinstalling
    Now I read in this forum
    https://bbs.archlinux.org/viewtopic.php?id=107733
    that if I have a custom kernel then I have to have the custom kernel-headers to go with it in order to build the virtualbox driver module.  The problem is the kernel I got is from the AUR
    [siegemachine@Siege-LapLinux ~]$ yaourt -Qi kernel26-kamal
    Name : kernel26-kamal
    Version : 2.6.39.1-1
    And I've tried searching the AUR and there doesn't appear to be any kernel-headers to match the kernel.  When I build the kernel should I build it with the regular name and not with -kamal on the end of the kernel and see if that would work for building the virtualbox modules? Or should I boot off the regular kernel (I have both) and build it there, then reboot on this kernel and see if it works? Or finally, do I need to somehow build the kernel-headers for this kernel myself, install them, and then build the modules?
    Last edited by SiegeMachine (2011-06-24 03:47:57)

    Aha well my friend noticed in the PKGBUILD for kernel26-kamal actually builds the kernel headers for that kernel but it doesn't isntall them so I just downloaded the PKGBUILD and built it myself again with makepkg instead of using yaourt then I could install the header package and built the module after.  In the end all is good.

  • The inevitable Bauerbill, Clyde, Packer or other AUR helpers thread

    Some new titans among the many AUR helpers. Hard to choose between them, if necessary at all ;-)
    The big newcomers:
    http://bbs.archlinux.org/viewtopic.php?id=91860
    http://bbs.archlinux.org/viewtopic.php?id=88247
    http://bbs.archlinux.org/viewtopic.php?id=88115
    Tell us your experience about the scripts, preferably a list of cons and pros in the light of the other ones. No flames please.
    Authors contributions are welcome ;-)
    I personally only used bauerbill so far, i really love it, but I cant tell the difference obviously.
    Last edited by SanskritFritz (2010-03-06 12:00:30)

    I've always been torn between AUR handlers, as they each seem to have options I want / don't want. Used yaourt for a long time just to browse the AUR basically, but since uninstalled it. It seems clyde is much faster for that, though I can honestly say I didn't give it too much of a try. I generally like Bauerbill because it can fetch PKGBUILDs for dependencies too (even though I still abort after I get the PKGBUILD so I can browse the /src folder for configuration reasons, as I don't always know what features I want off-hand).
    For me it's difficult to find something that fetches the information/PKGBUILDs and then lets me work on it myself. For the longest time I simply created a folder with the package name and did either "cp -R /var/abs/$repo/$pkgname $PWD" or "yaourt -G pkgname" (depending on if it's in repo or AUR) and then configured/compiled it from there. Although this seems a minor amount of work involved it's still irritating to do this for every single dependency, soooo I'm in the works of my own handler (so far I've only got [for the most part] the ABS side worked out, but am working on AUR support next). If anything ever comes of it I'll post it somewhere (Yeah, just what we need). In the meantime I'm using my handler for the ABS/repo side and bauerbill for AUR. So with this in mind I'm still pro-bauerbill.
    Last edited by milomouse (2010-03-06 10:29:43)

  • Bulding with makepkg results in chroot()...missing plus other errors

    I've been trying to make and build iroffer-dinoex from AUR, exept I noticed during the configure, it complained that chroot() missing. I went and ran configure manually to make sure chroot() wasn't really missing, and it worked fine. Not only that, but when building from makepkg, I get a bunch of warnings from GCC, while building it manually brings up no errors. Any idea how the environment changes between building manually and using makepkg? I know you can fiddle with the gcc build options in /etc/makepkg, but that's all I know about changing builds with makepkg.
    Thanks

    I meant to say warnings not errors in the title. Warnings:
    src/iroffer_misc.c: In function ‘gobackground’:
    src/iroffer_misc.c:758:7: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
    src/iroffer_misc.c:759:7: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
    src/iroffer_misc.c: In function ‘writepidfile’:
    src/iroffer_misc.c:706:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_main.c: In function ‘add_password’:
    src/dinoex_main.c:192:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c: In function ‘write_removed_xdcc’:
    src/dinoex_jobs.c:894:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:896:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:898:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:900:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:902:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:904:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:909:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:914:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:916:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:918:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    src/dinoex_jobs.c:920:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    Which clashes with the notice that
    No errors or warnings should appear when compiling, if they do, something is wrong
    Also, does missing chroot() have any impact? I presume that if iroffer has a chroot option in the settings, it no longer works?
    Configuring and making manually, using the same directory that makepkg made, results in a clean build without warnings and without the chroot() missing issue.

  • Script for saving GIF with Animation Loop Endless

    Hi,
    I am searching for a way to use  "save for web" in a Photoshop CC Script.
    I already found how to use the "save for web" using Script, but now i am stuck, because i cannot find any information on how to set
    that the animation, i want to save as a Animated GIF File, can be set to loop endless.
    I already tried to search in all the docs i found about scripting, but there is not a single information about saving gif with animation loop endless...
    thanks,
    Philipp

    When you do use "save for web" and select GIF, on the bottom right, the loop mode can be selected. But i think i wouldn't matter to me if it's being set before saving the image.
    I already tried to run the script, but somehow
    "charIDToTID('Ordn')" for example won't run. Is this the same as charIDToTypeID? because i found charIDToTypeID is a function, but charIDToTID is not...
    also the third line from the end, one of the functions seem not to work, i think....
    But already you given me a real good answer to what i may try to search for, since i did not actually know that this is set within the timeline, i always used the option within the "save for web" dialog on the bottom-right.
    I Solved my own problem ...
    I just made Photoshop CC with a script log everything, then gotten to this:
    function setLoopForever() {
    var idsetd = charIDToTypeID( "setd" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idanimationClass = stringIDToTypeID( "animationClass" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idanimationClass, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T   " );
            var desc6 = new ActionDescriptor();
            var idanimationLoopEnum = stringIDToTypeID( "animationLoopEnum" );
            var idanimationLoopType = stringIDToTypeID( "animationLoopType" );
            var idanimationLoopForever = stringIDToTypeID( "animationLoopForever" );
            desc6.putEnumerated( idanimationLoopEnum, idanimationLoopType, idanimationLoopForever );
        var idanimationClass = stringIDToTypeID( "animationClass" );
        desc5.putObject( idT, idanimationClass, desc6 );
    executeAction( idsetd, desc5, DialogModes.NO );
    Works perfect!

  • Local repository with dependencies from aur

    I have local repository and I some packages there. For one package I want to specify dependence from AUR package, but when I try to install it I receive warning:
    warning: cannot resolve "ruby-compass", a dependency of "local-company"
    Is it possible to ask yaourt check dependencies in AUR when installing package from local repository?

    Nope.  Many "AUR helpers" do this though.  In my limited experience yaourt seems to be one that handles this seemlessly, but I'd say it comes with some costs of hiding what is doing from the user.

Maybe you are looking for

  • Labview web browser doesn't show display

    Hi! l am having problem displaying the web page in my labview front panel. Anyone got solution to it? Attachments: frontpanel.PNG ‏20 KB blockdiagram.PNG ‏7 KB

  • Issue with Purchase Requisition Release strategy

    Hi Gurus, We are using ECC 6.0.For the approvals of purchase requisitions, we are using standard SAP functionality of release procedure. There were some 52 release strategies configured for the PR .The release strategy was based on value of the follo

  • How to install new features or shortcuts?

    At home, I am using ColdFusion Builder 1.0 When I have a file open and press ctl+shift+O, it outputs this <cfoutput></cfoutput>  or writeOutput(); When I have a file open and press ctl+shift+a, it outputs this: <cfabort> or abort: When I have a file

  • SQL Server question

    I have a question regarding the use of SQL Server instead of Access for your database in RH Server 7. Is it possible to point multiple help systems (servers) to one SQL Server location? Our network admin is doing this currently, and I recently notice

  • Real Time Collaboration

    Can we use the collaboration features if we open the multiple session of Portal? Regards, Devesh ..