You are not logged in.
Hello,
I want to create a devel version from an upstream package (gstreamer). After reading the wiki page of devel
versions I created this PKGBUILD.
_realname=gstreamer0.10
pkgname=${_realname}-git
pkgver=20090819
pkgrel=1
pkgdesc="GStreamer Multimedia Framework"
arch=(i686 x86_64)
license=('LGPL')
url="http://gstreamer.freedesktop.org/"
depends=('libxml2>=2.7.3' 'glib2>=2.20.1')
conflicts=('${_realname}')
makedepends=('git' 'cvs' 'intltool' 'pkgconfig' 'gtk-doc')
provides=('${_realname}')
options=('!libtool')
source=()
md5sums=()
_gitroot=git://anongit.freedesktop.org/gstreamer/gstreamer
_gitname=master
build() {
cd ${srcdir}
if [ -d gstreamer ] ; then
cd gstreamer && git pull --rebase || return 1
else
git clone git://anongit.freedesktop.org/gstreamer/gstreamer || return 1
cd gstreamer
fi
sh autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
}The package builds fine, but I'm not able to install the package:
$ sudo pacman -U gstreamer0.10-git-20090819-1-x86_64.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [####################################################################################################################################################################################] 100%
error: failed to prepare transaction (conflicting files)
gstreamer0.10-git: /usr/bin/gst-feedback-0.10 exists in filesystem
...
gstreamer0.10-git: /usr/share/man/man1/gst-xmllaunch-0.10.1.gz exists in filesystem
errors occurred, no packages were upgraded.So, the package is not installed because there are some files from gstreamer0.10 replaced in this package. But I'm declaring 'provides' and 'conflics' in the PKGBUILD like the wiki suggests.
What is going wrong here?
Last edited by lovebug356 (2009-08-20 14:28:19)
Offline
Put this in PKGBUILD:
conflicts=('gstreamer0.10')
OR
put these --> " " instead of these --> ' ' around ${_realname} in conflicts array.
Wherever you have a $_realname or a variable like that, always type --> " "
Last edited by flamelab (2009-08-20 10:56:28)
Offline
Try to explicitely deinstall gstream0.10 and then use pacman -U to install your package. Or use a personal repo and pacman -Sy to install it. pacman -U does not handle package conflicts.
Offline
Thanks, a combination of the 2 tips worked.
Offline