Experiment with Gnome Volume Control on Ubuntu 9.10

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

Re: Experiment with Gnome Volume Control on Ubuntu 9.10

Postby igorzwx » Wed Dec 14, 2011 10:32 am

Oliveber wrote:Wouldn't renaming break packages which depend on the renamed packages?


If the renamed package "A-nopulse" provides "A", the package "B", which depends on "A", will not be affected.

In short, you should correctly define:
1. provides
2. conflicts
3. replaces

EXAMPLE (Arch Linux: mplayer-svn renamed as mplayer-oss-svn):
Code: Select all
pkgname=mplayer-oss-svn
# old name "mplayer-svn"
pkgver=34443
pkgrel=1
pkgdesc="A movie player for linux"
arch=('i686' 'x86_64')
url="http://www.mplayerhq.hu/"
license=('GPL2')
depends=('ttf-dejavu')
makedepends=('subversion' 'yasm' 'git')
provides=("mplayer" "mplayer=$pkgver" "mplayer-svn=$pkgver")
conflicts=("mplayer" "mplayer-svn" "mplayer-vaapi" "mplayer-gui-oss")
replaces=("mplayer" "mplayer-svn" "mplayer-vaapi" "mplayer-gui-oss")
.
.
.
./configure --prefix=/usr --disable-alsa --disable-arts --disable-esd --disable-pulse --disable-jack --confdir=/etc/mplayer --language=all
.
.
.


For Ubuntu newbies:

apt-get will not break your system or your packages, if you do not install anything by force. If something is wrong with dependencies, it will tell you.

dpkg can break your system completely without warnings, if, for example, you are trying to install some packages from a new Ubuntu on an old Ubuntu. It might be possible to fix this too, but it might be difficult.
igorzwx
Known Member
 
Posts: 1001
Joined: Sun Jun 28, 2009 9:31 pm

Previous

Return to Linux

Who is online

Users browsing this forum: Google [Bot] and 1 guest