Page 5 of 5

Re: Experiment with Gnome Volume Control on Ubuntu 9.10

Posted: Wed Dec 14, 2011 10:32 am
by igorzwx
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

# old name "mplayer-svn"
pkgdesc="A movie player for linux"
arch=('i686' 'x86_64')
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.