[SOLVED] Resolve java package update conflicts
Currently I have jdk, jre and java-common installed. A new package java-runtime-common is going to shift out java-common. However, removing java-common will break jdk and jre so pacman won't let me go. In this case what would be the best way to update the relevant java packages? Note that jdk and jre are installed from AUR, which pacman doesn't know about. Thanks.
Last edited by cyker (2014-10-17 04:37:55)
cyker wrote:Thanks, get it work already. I think it's a very useful tool. Not sure why it doesn't have a man page. Probably it's helpful to integrate its functionality into pacman.
Not sure what you mean:
$ pkgfile testdb
core/pacman
$ testdb -h
usage:
testdb [-b <pacman db>] : check the local database
testdb [-b <pacman db>] core extra ... : check the listed sync databases
Similar Messages
-
[SOLVED] Question about package updates and ABS
Hello,
I have manually compile my kernel in order to apply a patch my laptop needs to suspend. So I use abs and customize the pkgbuild. A few days ago when the update for kernel26-2.6.33.3-2 came out, I thought I'd just refresh abs, rebuild, and then I'd be up to date. But instead now pacman -Syu tells me that there is still an update for the kernel.
Does building from ABS not get you the latest package update?
Also, what exactly is the package update compared to a software update? I'm guessing that it is an arch only update to the package but the software itself is the same version. Or am I totally off?
Thanks for the help!
Last edited by Fingel (2010-05-12 03:42:38)When building via ABS, the package installed gets its version from the PKGBUILD ($pkgver-$pkgrel). Pacman just looks at available version vs installed version to tell if you should upgrade.
Your abs tree was probably just not up to date; just because pacman -Syu says your mirror has a package, doesn't mean building via abs _at that moment_ will get that version.
Be sure to run `abs` to update your tree, then when you're editing the PKGBUILD, check which version it's building. In some cases, you can simply increment those numbers right in the PKGBUILD before building as source files are often fetched based on those variables, etc. -- but I don't know if I'd recommend that when building something like the kernel.
Last edited by brisbin33 (2010-05-11 17:08:12) -
[SOLVED] Skipping a package update
This is a known issue in the AUR, but I seem to be unable to ignore this upgrade when checking for updates (to update the rest of the system around it).
Can anyone help to point me in the right direction? I have not found anything on the wiki or google.
Thanks!
╰─[06:08:35]>>> sudo pacman -Syu --ignore flexget
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: flexget: requires python2-sqlalchemy<0.9.99
Last edited by highway (2015-04-30 01:16:39)Simplified explanation:
flexget is in the AUR
python2-sqlalchemy is in the repos
python2-sqlalchemy on your system is less than version 0.9.99
flexget on your system requires python2-sqlalchemy less than version 0.9.99 (i.e. the one on your system)
pacman wants to update all of the repo packages on your system
repo python2-sqlalchemy is at version equal to or greater than 0.9.99
pacman can't upgrade to the repo version of python2-sqlalchemy because it would break the version of flexget on your system
Solutions:
remove flexget and upgrade your system then re-install flexget when it works with the current version of python-sqlalchemy
wait for a version of flexget that supports the current version of python-sqlalchemy and then upgrade your system -
[solved] yaourt VCS package updates
Hello,
the command $ yaourt -Syua --devel upgrades all VCS packages. However, I do not completely understand how that works.
Does yaourt upgrade all VCS packages that are installed regardless of their version or does yaourt reconcile the VCS packages with my local packages and upgrades only these that are newer?
Regards
Last edited by orschiro (2012-12-23 09:37:02)Then this feature is not working on my system.
As an example I just upgraded two packages nemo-dropbox-git and nemo-fileroller-git. So they are definitely the latest version.
Now when I run $ yaourt -Syua --devel it still wants to upgrade them again:
[orschiro@thinkpad ~]$ yaourt -Syua --devel
:: Synchronizing package databases...
cinnarch-repo is up to date
cinnarch-core is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
Foreign packages: \ 19 / 19
==> upgrading SVN/CVS/HG/GIT package
Targets (2): nemo-dropbox-git nemo-fileroller-git
==> Proceed with upgrade? [Y/n]
==> ----------------------------
==> -
[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: -
Unable to create web app with PowerShell - An update conflict has occurred
I am trying to create a new Web Application using PowerShell. I need to use PowerShell because I need to create the Web App using classic authentication and not Claims authentication. the first time I created the Web App, everything went great. Ever since
the first time, I get an error and the web app creation does not complete. Just as an FYI, I can create a new Web App using Central Admin, but that creates it with Claims authentication which I cannot use.
Here is my PowerShell script
New-SPWebApplication -Name "SharePoint2013 (82)" -ApplicationPool "SharePoint2013-82" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "GLOBAL\SP_AppPool") -Port 82 -URL "http://sharepoint2013"
Here is the error I get in PowerShell
New-SPWebApplication : An update conflict has occurred, and you must re-try this action. The object SPWebApplication
Name=SharePoint2013 (82) was updated by DOMAIN\SP_Administrator, in the powershell (13020) process, on machine SPWEB01.
View the tracing log for more information about the conflict.
At line:1 char:1
+ New-SPWebApplication -Name "SharePoint2013 (82)" -ApplicationPool "SharePoint201 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:SPCmdletNewSPWebApplication) [New-SPWebA
pplication], SPUpdatedConcurrencyException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWebApplicationUnknown SQL Exception 547 occurred. Additional error information from SQL Server is included below.
The DELETE statement conflicted with the REFERENCE constraint "FK_Dependencies1_Objects". The conflict occurred in database "SP_Config", table "dbo.Dependencies", column 'ObjectId'.
The statement has been terminated.
I also get this error from the trace
Unknown SQL Exception 547 occurred. Additional error information from SQL Server is included below.
The DELETE statement conflicted with the REFERENCE constraint "FK_Dependencies1_Objects". The conflict occurred in database "SP_Config", table "dbo.Dependencies", column 'ObjectId'.
The statement has been terminated.
I have tried to resolve the issue by performing the following:
Delete the partially created web app using Central Admin or PowerShell
Clear the file system cache on all servers in the farm (Stopping wss timer job, Saving Copy of the
cache.ini file from C:\Documents and Settings\All Users\application data\Microsoft\SharePoint\Config folder. Clearing all the .xml files from the location except cache.ini but Edit the cache.ini to have value 1. Starting the timer job)
Use Products Configuration Wizard (no detach, just 'upgrade') - People have said to select the option to disconnect the server from server farm and revert back again at next step (so you actually do not disconnect), but there is no next step that I have
encountered. You select 'disconnect', hit next, and the server disconnects.
Restart all the servers in the farm
Run the PowerShell script again...still get the same error
I have tried it on multiple servers in the farm too.Hi Michael,
I found a similar thread for you reference:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9ccef7bf-87a9-4849-b086-4db2d898f1d7/cannot-create-new-web-application-wss-30?forum=sharepointadminlegacy
If it doesn’t work, sometimes the issue might be caused by long time keep powershell opening and generating some cache files. So please try re-opening the powershell and test the issue again.
http://blogs.msdn.com/b/ronalg/archive/2011/06/24/mount-spcontentdatabase-errors-on-2nd-and-subsequent-attempts-of-same-database.aspx?Redirected=true
http://www.oakwoodinsights.com/sharepoint-powershell-surprise/
In addition, here is an article which explains the possible reason of the SQL error:
http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Since I installed Java 7 update 51 accessing the EMC VNX Unisphere Console cause the following error: java.util.HashMap cannot be cast to java.awt.RenderingHints.
I rolled back to Apple Java 1.6 -005 now I am getting the following error: plug-in failure.
I think this is cused by the fact that the EMC console application has been written for java 7 and not java 6. Has anybody faced and solved the "java.util.HashMap cannot be cast to java.awt.RenderingHints." error ?Hi Yaakov,
The error is thrown from the eclipselink.jar:2.5.1 which is a JPA provider .
Is the above jar bundled in the Oracle Product you are working upon or was this downloaded from external site ?
If the jar is bundled with the Oracle Product, go ahead a log a SR with Oracle Support with Toplink product group to drill down on the issue, as the issue is happening internally or thrown by the Eclipselink implementation and we've no control....
Hope it helps!!
Thanks,
Vijaya -
Webstart no longer works after update from Java 7 Update 67 to Java 7 Update 71/72
Hi,
We have an application that is launched via Webstart. Last year, we had to make a bunch of changes to the application in order to work with Java 7 Update 45. It has been working fine up to and including Java 7 Update 67. However, it is no failing with Java 7 Update 71 and 72. Upon launch it is giving the error below. I have searched online and found other articles related to the AccessControlException but they are about 7 years old. I also tried adding this to the java.policy file with no luck. Any ideas or help would be appreciated to determine what I can do to get this to work for update 71.
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "eclipse.exitcode" "write")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkProperties.setProperty(FrameworkProperties.java:64)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:78)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:56)krubar wrote:
I have same problem on Sparc system (Solaris 10). Does anybody know how to fix it ? I can't change symbolic link for javaAre you certain that you are experiencing exactly the same issue? Did you follow the hyperlinks to the Sun Solve documents above?
The Sun Solve document itself states:
1. Solaris 8 and 9 and OpenSolaris and Solaris 10 on the SPARC platform are not impacted by this issue.I would suggest that you open a Support Call with your local solutions centre. -
Attempting to install the "missing plug-in" using the Firefox prompts results in Java 7 Update 10 being installed, re-installing it is successful and does not resolve the issue, Firefox 18 refuses to allow/display java content even with the proper updated version of Java installed.
This problem ONLY occurred immediately following this mornings update to Firefox 18.0.Context:
Yesterday: Java working fine.
This morning: Update to Firefox 18.0
Java will not work, not at all even with Java 7 Update 10 installed, not even the "verify java version" applet at http://www.java.com/en/download/installed.jsp will display.
When attempting to view/display any java content the "missing plug-in" error bar at the top of the page displays and attempting to install the required plug-in via that method does not resolve the issue even though the correct version of Java is installed and the plug-in checker verified it was "up-to-date". -
Update conflict resoltion ORA-01403: no data found
I have set up multimaster replication environment with two database and I have implemented Update conflict resolution on a table using DISCARD method(Oracle provided) as below.
Some how it is not able to resolve the conflict and I am getting erro ORA-01403: no data found.
On MDS(M1) I run the follwing SQL
update menu_code
set ipp_uid = 20
where id = 4;
commit;
on master(M2) database in table menu_code row with ID=4 doesn't exsit.
When I apply deffred transaction that gnerated by above SQL
I get ORA-01403: no data found and ofcourse trnsaction doesn't apply to db and goes to deferror. Since I am using DISCARD method
it should be resolved and not to gnerate error message.
Here is detail info.
Table name: menu_code
--creating column group
BEGIN
DBMS_REPCAT.MAKE_COLUMN_GROUP (
sname => 'SYNAPSE',
oname => 'MENU_CODE',
column_group => 'MENU_CODE_CG1',
list_of_column_names => 'id,ipp_uid');
END;
-- adding update conflict resolution
BEGIN
DBMS_REPCAT.ADD_UPDATE_RESOLUTION (
sname => 'SYNAPSE',
oname => 'MENU_CODE',
column_group => 'MENU_CODE_CG1',
sequence_no => 1,
method => 'DISCARD',
parameter_column_name => 'id,ipp_uid');
END;
--regenerating support for the table.
BEGIN
DBMS_REPCAT.GENERATE_REPLICATION_SUPPORT (
sname => 'SYNAPSE',
oname => 'MENU_CODE',
type => 'TABLE',
min_communication => TRUE);
END;
Thanks.
PravinYou are absolutely right. Now we decided not to write any conflict resolution routine at all.
Non MDS database is read-only till fail over. After fail over non MDS (other master) will allow insert/update operation.
To fail back to MDS we will write our procedure/function, out side of Oracle conflict resolution( both database will be in Read only mode during synchronizing).
We will delete all deferred transaction/error form the queue and once data transfer is complete, again MDS becomes primary database to use.
Oracle conflict resolutions are to complicated and has lots of overhead and maintenance.
Thanks.
Pravin -
I am able to install the 1.4.2_02-b03 JRE package on Windows 2000 Pro (SP4).
However, the 1.4.2_02-b03 SDK package does not install: some way through the process (the file copy stage) a modal dialog is displayed ("Warning - Java(TM) Update
Java(TM) Update (1.4.2_02-b03) cannot be installed on this machine because the Java(TM) Virtual Machine is currently running.
Please close all running Java(TM) applications, especially browsers.
Retry Cancel
---------------------------") and when Cancel is clicked, the main MSI installer program displays an Error 1722 modal dialog ("A program failed to execute blah blah...") and the MSI program announces installation has failed, nothing has been installed, and so on.
The MSI log in the temp directory displays "Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action patchsdk, location: C:\Program Files\Common Files\Java\Update\Base Images\j2sdk1.4.2-b28\patch-j2sdk1.4.2_02-b03\patchsdk.exe, command: -s "C:\Programs\Java\SDK\"
=== Logging stopped: 06/11/2003 23:53:02 ===
Examination of the installation directory (C:\Programs\Java\SDK in my case) shows that program files have been copied (and it looks complete), but the Java applet in the Control Panel does not show that the JRE in the SDK directory has been registered as a JRE choice (normally it is in the drop-down list of available JREs).
So what can I do? Both 1.4.2_01 SDK and 1.4.2_02 SDK show this problem; 1.4.2 (FCS) does not. The problem also occurs with the IFTW installers.I think I found a <fix> for this. I was having the exact same problems on 10 different WinXP and Win2k machines. I found a couple things may help on some systems. Try installing the following updates:
WinXP: http://support.microsoft.com/default.aspx?kbid=322913
Win2k: http://www.microsoft.com/windows2000/downloads/recommended/q322913/default.asp
You may have better luck installing 1.4.2 after installing these patches. I did on SOME systems. Otherwise, when installing 1.4.2 and you come to the point where it asks you to "Retry" or "Cancel" just keep on clicking on "Retry" until it installs successfully. Sometimes this may take 50 times sometimes once. But it will install.
Sometimes I found that if I opened taskmanager, then close it, clicking Retry would work after that point.
The moral is: Just keep clicking Retry! -
Complex Oracle Streams issue - Update conflicts
This is for Oracle streams replication on 11g r2.
I am facing update conflicts in a table. The conflict arise due to technical and business logic issue. The business logic will pass through the replication/apply process successfully but we want to arrest and resolve it before replication for our requirements. These are typically a bit complex cases and we are exploring the possibility of having both DML handlers and Error handlers. The DML handlers will take care of business logic conflicts and Error handler for technical issues before pushing it to Error queue by Streams. Based on our understanding and verification, we found a limitation to configure both procedure DML handler and Error handler together for the same table operation.
Statement handlers can not be used for our conflict scenarios.
Following are my questions:
1. Have anyone implemented or faced such a scenario in their real time application? If yes, can you please share some insights or inputs?
2. Is there a custom way to handle this complex problem of configuring both DML and Error handler?
3. Is there any alternative possible way to resolve this situation at Oracle streams environment with other handlers?Dear All
I too have a similar requirement. Could anyone help with one?
We can handle the error-ing transactions via Error Handler procedures.
But we can not configure the DML handler procedure for transactions that are successfully replicated. STreams does not allow us to configure a handler for this. Is there any other handler / procedures / hooks in streams where we can implement the desired functionality - which includes changing the values in the LCR before invoking lcr.execute() and we should be able to discard the LCR also if required.
Regards
Velmurugan
Edited by: 982387 on Jan 16, 2013 11:25 PM
Edited by: 982387 on Jan 16, 2013 11:27 PM -
I use a batch file to compile a java package. And I got the following errors:
TabPages: Java: 29: Cannot solve symbol
Symbol: class JSPFactory
Location: package JSP
JSPFactory = javax.Servlet.jsp.JSPFactory.getDefaulfFactory();
Note: Some input files use or override a deprecated APT.
Note: Recompile with -deprecation for details.
I am using New Atlanta servletExec 3.1 and IIS server. Can anyone help me figure our the above errors? Thanks!if I add the "set classpath=".,C:/javax" to the begining of the batch file, will this override the classpath that I set in the Environment window? I am worried about this since we have a bunch of environment variables already been set there.
I tried to add the ";c:\javax" at the end of the classpath on my Environment window, and rebooted the server, but still got the same error message. Did I have some syntax error? What does the dot before ";C:/javax" mean? I deleted it when I added them to the classpath.
It will cause too much trouble to add the "javac XXX.java -classpath=".;C"/javax" to each file that needs this package because we don't have a single command for compiling a single java file. We have a huge amount of java files and we just use a single "javac -d" to compile every file under several folders. Our batch file is as follows:
del /F/Q ..\classes
javac -d ..\classes *.java htmltool\html\*.java ises\*.java DropDown\*.java frmselection\*.java grid\*.java treeView\*.java reportTreeMenu\*.java hs\types\*.java
del /F ..\lib\grid.jar
del /F ..\lib\TreeView.jar
cd ..\classes
jar cf ..\lib\grid.jar grid
rmdir /S/Q grid
jar cf ..\lib\TreeView.jar treeView
rmdir /S/Q treeView
cd ..\javasrc
Another thing is that: we have exact the same classpath and batch file on another server which works fine, and its classpath doesn't include explicitly stuff like";c:\javax", but we never have prolbem compiling the java source. So do I miss something else? -
Problem on how to create a .h file in a java package !!
Hello,
Please help me!! I have a problem generating a header file inside a java package. As I do not think eclipse IDE can do that, I then have to use the command as following in the command prompt instead.
D:\myJava\workspace\myJNI\bin>javah sysHookJNI/PollThread
javadoc: error -Illegal package name "sysHookJNI/PollThread"
sysHookJNI is my package name and PollThread is my class name. I think it should works because I compiled it with similar format as>java sysHookJNI/PollThread.java and it outputs the PollThread.class, but in fact it doesnot !>_<.
Can anyone suggest me what I should do?
Big thanks in advance,
NethThank you so much !!
But after I got that point my old problem is still not solved with that. After my sysHookJNI.PollThread.h is generated, I compiled everything over and then run Test by
: java Test and the Exceptions are occurred as:
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: sysHookJNI.PollThread.checkKeyboardChanges()V at sysHookJNI.PollThread.checkKeyboardChanges(Native Method)
at sysHookJNI.PollThread.run(PollThread.java:21)
And this is my PollThread.java (actually I took it from Jacob )
//PollThread.java
package sysHookJNI;
import java.io.*;
public class PollThread extends Thread
public native void checkKeyboardChanges();
private KeyboardHook kbh;
public PollThread( KeyboardHook kh )
kbh = kh;
System.loadLibrary("syshook");
public void run()
for(;;)
checkKeyboardChanges();
yield();
void Callback( boolean ts, int vk, boolean ap, boolean ek )
KeyboardEvent event = new KeyboardEvent( this, ts, vk, ap, ek );
if( ts )
kbh.keyPressed( event );
else
kbh.keyReleased( event );
}Anyone has any suggestion about this problem? I really have no clue about it!! it keeps complains the same things no matter I regenerated header file or not.. T_T
Btw, shall I make a new post about this problem?
Thanks for your time,
Edited by: Nethie on Nov 1, 2009 2:37 PM -
Properties files in a Java package not included in DC build
We are developing a Portal Standalone DC and i have a JspDynPage component within it. and i need to do internationalization in it. so as part of that i want to keep multiple resource bundles(properties) so that i could manage my properties files easily, For example
MSS.properties
MSS_es.properties
ESS.properties
LSO.properties
since portal by default has no way to do this bcos it allows only one resourcebundle to specify in portalapp.xml file, i have kept the resource bundles in java package like
com.companyname.portal.resources.
when i export from NWDS with selection of "i want to add non java resources into jar " option from windows->preferences->enterprise portal ->application development studio, it exports all the properties files as part of the par and everything works. but when i do the DC build it ignores all my properties files and it is not working. any suggestions on how to resolve this??? does SAP provide any other way of handling multiple properties files inside a PAR?????We are using NWDS 2004 SP19. and yes i have defined three default SCs as dependencies. I tested with 2004s NWDS and it seems work fine. I am able to resovle this issue by moving my properties files into another java DC and create public part in java DC and use those public parts in Portal application DC.
So The problem of not including the properties files into Jar seems to be issue only in Portal Application DC not in Java DC. thanks everyone for the quick responses..
Maybe you are looking for
-
My iPhoto is really sluggish. Is my Library too big? What to do?
My iPhoto is really sluggis. I have only 1 Library that has 4 years of images and movies in it... many imported in RAW format. Do I need to create multiple Libraries? If I delete video from iPhoto library will it still be available to iMovie? What to
-
Is the Java 7 update safe on my Mac?
-
My itunes crashes whenever it is opened and while sending info to apple. what do I do
My itunes keeps on crashing since I did the latest upgrade. It was not doing this before. I am on my windows computer. when it opens it gathers information for imatch and then sends to apple and then crashes.... what do I do? Nolene
-
How to install service pack or hotfix?
Guys, My number of installation (help>> about xcelsius) is 12.0.0.121. I would like to install the service pack and hotfixes available for xcelsius to correct the problems of the tool. someone can explain me step by step how to do this? Thank´s all.
-
Credit where it is due.
I noticed a crack in my 3gs after reading around I heard it seems to be something that does turn up from time to time. It is always kept in a case and has never been dropped. So I booked a Genius appointment at the Exeter U.K. Apple store. I went in