[Solved] ABS built kernel package file conflicts

Index» Kernel & Hardware
Hello-
I am starting a new thread since my previous post was to an ancient thread (sorry, I hadn't noted the date).
I built a custom kernel using ABS, attempting to follow https://wiki.archlinux.org/index.php/Cu … n_with_ABS notes
However the notes regarding _kernelname and pkgname don't seem to match up with the formatting or idea of the PKGBUILD file provided by abs.
Instead of following the wiki, i followed the instruction provided by the PKGBUILD by commenting out the default line and uncommenting/modifying the second line.
#pkgbase=linux # Build stock -ARCH kernel
pkgbase=linux-iwlwifidebug # Build kernel with a different name
The result was a package with conflicting files:
loading packages...
resolving dependencies...
:: Proceed with installation? [Y/n]
Packages (1): linux-iwlwifidebug-3.12.1-1
Total Installed Size: 68.98 MiB
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/extramodules exists in filesystem
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/kernel/arch/x86/crypto/ablk_helper.ko.gz exists in filesystem
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/kernel/arch/x86/crypto/aes-x86_64.ko.gz exists in filesystem
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.softdep exists in filesystem
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.symbols exists in filesystem
linux-iwlwifidebug: /usr/lib/modules/3.12.1-1-ARCH/modules.symbols.bin exists in filesystem
linux-iwlwifidebug: /usr/src/linux-3.12.1-1-ARCH/vmlinux exists in filesystem
Errors occurred, no packages were upgraded.
In the thread that was closed due to being too old (https://bbs.archlinux.org/viewtopic.php?pid=234004), jasonwryan noted:
"pkgbase is for split packages, you need pkgname:
_kernelname="-foo"
pkgname=linux-foo
pkgver=3.12.1
pkgrel=1
_srcname=linux-3.12
pkgdesc="The ${pkgname} kernel and modules"
" and you can see that he also changed kernelname.
Which jives with the doc https://wiki.archlinux.org/index.php/Cu … n_with_ABS, which notes
Modify pkgname and _kernelname for your custom package name, e.g.:
_kernelname="-custom" # custom suffix, eg., 3.12.1-1-custom
pkgname=linux-custom # custom package name, eg., vmlinuz-linux-custom
Looking at the logic that is provided by jasonwryan and the doc, I need pkgname and _kernelname to be different than default- however these are defined in PKGBUILD as being based on  pkgbase, and it is much cleaner to update the one line that the PKGBUILD maintainer seemed to want us to update.
_kernelname=${pkgbase#linux}
pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
Note that the # symbol strips 'linux' from the front of pkgbase assigns it to _kernelname, while pkgname is a list
[dylan@zenbook linux]$ pkgbase=linux-iwlwifidebug
[dylan@zenbook linux]$ echo $pkgbase
linux-iwlwifidebug
[dylan@zenbook linux]$ _kernelname=${pkgbase#linux}
[dylan@zenbook linux]$ echo $_kernelname
-iwlwifidebug
[dylan@zenbook linux]$ pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
[dylan@zenbook linux]$ echo ${pkgname[@]}
linux-iwlwifidebug linux-iwlwifidebug-headers linux-iwlwifidebug-docs
So far so good - we have a pkgname and _kernelname which are both non default.
And to show this, I've created a package by just changing the pkgbase, which shows that it changes both the pkgname and the _kernelname:
Change of pkgbase:
[dylan@zenbook linux]$ grep pkgbase= PKGBUILD
#pkgbase=linux # Build stock -ARCH kernel
pkgbase=linux-iwlwifidebug # Build kernel with a different name
Package Names Set
pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
eval "package_${_p}() {
_package${_p#${pkgbase}}
done
Ouput Package Name
[dylan@zenbook linux]$ ls -l *.xz
-rw-r--r-- 1 dylan dylan 76384600 Nov 26 18:54 linux-3.12.tar.xz
-rw-r--r-- 1 dylan dylan 52329112 Nov 26 20:16 linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 dylan dylan 4378564 Nov 26 20:17 linux-iwlwifidebug-docs-3.12.1-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 dylan dylan 6139092 Nov 26 20:17 linux-iwlwifidebug-headers-3.12.1-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 dylan dylan 6620 Nov 26 18:54 patch-3.12.1.xz
_kernelname sets information in package
[dylan@zenbook linux]$ grep -e provides PKGBUILD | grep _kernelname
provides=("kernel26${_kernelname}=${pkgver}")
provides=("kernel26${_kernelname}-headers=${pkgver}")
provides=("kernel26${_kernelname}-docs=${pkgver}")
Which can be seen here
[dylan@zenbook linux]$ pacman -Qpi linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz | grep -i provides
Provides : kernel26-iwlwifidebug=3.12.1
So, what is going wrong?
So the root problem comes to the install path of the files, not the pkgname or the _kernelname, as I have shown above I believe.
What I found is that changing the pkgrel led to a working install, with the files installed into separate directories.
pkgrel is modified in the Makefile directly
[dylan@zenbook linux.working]$ grep pkgrel PKGBUILD
pkgrel=2
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
This leads to a package that can be installed, because the directory path includes the -2 rather than -1
Before changing pkgrel, i had this
[dylan@zenbook linux]$ pacman -Qpl linux-iwlwifidebug-3.12.1-1-x86_64.pkg.tar.xz | tail -2
linux-iwlwifidebug /usr/src/linux-3.12.1-1-ARCH/
linux-iwlwifidebug /usr/src/linux-3.12.1-1-ARCH/vmlinux
After changing (but keeping default name for package)
[dylan@zenbook linux.working]$ pacman -Qpl linux-3.12.1-2-x86_64.pkg.tar.xz | tail -2
linux /usr/src/linux-3.12.1-2-ARCH/
linux /usr/src/linux-3.12.1-2-ARCH/vmlinux
Where does the package directory tree get defined?
The only place pkgrel gets touched is in a re-write of the kernel makefile:
[dylan@zenbook linux.working]$ grep pkgrel PKGBUILD
pkgrel=2
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
Where it gets set, then tied to KERNELVERSION
[dylan@zenbook linux.working]$ grep EXTRAVERSION src/linux-3.12/Makefile
EXTRAVERSION = -2
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
Which appears to only be exported for some source tree stuff
[dylan@zenbook linux.working]$ grep KERNELVERSION src/linux-3.12/Makefile
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
@echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
@echo $(KERNELVERSION)
And not at all in pkgbuild
[dylan@zenbook linux.working]$ grep KERNELVERSION PKGBUILD
[dylan@zenbook linux.working]$
What am i missing here?
Is there a bug that should be changing some headers in the Makefile to create a different directory structure for the packages, by passing in the _kernelname, pkgname, or pkgbase?
Last edited by thenextdon13 (2013-11-27 22:10:44)

pkgbuild is default from abs with only pkgbase changed;
I don't see a way to attach files, so will put entire code content here
# $Id: PKGBUILD 200210 2013-11-22 12:19:58Z tpowa $
# Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Thomas Baechler <[email protected]>
#pkgbase=linux # Build stock -ARCH kernel
pkgbase=linux-iwlwifidebug # Build kernel with a different name
_srcname=linux-3.12
pkgver=3.12.1
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
options=('!strip')
source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
"[url]http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz[/url]"
# the main kernel config files
'config' 'config.x86_64'
# standard config files for mkinitcpio ramdisk
'linux.preset'
'change-default-console-loglevel.patch'
'criu-no-expert.patch')
md5sums=('cc6ee608854e0da4b64f6c1ff8b6398c'
'5a8cb5a659baeeb6df3fe22de8d32df6'
'798bca5d2f0a1505c9b86a5227a2b339'
'8fa6cbb28dda5a4b38730c7f728e1845'
'eb14dcfd80c00852ef81ded6e826826a'
'98beb36f9b8cf16e58de2483ea9985e3'
'd50c1ac47394e9aec637002ef3392bd1')
_kernelname=${pkgbase#linux}
# module.symbols md5sums
# x86_64
# 2fd43e3edc671c61e043a5c0b3b2a1f0 /lib/modules/3.12.0-1-ARCH/modules.symbols
# i686
# e98940249665dbfa380cfdbbacf6c6b8 /lib/modules/3.12.0-1-ARCH/modules.symbols
prepare() {
cd "${srcdir}/${_srcname}"
# add upstream patch
patch -p1 -i "${srcdir}/patch-${pkgver}"
# add latest fixes from stable queue, if needed
# [url]http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git[/url]
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
# remove this when a Kconfig knob is made available by upstream
# (relevant patch sent upstream: [url]https://lkml.org/lkml/2011/7/26/227)[/url]
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
# allow criu without expert option set
# patch from fedora
patch -Np1 -i "${srcdir}/criu-no-expert.patch"
if [ "${CARCH}" = "x86_64" ]; then
cat "${srcdir}/config.x86_64" > ./.config
else
cat "${srcdir}/config" > ./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
fi
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
build() {
cd "${srcdir}/${_srcname}"
# 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
# rewrite configuration
yes "" | make config >/dev/null
# save configuration for later reuse
if [ "${CARCH}" = "x86_64" ]; then
cat .config > "${startdir}/config.x86_64.last"
else
cat .config > "${startdir}/config.last"
fi
# stop here
# this is useful to configure the kernel
#msg "Stopping build"; return 1
# build!
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
_package() {
pkgdesc="The ${pkgbase/linux/Linux} kernel and modules"
[ "${pkgbase}" = "linux" ] && groups=('base')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
optdepends=('crda: to set the correct wireless channels of your country')
provides=("kernel26${_kernelname}=${pkgver}")
conflicts=("kernel26${_kernelname}")
replaces=("kernel26${_kernelname}")
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=linux.install
cd "${srcdir}/${_srcname}"
KARCH=x86
# get kernel version
_kernver="$(make LOCALVERSION= kernelrelease)"
_basekernel=${_kernver%%-*}
_basekernel=${_basekernel%.*}
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
# add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
# set correct depmod command for install
cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
true && install=${install}.pkg
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
-i "${startdir}/${install}"
# install mkinitcpio preset file for kernel
install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
sed \
-e "1s|'linux.*'|'${pkgbase}'|" \
-e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \
-e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgbase}.img\"|" \
-e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
# 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 save 100MB of space
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
# make room for external modules
ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from post_install/upgrade
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
# Now we call depmod...
depmod -b "$pkgdir" -F System.map "$_kernver"
# move module tree /lib -> /usr/lib
mv "$pkgdir/lib" "$pkgdir/usr"
_package-headers() {
pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel"
provides=("kernel26${_kernelname}-headers=${pkgver}")
conflicts=("kernel26${_kernelname}-headers")
replaces=("kernel26${_kernelname}-headers")
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
cd "${pkgdir}/usr/lib/modules/${_kernver}"
ln -sf ../../../src/linux-${_kernver} build
cd "${srcdir}/${_srcname}"
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 crypto drm generated keys linux math-emu \
media net pcmcia scsi sound trace uapi 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
# pci
for i in bt8xx cx88 saa7134; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
cp -a drivers/media/pci/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
done
# usb
for i in cpia2 em28xx pwc sn9c102; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
cp -a drivers/media/usb/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
done
# i2c
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c"
cp drivers/media/i2c/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
for i in cx25840; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}"
cp -a drivers/media/i2c/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${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:
# [url]http://bugs.archlinux.org/task/9912[/url]
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core"
cp drivers/media/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core/"
# and...
# [url]http://bugs.archlinux.org/task/11194[/url]
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 [url]http://mcentral.de/hg/~mrec/em28xx-new[/url]
# in reference to:
# [url]http://bugs.archlinux.org/task/13146[/url]
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/i2c/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
# add dvb headers
# in reference to:
# [url]http://bugs.archlinux.org/task/20402[/url]
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb"
cp drivers/media/usb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/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/tuners"
cp drivers/media/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/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"
# 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,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
_package-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel"
provides=("kernel26${_kernelname}-docs=${pkgver}")
conflicts=("kernel26${_kernelname}-docs")
replaces=("kernel26${_kernelname}-docs")
cd "${srcdir}/${_srcname}"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
cp -al 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 linux package
rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
eval "package_${_p}() {
_package${_p#${pkgbase}}
done
# vim:set ts=8 sts=2 sw=2 et:

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

  • How to upgrade a custom built kernel to the main arch linux package?

    How do you upgrade from a custom built kernel from the abs to the current release kernel from a package ? I have tried to do pacman -S linux linux-headers linux-firmware but still keep getting the old kernel i built my self.
    [root@HLA boot]# pacman -S linux linux-firmware linux-api-headers linux-headers
    warning: linux-3.14.6-1 is up to date -- reinstalling
    warning: linux-firmware-20140316.dec41bc-1 is up to date -- reinstalling
    warning: linux-api-headers-3.14.1-1 is up to date -- reinstalling
    warning: linux-headers-3.14.6-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (4): linux-3.14.6-1  linux-api-headers-3.14.1-1
                  linux-firmware-20140316.dec41bc-1  linux-headers-3.14.6-1

    It says it is reinstalling them. Doesn't it say it ? or am I missing something ? (no I'm not trying to sound sarcastic, honestly)
    warning: linux-3.14.6-1 is up to date -- reinstalling
    warning: linux-firmware-20140316.dec41bc-1 is up to date -- reinstalling
    warning: linux-api-headers-3.14.1-1 is up to date -- reinstalling
    warning: linux-headers-3.14.6-1 is up to date -- reinstalling
    Total Installed Size:   167.78 MiB
    Net Upgrade Size:       0.00 MiB
    [root@HLA boot]# pacman -S linux linux-firmware linux-api-headers linux-headers
    warning: linux-3.14.6-1 is up to date -- reinstalling
    warning: linux-firmware-20140316.dec41bc-1 is up to date -- reinstalling
    warning: linux-api-headers-3.14.1-1 is up to date -- reinstalling
    warning: linux-headers-3.14.6-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (4): linux-3.14.6-1  linux-api-headers-3.14.1-1
                  linux-firmware-20140316.dec41bc-1  linux-headers-3.14.6-1
    Total Installed Size:   167.78 MiB
    Net Upgrade Size:       0.00 MiB
    Last edited by dslink (2014-06-22 03:30:28)

  • Ruby-cairo upgrade file conflicts [solved]

    I did a 'pacman -Su' and it tried to upgrade ruby-cairo but it then bombed out due to file conflicts. If I do a 'pacman -Qu ruby-cairo' it says the package does not exist, even though I'm pretty sure I installed it in the past and hence why there are file conflicts. Should I force the upgrade or are there better ways to solve this?
    Here's the output from pacman -Su
    Targets (5): bluez-4.79-2 libx11-1.3.5-2 pixman-0.20.0-1 ruby-cairo-1.10.0-1 ruby-pango-0.90.5-3
    Total Download Size: 0.00 MB
    Total Installed Size: 18.27 MB
    Proceed with installation? [Y/n] y
    checking package integrity...
    (5/5) checking for file conflicts [#######################################################################################################] 100%
    error: failed to commit transaction (conflicting files)
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/color.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/colors.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/constants.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/blur.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/circle.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/color.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/path.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/rectangle.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/context/triangle.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/paper.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/papers.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/path.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/cairo/point.rb exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/cairo.so exists in filesystem
    ruby-cairo: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/rb_cairo.h exists in filesystem
    Errors occurred, no packages were upgraded.
    Last edited by skip (2010-11-19 11:04:03)

    farrel@ages ~ $ pacman -Qo /usr/lib/ruby/site_ruby/1.9.1/cairo.rb
    /usr/lib/ruby/site_ruby/1.9.1/cairo.rb is owned by ruby-rcairo 1.8.0-2
    So there's ruby-rcairo (what I have installed) and ruby-cairo which is what it's trying to install. I can probably just remove ruby-rcairo and install ruby-cairo.
    Last edited by skip (2010-11-19 10:59:05)

  • Replacing some text in a text file using TEXT_IO built-in package

    Hi everybody...
    I have written a form procedure in order to replace some text in a text document using the TEXT_IO built-in package. Although the text to be replaced is found , eventually the text is not replaced....
    Obviously , the new file - after the replacement - is not saved(?)..
    So , what should i do?
    The procedure is as follows...
    BEGIN
    in_file := Text_IO.Fopen(filename, 'a');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    IF INSTR(linebuf,'C:\LIBS\')<>0
    THEN
    I:=INSTR(linebuf,'C:\LIBS\')-1;
    SUB_STR_BEFORE_VAR:=SUBSTR(linebuf,1,I);
    SUB_STR_AFTER_VAR:=SUBSTR(linebuf,I+9);
    Text_IO.PUT(in_file,SUB_STR_BEFORE_VAR||'D:/SIM/'||SUB_STR_AFTER_VAR);
    END IF;     
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Fclose(in_file);
    END;
    WHERE :linebuf : is the variable in which the line contents are saved...
    SUB_STR_BEFORE_VAR : is the variable which keeps the substring before the first character of the search string
    SUB_STR_AFTER_VAR : is the variable which keeps the substring after the last character of the search string
    I : variable which keeps the number of character in line (variable linebuf) in which the first character of the search string is found
    Thanks , a lot
    Simon

    Hello,
    The A (Append) mode is used to add data at the end of the file. It will not replace existing data.
    Open the source file in R mode, open the target file in W mode, then rename it with the source name when finished.
    Francois

  • [Solved] Dovecot upgrade failed due to file conflicts

    yaourt -Syu failed this morning do to file conflicts with dovecot.  Here is the output:
    :: Starting full system upgrade...
    warning: iscan: local (2.15.0.3-1) is newer than archlinuxfr (2.8.0-3)
    resolving dependencies...
    looking for inter-conflicts...
    Targets (10): libcups-1.3.10-1 cups-1.3.10-1 libmysqlclient-5.1.34-1 dovecot-1.1.14-1
    ffmpegthumbnailer-1.5.0-1 mysql-clients-5.1.34-1 mysql-5.1.34-1 recordproto-1.13.2-2
    renderproto-0.9.3-2 subversion-1.6.1-3
    Total Download Size: 51.88 MB
    Total Installed Size: 148.31 MB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    libcups-1.3.10-1-x86_64 185.2K 106.8K/s 00:00:02 [#########################################################] 100%
    cups-1.3.10-1-x86_64 3.0M 121.0K/s 00:00:26 [#########################################################] 100%
    libmysqlclient-5.1.... 12.2M 120.9K/s 00:01:44 [#########################################################] 100%
    dovecot-1.1.14-1-x86_64 3.2M 120.2K/s 00:00:28 [#########################################################] 100%
    mysql-clients-5.1.3... 278.2K 122.2K/s 00:00:02 [#########################################################] 100%
    mysql-5.1.34-1-x86_64 25.9M 122.4K/s 00:03:36 [#########################################################] 100%
    recordproto-1.13.2-... 4.0K 226.0K/s 00:00:00 [#########################################################] 100%
    renderproto-0.9.3-2... 16.7K 86.4K/s 00:00:00 [#########################################################] 100%
    subversion-1.6.1-3-... 6.9M 118.3K/s 00:01:00 [#########################################################] 100%
    :: Retrieving packages from community...
    ffmpegthumbnailer-1... 64.9K 119.1K/s 00:00:01 [#########################################################] 100%
    checking package integrity...
    (10/10) checking for file conflicts [#########################################################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    dovecot: /usr/lib/dovecot/imap exists in filesystem
    dovecot: /usr/lib/dovecot/pop3 exists in filesystem
    Errors occurred, no packages were upgraded.
    Should I remove /usr/lib/dovecot/imap and /usr/libdovecot/pop3 and continue the upgrade, or is there a problem with a package?
    Jay
    Last edited by jt512 (2009-04-18 17:32:31)

    Abelian wrote:
    http://www.archlinux.org/news/444/
    yaourt -Syuf should do it
    next time don't do it again.
    just pacman -Sf package and then pacman -Su

  • [Solved] cannot open package file

    Hi All,
    I tried to install deluge with yaourt but I got this message "cannot open package file". I then built it from AUR and got this:
    [root@cwa a]# pacman -U deluge-svn-5088-1-x86_64.pkg.tar.gz
    loading package data...
    error: 'deluge-svn-5088-1-x86_64.pkg.tar.gz': cannot open package file
    Does anyone have a clue for me. I have built other programs with no problem using yaourt.
    Thanks,
    Arthur
    Last edited by Frabato (2009-04-19 23:49:37)

    What is the version number in AUR? I guess yaourt is not capable for svn-versions and makepkg's "automagically change version numbers of svn-packages"-feature. It tries to open another file. Please try to build without using yaourt.
    Last edited by Stefan Husmann (2009-04-19 18:55:03)

  • [Solved] pacman 4.1 has issues with resolving file-conflicts

    Today i wanted to upgrade protobuf-python which will be replaced by python2-protobuf, but pacman ignores the fact, that protobuf-python will be removed:
    # pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    community-testing is up to date
    testing is up to date
    :: Starting full system upgrade...
    warning: pacman: local (4.1.0-1) is newer than core (4.0.3-7)
    :: Replace protobuf-python with community/python2-protobuf? [Y/n]
    resolving dependencies...
    looking for inter-conflicts...
    Packages (20): binutils-2.23.2-1 gcc-4.8.0-1 gcc-libs-4.8.0-1 glibc-2.17-4 libltdl-2.4.2-8 libpulse-3.0-3 libtool-2.4.2-8 libxkbcommon-0.3.0-1 linux-api-headers-3.8.4-1 protobuf-python-2.5.0-1
    protobuf-python-2.5.0-1 [removal] pulseaudio-3.0-3 python2-dirspec-4.2.0-1 python2-oauthlib-0.4.0-1 python2-protobuf-2.5.0-2 python2-ubuntuone-storageprotocol-4.2.0-1
    ubuntu-sso-client-4.2.0-1 ubuntuone-client-4.2.0-1 ubuntuone-client-gnome-4.2.0-1 ubuntuone-control-panel-4.2.0-1
    Total Installed Size: 178.39 MiB
    Net Upgrade Size: 6.89 MiB
    :: Proceed with installation? [Y/n]
    (19/19) checking keys in keyring [-----------------------------------------------------------------------------] 100%
    (19/19) checking package integrity [-----------------------------------------------------------------------------] 100%
    (19/19) loading package files [-----------------------------------------------------------------------------] 100%
    (19/19) checking for file conflicts [-----------------------------------------------------------------------------] 100%
    error: failed to commit transaction (conflicting files)
    /usr/lib/python2.7/site-packages/google/protobuf/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/containers.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message_factory.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/reflection.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/reflection.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service_reflection.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/service_reflection.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/text_format.py exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/google/protobuf/text_format.pyc exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7-nspkg.pth exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/PKG-INFO exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/SOURCES.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/dependency_links.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/namespace_packages.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/requires.txt exists in both 'python2-protobuf' and 'protobuf-python'
    /usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/top_level.txt exists in both 'python2-protobuf' and 'protobuf-python'
    Errors occurred, no packages were upgraded.
    Anyone with the same problem here or is it just me?
    Btw: If it's a bug: Please fill a bug report, i don't want to register just for 1 bug...
    Last edited by D4ve (2013-04-02 11:22:49)

    drcouzelis wrote:
    If you want to receive information about the progress made on the bug and contribute to getting it fixed then, yes, you need to register.
    Otherwise, just use bugmenot.com.
    Too late, i already registered.
    drcouzelis wrote:Lastly, don't be cheeky.
    Huh? In the whole discussion i wasn't once cheeky
    drcouzelis wrote:
    Otherwise, Allan will install a special surprise just for you in pacman.
    if (strcmp(username, "D4ve") == 0) {
    set_dependency_for_all_packages("akonadi");
    That would be awesome. Three lines of code just for me
    (Just for information: I hate gnome-shell for displaying my name in the top right corner so i switched my username to "<*)))><")

  • [solved] pacman 4 hangs after "checking for file conflicts"

    Like others, I removed yaourt and package-query because they conflicted with pacman4... not worried about that, I'll reinstall them later.
    I put the new pacman.conf in place (my old one wasn't really customized).  I left SigLevel = Never.
    Now, I can run pacman -Sy fine, but if I try to install anything, I it just hangs:
    sudo pacman -S audacity
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): audacity-1.3.14-2
    Total Download Size: 3.21 MiB
    Total Installed Size: 15.29 MiB
    Net Upgrade Size: -0.00 MiB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    audacity-1.3.14-2-x86_64 3.2 MiB 1397K/s 00:02 [###########################] 100%
    (1/1) checking package integrity [###########################] 100%
    (1/1) loading package files [###########################] 100%
    (1/1) checking for file conflicts [###########################] 100%
    I've waited up to 20 or 30 minutes and nothing happens.  It's not just audacity, any package I try to install does this.
    Suggestions?
    Last edited by TheAmigo (2012-01-17 18:55:38)

    With --debug switch it prints:
    checking for file conflicts...
    debug: looking for file conflicts
    debug: searching for file conflicts: coreutils
    debug: searching for filesystem conflicts: coreutils
    debug: searching for file conflicts: ethtool
    debug: searching for filesystem conflicts: ethtool
    debug: searching for file conflicts: fail2ban
    debug: searching for filesystem conflicts: fail2ban
    debug: searching for file conflicts: gpgme
    debug: searching for filesystem conflicts: gpgme
    debug: searching for file conflicts: vim-runtime
    debug: searching for filesystem conflicts: vim-runtime
    debug: searching for file conflicts: gvim
    debug: searching for filesystem conflicts: gvim
    debug: searching for file conflicts: hdparm
    debug: searching for filesystem conflicts: hdparm
    debug: searching for file conflicts: inetutils
    debug: searching for filesystem conflicts: inetutils
    debug: searching for file conflicts: lib32-glibc
    debug: searching for filesystem conflicts: lib32-glibc
    debug: searching for file conflicts: lib32-gcc-libs
    debug: searching for filesystem conflicts: lib32-gcc-libs
    debug: searching for file conflicts: lib32-glib2
    debug: searching for filesystem conflicts: lib32-glib2
    debug: searching for file conflicts: lib32-gdk-pixbuf2
    debug: searching for filesystem conflicts: lib32-gdk-pixbuf2
    debug: searching for file conflicts: lib32-pango
    debug: searching for filesystem conflicts: lib32-pango
    debug: searching for file conflicts: lib32-gtk2
    debug: searching for filesystem conflicts: lib32-gtk2
    debug: searching for file conflicts: linux
    debug: searching for filesystem conflicts: linux
    debug: searching for file conflicts: nspluginwrapper
    debug: searching for filesystem conflicts: nspluginwrapper
    debug: searching for file conflicts: nvidia
    debug: searching for filesystem conflicts: nvidia
    debug: searching for file conflicts: qtwebkit
    debug: searching for filesystem conflicts: qtwebkit
    debug: searching for file conflicts: rpcbind
    debug: searching for filesystem conflicts: rpcbind
    debug: searching for file conflicts: unrar
    debug: searching for filesystem conflicts: unrar
    debug: searching for file conflicts: xscreensaver
    debug: searching for filesystem conflicts: xscreensaver
    checking available disk space...
    debug: checking available disk space
    Without the --debug switch
    Proceed with installation? [Y/n]
    (21/21) checking package integrity [############################] 100%
    (21/21) loading package files [############################] 100%
    (21/21) checking for file conflicts [############################] 100%
    Note that the 'checking available disk space...' is not printed without the --debug option although it doesn't look like being 'debug output'.
    I don't see much disk activity after that and the pacman process uses no CPU time and the process status goes to D in `ps` (man ps says: D: Uninterruptible sleep (usually IO)).
    Last edited by drrossum (2012-01-18 21:58:28)

  • [solved] "pacman -Syu" hangs after "checking for file conflicts"

    This is my third attempt.  I let it run yesterday for 20 hours on the theory that maybe it was actually doing something.  It always completes "checking for file conflicts" but never goes any further.
    Does anyone have any suggestions how to get it to continue?
    [ken@xxxxx ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra 1421.6 KiB 2.03M/s 00:01 [######################] 100%
    community 1775.0 KiB 3.00M/s 00:01 [######################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (27): binutils-2.23-1 coreutils-8.20-1 cryptsetup-1.5.1-1
    device-mapper-2.02.98-1 emacs-24.2-2 filesystem-2012.10-2
    firefox-16.0.2-1 gcc-4.7.2-2 gcc-libs-4.7.2-2 glibc-2.16.0-5
    hwids-20121022-1 imagemagick-6.8.0.3-1 libidn-1.25-1
    libwbclient-3.6.9-1 linux-api-headers-3.6.3-1 lvm2-2.02.98-1
    mkinitcpio-0.11.0-1 nspr-4.9.3-1 nss-3.14-1
    nss-myhostname-0.3-3 smbclient-3.6.9-1 systemd-195-2
    thunderbird-16.0.2-1 tzdata-2012h-1 util-linux-2.22.1-2
    wget-1.14-2 xulrunner-16.0.2-1
    Total Download Size: 47.80 MiB
    Total Installed Size: 550.57 MiB
    Net Upgrade Size: 6.43 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    libwbclient-3.6.9-1... 19.5 KiB 407K/s 00:00 [######################] 100%
    smbclient-3.6.9-1-x... 7.9 MiB 2.71M/s 00:03 [######################] 100%
    thunderbird-16.0.2-... 17.1 MiB 2.92M/s 00:06 [######################] 100%
    xulrunner-16.0.2-1-... 22.9 MiB 2.92M/s 00:08 [######################] 100%
    (27/27) checking package integrity [######################] 100%
    (27/27) loading package files [######################] 100%
    (27/27) checking for file conflicts [######################] 100%
    Last edited by KenJackson (2012-10-30 14:25:05)

    Allan wrote:Can you run with --debug?
    OK.  That garnered an additional piece of info.  Here's the end of the long output:
    debug: searching for filesystem conflicts: wget
    debug: searching for file conflicts: xulrunner
    debug: searching for filesystem conflicts: xulrunner
    checking available disk space...
    debug: checking available disk space
    Disk space?  I think I have enough disk space.
    [ken@xxxxx ~]$ df
    Filesystem Size Used Avail Use% Mounted on
    rootfs 47G 11G 34G 25% /
    dev 2.0G 0 2.0G 0% /dev
    run 2.0G 292K 2.0G 1% /run
    /dev/sda3 47G 11G 34G 25% /
    shm 2.0G 140K 2.0G 1% /dev/shm
    /dev/sda1 99M 21M 74M 22% /boot
    /dev/sda4 72G 1.9G 66G 3% /home
    Is disk space really the problem?  Or is that just where it hung?

  • [SOLVED] pacman error: cannot open package file

    Hi
    I didn't use my Arch box for a while and today launched it.
    I had to install the "p7zip" package, but I'm a "build everything from sources" guy and I tried to install it from source as always. Unsuccessfully: it required nasm.
    Decided to install it using pacman, to get it done quickly.
    So, I've got the nasm package and uploaded it to my Arch machine (it has no inernet connection, I use NFS to share files).
    Executed
    pacman -U ./nasm-2.09.10-1-i686.pkg.tar.xz
    and for my surprise I've got:
    loading package data...
    error: './nasm-2.09.10-1-i686.pkg.tar.xz': cannot open package file
    Then I tried to run  pacman -U for one of "core" packages from the original media (2010.05) and the same result. Some time ago it was working fine.
    It gets this error for every file.
    The tar.gz file is not broken, I can browse it within Midnigh Commander and get any file .
    What could be wrong? Any ideas?
    Last edited by art84 (2011-09-16 17:37:33)

    @Techman084:
    Of course I  have ran it in the directory where the package is located. And yes, I also tried to use it with an absolute path like.
    @karol
    # pacman -V
    .--. Pacman v3.3.3 - libalpm v4.0.3
    / _.-' .-. .-. .-. Copyright (C) 2006-2009 Pacman Development Team
    \ '-. '-' '-' '-' Copyright (C) 2002-2006 Judd Vinet
    This program may be freely redistributed under
    the terms of the GNU General Public License.
    @the sad clown
    1. /var/log/pacman.log
    [2010-12-12 13:46] installed kernel26-headers (2.6.33.4-1)
    [2010-12-12 14:07] installed r8168 (8.020.00-1)
    [2010-12-20 19:33] installed iperf (2.0.5-1)
    [2010-12-26 14:46] installed slang (2.2.3-1)
    [2010-12-26 15:45] installed mc (4.7.4-1)
    2. Why to synchronize? And how?   pacman -Syu   ?
      I have the original 2010.05 distro installed without any updates. Only console. A few packages installed: ethtool, mc, slang, etc. So, I don't need to have it synchronized to the last versions of everythig (if I correctly understood the goal of the sync)
    3. I have already that p7zip package on my PC   I had to do it manually  ... but to be clear, it doesn't work with any package, not only with "p7zip" or "nasm"

  • After kernel upgrade "file not found"

    I upgraded to kernel version 3 and I rebooted but I didn't do anything in menu.lst, because I thought symlinks would work, so I rebooted but it didn't work. I tried to boot changing names in grub menu but I'm always getting same error "file not found" and I don't know what else to do. I can see the vmlinuz-linux but I can't see initramfs-linux file in /boot from a Live CD. Can you share your menu.lst to try them please.

    tbuitenh wrote:
    I ran into the same problem. I bookmarked this thread earlier, sorry if the problem has been solved in another one and I didn't notice it.
    After putting back the kernel and ramdisk from a backup (using different filenames) and downgrading the kernel (mkinitcpio doesn't work, that's why I had to take the ramdisk from a backup), I was able to get back into my system.
    I found a mkinitcpio.conf.pacnew, but no significant changes in there. Applied them anyway.
    So let's try that again...
    sudo pacman -Syu
    (3/5) installing linux [######################] 100%
    >>> Updating module dependencies. Please wait ...
    /tmp/alpm_kwQ6VA/.INSTALL: line 10: depmod: command not found
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    /tmp/alpm_kwQ6VA/.INSTALL: line 12: mkinitcpio: command not found
    Optional dependencies for linux
    crda: to set the correct wireless channels of your country
    That doesn't look healthy. Perhaps a path problem?
    [tb@progress ~]$ su -
    Password:
    [root@progress ~]# pacman -S linux
    warning: linux-3.0.1-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): linux-3.0.1-1
    Total Download Size: 0.00 MB
    Total Installed Size: 54.55 MB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [######################] 100%
    (1/1) checking for file conflicts [######################] 100%
    (1/1) upgrading linux [######################] 100%
    >>> Updating module dependencies. Please wait ...
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    ==> Building image from preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.0-ARCH
    -> Parsing hook: [base]
    -> Parsing hook: [udev]
    -> Parsing hook: [autodetect]
    -> Parsing hook: [sata]
    -> Parsing hook: [resume]
    -> Parsing hook: [filesystems]
    -> Parsing hook: [consolefont]
    ==> Generating module dependencies
    ==> Creating xz initcpio image: /boot/initramfs-linux.img
    6472 blocks
    ==> Image generation successful
    ==> Building image from preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.0-ARCH
    -> Parsing hook: [base]
    -> Parsing hook: [udev]
    -> Parsing hook: [sata]
    -> Parsing hook: [resume]
    -> Parsing hook: [filesystems]
    -> Parsing hook: [consolefont]
    ==> Generating module dependencies
    ==> Creating xz initcpio image: /boot/initramfs-linux-fallback.img
    13946 blocks
    ==> Image generation successful
    [root@progress ~]# ls -l /boot
    total 12484
    drwxr-xr-x 2 root root 4096 Aug 15 12:18 grub
    -rw-r--r-- 1 root root 5216044 Aug 15 12:41 initramfs-linux-fallback.img
    -rw-r--r-- 1 root root 1460104 Aug 15 12:41 initramfs-linux.img
    drwxr-xr-x 2 root root 4096 Jan 26 2011 memtest86+
    -rw-r--r-- 1 root root 1453292 Jul 11 19:22 offmylawn.img
    -rw-r--r-- 1 root root 2333056 Aug 6 16:22 vmlinuz-linux
    -rw-r--r-- 1 root root 2305152 Jul 9 15:00 vmlinuz-offmylawn
    That's better. I'll reboot now and see what happens.
    @tbuitenh: I encountered this same situation today when I tried to update linux-ck-corei7 from 3.0.4-1 to 3.0.4-2. Like you, running pacman after "su -" (instead of "su") permitted me to complete the update.
    I figure this has to do with default login path, right? What exactly is going on here, and how can I fix it? I don't normally run pacman this way.
    Last edited by dhave (2011-09-22 23:07:53)

  • PHD syncing and OmniGraffle package files

    I am having an issue where package files synced to the home directory are appearing empty at a later date.
    This issue seems to be directly related to OmniGraffle documents, affecting anything that is a .graffle (OmniGraffle Document) or .gstencil (OmniGraffle Stencil) that are stored as packages. We are using OmniGraffle 5.2.1. I have the ability to save the documents as a flat file type, I am unsure of the stencils.
    Our enviornment - clients are running on MacBook Pro's with OS 10.5.8. Servers are Mac OS Server 10.5.8. Home directories are stored in an xSAN enviornment (2.2). Users belong to a group (portable homes) in OD that manages the Mobility Preferences and PHD syncing.
    I performed a test where I logged the user in, added a .graffle doc to their desktop, logged them out, restarted and logged back in. Upon login, the "outer shell" of the package was still there, but had no contents.
    Below I have a few excerpts from the FileSyncAgent-verbose.log from the users system. The file I was monitoring was named "NetworkDiagramMaster-2010_vB.graffle"
    Logged user out:
    1:: [573] PHD-L-fd-yCD8Svr1-smith Scanning flagged directory "Desktop/NetworkDiagramMaster-2010_vB.graffle/"
    1:: [573] PHD-L-fd-yCD8Svr1-smith Scanning flagged directory "Desktop/NetworkDiagramMaster-2010_vB.graffle/QuickLook/"
    1:: [573] network: PACKAGE ADD (DEEP) "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, READY)}
    1:: [573] <GO> network: PACKAGE ADD (DEEP) "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, EXECUTING)}
    1:: [573] ...<OK> : ADD ./data.plist
    1:: [573] ...<OK> : ADD ./image130.png
    1:: [573] ...<OK> : ADD ./image136.pdf
    1:: [573] ...<OK> : ADD ./image137.pdf
    1:: [573] ...<OK> : ADD ./image138.pdf
    1:: [573] ...<OK> : ADD ./image139.pdf
    1:: [573] ...<OK> : ADD ./image140.pdf
    1:: [573] ...<OK> : ADD ./image141.emf
    1:: [573] ...<OK> : ADD ./image142.emf
    1:: [573] ...<OK> : ADD ./image143.emf
    1:: [573] ...<OK> : ADD ./image144.emf
    1:: [573] ...<OK> : ADD ./image145.emf
    1:: [573] ...<OK> : ADD ./image146.png
    1:: [573] ...<OK> : ADD ./image147.emf
    1:: [573] ...<OK> : ADD ./image148.emf
    1:: [573] ...<OK> : ADD ./image149.emf
    1:: [573] ...<OK> : ADD ./image150.emf
    1:: [573] ...<OK> : ADD ./image151.emf
    1:: [573] ...<OK> : ADD ./image152.png
    1:: [573] ...<OK> : ADD ./image153.png
    1:: [573] ...<OK> : ADD ./image154.tiff
    1:: [573] ...<OK> : ADD ./image155.bmp
    1:: [573] ...<OK> : ADD ./image156.jpg
    1:: [573] ...<OK> : ADD ./image157.pdf
    1:: [573] ...<OK> : ADD ./image158.emf
    1:: [573] ...<OK> : ADD ./image159.emf
    1:: [573] ...<OK> : ADD ./image160.emf
    1:: [573] ...<OK> : ADD ./image161.emf
    1:: [573] ...<OK> : ADD ./image162.emf
    1:: [573] ...<OK> : ADD ./image164.tiff
    1:: [573] ...<OK> : ADD ./image165.png
    1:: [573] ...<OK> : ADD ./image166.jpg
    1:: [573] ...<OK> : ADD ./image167.ai
    1:: [573] ...<OK> : ADD ./image168.bmp
    1:: [573] ...<OK> : ADD ./image169.bmp
    1:: [573] ...<OK> : ADD ./image170.bmp
    1:: [573] ...<OK> : ADD ./image171.eps
    1:: [573] ...<OK> : ADD ./image172.tiff
    1:: [573] ...<OK> : ADD ./image173.jpg
    1:: [573] ...<OK> : ADD ./image174.jpg
    1:: [573] ...<OK> : ADD ./image175.jpg
    1:: [573] ...<OK> : ADD ./image176.gif
    1:: [573] ...<OK> : ADD ./image177.bmp
    1:: [573] ...<OK> : ADD ./image178.png
    1:: [573] ...<OK> : ADD ./image179.tiff
    1:: [573] ...<OK> : ADD ./image18.wmf
    1:: [573] ...<OK> : ADD ./image180.pdf
    1:: [573] ...<OK> : ADD ./image20.pdf
    1:: [573] ...<OK> : ADD ./image23.tiff
    1:: [573] ...<OK> : ADD ./image24.tiff
    1:: [573] ...<OK> : ADD ./image31.bmp
    1:: [573] ...<OK> : ADD ./image32.wmf
    1:: [573] ...<OK> : ADD ./image33.pdf
    1:: [573] ...<OK> : ADD ./image34.pdf
    1:: [573] ...<OK> : ADD ./image36.pdf
    1:: [573] ...<OK> : ADD ./image37.pdf
    1:: [573] ...<OK> : ADD ./image38.tiff
    1:: [573] ...<OK> : ADD ./image39.pdf
    1:: [573] ...<OK> : ADD ./image40.pdf
    1:: [573] ...<OK> : ADD ./image41.pdf
    1:: [573] ...<OK> : ADD ./image42.pdf
    1:: [573] ...<OK> : ADD ./image44.pdf
    1:: [573] ...<OK> : ADD ./image45.pdf
    1:: [573] ...<OK> : ADD ./image46.pdf
    1:: [573] ...<OK> : ADD ./image47.pdf
    1:: [573] ...<OK> : ADD ./image48.pdf
    1:: [573] ...<OK> : ADD ./image54.tiff
    1:: [573] ...<OK> : ADD ./image55.pdf
    1:: [573] ...<OK> : ADD ./image56.pdf
    1:: [573] ...<OK> : ADD ./image57.pdf
    1:: [573] ...<OK> : ADD ./image58.pdf
    1:: [573] ...<OK> : ADD ./image59.pdf
    1:: [573] ...<OK> : ADD ./image60.pdf
    1:: [573] ...<OK> : ADD ./image61.pdf
    1:: [573] ...<OK> : ADD ./image62.jpg
    1:: [573] ...<OK> : ADD ./image63.jpg
    1:: [573] ...<OK> : ADD ./image64.jpg
    1:: [573] ...<OK> : ADD ./image65.jpg
    1:: [573] ...<OK> : ADD ./image66.png
    1:: [573] ...<OK> : ADD ./QuickLook/Preview.pdf
    1:: [573] ...<OK> : ADD ./QuickLook/Thumbnail.tiff
    1:: [573] ...<OK> : ADD ./QuickLook
    1:: [573] <OK> network: PACKAGE ADD (DEEP) "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, EXECUTING)}
    1:: [573] -[SPeer(protected) processPackageJob:]: Found 'empty' package job. Ignoring.
    I checked the users folder on the server and the file was in their desktop folder, completely intact.
    Restarted, logged user back in:
    0:: [117] [2010/03/24 11:08:07.598] PHD:Contents CONFLICT at "Desktop/NetworkDiagramMaster-2010_vB.graffle/"
    0:: [117] [2010/03/24 11:08:07.598] PHD:--------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---
    0:: [117] [2010/03/24 11:08:07.598] PHD:AVV  | CVV  | Info:Finder | Info:Mod Date  | Info:Mode | Info:NodeID  | Info:Props | Info:User/Group  | LVV  | Object Name | ObjectID  | Status
    0:: [117] [2010/03/24 11:08:07.598] PHD:PHD-L-fd-yCD8Svr1-smith1269439466[] | PHD-L-fd-yCD8Svr1-smith1269439466[] |  FF:0000  | 2010/03/24 10:58:19 | rwxr-xr-x | ID:0x0000000096957a |   | U: 1104 G: 20 | PHD-L-fd-yCD8Svr1-smith1269439466[] | /  | 0x1adb3d0 <x-coredata://68B7FC25-9F7D-4013-A591-E646B2A38B43/SNode/p15455> |  P
    0:: [117] [2010/03/24 11:08:07.598] PHD:PHD-L-fd-yCD8Svr1-smith1269439466[] | PHD-L-fd-yCD8Svr1-smith1269439466[] |  FF:0000  | 2010/03/24 10:58:19 | rwxr-xr-x | ID:0x00000000168882 |   | U: 1104 G: 20 | PHD-L-fd-yCD8Svr1-smith1269439466[] | /  | 0x1a0a130 <x-coredata://5BC3195E-D57D-4CB2-BEEC-103892292F44/SNode/p15507> |  D
    0:: [117] [2010/03/24 11:08:07.599] PHD:CONFLICT at "Desktop/NetworkDiagramMaster-2010_vB.graffle/" auto-resolved: winning peer "network", new version vector: PHD-L-fd-yCD8Svr1-smith1269439466[]
    1:: [117] PHD:Sync job generation pass 2 of 2 for "HomeSync_Mirror" took 0.08 seconds
    1:: [117] PHD:Sync jobs for peer local
    1:: [117] PHD: local: DELETE "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, READY)}
    1:: [117] PHD: local: ADD "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, BLOCKED)}
    1:: [117] PHD:Items to copy: 20, bytes to copy: 879
    1:: [117] PHD:<OK> local: DELETE "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, EXECUTING)}
    1:: [117] PHD:<OK> local: ADD "Desktop/NetworkDiagramMaster-2010_vB.graffle" {(Priority=1, EXECUTING)}
    1:: [117] PHD:-[SPeer(protected) processPackageJob:]: Found 'empty' package job. Ignoring.
    This time, when checking the file on the desktop of the users system, the file was there, but there were no contents in the package.
    The user has since logged out and left for the day, but I checked the server and for now, the file seems to be OK. It appears that when the person syncs later, the "blank" file is pushed from their system back up to the server. Then both files are blank.
    I am not sure, but the phrase "Found 'empty' package job. Ignoring." appears a few times in the log. I think this may have something to do with the issue, but I am not sure how to fix it. I have many users and it is beginning to worry me that there may be other files which are not getting copied properly.
    Has anyone out there run across this or have any ideas for a fix?

    You need to ask the Dropbox people about that, but I'm pretty sure that it's like having an external drive and it can't sync that precisely. It will act just like dragging and dropping a file on an external drive and back up the whole thing each time.
    For that kind of syncing you need an iDisk from Apple's MobileMe service. Certain note programs, like Yojimbo, are made with idisk syncing built in, but I don't think Devonthink supports that.

  • Ld: file was built for unsupported file format...for architecture armv7

    hi:
    I recently developed a project with custom ANE and I get this error msg when compile ipa since I upgraded the sdk from 3.5 to 3.8.
    ANE compile CMD:
    adt -package -storetype pkcs12 -keystore ane.p12 -storepass 1234 -target ane yund.ane extension.xml -swc yunding.swc -platform iPhone-ARM -platformoptions platform.xml IDS.framework library.swf libIslandIDSANE.a
    platform.xml:
    <platform xmlns="http://ns.adobe.com/air/extension/3.5">
         <sdkVersion>6.1</sdkVersion>
         <linkerOptions>
                        <option>-w</option>
            <option>-ios_version_min 4.2</option>
                        <option>-framework Foundation</option>
                        <option>-framework StoreKit</option>
                        <option>-framework AdSupport</option>
                        <option>-framework QuartzCore</option>
                        <option>-framework UIKit</option>
                        <option>-framework CoreGraphics</option>
                        <option>-framework SystemConfiguration</option>
                        <option>-framework Foundation</option>
                        <option>-lz</option>
         </linkerOptions>
                 <packagedDependencies>
                        <packagedDependency>IDS.framework</packagedDependency>
              </packagedDependencies>
    </platform>
    msg:
    ld: file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f 0x43 0x75 0x72 0x72 0x65 0x6e 0x74 ) which is not the architecture being linked (armv7): C:\Users\timoo\AppData\Local\Temp\139d9782-79fd-422a-8c15-da1da2da8c53/IDS.framework/IDS for architecture armv7
    Compilation failed while executing : ld64
    help me
    thx

    Have you Found the way to solve this problem yet?
    I  have got the same problem. Here is the error log when building the IPA:
    ld: warning: ignoring file /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-909f-5c219b2fbcd4/Par tytrack.framework/Partytrack, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f 0x43 0x75 0x72 0x72 0x65 0x6e 0x74 ) which is not the architecture being linked (armv7): /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-909f-5c219b2fbcd4/Par tytrack.framework/Partytrack
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/apple/Documents/flexsdk/flex3.9/lib/aot/lib/libDebugger1.arm-air.a(avmplusDebugger .cpp.o)
    Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_Partytrack", referenced from:
          objc-class-ref in libcom.haibin.extension.PromotionAPI.a(partyTrackAPI.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    My platformoption.xml content is:
    <platform xmlns="http://ns.adobe.com/air/extension/3.8">
        <sdkVersion>7.0</sdkVersion>
        <linkerOptions>
            <option>-ios_version_min 4.3</option>
            <option>-framework CoreData</option>
            <option>-framework UIKit</option>
            <option>-framework Foundation</option>
            <option>-framework Security</option>
            <option>-weak_framework AdSupport</option>
        </linkerOptions>
        <packagedDependencies>
            <packagedDependency>Partytrack.framework</packagedDependency>
        </packagedDependencies>
    </platform>
    And my build command are:
    <target name="package" description="Create the extension package">
    <exec executable="${FLEX_HOME}/bin/adt" failonerror="true" dir="${basedir}">
    <env key="AIR_SDK_HOME" value="${FLEX_HOME}"/>
    <arg value="-package"/>
    <arg line="-storetype pkcs12"/>
    <arg line="-keystore testkey.p12"/>
    <arg line="-storepass 123456"/>
    <arg line="-target ane"/>
    <arg value="../${ANE_NAME}.ane"/>
    <arg value="extension.xml"/>
    <arg line="-swc ../swc/${ANE_NAME}.swc"/>
    <arg line="-platform iPhone-ARM -platformoptions platform.xml -C ../iPhone-ARM/ . "/>
    <arg line="-platform Android-ARM -C ../Android-ARM/ ."/>
    <arg line="-platform default -C ../default/ ."/>
    </exec>
    </target>
    File "Partytrack.framework " is in the directory "iPhone-ARM"

  • All Oracle Sample Schemas and all Oracle Built-in Packages in XE?

    Hi,
    I am trying to install Oracle 10g on my home system to improve my knowledge of PL/SQL. Because I'm doing it at home, I have to solve DBA issues I'm somewhat clueless about.
    I would like to install Oracle 10g Express Edition and include the built-in packages (DBMS_OUTPUT, UTL_FILE, DBMS_UTILITY, DBMS_JOB, DBMS_JAVA, DBMS_RANDOM, etc.) as well as the Oracle sample schemas (HR, OE, PM, SH, and IX). None of these, except HR, is included in the express edition.
    If necessary, I'd like to be able to install these things after installing the express edition. How can I do this?
    Thanks,
    Mike

    Hi Mike,
    checking the documentation is always helpful:
    http://www.oracle.com/pls/xe102/homepage
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_programs.htm#i2432
    You can always do a quick search on the documentation homepage, e.g. for utl_file:
    http://www.oracle.com/pls/xe102/search?remark=advanced_search&word=utl_file&format=ranked&book=&preference=
    There shouldn't be a need to install any packages. They should come preinstalled already.
    If not, you can find them here:
    C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN
    Just be very careful before trying to install something into the data dictionary. If you are not experienced, you might mess up your database.
    For example, utl_file is installed but invisible to most users, e.g. HR.
    Look at this example:
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    ERROR:
    ORA-04043: Objekt "SYS"."UTL_FILE" ist nicht vorhanden
    SQL> conn sys@XE as sysdba
    Kennwort eingeben:
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    SQL> grant execute  on utl_file to HR;
    Benutzerzugriff (Grant) wurde erteilt.
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    PROCEDURE FCOPY
    ...So, after granting execute privileges on utl_file to HR, the user HR can now access utl_file. No need to install it.
    The default packages are installed in the schema SYS.
    Regards,
    ~Dietmar.

Maybe you are looking for

  • OEL 6.2 network bonding

    Hi all, I am trying create and test network bonding in OEL6.2 (2.6.32-300.25.1.el6uek.x86_64). OEL6 installed as Oracle VM 3.1.1 Virtual machine. Problem is that when I created second bond (bond1) I lost my old (bond0) interface IP address. Now all 4

  • Why are these fonts auto activating?

    I've just updated to Tiger 10.4.8. One day later I install CS2 (previously had CS). I use FontAgent Pro. Now, whenever I open Safari or any CS2 app. (just the app, not an actual document) a bunch of fonts are auto activated which I don't want to be a

  • Mac Pro when I turn it on shows  no video signal input

    When I turn my Mac Pro on the screen is black and it  shows " no video input" . how can I solve this problem?

  • CMP with Oracle 9i, Sun Java Sys App Serv 8.2 and J2EE1.4 (capture-schema)

    while building Entity bean with Container managed persistence we will create a database schema file, which will allow us to map fields from the enterprise beans to columns in the database tables created. For creating database schema file using Sun ja

  • Question about java reflection and "int" type

    hi, using reflections I should invoke a Method (meth3) that have as parameter an INT type (not integer). I've tryed with this code:                     int num = 3;                     Class[] vettClax = {int.class};                     Object[] vett