ABS PKGBUILD for openoffice-base fails

The PKGBUILD for openoffice-base from the ABS tree is failing on my x86_64 system.  The compilation finishes successfully, but I start getting errors beginning at the "# install binaries" stage.  Here's the first part of the errors that I get.  ((NOTE:  I've replaced my username in the paths with 'userdir', for paranoia's sake ))
cp: cannot stat `instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/buildroot/*': No such file or directory
PKGBUILD: line 240: cd: /home/userdir/abs/local/openoffice-base/pkg/opt: No such file or directory
mv: cannot stat `openoffice.org2.4': No such file or directory
cp: cannot stat `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/xdg/*.desktop': No such file or directory
sed: can't read *.desktop: No such file or directory
sed: can't read printeradmin.desktop: No such file or directory
sed: can't read base.desktop: No such file or directory
sed: can't read calc.desktop: No such file or directory
sed: can't read draw.desktop: No such file or directory
sed: can't read impress.desktop: No such file or directory
sed: can't read math.desktop: No such file or directory
sed: can't read writer.desktop: No such file or directory
sed: can't read *.desktop: No such file or directory
The PKGBUILD then moves through the "# install icons" step without problems.  After that, the next round of errors begin:
sed: can't read /home/userdir/abs/local/openoffice-base/pkg/usr/share/applications/calc.desktop: No such file or directory
touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/dict/ooo/.directory': No such file or directory
touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/presets/template/.directory': No such file or directory
touch: cannot touch `/home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/share/extension/install/.directory': No such file or directory
`./libnpsoplugin.so' -> `/opt/openoffice/program/libnpsoplugin.so'
PKGBUILD: line 308: cd: /home/userdir/abs/local/openoffice-base/pkg/opt/openoffice/program/: No such file or directory
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|*** soffice.orig 2007-10-27 16:40:34.000000000 +0200
|--- soffice 2007-10-27 16:41:14.000000000 +0200
File to patch:
The PKGBUILD stops at this point.  I have to Ctrl^C out of it.
When I look in the directories, I see that instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/buildroot/ does not exist.  Instead, that path ends at instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/ , where I find a set of 25 openoffice.org-*.deb files.  Removing the 'buildroot' part of the path might fix part of the problem, but I'm guessing something else may be going on here besides that.
Any ideas?

the mirrors with old packages are listed here:
http://wiki.archlinux.org/index.php/Downgrade_packages
for example on http://ftp.parrswood.manchester.sch.uk/ … linux.org/ there is OO 2.2

Similar Messages

  • [solved] new abs PKGBUILD for package kernel26...old kernel?

    I was looking into the new PKGBUILD in the /var/abs/core/kernel26 folder, as I wanted to update my custom kernel. I was editing the new PKGBUILD when I saw something weird...references to kernel.org files and archlinux.org patch seems to be same as the 2.6.37 version. Is _basekernel value not updated? Am I wrong?
    Take a look:
    new PKGBUILD (I copied only relevant lines):
    _basekernel=2.6.37
    pkgver=${_basekernel}
    pkgrel=6
    _patchname="patch-${pkgver}-4-ARCH"
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
    now...these is exactly the same as PKGBUILD for 2.6.37. But the new files are:
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.1.tar.bz2
    ftp://ftp.archlinux.org/other/kernel26/patch-2.6.37.1-1-ARCH.bz2
    If I am right, someone has to update variable values...
    TIA
    Gemon
    Last edited by gemon (2011-02-21 22:17:23)

    well...I had time to check so...this is the content for the PKGBUILD after I run abs yesterday (pasted only relevant lines):
    # $Id: PKGBUILD 109724 2011-02-12 08:01:06Z tpowa $
    pkgbase="kernel26"
    pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.37
    pkgver=${_basekernel}
    pkgrel=6
    _patchname="patch-${pkgver}-4-ARCH"
    this is the one I run tonight...looks updated now
    # $Id: PKGBUILD 110322 2011-02-18 20:13:49Z tpowa $
    pkgbase="kernel26"
    pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.37
    pkgver=${_basekernel}.1
    pkgrel=1
    _patchname="patch-${pkgver}-${pkgrel}-ARCH"
    now patch filename and kernel sources correctly resolve to the latest ones.
    but believe me, right after I had the 2.6.37.1-arch kernel, the abs PKGBUILD was outdated...probably it is updated after kernel package is released. doesn't matter
    all in all...now it's ok
    Gemon

  • Openoffice-base: no PKGBUILD in abs

    Hello,
    I have been trying to compile openoffice, so I wanted to check out what arch was doing. To my surprise, there is no PKGBUILD inside /var/abs/extra/office/openoffice-base, only some patch files (which I suppose to be the ones applied by the missing PKGBUILD).
    Tried deleting the whole abs tree and re synching, with no success. Perhaps the file is missing in the ABS host? (just using default abs config)
    Thanks!

    Yes, i finally managed to compile openoffice-base, but i had to remove option -P6  (SMP option). Otherwise, i war sunning out of memory, and the system became unusable during compile. The total size became around 6Gb. Although the package could not be created, because of some error i managed to test the patches i'm creating.
    No, i want to make some changes to my patches and recompile. Do i have to recompile the whole thing again? If i do a makepkg, current src will be "deleted" and the process will start over. Is something i could do to compile only the parts that have changed?

  • PKGBUILD for custom kernel issue

    Hi all,
    Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time as it keeps making me have to find an ethernet cable. I used the kerne26 Arch PKGBUILD as a base and included parts of kernel-netbook for broadcom-wl, kernel26-grsecurity, and kernel26-ck and altered name variables and links etc so it all works and all sources are downloaded. I also got the two .patch files (semaphore and something else) from the kernel-netbook tarball to build the thing with, I don't know if it would work without them.
    However when I get into the build() a few patches are applied before I get messages about patches already applied or reversed, and then it says build failed because of an error, I can't tell which package is causing thins or why (it all goes by too fast, and the error says failed without reason, and the reversed patch messages are what is immediately previous to it). I have not yet gone all the way through the pkgbuild - especially towards the end, and I felt that the standard setup of init file system creation and such were ok, and if anything does need altering about it, I can deal with it once I get these first troubles solved.
    Below is my pkgbuild so far. Hopefully there are people out there who can aid me with this.
    Thanks,
    Ben.
    # Maintainer: Ben Ward <[email protected]>
    pkgbase="kernel26"
    # pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
    pkgname=kernel26-custom # Build kernel with a different name
    #Base kernel info
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.38
    pkgver=${_basekernel}.3
    pkgrel=1
    #ARCH patch info
    _archpatchver=1
    _archpatchname="patch-${pkgver}-${_archpatchver}-ARCH"
    #_archpatchname="patch-${pkgver}-1-ARCH"
    #grsecurity info
    _grsec=2.2.2
    _timestamp=201104182227
    #Broadcom-wl info
    _broadcom_ver=5.100.82.38
    _broadcom="hybrid-portsrc_x86_32-v${_broadcom_ver//./_}"
    #ck-patch info
    _ckpatchversion=3
    _ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
    arch=(i686 x86_64)
    license=('GPL2')
    url="http://www.kernel.org"
    options=(!strip)
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
    ftp://ftp.archlinux.org/other/kernel26/${_archpatchname}.bz2
    http://grsecurity.net/test/grsecurity-${_grsec}-${pkgver}-${_timestamp}.patch
    http://www.broadcom.com/docs/linux_sta/${_broadcom}.tar.gz
    http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
    "semaphore.patch"
    "mutex-sema.patch"
    # the main kernel config files
    config config.x86_64
    # standard config files for mkinitcpio ramdisk
    kernel26.preset)
    md5sums=('7d471477bfa67546f902da62227fa976'
    'b3677121c4b5efcb8128c2000788d0aa'
    '5b14b6eb2cdcb074905d4974437c4df6'
    'a19024797f192fe21a468de80c101d8a'
    'c0074a1622c75916442e26763ddf47d0'
    '88d5b3e0622f8c48dad19ab9ac3c16f0'
    'aee89fe7f034aea2f2ca95322774c1b5'
    '21ce3f7967d7305064bf7eb60030ffea'
    'f66543886835ab8599b29cd0c48aa66d'
    'd866bcc06672fee17736bd5022f700fe'
    '25584700a0a679542929c4bed31433b6')
    build() {
    cd ${srcdir}/linux-$_basekernel
    # Apply kernel.org patch to basekernel
    msg "Checking basekernel is ip to date..."
    if [[ "${_basekernel}" != "${pkgver}" ]]; then
    msg "Patching source with upstream patch..."
    patch -Np1 -i "${srcdir}/patch-${pkgver}" || return 1
    fi
    # Add -ARCH patches
    # See http://projects.archlinux.org/linux-2.6-ARCH.git/
    msg "Patching Kernel with ARCH patches..."
    patch -Np1 -i ${srcdir}/${_archpatchname}
    # Add ck patch
    msg "Patching Kernel with ck patches..."
    patch -Np1 -i ${srcdir}/${_ckpatchname}
    # Add grsecurity patch
    msg "Patching kernel with grsecurity testing branch..."
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    #make menuconfig # CLI menu for configuration
    make nconfig # new CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make ${MAKEFLAGS} bzImage modules
    package_kernel26() {
    pkgdesc="The Linux Kernel and modules"
    groups=('base')
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
    # 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' 'rt2500' 'nouveau-drm')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/linux-$_basekernel
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,lib/firmware,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
    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
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    # gzip -9 all modules to safe 100MB of space
    find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
    ##Section: Broadcom-wl
    msg "Compiling broadcom-wl module:"
    cd ${srcdir}/
    #patching broadcom as broadcom-wl package on AUR
    patch -p1 < license.patch
    patch -p1 < semaphore.patch
    patch -p1 < mutex-sema.patch
    make -C ${srcdir}/linux-$_basekernel M=`pwd`
    install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko
    package_kernel26-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/linux-$_basekernel
    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 xen; 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; 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
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    # 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/
    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 dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
    cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
    cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
    cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
    # 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 vor 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/
    # add headers for crypto modules
    # in reference to:
    # http://bugs.archlinux.org/task/22081
    cp -a include/crypto $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 {} \;
    # strip scripts directory
    find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "$binary")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip $STRIP_SHARED "$binary";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip $STRIP_STATIC "$binary";;
    *application/x-executable*) # Binaries
    /usr/bin/strip $STRIP_BINARIES "$binary";;
    esac
    done
    # 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}
    package_kernel26-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
    cd ${srcdir}/linux-$_basekernel
    mkdir -p $pkgdir/usr/src/linux-$_kernver
    mv Documentation $pkgdir/usr/src/linux-$_kernver
    find $pkgdir -type f -exec chmod 444 {} \;
    find $pkgdir -type d -exec chmod 755 {} \;
    # remove a file already in kernel26 package
    rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
    I wonder if localyesconfig would take care of broadcom-wl for me...
    Last edited by Ben9250 (2011-04-20 00:12:44)

    Thank you. I guess trying the abs method wouldn't hurt. My main issue was configuration. I've only just skimmed the PKGBUILD so I'm not aware of how it handles it. I suppose I could write my own as described in the wiki as well. Thanks again.
    Edit: Further research has revealed to me that the kernel headers are merely there for when the full source tree isn't. Seeing as the full tree is present in my case, the headers are unnecessary. I may take graysky's advice though and use pacman to manage my kernel.
    Last edited by smithr.michael1997 (2011-03-31 02:17:29)

  • Using ABS to compile OpenOffice with KDE3 support?

    Hallo,
    So I'm trying to use ABS to compile OpenOffice with KDE3 support so I can use the KDE file picker (the KDE4 support is really, really broken and too new to be used right now). I pulled Openoffice-base out of my ABS tree and modified the PKBUILD so that kde was enabled and I made kdelibs3 part of the dependencies.
    However, it always says "checking whether KDE is between 3.2 and 3.6... configure: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" before failing to compile. I know it's because I'm using KDE4. Is there a way I can trick it into thinking I'm using KDE3?
    It says the path to kdelibs is /usr/lib, perhaps if I changed it to the path to kdelibs3? Where would I do that in the PKBUILD?
    Thanks a lot!

    bstaletic wrote:The weird part, at least to me, is that I saw a lot more then 19 modules during compilation. Is this expected for some reason or have I messed something up?
    Your build method seems ok to me. Can't really say anything about the .config, but kernel modules can have dependencies too. For example, if you choose to build ext4 as a module, it selects at least jdb2 and crc16 modules to be built as well.

  • Hdf4 and pyhdf AUR PKGBUILDS for review

    pyhdf is a Python interface to the HDF4 library. HDF4 is a scientific data file format. pyhdf links to the static libs built by the HDF4 package. I decided to split HDF4 out into its own package because someone else might want to link to these libraries, or use the numerous HDF4 utilities that accompany them. There is an hdf5 package in the AUR already, but hdf5 coexists with hdf4, rather than replacing it.
    Here is the HDF4 PKGBUILD:
    # Contributor: David Scholl <djscholl>
    pkgname=hdf4
    pkgver=2r1
    pkgrel=1
    pkgdesc="General purpose library and file format for storing scientific data."
    url="http://hdf.ncsa.uiuc.edu/hdf4.html"
    license="custom"
    depends=('zlib' 'libjpeg')
    makedepends=(gcc-fortran)
    source=(ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF4.$pkgver.tar.gz ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/configure)
    md5sums=('9082c6fa913b9188452fa6c5217e1573' '845b0e1a20c0a969fca386b8830236ed')
    build() {
    cp ./configure $startdir/src/HDF4.$pkgver
    cd $startdir/src/HDF4.$pkgver
    ./configure --prefix=/usr F77=gfortran FFLAGS=-ffixed-line-length-0
    make || return 1
    make prefix=$startdir/pkg/usr install
    mkdir -p $startdir/pkg/usr/share/licenses/hdf4
    cp $startdir/src/HDF4.$pkgver/COPYING $startdir/pkg/usr/share/licenses/hdf4
    HDF4 was originally built with commercial Fortran 77 compilers, although g77 worked too. Since g77 is gone, I built it with gfortran. I encountered a couple of issues with the "make check" command, which compiles and runs tests of the libraries and utilities. The main package builds without errors using plain gfortran. However, the test code contains lines longer than 72 characters, so I had to add the FFLAGS=-ffixed-line-length-0 option to the configure script to be able to build the tests. When I manually do
    cd $startdir/src/HDF4.$pkgver
    make check || return 1
    all of the tests are built and passed without errors. However, when I put these two lines into the build script, the tests fail as follows:
    ============================
    HDF-SD C interfaces tests
    ============================
    srcdir="." ./hdftest > hdfout.new
    make[2]: *** [check] Error 1
    make[2]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf/libsrc'
    make[1]: *** [check-recursive] Error 1
    make[1]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf'
    make: *** [check-recursive] Error 1
    ==> ERROR: Build Failed. Aborting...
    I would like to include the tests in the build, because it's bad when your data gets mangled. However, I don't know how to get the tests to run in the build script. If anyone has any suggestions I would appreciate them.
    HDF4 is released under a license which resembles other Open Source licenses I have read, so I treated it as a custom license. The HDF4 package can be built with an optional compression library called szip, which is not an Open Source product. szip is available under non-commercial and commercial licenses, but prospective commercial users must contact the licensing agent. The AUR doesn't have a way to make that clear to prospective users, so I left out szip.
    Here is the PKGBUILD for pyhdf:
    # Contributor: David Scholl <djscholl>
    pkgname=pyhdf
    pkgver=0.7.3
    pkgrel=1
    pkgdesc="Python bindings for the HDF library."
    url="http://pysclint.sourceforge.net/pyhdf/"
    license="Python"
    depends=('python' 'python-numeric' 'zlib' 'libjpeg')
    makedepends=(hdf4)
    source=(http://dl.sourceforge.net/pysclint/$pkgname-0.7-3.tar.gz)
    md5sums=('f55aa19e61cf6501f436e27783098000')
    build() {
    cd $startdir/src/$pkgname-0.7-3
    sed -i '/#extra_compile_args=["-DNOSZIP"],/s/#//' setup.py
    sed -i '/libraries = ["mfhdf", "df", "jpeg", "z", "sz"]/s/libraries/#libraries/' setup.py
    sed -i '/#libraries = ["mfhdf", "df", "jpeg", "z"]/s/#//' setup.py
    python setup.py install --root=$startdir/pkg
    pyhdf assumes the availability of szip by default, so its setup.py must be hacked to build it without szip.  I do this with three sed commands, following the instructions in the INSTALL file and the comments in the setup.py. The sourceforge page for pyhdf describes it as being released under the Python license, but there is no copyright file included with the source distribution, nor did I find one on the project website.
    If anyone has corrections or improvements to suggest, please post.

    I have done some further digging into the "make check" issue, but I don't know enough to solve it. I'm hoping someone will be able to figure out a patch or work-around that I can use.
    The error message announces leaving the src/HDF4.2r1/mfhdf/libsrc directory. We can find the first part of the error message in the Makefile:
    less -N src/HDF4.2r1/mfhdf/libsrc/Makefile
    729 check:
    730 @echo "============================"
    731 @echo "HDF-SD C interfaces tests"
    732 @echo "============================"
    733 srcdir="$(srcdir)" ./hdftest > hdfout.new
    734 @cmd="$(DIFF) hdfout.new $(srcdir)/hdfout.sav";
    It appears to me that line 733 bombs when "make check" is run from the build script, and the diff command in 734 doesn't get a chance to run.
    The hdfout.new from the build script "make check" ends in
    *** UNEXPECTED VALUE from second SDstart is 393216 at line 61 in tsd.c
    num_err == 1
    The file src/HDF4.2r1/mfhdf/libsrc/hdfout.sav ends in
    num_err == 0
    less -N src/HDF4.2r1/mfhdf/libsrc/tsd.c
    24 #define FILE_NAME "sdtest.hdf" /* data file to test ID types */
    59 /* Create a protected file */
    60 fid = SDstart(FILE_NAME, DFACC_CREATE);
    61 VERIFY(fid, FAIL, "second SDstart");
    Running "make check" manually:
    $ ls -l sdtest.hdf
    --w------- 1 dscholl dscholl 2503 2006-08-13 09:45 sdtest.hdf
    Running "make check" from within the build script:
    $ ls -l sdtest.hdf
    -rw------- 1 dscholl dscholl 2502 2006-08-13 09:48 sdtest.hdf
    I'm not a C programmer, but it appears to me that the hdftest binary is trying to create a read-protected --w------- file, and actually creating a -rw------- file. When it tries to read it, it generates an error message and the Makefile stops running. What is different about the build script environment that would cause this difference in file creation?

  • Error on openoffice-base installation

    Hello All,
    i have a problem with the System updates
    when i use pacman -Syu
    it give the error that file is or are  corrupted
    but now i update system  one by one installation.
    now the main problem is that the openoffice is not function well so  remove it from pc.
    but when i am triyng to install it download after some(MB) or full  and give these kind of errors.
    pacman -S openoffice-base
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): openoffice-base-3.1.1-2
    Total Download Size: 137.80 MB
    Total Installed Size: 287.92 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'openoffice-base-3.1.1-2-i686.pkg.tar.gz' from ftp.belnet.be-----------------------------] 0%
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (failed to retrieve some files)
    Errors occurred, no packages were upgraded.
    i change mirros.
    update pacman,
    but now i dont understand what to do ?
    i need openoffice for some work 
    anybody knows what to do now...
    Thanks

    Looks like something is wrong at belnet.be... Try change your mirror, and do a pacman -Syy then try again.
    Try uncomment only one mirror at any time. There should be one mirror that has it.

  • [solved] Small changes to abs PKGBUILDs and maintenance/updating

    Hi!
    Somehow I manage to hoard packages that require intervention on updates. Small things, like p.e. adding a flag to have cups build without the need for avahi or midori (if I rememer tight that one was libsoup) without gconf... or just an own mozconfig for firefox. Nothing that really requires too much thinking/knowing/decision-making - at least to apply the changes to updated PKGBUILDs.
    Now what's the best way to maintain that and is there already a good script or something to do it?
    Something like p.e.:
    - Have a folder with PKGBUILD patches (like "insert additional build flag")
    - If folder for package exists, build from ABS as soon as new abs version exists, apply patch to PKBUILD before that & notify if it fails with the updated PKBUILD (something like just adding the -disable_whatever flag shouldn't require much intervention, should it?)
    - If no folder, take pacman package as soon as soon as ABS is updated (are there lots problems with them not being in sync?)
    Well, but that's just an example... how do you do it? How do you let yourself get informed about repo updates of package you have installed as local slightly modified version? How do you reapply small / medium / big changes to the updated original PKGBUILDs? And slightly related: Do you think it makes sense to provide & request AUR packages that are only slightly different from the original ABS ones (like one line / one configure flag...) or would that just lead to way to many AUR entries that are only used by 1-2 people?
    thx...
    Last edited by whoops (2009-07-24 16:53:08)

    Thanks!
    That doesn't really do everything I had in mind, but as it's bash and I can spend hours screaming at single lines of bash that don't work after I changed/typed them,  it should keep me occupied until I either give up, break something or get it to do what I want...
    Still: If anyone knows something like it that maybe has support for AUR and/or makes it easier to keep patches / custom files (like mozconfig) in the "private ABS tree" for automatic updating / building, just point me into the direction!

  • Openoffice == Build Failed. Aborting... big post lol

    ops
    ///// SNIP(-ed) //////
    cd  ./english_us ; zip -u /tmp/mkSiX5Qu.zip ./schart.* -x delzip  -x "*CVS*"
    zip: Command not found.
    cp -f /tmp/mkSiX5Qu.zip  ../../unxlngi4.pro/bin/schart01.zip
    cp: cannot stat `/tmp/mkSiX5Qu.zip': No such file or directory
    dmake:  Error code 1, while making '../../unxlngi4.pro/bin/schart01.zip'
    ---* TG_SLO.MK *---
    ERROR: Error 65280 occurred while making /usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/helpcontent/unx/schart
    dmake:  Error code 1, while making 'build_all'
    ---* TG_SLO.MK *---
    ==> Build Failed. Aborting...

    I'm losing my mind I cant seem do build it, I got this error now e I cant figure it out.
    Any help, as always is most welcome, it fails just some seconds into the building process
    =============
    Building project XmlSearch
    =============
    /usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/XmlSearch/src/com/sun/xmlsearch
    Making dpj...
    javac -classpath ".:../../../../unxlngi4.pro/class:/opt/j2sdk1.4.1/bin/jre/lib/rt.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/solver/641/unxlngi4.pro/bin/jaxp.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/solver/641/unxlngi4.pro/bin/parser.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/solver/641/unxlngi4.pro/bin/xt.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/external/common/jaxp.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/external/common/parser.jar:/usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/external/common/xt.jar" -d ../../../../unxlngi4.pro/class    db/Block.java           db/BlockFactory.java    db/BlockManager.java          db/BlockManagerParameters.java          db/BlockProcessor.java          db/BlockStack.java      db/BtreeDict.java       db/BtreeDictParameters.java           db/CompactEdgeFormat.java       db/DBPartParameters.java        db/EdgePrinter.java     db/EntryProcessor.java       db/FullBtreeDict.java    db/FullVectorBtree.java         db/Schema.java          db/VectorBtree.java     db/VectorBtreeIterator.java     db/VectorBtreeParameters.java         db/VectorFormat.java    db/VectorProcessor.java         util/ExtensibleURLStreamHandlerFactory.java          util/BitBuffer.java      util/ByteArrayDecompressor.java         util/Compressor.java            util/CompressorIterator.java            util/ConceptList.java         util/ConceptLocation.java       util/Configuration.java         util/Decompressor.java          util/DocumentCompressor.java          util/Extent.java        util/Index.java         util/IndexAccessor.java         util/IndexInverter.java         util/IntegerArray.java        util/LineInput.java             util/Location.java      util/NonnegativeIntegerGenerator.java           util/PrefixTranslator.java            util/SimpleTokenizer.java       util/StreamDecompressor.java            util/Token.java         util/Tokenizer.java     tree/Names.java       tree/Node2.java         tree/NodeFactory.java           tree/ResultAdapter.java         tree/TreeBuilder.java           tree/XmlTreeNode.java         tree/XmlTreeNodeImpl.java       qe/ConceptData.java             qe/ConceptGroupGenerator.java           qe/GeneratorHeap.java         qe/HitStore.java        qe/LiteMorph.java       qe/LiteMorph_en.java            qe/NextDocGenerator.java        qe/NextDocGeneratorHeap.java          qe/Query.java           qe/QueryHit.java        qe/RoleFiller.java      qe/Rule.java            qe/SearchEnvironment.java             xml/ContextTables.java          xml/XmlIndex.java       xml/indexer/ElementIndexer.java         xml/indexer/XmlIndexBuilder.java      xml/indexer/XmlIndexer.java             xml/indexer/XmlIndexingException.java           xml/qe/ConceptData.java         xml/qe/ConceptData1.java      xml/qe/ConceptData2.java        xml/qe/ConceptData3.java        xml/qe/ConceptData4.java        xml/qe/ConceptData5.java     xml/qe/ConceptData7.java         xml/qe/ConceptDataStart.java            xml/qe/ConceptDataStop.java             xml/qe/ConceptGroupGenerator.java             xml/qe/GeneratorHeap.java       xml/qe/HitStore.java            xml/qe/MultiTokenLocator.java           xml/qe/NextDocGenerator.java          xml/qe/NextDocGeneratorHeap.java        xml/qe/Query.java       xml/qe/QueryFactoryImpl.java            xml/qe/QueryHit.java          xml/qe/QueryHitData.java        xml/qe/QueryHitIterator.java            xml/qe/QueryProcessor.java      xml/qe/QueryProcessorImpl.java        xml/qe/QueryResults.java        xml/qe/QueryStatement.java      xml/qe/RoleFiller.java          xml/qe/Search.java
    db/FullVectorBtree.java:160: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
          assert(_free > 0 && _free <= _blockSize);
          ^
    db/VectorBtree.java:277: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
      public static void assert(boolean assertion) {
                         ^
    db/VectorBtree.java:352: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
                    assert(stack.size() == 0);
                    ^
    util/ExtensibleURLStreamHandlerFactory.java:82: unreachable statement
                return (URLStreamHandler)handlerClass.newInstance();;
                                                                    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error
    3 warnings
    dmake:  Error code 1, while making '../../../../unxlngi4.pro/misc/com_sun_xmlsearch_dummy.java'
    ---* TG_SLO.MK *---
    ERROR: Error 65280 occurred while making /usr/abs/unofficial/office/openoffice/src/oo_1.0.2_src/XmlSearch/src/com/sun/xmlsearch
    dmake:  Error code 1, while making 'build_all'
    ---* TG_SLO.MK *---
    ==> Build Failed. Aborting...

  • Job for httpd.service failed. See 'systemctl status httpd.service' and

    Hello,
    I am the problem. I change "/etc/httpd/conf/httpd.conf" to install php5 on apache.
    sudo systemctl start httpd
    Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
    systemctl status httpd.service
    ● httpd.service - Apache Web Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
    Active: failed (Result: exit-code) since lun. 2014-08-25 12:19:31 CEST; 1min 18s ago
    Process: 2208 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
    Process: 2433 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
    Main PID: 2060 (code=exited, status=0/SUCCESS)
    août 25 12:19:31 creaprog apachectl[2433]: httpd: Syntax error on line 66 o...y
    août 25 12:19:31 creaprog systemd[1]: httpd.service: control process exite...=1
    août 25 12:19:31 creaprog systemd[1]: Failed to start Apache Web Server.
    août 25 12:19:31 creaprog systemd[1]: Unit httpd.service entered failed state.
    Hint: Some lines were ellipsized, use -l to show in full.
    cat /etc/httpd/conf/httpd.conf
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
    # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
    # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
    # will be interpreted as '/logs/access_log'.
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to specify a local disk on the
    # Mutex directive, if file-based mutexes are used. If you wish to share the
    # same ServerRoot for multiple httpd daemons, you will need to change at
    # least PidFile.
    ServerRoot "/srv/http"
    # Mutex: Allows you to set the mutex mechanism and mutex file directory
    # for individual mutexes, or change the global defaults
    # Uncomment and change the directory if mutexes are file-based and the default
    # mutex file directory is not on a local disk or is not appropriate for some
    # other reason.
    # Mutex default:/run/httpd
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_socache_module modules/mod_authn_socache.so
    LoadModule authn_core_module modules/mod_authn_core.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    #LoadModule authz_dbd_module modules/mod_authz_dbd.so
    LoadModule authz_core_module modules/mod_authz_core.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule access_compat_module modules/mod_access_compat.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_form_module modules/mod_auth_form.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule allowmethods_module modules/mod_allowmethods.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cache_disk_module modules/mod_cache_disk.so
    #LoadModule cache_socache_module modules/mod_cache_socache.so
    #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
    #LoadModule socache_dbm_module modules/mod_socache_dbm.so
    #LoadModule socache_memcache_module modules/mod_socache_memcache.so
    #LoadModule watchdog_module modules/mod_watchdog.so
    #LoadModule macro_module modules/mod_macro.so
    #LoadModule dbd_module modules/mod_dbd.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    #LoadModule echo_module modules/mod_echo.so
    #LoadModule buffer_module modules/mod_buffer.so
    #LoadModule data_module modules/mod_data.so
    #LoadModule ratelimit_module modules/mod_ratelimit.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule request_module modules/mod_request.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    #LoadModule reflector_module modules/mod_reflector.so
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule sed_module modules/mod_sed.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule deflate_module modules/mod_deflate.so
    #LoadModule xml2enc_module modules/mod_xml2enc.so
    #LoadModule proxy_html_module modules/mod_proxy_html.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_debug_module modules/mod_log_debug.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule logio_module modules/mod_logio.so
    #LoadModule lua_module modules/mod_lua.so
    LoadModule env_module modules/mod_env.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    #LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    #LoadModule remoteip_module modules/mod_remoteip.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
    LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule proxy_express_module modules/mod_proxy_express.so
    #LoadModule session_module modules/mod_session.so
    #LoadModule session_cookie_module modules/mod_session_cookie.so
    #LoadModule session_crypto_module modules/mod_session_crypto.so
    #LoadModule session_dbd_module modules/mod_session_dbd.so
    LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
    #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
    #LoadModule ssl_module modules/mod_ssl.so
    #LoadModule dialup_module modules/mod_dialup.so
    LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
    LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
    LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
    LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
    LoadModule mpm_event_module modules/mod_mpm_event.so
    LoadModule unixd_module modules/mod_unixd.so
    #LoadModule heartbeat_module modules/mod_heartbeat.so
    #LoadModule heartmonitor_module modules/mod_heartmonitor.so
    #LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule asis_module modules/mod_asis.so
    #LoadModule info_module modules/mod_info.so
    #LoadModule suexec_module modules/mod_suexec.so
    #LoadModule cgid_module modules/mod_cgid.so
    #LoadModule cgi_module modules/mod_cgi.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    #LoadModule actions_module modules/mod_actions.so
    #LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    #Load php5 module
    LoadModule php5_module modules/libphp5.so
    <IfModule unixd_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User http
    Group http
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #ServerName www.example.com:80
    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other
    # <Directory> blocks below.
    <Directory />
    AllowOverride none
    Require all denied
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/srv/http"
    <Directory "/srv/http">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # AllowOverride FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Require all granted
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <Files ".ht*">
    Require all denied
    </Files>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    CustomLog "/var/log/httpd/access_log" common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/var/log/httpd/access_log" combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock cgisock
    </IfModule>
    # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
    </Directory>
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # MaxRanges: Maximum number of Ranges in a request before
    # returning the entire resource, or one of the special
    # values 'default', 'none' or 'unlimited'.
    # Default setting is to accept 200 Ranges.
    #MaxRanges unlimited
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall may be used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    # Defaults: EnableMMAP On, EnableSendfile Off
    #EnableMMAP off
    #EnableSendfile on
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    # PHP settings
    Include conf/extra/php5_module.conf
    # Configure mod_proxy_html to understand HTML4/XHTML1
    <IfModule proxy_html_module>
    Include conf/extra/proxy-html.conf
    </IfModule>
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    # uncomment out the below to deal with user agents that deliberately
    # violate open standards by misusing DNT (DNT *must* be a specific
    # end-user choice)
    #<IfModule setenvif_module>
    #BrowserMatch "MSIE 10.0;" bad_DNT
    #</IfModule>
    #<IfModule headers_module>
    #RequestHeader unset DNT env=bad_DNT
    #</IfModule>
    Thanks, sorry my english is bad .
    Last edited by Creaprog (2014-08-25 10:25:17)

    I just noticed the exact same thing. It turns out that the httpd-ssl.conf file on my system is still the old v2.2 syntax, which means that the SSLMutex directive is still in there. This is an invalid directive after 2.2.
    This is where things get interesting. At first, I simply thought I had forgotten to merge httpd-ssl.conf.pacnew after apache had been upgraded to 2.4. However, when I check my pacman.log, it appears that httpd-ssl.conf was never upgraded when apache went to 2.4 - (2.2.26-1 -> 2.4.7-1). There was never a pacnew file generated to be merged.
    I took a look at the apache package via the abs and the "proper" httpd-ssl.conf is certainly in there, so why pacman never created a pacnew file is a mystery.
    Anyway, to fix this: pull the httpd-ssl.conf from the apache package, either from your cache, using the abs and building it, or (I think) pacman may re-install it if you move the file to a backup location (not sure about this). Then merge your original httpd-ssl-conf with the new one.

  • Help with PKGBUILD for nvidia driver cards

    Hello, I'm trying to make a PKGBUILD for the new geforce beta driver for the kernel26-mm kernel, geforce-utils went just fine, but the the geforce package was more tricky, here's the PKGBUILD:
    pkgname=geforce-mm
    pkgver=173.08
    _kernver='2.6.25-mm'
    pkgrel=1
    pkgdesc="NVIDIA drivers for kernel26mm."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=('kernel26mm' 'geforce-utils')
    install=geforce.install
    source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg1.run)
    md5sums=()
    [ "$CARCH" = "x86_64" ] && md5sums=()
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg1.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg1
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/${_kernver}/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    Output when running it:
    [roberth@Magda geforce-mm]$ makepkg
    ==> Making package: geforce-mm 173.08-1 (Mon Apr 14 22:44:41 CEST 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading NVIDIA-Linux-x86-173.08-pkg1.run...
    --2008-04-14 22:44:41-- http://us.download.nvidia.com/XFree86/Linux-x86/173.08/NVIDIA-Linux-x86-173.08-pkg1.run
    Resolving us.download.nvidia.com... 193.213.121.82, 193.213.121.74
    Connecting to us.download.nvidia.com|193.213.121.82|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 18958181 (18M) [application/octet-stream]
    Saving to: `NVIDIA-Linux-x86-173.08-pkg1.run'
    100%[===========================================================================================================================================================================================>] 18,958,181 710K/s in 26s
    2008-04-14 22:45:07 (720 KB/s) - `NVIDIA-Linux-x86-173.08-pkg1.run' saved [18958181/18958181]
    ==> WARNING: Integrity checks (md5) are missing or incomplete.
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    Creating directory NVIDIA-Linux-x86-173.08-pkg1
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.08...............................................................................................................................................................................................................................................................................................
    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.25-mm/build SUBDIRS=/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
    echo; \
    /bin/false)
    mkdir -p /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.tmp_versions ; rm -f /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv
    cc -Wp,-MD,/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -I/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.08\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.o /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c
    In file included from include/linux/list.h:8,
    from include/linux/preempt.h:11,
    from include/linux/spinlock.h:49,
    from include/linux/seqlock.h:29,
    from include/linux/time.h:8,
    from include/linux/timex.h:57,
    from include/linux/sched.h:54,
    from include/linux/utsname.h:35,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:19,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/prefetch.h: In function 'prefetch_range':
    include/linux/prefetch.h:57: warning: pointer of type 'void *' used in arithmetic
    In file included from include/linux/gfp.h:4,
    from include/linux/slab.h:14,
    from include/linux/percpu.h:5,
    from include/linux/rcupdate.h:41,
    from include/linux/pid.h:4,
    from include/linux/sched.h:74,
    from include/linux/utsname.h:35,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:19,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/mmzone.h: In function 'first_zones_zonelist':
    include/linux/mmzone.h:778: warning: comparison between signed and unsigned
    include/linux/mmzone.h:781: warning: comparison between signed and unsigned
    include/linux/mmzone.h: In function 'next_zones_zonelist':
    include/linux/mmzone.h:798: warning: comparison between signed and unsigned
    include/linux/mmzone.h:801: warning: comparison between signed and unsigned
    In file included from include/asm/dma-mapping_32.h:5,
    from include/asm/dma-mapping.h:2,
    from include/linux/dma-mapping.h:52,
    from include/asm-generic/pci-dma-compat.h:7,
    from include/asm/pci.h:90,
    from include/linux/pci.h:937,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:86,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/scatterlist.h: In function 'sg_virt':
    include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in arithmetic
    In file included from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv-linux.h:109,
    from /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:14:
    include/linux/highmem.h: In function 'zero_user_segments':
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:134: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    include/linux/highmem.h:137: warning: pointer of type 'void *' used in arithmetic
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c: In function 'nv_kern_vma_nopage':
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: 'NOPAGE_SIGBUS' undeclared (first use in this function)
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: (Each undeclared identifier is reported only once
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1846: error: for each function it appears in.)
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c: At top level:
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1853: error: unknown field 'nopage' specified in initializer
    /home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.c:1853: warning: initialization from incompatible pointer type
    make[3]: *** [/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv/nv.o] Error 1
    make[2]: *** [_module_/home/roberth/pkg/geforce-mm/src/NVIDIA-Linux-x86-173.08-pkg1/usr/src/nv] Error 2
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [module] Error 1
    make: *** [module] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Anybody have a clue?

    It seems I was wrong! I found a patch on the nvidia forums which actually makes it works
    I don't know if it will work for you, or how safe it is, but I guess it is worth a shot.
    The patch:
    --- os-agp.c.25 2008-04-02 01:34:49.000000000 -0400
    +++ os-agp.c 2008-04-02 01:39:00.000000000 -0400
    @@ -293,7 +293,7 @@
    nv_pte_t *page_ptr = at->page_table[i];
    - page_ptr->phys_addr = (ptr->memory[i] & PAGE_MASK);
    + page_ptr->phys_addr = (ptr->memory[i]);
    page_ptr->virt_addr = (unsigned long) __va(page_ptr->phys_addr);
    page_ptr->dma_addr = page_ptr->phys_addr;
    --- nv.c.25 2008-03-15 22:00:46.000000000 -0400
    +++ nv.c 2008-04-02 01:31:46.000000000 -0400
    @@ -613,7 +613,7 @@
    nv_state_t *nv;
    nv_linux_state_t *nvl;
    - proc_nvidia = create_proc_entry("nvidia", d_flags, proc_root_driver);
    + proc_nvidia = create_proc_entry("driver/nvidia", d_flags, NULL);
    if (!proc_nvidia)
    goto failed;
    @@ -1811,6 +1811,19 @@
    +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24))
    +int nv_kern_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
    +{
    +struct page *page;
    +
    + page = pfn_to_page(vma->vm_pgoff);
    + if (!page)
    + return VM_FAULT_SIGBUS;
    + get_page(page);
    + vmf->page = page;
    + return 0;
    +}
    +#else
    struct page *nv_kern_vma_nopage(
    struct vm_area_struct *vma,
    unsigned long address,
    @@ -1832,11 +1845,16 @@
    return NOPAGE_SIGBUS;
    #endif
    +#endif /* 2.6.24 */
    struct vm_operations_struct nv_vm_ops = {
    .open = nv_kern_vma_open,
    .close = nv_kern_vma_release, /* "close" */
    +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24))
    + .fault = nv_kern_vma_fault,
    +#else
    .nopage = nv_kern_vma_nopage,
    +#endif
    static nv_file_private_t *

  • Making pkgbuild for keytouch

    I'm trying to make a pkgbuild for keytouch
    But as it's my first pkgbuild, I have some problems:
    1) the docs say you need the following packages to be installed:
    - GTK 2
    - gksu
    - X11 and Xlib
    gtk2 and gksu are in pacman, but what do I have to add for X11 and Xlib?
    2) running makepkg runs into an error:
    mkdir /home/tom/download/PKGbuilds/keytouch/test1/pkg/usr/bin
    /bin/install -c keytouchd /home/tom/download/PKGbuilds/keytouch/test1/pkg/usr/bin/keytouchd
    XSESSION_KEYTOUCHD_LINE="keytouchd &";
    XSESSION_DIR="/etc/X11/Xsession.d";
    if [ -d $XSESSION_DIR ]; then
    echo "$XSESSION_KEYTOUCHD_LINE" > $XSESSION_DIR/40keytouchd;
    chmod +x $XSESSION_DIR/40keytouchd;
    else
    XSESSION_FILE="/etc/X11/Xsession";
    if [ "`grep "$XSESSION_KEYTOUCHD_LINE" "$XSESSION_FILE" -m 1 -h`" != "$XSESSION_KEYTOUCHD_LINE" ]; then
    XSESSION_TMP=`cat "$XSESSION_FILE"`;
    echo "$XSESSION_KEYTOUCHD_LINE" > $XSESSION_FILE;
    echo "$XSESSION_TMP" >> $XSESSION_FILE;
    fi
    fi
    /bin/sh: /etc/X11/Xsession.d/40keytouchd: Permission denied
    chmod: cannot access `/etc/X11/Xsession.d/40keytouchd': No such file or directory
    make[2]: *** [install-data-local] Error 1
    make[2]: Leaving directory `/home/tom/download/PKGbuilds/keytouch/test1/src/keytouch-2.0/keytouchd'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/tom/download/PKGbuilds/keytouch/test1/src/keytouch-2.0/keytouchd'
    make: *** [install-recursive] Error 1
    ==> ERROR: Build Failed. Aborting...
    It produces this error on the make install, and I thinks it's because the src/keytouch-2.0/keytouchd/Makefile.am contains the following:
    install-data-local:
    @$(NORMAL_INSTALL)
    XSESSION_KEYTOUCHD_LINE="keytouchd &";
    XSESSION_DIR="$(DESTDIR)/etc/X11/Xsession.d";
    if [ -d $$XSESSION_DIR ]; then
    echo "$$XSESSION_KEYTOUCHD_LINE" > $$XSESSION_DIR/40keytouchd;
    chmod +x $$XSESSION_DIR/40keytouchd;
    else
    XSESSION_FILE="/etc/X11/Xsession";
    if [ "`grep "$$XSESSION_KEYTOUCHD_LINE" "$$XSESSION_FILE" -m 1 -h`" != "$$XSESSION_KEYTOUCHD_LINE" ]; then
    XSESSION_TMP=`cat "$$XSESSION_FILE"`;
    echo "$$XSESSION_KEYTOUCHD_LINE" > $$XSESSION_FILE;
    echo "$$XSESSION_TMP" >> $$XSESSION_FILE;
    fi
    fi
    The make install tries to write directly to /etc/X11/Xsession, which is not allowed while make the pkg.
    How do I solve this problem?
    The pkgbuild so far:
    # $Id: PKGBUILD,v 1.0 2005/21/11 $
    # Maintainer: mouse256
    pkgname=keytouch
    pkgver=2.0.0
    pkgrel=1
    pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
    depends=('gtk2' 'gksu')
    source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz)
    url="http://keytouch.sourceforge.net/"
    md5sums=('a7a22320707b887b1c5dedb77d2cf3e6')
    build() {
    cd $startdir/src/$pkgname-2.0
    ./configure --prefix=/usr
    make || return 1
    make prefix=$startdir/pkg/usr install

    thanks, it dit help somewhat, but I still had some errors.  Now they're all solved, but I don't know whether my pkgbuild is according the arch rules:
    pkgbuild;
    # $Id: PKGBUILD,v 1.0 2005/21/11 $
    # Maintainer: mouse256
    pkgname=keytouch
    pkgver=2.0.0
    pkgrel=1
    pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
    depends=('gtk2' 'gksu')
    source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz)
    url="http://keytouch.sourceforge.net/"
    md5sums=('a7a22320707b887b1c5dedb77d2cf3e6')
    build() {
    cd $startdir/src/$pkgname-2.0
    ./configure --prefix=/usr
    make || return 1
    #script checkt if Xsession directory exists, so create it
    mkdir $startdir/pkg/etc
    mkdir $startdir/pkg/etc/X11
    mkdir $startdir/pkg/etc/X11/Xsession.d
    mkdir $startdir/pkg/etc/rc.d
    make DESTDIR=$startdir/pkg install
    cd $startdir/src/$pkgname-2.0/keytouch-config
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    cd $startdir/src/$pkgname-2.0/keytouch-keyboard
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    mkdir -p $startdir/pkg/usr/share/applications
    echo "Categories=Application;Accessoires;" >> $startdir/pkg/usr/share/keytouch/desktop/keytouch.desktop
    mv $startdir/pkg/usr/share/keytouch/desktop/keytouch.desktop $startdir/pkg/usr/share/applications
    The biggest problem I think is it creates a file in /etc/rc.d
    FILELIST:
    .FILELIST
    .PKGINFO
    etc/
    etc/X11/
    etc/X11/Xsession.d/
    etc/X11/Xsession.d/40keytouchd
    etc/rc.d/
    etc/rc.d/keytouch-init.sh
    usr/
    usr/bin/
    usr/bin/keytouch
    usr/bin/keytouch-init
    usr/bin/keytouch-keyboard
    usr/bin/keytouch-keyboard-bin
    usr/bin/keytouchd
    usr/etc/
    usr/etc/keytouch/
    usr/share/
    usr/share/keytouch-keyboard-bin/
    usr/share/keytouch-keyboard-bin/pixmaps/
    usr/share/keytouch-keyboard-bin/pixmaps/icon.png
    usr/share/keytouch/
    usr/share/keytouch/doc/
    usr/share/keytouch/doc/html/
    usr/share/keytouch/doc/html/WARNINGS
    usr/share/keytouch/doc/html/images.aux
    usr/share/keytouch/doc/html/images.log
    usr/share/keytouch/doc/html/images.out
    usr/share/keytouch/doc/html/images.pl
    usr/share/keytouch/doc/html/images.tex
    usr/share/keytouch/doc/html/img1.png
    usr/share/keytouch/doc/html/img2.png
    usr/share/keytouch/doc/html/img3.png
    usr/share/keytouch/doc/html/img4.png
    usr/share/keytouch/doc/html/index.html
    usr/share/keytouch/doc/html/internals.pl
    usr/share/keytouch/doc/html/labels.pl
    usr/share/keytouch/doc/html/node1.html
    usr/share/keytouch/doc/html/node10.html
    usr/share/keytouch/doc/html/node11.html
    usr/share/keytouch/doc/html/node12.html
    usr/share/keytouch/doc/html/node13.html
    usr/share/keytouch/doc/html/node14.html
    usr/share/keytouch/doc/html/node15.html
    usr/share/keytouch/doc/html/node16.html
    usr/share/keytouch/doc/html/node17.html
    usr/share/keytouch/doc/html/node18.html
    usr/share/keytouch/doc/html/node2.html
    usr/share/keytouch/doc/html/node3.html
    usr/share/keytouch/doc/html/node4.html
    usr/share/keytouch/doc/html/node5.html
    usr/share/keytouch/doc/html/node6.html
    usr/share/keytouch/doc/html/node7.html
    usr/share/keytouch/doc/html/node8.html
    usr/share/keytouch/doc/html/node9.html
    usr/share/keytouch/doc/html/user_manual.css
    usr/share/keytouch/doc/html/user_manual.html
    usr/share/keytouch/keyboards/
    usr/share/keytouch/keyboards/Aspire 1300.Acer
    usr/share/keytouch/keyboards/Aspire 1350.Acer
    usr/share/keytouch/keyboards/Cordless Desktop Pro.Logitech
    usr/share/keytouch/keyboards/D47K.Promedion
    usr/share/keytouch/keyboards/Easy Access Keyboard (8 keys).Compaq
    usr/share/keytouch/keyboards/Internet Navigator.Logitech
    usr/share/keytouch/keyboards/Latitude D505.Dell
    usr/share/keytouch/keyboards/MultiMedia Keyboard 1.0.Microsoft
    usr/share/keytouch/keyboards/TravelMate 4100.Acer
    usr/share/keytouch/keyboards/Versa P550.Nec
    usr/share/keytouch/keyboards/Y-RK49.Logitech
    usr/share/keytouch/pixmaps/
    usr/share/keytouch/pixmaps/icon.png
    usr/share/keytouch/pixmaps/internet.png
    usr/share/keytouch/pixmaps/key.png
    usr/share/keytouch/pixmaps/key2.png
    usr/share/keytouch/pixmaps/keyboard.png
    usr/share/keytouch/pixmaps/keytouch.png
    usr/share/keytouch/plugins/
    usr/share/keytouch/plugins/amarok.so
    usr/share/keytouch/plugins/aumix.so
    usr/share/keytouch/plugins/browser.so
    usr/share/keytouch/plugins/chat.so
    usr/share/keytouch/plugins/common_actions.so
    usr/share/keytouch/plugins/email.so
    usr/share/keytouch/plugins/filemanager.so
    usr/share/keytouch/plugins/lock_screen.so
    usr/share/keytouch/plugins/xmms.so
    the file etc/rc.d/keytouch-init.sh contains:
    /usr/bin/keytouch-init
    So this won't work on arch.  Should the file be removed from the pkg?  And should it be replaced by another deamon file that does work?

  • [SOLVED] PKGBUILD for a perl application (gscan2pdf)

    Hello, I'm the maintainer of the package gscan2pdf and I have some problems to update the PKGBUILD
    for the version 1.2.0. I'm a beginner, so perhaps I missed something that is well-known. The build() function contains
    the following:
    perl Makefile.PL
    make
    make DESTDIR=${pkgdir} install
    But unfortunately it doesn't work. I get the following error when I run makepkg:
    ln: target ‘usr/bin/’ is not a directory: No such file or directory
    ==> ERROR: A failure occurred in build().
    Aborting...
    By the way, the PKGBUILD is:
    # Maintainer: Tristelune <tristelune1 at gmail dot com>
    # Contributor: LeCrayonVert <greenarrow at archlinux dot us>
    # Contributor: yugrotavele <yugrotavele at archlinux dot us>
    # Contributor: Sven Salzwedel <[email protected]>
    # Contributor: Olaf Leidinger <[email protected]>
    pkgname=gscan2pdf
    pkgver=1.2.0
    pkgrel=1
    pkgdesc='A GUI to produce a multipage PDF from a scan'
    arch=('i686' 'x86_64')
    url='http://gscan2pdf.sourceforge.net/'
    license=('GPL')
    depends=('xsane' 'gtk2-perl' 'perl-locale-gettext' 'libtiff' 'sane'
    'perl-gtk2-ex-simple-list' 'imagemagick' 'perl-config-general>=2.40'
    'perl-pdf-api2' 'perl-goo-canvas' 'perl-gtk2-imageview' 'perl-sane'
    'perl-test-critic' 'perl-set-intspan' 'perl-proc-processtable' 'perl-log-log4perl' 'perl-html-parser' 'perl-try-tiny' 'unpaper' )
    optdepends=('djvulibre' 'gocr' 'ocropus' 'xdg-utils' 'tesseract' 'cuneiform' )
    source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
    sha512sums=('98546936ff2b178c8047f46e6b38d0e9244e51cecbbfa69bf3f08d9f71cbbab261e47f8f5514558a892d5e7a178eb67c1cb3db50eb75b5d6a0a08cadb0095a17')
    build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    perl Makefile.PL
    make
    make DESTDIR=${pkgdir} install
    # Create symlinks to /usr/bin/site_perl/* in /usr/bin/
    cd ${pkgdir}
    ln -sf site_perl/gscan2pdf usr/bin/
    ln -sf site_perl/scanadf-perl usr/bin/
    ln -sf site_perl/scanimage-perl usr/bin/
    # Standard perl cleaning
    /usr/bin/find ${pkgdir} -name '.packlist' -o -name 'perllocal.pod' -delete
    package() {
    # Create symlinks to /usr/bin/site_perl/* in /usr/bin/
    cd ${pkgdir}
    ln -sf site_perl/gscan2pdf usr/bin/
    ln -sf site_perl/scanadf-perl usr/bin/
    ln -sf site_perl/scanimage-perl usr/bin/
    After searching what is wrong, I saw some files are installed in the HOME directory of the user, what I don't want to. I was told, I should rather change
    perl Makefile.PL
    make
    make DESTDIR=${pkgdir} install
    to
    perl Makefile.PL INSTALL_BASE=${pkgdir}
    make
    make install
    But I still have the problem. This time, it's the following:
    $ makepkg
    msgfmt -c po/gscan2pdf-ab.po -o /usr/share/locale/ab/LC_MESSAGES/gscan2pdf.mo
    msgfmt -c po/gscan2pdf-bg.po -o /usr/share/locale/bg/LC_MESSAGES/gscan2pdf.mo
    msgfmt -c po/gscan2pdf-ca.po -o /usr/share/locale/ca/LC_MESSAGES/gscan2pdf.mo
    po/gscan2pdf-ab.po:7: warning: header field 'Language' missing in header
    msgfmt: error while opening "/usr/share/locale/ab/LC_MESSAGES/gscan2pdf.mo" for writing: Permission denied
    Makefile:1036: recipe for target '/usr/share/locale/ab/LC_MESSAGES/gscan2pdf.mo' failed
    make: *** [/usr/share/locale/ab/LC_MESSAGES/gscan2pdf.mo] Error 1
    make: *** Waiting for unfinished jobs....
    po/gscan2pdf-be.po:7: warning: header field 'Language' missing in header
    msgfmt: error while opening "/usr/share/locale/be/LC_MESSAGES/gscan2pdf.mo" for writing: Permission denied
    Makefile:1036: recipe for target '/usr/share/locale/be/LC_MESSAGES/gscan2pdf.mo' failed
    make: *** [/usr/share/locale/be/LC_MESSAGES/gscan2pdf.mo] Error 1
    po/gscan2pdf-bg.po:7: warning: header field 'Language' missing in header
    msgfmt: error while opening "/usr/share/locale/bg/LC_MESSAGES/gscan2pdf.mo" for writing: Permission denied
    Makefile:1036: recipe for target '/usr/share/locale/bg/LC_MESSAGES/gscan2pdf.mo' failed
    make: *** [/usr/share/locale/bg/LC_MESSAGES/gscan2pdf.mo] Error 1
    po/gscan2pdf-ca.po:7: warning: header field 'Language' missing in header
    msgfmt: error while opening "/usr/share/locale/ca/LC_MESSAGES/gscan2pdf.mo" for writing: Permission denied
    Makefile:1036: recipe for target '/usr/share/locale/ca/LC_MESSAGES/gscan2pdf.mo' failed
    make: *** [/usr/share/locale/ca/LC_MESSAGES/gscan2pdf.mo] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    It's because during the creation of the PKGBUILD, some files are installed in /usr/share/ rather than usr/share.
    I had a look at the  Makefile.PL and it seems I can specify the location of usr/share with the variables SHAREINSTDIR and
    SHAREDIR. But it's unclear for me If I have to set both. And perhaps the most important question: did I miss some perl Tool or am I going
    in the right direction ?
    Thank you!
    Last edited by Tristelune (2013-12-06 11:52:05)

    I have found the problem. I had the following in my .zshrc:
    export PERL_LOCAL_LIB_ROOT="/home/user/perl5:$PERL_LOCAL_LIB_ROOT";
    export PERL_MB_OPT="--install_base "/home/user/perl5"";
    export PERL_MM_OPT="INSTALL_BASE=/home/user/perl5";
    export PERL5LIB="/home/user/perl5/lib/perl5:$PERL5LIB";
    Without those variables, nothing is installed in my HOME.
    So the package can be updated now!

  • Trouble with ibus+libreoffice but not with ibus+openoffice-base

    I've been having this problem with libreoffice ever since the switch. I use ibus with the following settings:
    XMODIFIERS="@im=ibus"
    GTK_IM_MODULE="ibus"
    KDE_IM_MODULE="ibus"
    but if I launch libreoffice the application doesn't respond to any keyboard events, even shortcuts (i.e. ctrl+Q). In addition the ibus-daemon process starts taking up full CPU time. I've tried setting "xim" instead of "ibus" but when I do that I can type, but the characters don't get "committed."
    I've just installed openoffice-base and this time ibus works as intended.

    Jodell wrote:Does the fix in this thread work? https://bbs.archlinux.org/viewtopic.php?id=112433
    Yes it does, thank you.
    quoting for posterity, boldface mine:
    darehanl wrote:
    @gorudonu
    Just a quick question. Do you happen to use KDE? Try adding this line:
    export OOO_FORCE_DESKTOP="gnome"
    to $HOME/.xprofile . Adding that fixed the problem for me (although you get ugly GNOME file dialogs). Looks like the new KDE integration code added to libreoffice is the culprit.

  • [request] Anyone have a PKGBUILD for kernel 2.6.30 series?

    After reports in this thread that recent compositing performance regressions  on intel graphics are fixed in kernel 2.6.30, I'd like to give the release kernel a try.
    I'm pretty crap with kernel config files though, so does anyone have a PKGBUILD lying around they'd be willing to share? If it can be installed next to the normal kernel, that'd be even better. Cheers!
    Last edited by jw (2009-04-29 08:28:46)

    Oops, i meant release candidate, not release of course -- sorry for the typo.
    I tried modifying the existing PKGBUILD, but the build failed with the 2.6.29.1 config file, so some options must have changed:
    .config:3870:warning: symbol value 'm' invalid for GFS2_FS_LOCKING_DLM
    I've seen several people mention that they're running 2.6.30rc3, so rather than doing a couple of builds until I've got the settings right, I thought I'd avoid reinventing the wheel :-).
    Last edited by jw (2009-04-29 09:32:51)

Maybe you are looking for

  • Canon MX870 will print wirelessly but will not scan and can't launch EX navigator

    My laptop recently crapped out on me the hard drive failed. It's an old Macbook pro vintage with 4gig memory and running OS X maverics. After I got a new hard drive put in and restored my computer using a time machine backup I noticed the Tech had go

  • Hi everyone! I'm at my wits end trying to find a free greeting card maker. Help please ;(

    I have tried google and just keep getting sent in circles or creating a card and finding out that it costs money to make. I'm about ready to give up. have to be up at 3am for my daughter's graduation from MOS in the Marine Corp. If anyone knows about

  • Request Status Differs in RSMO and Data target

    Hi, I have a master data full load . it strucked in trfc and i cleared it manually in sm58. The request in RSMO turns to Green automatically,but the datatarget in status tab it shows in red. Why is this behavior and how to rectify it Thanks Bala

  • 10.4.5 doesn't see my second monitor

    I just upgraded to 10.4.3 and then immediately after that to 10.4.5. Since I did, my computer can't see my second monitor. I ran the system profiler and it sees the second video card. This is not a problem in 9.2.2 and it wasn't a problem in 10.1.5.

  • Unable to import XLS to MYSQL table

    I tried to import a xls file to MySql database table without success. When I right click the table name in the connection navigator, there is no "Import" menu, only with the "Export" option. I am wondering whether import a XLS file to MYSQL is not su